Verifying explainability of a deep learning tissue classifier trained on RNA-seq data

Melvyn Yap, Rebecca L. Johnston, Helena Foley, Samual MacDonald, Olga Kondrashova, Khoa Tran, Kátia Nones, Lambros T. Koufariotis, Cameron Bean, John V. Pearson, Maciej Trzaskowski, Nicola WaddellScientific 2021

Abstract

For complex machine learning (ML) algorithms to gain widespread acceptance in decision making, we must be able to identify the features driving the predictions. Explainability models allow transparency of ML algorithms, however their reliability within high-dimensional data is unclear. To test the reliability of the explainability model SHapley Additive exPlanations (SHAP), we developed a convolutional neural network (CNN) to predict tissue classification from Genotype-Tissue Expression (GTEx) RNA-seq data representing 16,651 samples from 47 tissues. Our classifier achieved an average F1 score of 96.1% on held-out GTEx samples. Using SHAP values, we identified the 2423 most discriminatory genes, of which 98.6% were also identified by differential expression analysis across all tissues. The SHAP genes reflected expected biological processes involved in tissue differentiation and function. Moreover, SHAP genes clustered tissue types with superior performance when compared to all genes, genes detected by differential expression analysis, or random genes. We demonstrate the utility and reliability of SHAP to explain a deep learning model and highlight the strengths of applying ML to transcriptome data.

Introduction

Deep learning models have demonstrated remarkable accuracy in genomic tasks, such as identifying tissue types from gene expression profiles. However, these models are often criticized as "black boxes" due to their opaque decision-making processes. In clinical settings, understanding the biological features driving a prediction is essential for trust and clinical utility. This study evaluates the reliability of SHAP (SHapley Additive exPlanations), a popular explainability tool, in the context of high-dimensional RNA-seq data.

Methodology

The researchers developed a dual-track pipeline to compare machine learning-based feature identification with traditional statistical methods.

Overview of the machine learning and differential expression pipelines used to identify tissue-specific genes.

Model Development and Data

A CNN was trained to classify 47 human tissue types using the GTEx v8 dataset, which contains 16,651 samples and 18,884 genes. To adapt 1D gene expression data for a CNN architecture, vectors were reshaped into 2D matrices. The team addressed class imbalance using the Synthetic Minority Over-sampling Technique (SMOTE) to ensure the model was not biased toward common tissues.

Explainability and Validation

SHAP GradientExplainer was employed to assign importance values to genes for each tissue prediction. To validate these explanations, the top SHAP-identified genes were compared against results from edgeR, a gold-standard tool for differential expression (DE) analysis. The model's generalizability was further tested using an independent dataset from the Human Protein Atlas (HPA).

Results and Discussion

Classification Performance

The CNN achieved high accuracy, with an average F1 score of 96.1% across the 47 tissue types. Performance remained robust even for smaller tissue classes, as evidenced by the confusion matrix and F1 score distribution.

CNN performance metrics and tissue classification confusion matrix.

Validation of SHAP Explanations

A key finding was the 98.6% overlap between the 2,423 genes identified by SHAP and those flagged by edgeR. This high concordance suggests that SHAP effectively captures genuine biological signals rather than model artifacts. Furthermore, SHAP-identified genes provided superior tissue clustering compared to the full genome or DE-identified genes alone (P < 9.0e−07), indicating that the CNN/SHAP approach excels at identifying the most discriminatory biological features.

Biological Relevance

The genes highlighted by SHAP were functionally linked to their respective tissues. For instance, iodine transport genes were prioritized for thyroid tissue, and cardiac conduction genes for heart tissue. Interestingly, SHAP identified a small subset of genes (1.4%) missed by traditional DE analysis, potentially representing complex non-linear interactions that deep learning is uniquely equipped to detect.

Conclusion

This study demonstrates that SHAP is a reliable tool for explaining deep learning models in genomics. By aligning model "features" with established biological markers, the researchers provide a framework for more transparent and trustworthy AI in precision medicine. While computational costs remain a hurdle—specifically, the researchers found DeepExplainer to be intractable for this scale—the success of GradientExplainer paves the way for clinical-grade deep learning applications.

Summary updated

BibTeX
@inproceedings{yap2021verifying,
  author = {Melvyn Yap and Rebecca L. Johnston and Helena Foley and Samual MacDonald and Olga Kondrashova and Khoa Tran and Kátia Nones and Lambros T. Koufariotis and Cameron Bean and John V. Pearson and Maciej Trzaskowski and Nicola Waddell},
  title = {{Verifying explainability of a deep learning tissue classifier trained on RNA-seq data}},
  booktitle = {Scientific},
  year = {2021},
  doi = {10.1038/s41598-021-81773-9},
}
Figure