Abstract
Transcriptomic analysis at the individual gene level is often confounded by noise and technological biases. While grouping genes into gene sets can improve signal-to-noise ratios, existing projection methods often fail to be simultaneously representative, robust, and interpretable. We developed NetActivity, a deep-learning framework based on sparsely-connected autoencoders and a three-tier training process. Trained on the GTEx dataset, NetActivity generates Gene Set Activity Scores (GSAS) that are highly representative of the original transcriptome and assign higher importance to biologically relevant genes. NetActivity demonstrates superior robustness across platforms and enables powerful meta-analyses, as shown in studies of prostate cancer progression.
Introduction
The "trilemma" of gene set projection methods involves balancing representativity (capturing data variance), robustness (consistency across samples/technologies), and interpretability (identifying driver genes). NetActivity was designed to bridge these gaps by utilizing a biology-informed neural network architecture. By constraining connections to known gene-pathway relationships, the model transforms the "black box" of deep learning into a transparent biological lens.
Methods: Architecture and Training
NetActivity utilizes a shallow sparsely-connected autoencoder. The input layer consists of gene expression values, which connect to a hidden layer where each neuron represents a specific biological gene set (e.g., from GO or KEGG). Connections are only permitted between a gene and the sets it belongs to, ensuring the learned features are biologically grounded.
Three-Tier Training Strategy
To stabilize the model and ensure meaningful weights, a unique training protocol was implemented:
- Step 1: Training individual autoencoders for each gene set to establish initial weights.
- Step 2: Freezing encoder weights and training the decoder to stabilize the reconstruction of original gene expression.
- Step 3: Fine-tuning the entire network.
The model was trained using 9,662 samples from the GTEx project, encompassing a wide array of healthy human tissues to create a robust baseline representation.
Key Results and Validation
NetActivity's performance was validated across multiple datasets, including TCGA cancer data and IBD cohorts.
Representativity and Correlation
The framework's GSAS capture the majority of the variance present in the original transcriptome. Principal component analysis (PCA) reveals that the top 10 components of the GSAS matrix are highly correlated with the top 10 components of the original gene expression data across different datasets, such as IBD and TCGA-PRAD.
Biological Relevance and Constraints
The model's learned weights align with established biological principles. Genes with high loss-of-function (LoF) intolerance or those associated with numerous diseases in the DisGeNET database are naturally assigned higher importance (weights) by the model.
Cross-Platform Robustness
NetActivity maintained consistent pathway definitions across datasets with over 90% consistency, significantly outperforming traditional methods like GSVA (~44%) and Hipathia. This technological neutrality makes it ideal for meta-analyses combining RNA-seq and microarray data.
Clinical Discovery in Prostate Cancer
In a meta-analysis of prostate cancer progression, NetActivity identified cell division pathways as critical drivers. In the PROMOTE clinical study of metastatic prostate cancer, GSAS related to spindle microtubule attachment correlated more strongly with treatment response than any single gene, uncovering insights that traditional enrichment analyses failed to detect.
Discussion and Limitations
While NetActivity provides a powerful tool for transcriptomics, some limitations remain. The mathematical sign of the activity scores is arbitrary, though their magnitude and relative direction are informative. Additionally, while the GTEx-trained model is broadly applicable, specialized contexts may require further fine-tuning or larger niche-specific datasets.
NetActivity is available as an R/Bioconductor package, providing an accessible framework for robust, pathway-level transcriptomic discovery.
Summary updated