Abstract
Objective: Transcriptomic perturbation profiles from tumor cell lines serve as the core molecular basis for cancer drug discovery and mechanism of action (MOA) analysis. Traditional Chinese medicine (TCM) holds great anticancer potential, yet the multi-component and multi-target properties pose major challenges for systematic mechanistic investigation. The scarcity of herbal intervention transcriptomic data severely restricts transcriptome-based anticancer TCM research, unlike widely available large-scale chemical compound perturbational datasets. This study aims to establish a predictive framework for herbal transcriptional responses in tumor cell models to address this critical data bottleneck.
Methods: A transfer learning-based encoder-decoder prediction framework integrated with a self-attention mechanism was developed. The model was pre-trained on large-scale connectivity map compound perturbation datasets with paired baseline transcriptomic profiles, then fine-tuned with limited herbal perturbation data covering 11 herbs across 4 tumor cell lines using a shared gene set as the molecular basis.
Results: The model achieved strong predictive performance (mean squared error = 0.1395, R2 = 0.8561, Pearson correlation coefficient = 0.9258), outperforming baseline models with robust generalization to unseen herbal interventions. Transfer learning markedly improved prediction accuracy and stability under data-limited conditions.
Conclusions: This framework provides a scalable, cost-effective computational approach for anticancer herbal in silico screening, preliminary MOA exploration, and multi-herb prescription synergistic pattern analysis in cancer drug discovery.
keywords
- Transfer learning
- perturbational transcriptome prediction
- tumor cell models
- drug response modeling
- transcriptomics
Introduction
Traditional Chinese medicine (TCM), a core component of traditional medical systems, is characterized by multi-component and multi-target therapeutic properties and has long been applied in the prevention and treatment of various diseases, including cancer1–3. Systematic characterization of the transcriptional responses of tumor cells to pharmacologic perturbations constitutes a critical foundation for cancer drug discovery, target identification, and mechanism-of-action analysis in cancer biology and precision medicine. Transcriptomics serves as a key technology for elucidating gene regulatory programs by comprehensively capturing dynamic gene expression changes under specific conditions, thereby providing rich molecular-level information for investigating drug-system interactions. Perturbational omics, in turn, focuses on system-wide molecular responses, particularly at the transcriptomic level, elicited by external interventions, such as chemical compounds or herbal agents. Moreover, perturbational omics has contributed to the development of systematic frameworks for transcriptome-based drug discovery research4–7.
The pharmacologic basis of TCM is complex because the therapeutic effects often arise from the coordinated regulation of multiple signaling pathways and biological processes, rendering traditional single-target paradigms insufficient for comprehensive mechanistic interpretation8–10. With the rapid development of systems biology and artificial intelligence, molecular-level characterization of TCM mechanisms has become an important direction for the modernization of TCM research11–16. Perturbational transcriptomic data, defined as transcriptomic responses following herbal interventions, capture global gene expression changes induced by treatment and provide essential molecular evidence for identifying potential anticancer pathways and key regulatory nodes. However, transcriptomic perturbation resources for herbal interventions remain relatively scarce compared to compound-based perturbational studies represented by the connectivity map (CMAP)17. This limitation hampers systematic mechanistic investigations of herbal agents in cancer research and restricts the efficiency of discovering and prioritizing potential anticancer herbal compounds and the active constituents. Therefore, computational approaches that enable accurate prediction of herbal perturbational transcriptomes represent a promising strategy to overcome current data bottlenecks.
This study presents a transfer learning-based framework for predicting perturbational transcriptomic responses of herbal medicines in cancer-related cell line models. The workflow begins with a large-scale compound perturbation dataset from the connectivity map (CMAP), which is used to train an encoder-decoder-based compound perturbational transcriptome prediction model. Compound molecular features and baseline transcriptomic states are jointly encoded and a self-attention-enhanced decoder generates predicted perturbation-induced gene expression profiles. Building on the compound model, a herbal perturbational transcriptome prediction model is developed via transfer learning using limited herbal perturbation datasets from KORE-Map across four tumor cell lines. Model performance is systematically evaluated through baseline model comparison, assessment of transfer learning effects, and out-of-distribution generalization analysis. The predicted perturbational transcriptomes are further validated through multi-level case studies, including gene-level target validation, herbal-level pathway enrichment analysis, and prescription-level synergistic mechanism exploration using a multi-herb formula. Collectively, the framework demonstrates robust generalization to unseen herbal interventions, captures coordinated multi-target and multi-pathway transcriptional mechanisms, and provides a scalable computational strategy for transcriptome-based anticancer herbal research. ADHD, attention deficit hyperactivity disorder; CMAP, connectivity map; DEGs, differentially expressed genes; GO, Gene Ontology; KEGG, Kyoto Encyclopedia of Genes and Genomes. Figure created using BioRender (www.biorender.com) and Microsoft PowerPoint.
Currently, substantial progress has been achieved in perturbational response prediction for chemical compounds with most existing approaches adopting generative models based on encoder-decoder architectures. CellCap18 is built upon a variational autoencoder framework for single-cell transcriptomic data and integrates sparse dictionary learning with multi-head attention. CellCap decomposes single-cell perturbation responses and models the correspondence with cellular states using a non-linear encoder to extract basal cellular states and a linear decoder to preserve interpretability. PerturbNet19 uses a conditional invertible neural network as the core mapping module and adopts a modular architecture consisting of perturbation and cell representation networks. PerturbNet enables the prediction of single-cell state distributions under previously unseen chemical, genetic, and coding-sequence mutation perturbations by integrating chemical structures, gene functional annotations, and other features. Similarly, scGen20 is based on a variational autoencoder architecture and incorporates latent space vector arithmetic. Gene expression profiles are encoded into a low-dimensional latent space, perturbation difference vectors are estimated, and responses are extrapolated to predict single-cell perturbation effects across cell types, studies, and species. CPA21 also adopts an autoencoder-based framework and introduces adversarial training to achieve latent space disentanglement. CPA predicts single-cell transcriptomic responses to unseen doses, cell types, and combinatorial perturbations by linearly combining embeddings of basal cellular states, perturbations, and covariates. PRnet22 utilizes a perturbation adapter, perturbation encoder, and perturbation decoder as core components for bulk transcriptomic data. Chemical structures are encoded using SMILES representations23 and combined with unperturbed transcriptomic profiles to predict transcriptional responses to novel chemical perturbations. In recent years, diffusion models have emerged as promising approaches for perturbation response prediction in biomedical research. Diffusion-based models have demonstrated considerable potential for gene expression prediction and cell-state simulation tasks owing to the strong generative capacity24–26.
However, prediction of perturbational transcriptomes for herbal agents is relatively limited. For example, SETComp27 learns compound-cell-target associations from compound perturbation datasets and subsequently fine-tunes the model using a small number of herbal samples to infer directed associations between herbal agents and molecular targets in specific cell lines. In contrast, NeCTAR28 leverages RNA-seq data derived from herbal constituent compounds to quantify the regulatory strength of individual components on biological pathways, thereby constructing herb-pathway association matrices that characterize the overall regulatory potential of single herbal agents. Another network-target-based approach29 evaluates the intervention effects of compound combinations on biomolecular networks using random-walk algorithms to model the propagation and influence across the network. Nevertheless, existing approaches are generally restricted to pathway-level or association-based analyses and are insufficient for directly predicting gene-level expression changes induced by herbal interventions in tumor cell models.
A transfer learning-based30 perturbational transcriptome prediction framework that leverages tumor cell line models to enable systematic modeling of herbal perturbation responses under data-limited conditions is proposed to address these limitation. The study workflow is illustrated in the study flowchart, while the model architecture is shown in Figure 1. The objective of this study was to establish a transferable modeling strategy for predicting transcriptomic responses to herbal perturbations in tumor cell models, while alleviating data scarcity and supporting downstream cancer drug discovery and mechanism-of-action studies. Specifically, compound perturbation transcriptomic data from the CMAP database were integrated with a limited number of herbal perturbation datasets derived from tumor cell lines in the KORE-Map database31 and an additional small dataset32. A shared gene set was obtained by intersecting the genes present in both datasets and was used as the molecular basis for prediction. A generative model with an encoder-decoder architecture incorporating a self-attention mechanism33 was constructed to predict perturbational transcriptomic responses to chemical compounds and herbal agents under specific experimental conditions, including intervention type, cell line, dosage, and treatment duration. In this study greater emphasis was placed on evaluating the adaptability, robustness, and representational capacity of established predictive frameworks in tumor-related herbal perturbation scenarios compared to emerging generative architectures, such as diffusion models. The proposed model achieved strong predictive performance under data-scarce conditions with transfer learning markedly improving prediction accuracy, particularly when only a limited number of herbal samples were available.
Framework of the transfer learning-based perturbational transcriptome prediction method for herbal agents. The proposed framework adopts an encoder-decoder architecture integrated with a self-attention mechanism as the core structure and jointly incorporates perturbational transcriptomic data from chemical compounds and herbal agents to predict transcriptional responses. Compound and herbal features are extracted by a perturbation encoder, while cell line characteristics are captured by a cell line encoder. Experimental conditions, including dosage and treatment duration, are incorporated as auxiliary inputs. Predicted transcriptomic responses to herbal perturbations are generated by a perturbation decoder. Model performance is evaluated across four modules: baseline model comparison; assessment of transfer learning effects; out-of-distribution generalization analysis; and case studies. Figure created using BioRender (www.biorender.com).
Materials and methods
Implementation configurations
All computational analyses and model construction were performed on a dedicated server with the following system specifications: operating system, AlmaLinux 9.5 (Teal Serval); kernel, Linux 5.14.0-503.26.1.el9_5.x86_64; architecture, x86-64. The server was equipped with an NVIDIA GeForce RTX 4080 GPU. CUDA 12.1 with matching cuDNN libraries was configured to enable GPU-accelerated model training and inference. The entire analytical pipeline was built on Python 3.10.14 with the following core libraries and precise versions used for specific analysis steps: pandas 2.2.2 (data manipulation and preprocessing); numpy 1.26.4 (numerical computation); pytorch 2.2.2 (deep learning model architecture construction, paired with pytorch-cuda 12.1); torchdrug 0.2.1 (molecular graph construction and processing); matplotlib 3.9.0 (experimental result visualization); scikit-learn 1.6.0 (data standardization, dataset splitting and evaluation metric calculation); scipy 1.14.1 (statistical analysis); and rdkit 2023.03.3 (molecular structure parsing and molecular feature extraction). In addition, R version 4.4.1 (2024-06-14) was used for transcriptomic data analysis and functional enrichment with key packages, including DESeq2 1.44.0 (differential gene expression analysis), clusterProfiler 4.14.0 (functional enrichment analysis), org.Hs.eg.db 3.19.1 (human gene annotation database), enrichplot 1.26.1 (enrichment result visualization), dplyr 1.1.4 (data manipulation), openxlsx 4.2.8 (Excel file read/write), ggplot2 4.0.1 (graphical visualization), stringr 1.5.1 (string processing), and tidyr 1.3.1 (data tidying).
Data sources and preprocessing
Chemical compound perturbation data
Compound perturbation transcriptomic data were obtained from the GEO database and derived from CMAP project datasets (GSE70138 and GSE92742)34. Specifically, Level 2 (GEX) L1000 processed gene expression profiles were used from these datasets, which are deconvoluted absolute expression values for 978 landmark genes generated by the L1000 high-throughput gene expression assay platform. These datasets include transcriptomic profiles collected from multiple cell lines subjected to various chemical compounds at different dosages and treatment durations with paired pre- and post-perturbation conditions.
The datasets were first integrated during preprocessing, ensuring the presence of corresponding control groups for each experimental condition. All chemical compounds were required to have valid SMILES representations in public databases, such as PubChem, to guarantee data quality and comparability35. A total of 956,245 experimental and 47,653 control samples were retained after filtering, covering 18,973 chemical compounds and 82 cell lines. Each transcriptomic profile consisted of expression measurements for 978 genes, broadly representing cellular gene expression states. To enable alignment with the herbal perturbation transcriptomic data, only the intersection of genes shared between the two datasets was retained, resulting in a final set of 977 genes for downstream analyses.
Herbal perturbation data
Herbal perturbation transcriptomic data were obtained from the KORE-Map database and comprised multiple GEO datasets, including GSE244687, GSE244707, GSE244694, and GSE245912, with an additional dataset (GSE273185) included. All these datasets provide batch-corrected quasi-count expression matrices generated from RNA-sequencing of herbal medicine-treated human cell lines. The GSE273185 dataset was incorporated to expand the herbal perturbation transcriptomic dataset and the same technical standards for transcriptome sequencing and analysis as the KORE-Map datasets were adopted to ensure data compatibility, thus improving the robustness of subsequent integrated analyses. Each sub-dataset in the KORE-Map database corresponds to one unique cell line and includes perturbation profiles of multiple herbal agents on that cell line. In contrast, the GSE273185 dataset contains one unique herbal agent and includes perturbation profiles across multiple cell lines treated with this herb. Accordingly, the subsequent out-of-distribution generalization experiments for herbal agents and cell lines involve validation on entirely independent datasets. After integration, a total of 378 samples were collected, covering 4 tumor cell lines (HT29, SW1783, HepG2, and A549) and 11 herbal agents with exactly 9 samples per herb-cell line combination, ensuring a fully balanced experimental design (Table 1). HT29, SW1783, HepG2, and A549 are derived from a human colon adenocarcinoma, a human brain glioblastoma, a human hepatocellular carcinoma, and a human lung adenocarcinoma, respectively. Each combination of herbal agent and cell line was tested at doses of 500, 100, and 20 μg/mL with a fixed treatment duration of 24 h. No missing values were apparent in the dose and time metadata. Prior to model input, these experimental conditions were all subjected to standardization. To enable alignment with the chemical compound perturbation data, only genes shared between the herbal and compound transcriptomic datasets were retained, resulting in a final set of 977 genes for subsequent analyses.
Correspondence of herbal agents, Latin names and components numbers
Feature extraction for chemical compounds and herbal agents
SMILES representations of the compounds were retrieved from the PubChem database for chemical compound perturbation data. Molecular descriptors were then converted into molecular graphs using the RDKit toolkit. The InfoGraph algorithm36 was subsequently applied to transform each molecular graph into a 300-dimensional vector representation, which effectively captured compound-level features.
Feature extraction for herbal agents followed a similar strategy. Because herbal agents are composed of multiple chemical constituents and the biological effects typically arise from the synergistic actions of these constituents, the constituent compounds for each herbal agent were first obtained from the HERB 2.0 database37. Notably, only the chemical composition information of herbal agents were retrieved from the database for feature construction with no additional data (including target, pathway, or transcriptomic profile information) involved in this process. Molecular features of these constituent compounds were extracted using the InfoGraph algorithm based on graph neural networks. A 300-dimensional feature vector for each herbal agent was then generated by aggregating the feature vectors of the constituent compounds via max-pooling, in which the maximum value across all constituent compounds was retained for each feature dimension. Let Xherb ∈ ℝd denote a herbal agent feature composed of n constituent compounds and let ci ∈ ℝd be the d-dimensional feature vector of the i-th compound (I = 1,2,…,n). The feature vector, Xherb, was computed via max-pooling as follows:
where Xherbj is the j-th dimension of the feature vector for the herbal agent and ci,j is the j-th dimension of the feature vector for th i-th compound. This approach effectively preserves the most salient bioactivity signals from individual compounds, better capturing the dominant action patterns of herbal agents and providing a meaningful basis for downstream biological mechanism analysis.
Compound perturbation prediction algorithm
Model architecture
The compound perturbation prediction algorithm developed in this study was based on a generative model with an encoder-decoder architecture and incorporated a self-attention mechanism to capture compound features and the effects on transcriptomic responses. The model encoded compound features, dosage, and treatment duration together with features derived from control samples to generate predicted perturbational transcriptomic profiles. The model consisted of three main components:
(1) Compound encoder. The compound encoder adopted a three-layer multilayer perceptron (MLP) architecture38. The input consisted of 300-dimensional compound feature vectors, which were sequentially transformed through hidden layers of 256, 128, and 32 dimensions, yielding a 32-dimensional latent representation. This module was designed to extract representative latent features from compound structural information for subsequent perturbation generation.
(2) Control encoder. The control encoder had a structure similar to that of the compound encoder and employed a separate MLP to extract features from the control transcriptomic data. The input consisted of 977-dimensional gene expression profiles from control samples, which were mapped through layers of 512, 256, 128, and 64 dimensions to generate a 64-dimensional latent representation. This module was intended to capture baseline transcriptional states and model the relationship between control and perturbed conditions.
(3) Perturbation decoder. The decoder concatenated the latent representations from the compound and control encoders with compound dosage and treatment duration as inputs. These concatenated features were processed through multiple fully connected layers with dimensions of 98, 128, 256, 512, and 977 to generate a 977-dimensional predicted perturbational transcriptomic profile. In addition, a self-attention mechanism was embedded within the decoder to dynamically adjust the contributions of individual input features. This design enabled the model to focus on features that had a greater influence on transcriptomic changes and improved predictive performance. By capturing the complex dependencies among input features, the self-attention mechanism further enhanced the modeling of intricate interactions between compounds and transcriptomic responses.
Model training and validation
All input data were standardized during model training and validation to account for differences in value ranges among transcriptomic profiles, dosage, treatment duration, and compound features. Transcriptomic data were first log-transformed to reduce distributional skewness and outlier impacts. Per-gene standardization was subsequently performed using StandardScaler39, which independently scales the value of each gene to a zero mean and unit variance. This preprocessing ensured comparability across all feature dimensions, alleviated transcriptomic data biases, improved model training stability and convergence, and justified the use of the mean squared error (MSE), R2, and Pearson correlation coefficient as an evaluation metric.
Because multiple control samples were available for each cell line, principal component analysis (PCA) was applied to reduce the dimensionality of the 977 landmark gene expression profiles to 50 principal components (PCs) when selecting control samples. The similarity between perturbation and control samples was measured using Euclidean distance in the PCA space and the nearest control sample (1-nearest neighbor) was matched for each perturbation sample within the same cell line. This approach enabled the identification of control samples most like each perturbation condition, thereby enhancing the ability of the model to learn differences between perturbed and control states. Importantly, PCA was only used during the data preprocessing stage for control matching and the subsequent training/validation split was performed by grouping unique experimental conditions to ensure that samples from the same condition did not appear in both the training and validation sets, thus preventing any potential data leakage across splits.
The dataset was split into training and validation sets in an 8:2 ratio. To avoid data leakage and rigorously evaluate generalization of the model to unseen experimental conditions, a strict multi-dimensional stratified split strategy was adopted. Samples were grouped into unique experimental conditions based on four core attributes: cell line; perturbagen (herbal agents or compounds); dosage; and treatment duration. All samples belonging to the same experimental condition were assigned exclusively to either the training or validation set, but not both, thereby eliminating data leakage.
Model training was performed with a fixed batch size of 16,384 and a global random seed of 0 for the Python random module, NumPy, and PyTorch to ensure full reproducibility, and the MSE was used as the loss function. Parameter optimization was performed using the AdamW optimizer40 with an initial learning rate of 1e-3 and a weight decay of 1e-4, and a CosineAnnealingLR learning rate scheduler (with T_max = 50 and eta_min = 1e-5) was applied to dynamically adjust the learning rate and mitigate overfitting. An early stopping strategy was also implemented with a patience of 20 epochs and a min_delta of 1e-4, whereby training was automatically terminated when the validation loss failed to show a significant improvement over the predefined number of epochs. In terms of model architecture, a single-head scaled dot-product self-attention module followed by LayerNorm was integrated into the decoder to refine latent features and stabilize model training.
To comprehensively evaluate model performance, the coefficient of determination (R2) and the Pearson correlation coefficient were used in addition to the MSE. Specifically, MSE quantifies the absolute discrepancy between predicted and observed values, R2 reflects the proportion of variance explained by the model, and the Pearson correlation coefficient measures the linear concordance between predictions and ground truth. All metrics were calculated on the standardized gene expression scale consistent with model training. No inverse standardization was performed before MSE calculation. This ensures training-evaluation consistency and avoids bias from differences in original gene expression magnitudes. All genes underwent identical standardization, unifying expression values to the same scale and ensuring the comparability of MSE values.
Herbal perturbation prediction algorithm
Model architecture
A herbal perturbation prediction algorithm was developed based on the compound perturbation prediction model and incorporated into a transfer learning strategy. Given the limited availability of transcriptomic data on herbal perturbations, transfer learning enabled the effective reuse of knowledge learned from compound perturbation datasets, thereby reducing reliance on herbal data. The model architecture was identical to that used for compound perturbation prediction, retaining the encoder-decoder generative framework and self-attention mechanism to model herbal features and the effects on transcriptomic responses.
Model training and validation
The same standardization procedures used for the compound perturbation data were applied during training and validation to ensure feature comparability and improve training stability and predictive accuracy under transfer learning. The data were split into training and validation sets owing to the limited size of the herbal dataset using a 7:3 ratio to reduce evaluation variance and enhance reliability. The same multi-dimensional stratified train-validation splitting strategy used for the compound perturbation dataset was also applied to the herbal perturbation dataset to ensure consistency and avoid data leakage.
Given the scarcity of herbal data, one matched control sample was randomly selected from all available control samples for each experimental instance during training. This strategy mitigated the bias introduced by fixed control selection and increased dataset diversity across training iterations.
Model training followed the same protocol as that used for compound perturbation prediction, including the AdamW optimizer, MSE loss function, learning rate scheduler, early stopping strategy, and identical evaluation metrics, with the only adjustment being the batch size set to 64 to match the data scale of herbal perturbation experiments. The key distinction lay in the model initialization. Specifically, pretrained parameters obtained from the compound perturbation prediction model were used as initial weights. Through transfer learning, knowledge learned from large-scale compound perturbation data provided effective parameter initialization for herbal transcriptome prediction, thereby accelerating convergence and improving predictive accuracy, and enabling the model to achieve relatively strong performance even under conditions of limited herbal perturbation data.
Results
Compound perturbation prediction model
The compound perturbation prediction model, denoted as ModelC, achieved an MSE of 0.1797, an R2 value of 0.8198, and a Pearson correlation coefficient of 0.9055 on the compound perturbation prediction task (Figure 2). These results indicated that the model provided a good fit to the data and exhibited a high degree of correlation between predicted and observed transcriptomic profiles.
Performance of the compound perturbation prediction model. (A) Loss curves during training and validation. (B) Scatter plot of predicted vs. observed transcriptomic values. Figure created using Python 3.10.14.
Herbal perturbation prediction model
Model training performance
The herbal perturbation prediction model, referred to as Model_H, was evaluated based on 20 repeated experiments. The average performance metrics were an MSE of 0.1395 (0.1311, 0.1479), R2 of 0.8561 (0.8484, 0.8638), and a Pearson correlation coefficient of 0.9258 (0.9218, 0.9298; Figure 3). These results indicated that Model_C achieved strong predictive performance on herbal perturbation data after transfer learning with accurate fitting to experimental observations and a high correlation with true transcriptomic profiles.
Performance of the herbal perturbation prediction model. (A) Loss curves during training and validation. (B) Scatter plot of predicted vs. observed transcriptomic values. Figure created using Python 3.10.14.
These findings suggested that ModelH effectively leveraged knowledge transferred from the compound perturbation model despite the limited size of the herbal dataset, thereby improving prediction accuracy and alleviating data scarcity.
Baseline model performance comparison
Comparisons were made against three baseline models to further evaluate the performance of ModelH: logistic regression (LRH)41; random forest regression (RFH)42; and support vector regression (SVRH)43. Each model was trained and evaluated based on >20 repeated experiments. Boxplots of the three evaluation metrics (MSE, R2, and Pearson correlation coefficient) are shown in Figure 4A; the mean values are summarized in Table 2. The results demonstrated that ModelH consistently outperformed all baseline models across all evaluation metrics, indicating a clear performance advantage.
Performance comparison of herbal perturbational transcriptome prediction models. (A) Baseline model performance comparison. Model denotes the proposed method, LR denotes the logistic regression model, RF denotes the random forest regression model, and SVR denotes the support vector regression model. Each model was evaluated over 20 repeated experiments. (B) Transfer learning performance comparison. Transfer learning was applied using different proportions of herbal datasets, with each experiment repeated 20 times. LR, logistic regression; MSE, mean squared error; RF, random forest regression; SVR, support vector regression. Figure created using Python 3.10.14.
Performance comparison of baseline models
Transfer learning performance evaluation
Models were trained using different proportions of the herbal dataset to assess the effectiveness of transfer learning and compared to models trained from scratch using herbal data alone. When the proportion of the herbal dataset was relatively large, the performance of the transfer learning model was comparable to that of the model trained from scratch (Figure 4B). However, as the number of herbal datasets decreased, the transfer learning model exhibited a clear performance advantage. This advantage was particularly pronounced when the number of herbal samples was very small, demonstrating the effectiveness of transfer learning under data-scarce conditions. Furthermore, the results showed that when the herbal dataset was limited, the box width of the boxplot for the transfer learning model was narrower than the model trained from scratch, indicating superior stability. In summary, transfer learning effectively leveraged knowledge obtained from compound data to improve the prediction accuracy of the model when herbal data were scarce.
In addition, when the proportion of the herbal dataset was zero (i.e., when ModelC was directly applied for prediction), the MSE and R2 of the model were close to the MSE and R2 of a random model. This result suggested that the transfer model could not adequately adapt to the characteristics of herbal medicines in the complete absence of herbal data. However, the Pearson correlation coefficient remained relatively high, indicating that the transfer model could partially capture the trends in gene expression changes induced by herbal interventions. This phenomenon highlights the specificity of herbal data and implies that the performance of transfer learning in practical applications improves rapidly in the early stages as the volume of herbal data increases.
Out-of-distribution (OOD) generalization performance
Systematic OOD generalization experiments were performed to rigorously evaluate the generalization ability of the model on completely unseen data44 in two scenarios with independent validation datasets adopted for core external OOD validation: unseen-herb testing; and unseen-cell-line testing (Figure 5A–D). The fully independent external dataset (GSE273185), which only contained Aconiti Lateralis Radix Praeparata was used as the dedicated independent validation dataset for the OOD test of this unseen herbal agent. Strict leave-one-herb-out OOD cross-validation was performed for the remaining 10 herbal agents based on the KORE-Map and GSE273185 dataset. Each cell line was validated using a complete, independent dataset (or combined independent datasets) as the exclusive independent validation set for the unseen-cell-line OOD testing with no cross-over of datasets between model training and testing. The independent validation datasets for each cell line were as follows: A549 (GSE244687); HepG2 (GSE244707); HT29 (GSE244694 + GSE273185); and SW1783 (GSE245912 + GSE273185).
Out-of-distribution (OOD) generalization performance of the herbal perturbational transcriptome prediction model. (A) Performance metrics from batch-wise testing on unseen herbal agents, repeated 100 times. (B) Performance metrics from batch-wise testing on unseen cell lines, repeated 100 times. (C) Performance metrics from leave-one-herb-out testing, repeated 20 times. (D) Performance metrics from leave-one-cell-line-out testing, repeated 20 times. (E) t-SNE dimensionality reduction and clustering plots of the herbal perturbational transcriptome, annotated by herbal category, dose, and cell line category, respectively. MSE, mean squared error; OOD, out-of-distribution; t-SNE, t-distributed stochastic neighbor embedding. Figure created using Python 3.10.14.
In the batch-wise unseen-herb tests the herbal dataset was split into training and validation sets at a 7:3 ratio and testing was repeated 100 times. The results indicated that ModelH exhibited favorable generalization performance when applied to unseen herbal agents with average MSE, R2, and Pearson correlation values of 0.1824 (0.1725, 0.1923), 0.8131 (0.8045, 0.8217), and 0.9043 (0.8997, 0.9089), respectively. These findings demonstrated the ability of the model to generalize to herbal agents not observed during training. One herbal agent was used as the validation set in the subsequent leave-one-herb-out tests, while the remaining agents used for training and evaluation were repeated 20 times. Prediction performance remained satisfactory for most herbal agents with relatively favorable MSE, R2, and Pearson correlation values, indicating effective learning of transcriptomic features. However, the model exhibited relatively weak performance on Aconiti Lateralis Radix Preparata. The analysis revealed that this herbal medicine was derived from an additional dataset outside the KORE-Map database and potential batch effects may have reduced the performance of the model compared to other datasets. Nevertheless, the Pearson correlation coefficient for this herbal medicine still reached approximately 0.76, indicating that the model can accurately predict the trends in transcriptomic changes induced by herbal interventions.
In contrast, model performance declined when the same evaluation strategy was applied to unseen cell lines, particularly with respect to R2, which showed a substantial deviation from 1. This result indicated that accurate prediction became more challenging when cell lines were not observed during training. Nevertheless, the Pearson correlation coefficients remained moderate, suggesting that the model was still able to capture overall expression trends, although prediction accuracy at the gene expression level was constrained by cell line-specific biological differences. These limitations were likely due to pronounced biological heterogeneity across cell lines, leading to substantial divergence in transcriptomic profiles and increased difficulty in generalization. Similar trends were observed in the leave-one-cell-line-out tests, in which one cell line was used as the validation set and the remaining cell lines were used for training; evaluation was repeated 20 times. Model performance for unseen cell lines remained suboptimal in these tests. Although the Pearson correlation indicated partial capture of overall expression trends, prediction accuracy was still affected by strong cell line-specific biological characteristics.
To further investigate these observations, t-distributed stochastic neighbor embedding (t-SNE) was applied to the herbal perturbation transcriptomic data (Figure 5E). The results showed that herbal perturbation profiles from different cell lines were widely separated in the low-dimensional space, indicating substantial differences in perturbation responses across cell lines. In contrast, perturbation profiles remained relatively close within the same cell line, even across different herbal agents and dosages. These findings suggested that cell line identity had a critical role in perturbation response patterns and should be explicitly accounted for in perturbational transcriptome prediction models.
Overall, the model demonstrated stable and accurate generalization to unseen herbal agents, producing reliable predictions for herbal samples that were not included during training. However, performance variability was observed for unseen cell lines and for samples with strong cell line-specific characteristics. These results indicated that, the model could effectively capture latent patterns in herbal perturbation data under data-limited conditions, whereas cell line specificity and sample size remain key factors influencing generalization performance.
Case studies
Drug target validation
Two representative herbal agents [Atractylodis Rhizoma (Cang Zhu) and Astragali Radix (Huang Qi)] were selected for drug target validation to further evaluate the practical applicability of the proposed framework.
Previous studies have demonstrated that Atractylodis Rhizoma can alleviate acute lung injury45, suggesting that Atractylodis Rhizoma exerts detectable biological perturbation effects in pulmonary cell models. Based on this evidence, the A549 cell line was selected in this study to predict and analyze the transcriptomic responses induced by Atractylodis Rhizoma intervention. A perturbational transcriptome prediction model trained via leave-one-out cross-validation was used for the analysis. The mean expression values for each gene were first calculated in both groups to systematically identify transcriptomic differences between perturbation and control conditions and fold changes were derived to characterize perturbation strength. Based on the corresponding experimental conditions of the herbal perturbation group and control group, Welch’s unequal variance independent-sample t-tests were subsequently conducted for each gene to assess the statistical significance of intergroup expression differences and the Benjamini-Hochberg method was further applied to correct the raw P-values generated from the t-tests to control false-positive rates caused by multiple testing. The predicted differentially expressed genes (DEGs) were then cross-referenced with known herbal targets documented in HERB 2.0. Among these genes, catalase (CAT) was identified as a shared target between known herbal targets and model predictions. CAT exhibited significant upregulation in A549 cells following Atractylodis Rhizoma perturbation (P = 7.17 × 10−72). This finding was consistent with previous experimental evidence demonstrating that Atractylodis Rhizoma promotes CAT expression46. These results indicated that the proposed framework could identify key molecular changes related to oxidative stress regulation and cellular homeostasis in tumor-relevant cell models. Collectively, these findings suggested that Atractylodis Rhizoma may alleviate lung injury by enhancing CAT expression and facilitating hydrogen peroxide clearance, highlighting the potential utility of the framework in perturbation mechanism analysis and candidate intervention prioritization.
Astragali Radix represents another widely studied herbal agent and has been applied in the context of liver injury47–49. The HepG2 cell line was selected as the experimental model to predict and analyze transcriptomic responses following Astragali Radix perturbation based on this background. Transcriptomic responses to Astragali Radix perturbation in HepG2 cells were predicted using the same analytical pipeline and DEGs identified by the model were cross-referenced with known herbal targets recorded in the HERB 2.0 database. The results showed that Astragali Radix induced significant downregulation of MYC expression in HepG2 tumor cells (P = 7.04 × 10−243). MYC is a key transcription factor that is aberrantly activated in multiple cancer types. Sustained overexpression of MYC is closely associated with excessive cellular proliferation, metabolic reprogramming, and transcriptional amplification. These findings indicated that the proposed framework could capture key molecular changes related to core oncogenic transcriptional networks, underscoring the potential value for mechanistic analysis and prioritization of candidate anticancer interventions. Moreover, previous studies have reported that Astragali Radix-related interventions can modulate MYC-associated pathways to regulate excessive proliferation and apoptosis, thereby alleviating liver injury50, which is consistent with the present predictions at the molecular level.
Taken together, these two case studies demonstrated that the proposed framework could identify critical transcriptional regulatory changes induced by diverse interventions in tumor-relevant cell models. By capturing molecular alterations in genes, such as CAT and MYC, which are closely associated with cellular homeostasis and core oncogenic transcriptional networks, the framework showed potential utility for mechanism-driven analysis and prioritization of candidate anticancer interventions.
Antitumor and cancer-suppressing herbal medicine validation
Six categories of antitumor herbal medicines reported in the existing literature were selected as the test set in this study to verify the reliability of the herbal perturbational transcriptome prediction model in dissecting the mechanisms of action of antitumor herbal medicines51. These categories included primary therapeutic drugs, broad-spectrum antitumor drugs, antitumor drugs for liver cancer and hepatic system tumors, antitumor drugs for lung cancer and pulmonary system tumors, antitumor drugs for colorectal cancer, and antitumor drugs for brain tumors. Paired tests were performed for each category of herbal medicines and the corresponding tumor cell lines (e.g., liver cancer herbal medicines with the HepG2 cell line and brain tumor herbal medicines with the SW1783 cell line) using the prediction model.
First, the model was used to predict the transcriptomic perturbation effects of the herbal medicines on the target cell lines with each experiment repeated 20 times. DEGs following herbal intervention were then identified. GO and KEGG functional enrichment analyses were subsequently performed on the identified DEGs using Fisher’s exact test. The genome-wide human gene set was used as the background for enrichment analysis to capture the general functional bias of DEGs in the context of the entire human genome. The Benjamini-Hochberg method was applied for multiple testing correction of enrichment P-values. Tumor-associated pathways were filtered using core pathway keywords related to “tumorigenesis-proliferation-metastasis-drug resistance” (e.g., “cell proliferation,” “apoptosis,” “PI3K-Akt,” and “metastasis”), and the number of significantly enriched tumor pathways for each herbal medicine was counted. The final results are presented in Figure 6A.
Case validation results. (A) Number of cancer-related pathway enrichments for antitumor and cancer-suppressing herbal medicines across four cell lines. (B) Pathway enrichment results predicted from the perturbational transcriptome of each single herbal medicine in Jingling Oral Liquid. (C) Heatmap showing the occurrence frequencies of differentially expressed genes in the predicted pathways of each single herbal medicine in Jingling Oral Liquid. Figure created using R 4.4.1.
The results showed that 60% of the herbal medicines enriched >30 pathways, reflecting the “multi-target and multi-pathway” intervention mode of herbal medicines. Moreover, primary therapeutic and broad-spectrum antitumor drugs enriched a considerable number of tumor-associated pathways across different cell lines, embodying the principle of “treating different diseases with the same method” in TCM. These findings indicated that the herbal perturbational transcriptome prediction model could predict the interactions between antitumor herbal medicines and the corresponding tumor cell lines, providing a computational prediction tool for association analysis of the “cell line-action pathway-clinical indication” relationship of antitumor herbal medicines.
Herbal prescription mechanism validation
This section serves as a supplementary exploratory demonstration of the model’s generalization ability for herbal perturbation prediction. Jingling Oral Liquid (JLOL) is a Chinese patented medicine composed of twelve herbal medicines, including Rehmanniae Radix Praeparata, Dioscoreae Rhizoma, Poria, Moutan Cortex, Alismatis Rhizoma, Polygalae Radix, Os Draconis, Ligustri Lucidi Fructus, Phellodendri Chinensis Cortex, Anemarrhenae Rhizoma, Schisandrae Chinensis Fructus, and Acori Tatarinowii Rhizoma. Clinical studies have confirmed the therapeutic effects of JLOL on neurologic diseases, such as attention deficit hyperactivity disorder (ADHD), tic disorders, and epilepsy in children52–54. JLOL is especially effective in alleviating core symptoms of ADHD, including inattention and hyperactivity52. To explore the potential molecular regulatory effects of JLOL on neurologic-related biological processes, the established herbal perturbational transcriptome prediction model was adopted to predict the transcriptomic responses of each of the 12 single herbal medicines in the prescription with each experiment repeated 20 times. Considering the clinical research focus of JLOL on neurologic diseases, the SW1783 cell line (an astrocyte-derived neurogenic tumor cell line) was selected for this exploratory analysis as SW1783 is the only neural lineage cell line covered by the training dataset of the model. However, it should be clearly noted that SW1783 is essentially a tumor-derived cell line, not a physiologic or disease-specific model for neurodevelopmental disorders, including ADHD. Limited by the cell line coverage of our model training data, SW1783 is only used as an alternative for the very preliminary exploratory prediction herein and cannot accurately represent the drug response of normal human neural cells or the pathologic state of ADHD. After prediction, fold changes in gene expression between the herbal intervention and control groups were calculated to identify significantly DEGs, followed by KEGG and GO pathway enrichment analyses of these genes (Figure 6B).
The pathway enrichment results showed that the herbal medicine DEGs in JLOL were significantly enriched in multiple neuron-related pathways, including calcium ion homeostasis, positive regulation of phosphatidylinositol 3-kinase/protein kinase B (PI3K-Akt) signaling, positive regulation of neuroinflammatory response, forebrain development, and neuroblast division. These pathways are closely associated with the pathophysiologic mechanisms underlying ADHD. For example, an imbalance in calcium ion homeostasis can interfere with key processes, such as neurotransmitter release and synaptic plasticity, and affect dopamine metabolism and oxidative stress via TRP channels, ultimately inducing core ADHD symptoms, including inattention and hyperactivity55. The PI3K-Akt signaling pathway participates in ADHD pathology by regulating the balance between dopamine and norepinephrine neurotransmitters, neuronal development, and synaptic plasticity56. Neuroinflammation is correlated with ADHD symptoms, such as hyperactivity and impulsivity, and affects the development of the prefrontal cortex and neurotransmitter function, thereby influencing the occurrence and progression of ADHD57. In addition, pathways related to the response to lipopolysaccharides and response to molecules of bacterial origin, which are enriched by most herbal medicines, represent immune-inflammatory responses to microbial pathogens. These pathways can trigger neuroinflammatory responses by activating immune pathways and inducing the release of pro-inflammatory factors, indirectly promoting the pathologic progression of ADHD. The above enriched biological processes are consistent with the reported ADHD-related pathologic pathways, suggesting that the transcriptomic perturbations predicted by the model are aligned with the known pharmacologic logic of JLOL.
To further explore the potential core regulatory genes of JLOL predicted by the model, the occurrence frequencies of DEGs in the enriched pathways of the 12 single herbal medicines were statistically analyzed and a heatmap was plotted (Figure 6C). The results showed that genes, such as fibroblast growth factor receptor 2 (FGFR2), Bruton’s tyrosine kinase (BTK), and interleukin-1β (IL1B), frequently appeared in multiple neuron-related pathways and were identified as potential candidate regulatory genes of JLOL predicted by the model. Among the potential candidate regulatory genes, FGFR2 has an important role in brain development by participating in neuronal growth and migration. Existing studies have indicated the potential association of FGFR2 with neurodevelopmental disorders, such as autism and ADHD58,59. BTK affects inflammatory responses in the central nervous system by regulating the functions of microglia and other immune cells60. IL1B is a key factor in neuroinflammation. IL1B promotes inflammatory responses in the nervous system, affects neural function and synaptic plasticity, and has an important role in neuropsychiatric diseases, such as ADHD61. In addition, the heatmap results indicated that different herbal medicines exert synergistic effects in regulating core target genes, reflecting the characteristics of “multi-component, multi-target, and synergistic action” of herbal medicines.
In summary, this section performed a supplementary exploratory analysis of JLOL based on the established herbal perturbational transcriptome prediction model by predicting the transcriptomic responses of the 12 single herbal medicines in JLOL in the SW1783 cell line. While these predictions revealed the potential regulatory patterns of JLOL on neural-related biological processes and candidate genes, this exploratory analysis has non-negligible limitations that require explicit clarification. Indeed, the SW1783 cell line used here, selected as the only neural lineage cell line covered by the training data of the model, is a tumor-derived line rather than a physiologic or ADHD-specific disease model, so the predicted results cannot fully represent the drug response of normal neural cells or the ADHD pathologic state. All findings are model-based predictions without in vitro/in vivo validation and can only be used as preliminary exploratory clues rather than confirmed therapeutic mechanisms of JLOL. This section is only a supplementary demonstration of the generalization ability of the model and does not affect the core conclusion of the manuscript focusing on anticancer herbal discovery.
Discussion
Systematic characterization of transcriptomic responses induced by diverse perturbation factors in tumor cell models is fundamental for elucidating the mechanisms of action of drugs, prioritizing candidate therapeutics, and understanding tumor transcriptional regulatory networks. However, due to experimental costs and scalability limitations, perturbational transcriptomic data remain limited for complex intervention systems, such as multi-component natural products. This scarcity has hindered the systematic application in tumor drug discovery. In this study a transfer learning-based perturbational transcriptome prediction framework designed to systematically model herbal perturbation responses in tumor cell models under data-limited conditions was proposed. By leveraging the large-scale molecular regulatory knowledge embedded in compound perturbation datasets, this approach effectively alleviates the scarcity of herbal perturbational transcriptomic data and demonstrates robust predictive capability in tumor-relevant cell models.
Specifically, compound perturbational transcriptomic data from the CMAP database were systematically integrated with limited herbal perturbation data from the KORE-Map database and one additional relevant database. A shared core gene set was selected as a unified molecular representation for model training. The experimental results indicated that the proposed model accurately recapitulates the global transcriptomic response patterns induced by chemical compounds and herbal agents. Moreover, substantial improvements in prediction performance were achieved under the transfer learning strategy using only a small number of herbal samples used for fine-tuning. These findings provided methodologic evidence supporting the effectiveness of transfer learning for perturbational modeling in tumor drug discovery. The findings further suggested that pathway-level regulatory patterns and transcriptomic response principles learned from compound perturbation data can serve as transferable biological knowledge and can be successfully extended to complex intervention systems, such as herbal agents.
Notably, OOD generalization experiments revealed scenario-dependent differences in model performance. While the model exhibited relatively robust predictions for unseen herbal agents, the accuracy declined markedly when applied to unseen cell lines. Combined with t-SNE dimensionality reduction analysis, herbal perturbation-induced transcriptomic responses from different tumor cell lines were clearly separated in low-dimensional space. In contrast, perturbation responses remained relatively clustered within the same cell line, even across different herbal agents and dosages. These observations suggested that the biological context of the tumor, represented by cell lines, including genomic mutation profiles, signaling pathway activity states, and metabolic characteristics, is a dominant determinant of perturbational transcriptomic response patterns. A given intervention may induce substantially different molecular responses across distinct tumor cell models, whereas transcriptional regulatory frameworks remain more consistent within the same cellular background. These findings underscore the importance of explicitly modeling cell line-specific characteristics in perturbational transcriptome prediction and tumor drug discovery studies. Relying solely on intervention-specific features or generic transcriptional regulatory rules is insufficient to fully capture the heterogeneous drug responses across tumor cell types. Finally, this study performed three-dimensional case validation covering drug targets, anti-tumor herbal medicines, and herbal prescriptions, which demonstrates the reliability and translational potential of the herbal perturbational transcriptome prediction model.
Conclusions
In this study a transfer learning-based perturbational transcriptome prediction framework was developed for modeling transcriptional responses to herbal interventions in tumor cell models, which effectively overcomes the bottleneck of scarce herbal perturbational data by leveraging large-scale compound perturbation knowledge from the CMAP database. The proposed self-attention-enhanced encoder-decoder model achieved strong predictive performance for herbal perturbations and robust generalization to unseen herbal agents, while systematically revealing that cell line-specific biological context is a dominant determinant of perturbational transcriptomic response patterns. The reliability and translational potential of this framework was further verified through multi-dimensional case studies, which provides a scalable computational strategy for transcriptome-based herbal research, including drug screening, mechanism-of-action analysis, and herbal prescription synergy exploration.
Despite the advantages demonstrated by the proposed framework for tumor-related perturbational modeling, several limitations warrant further investigation. First, owing to the intrinsic complexity and compositional diversity of herbal systems, prediction deviations persisted for certain cell line-herbal combinations. Second, differences in experimental conditions, sequencing platforms, and data preprocessing pipelines across datasets may introduce technical heterogeneity, potentially affecting comparability of results across studies, and variations in the selection of control groups may lead to discrepancies in model predictions across different batches. Furthermore, the current feature representation of herbal agents does not integrate biologically relevant weighted information, including compound concentration, bioavailability, and formulation variability, and only relies on max-pooling to aggregate the features of constituent compounds, which partially restricts the biological rationality of the embeddings and affects the granularity and rigor of downstream mechanism inference. Future work may extend this study in several directions: (i) incorporating finer-grained tumor cell line information, such as genomic alterations and molecular subtypes, to enhance modeling of tumor heterogeneity; (ii) integrating single-cell transcriptomic data to investigate perturbation responses from the perspective of intra-population variability; (iii) collecting and constructing standardized datasets documenting the dosage and bioavailability of constituents in herbal agents, and exploring attention-based weighted feature aggregation methods to improve the interpretability of model predictions and the rigor of mechanism inference; and (iv) conducting systematic in vitro and in vivo biological experiments to further validate the accuracy and biological translational value of the predictive results for the model.
Conflict of interest statement
The authors declare no conflicts of interest.
Author contributions
Conceptualization: Qingyuan Liu, Boyang Wang.
Data curation: Qingyuan Liu, Boyang Wang.
Methodology: Qingyuan Liu.
Formal analysis: Qingyuan Liu.
Visualization: Qingyuan Liu.
Writing—original draft: Qingyuan Liu, Boyang Wang.
Writing—review and editing: Qingyuan Liu.
Supervision: Shao Li.
Project administration: Shao Li.
Funding acquisition: Shao Li.
Data availability statement
Code for data processing, model construction, training and validation, as well as the accession numbers of the raw data, are publicly available on GitHub (https://github.com/HearingYou/TCM-Perturbation.git).
- Received January 22, 2026.
- Accepted April 22, 2026.
- Copyright: © 2026, The Authors
This work is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
















