Best Practices for Interpretable Machine Learning in Computational Biology

Valerie Chen, Muyu Yang, Wenbo Cui, Joon Sik Kim, Ameet Talwalkar, Jian MabioRxiv 2022

TL;DR

This paper introduces a standardized workflow for using interpretable machine learning (IML) in computational biology to ensure reliable knowledge discovery. It proposes a new "Explanation Verification" step, alongside existing "Model Verification" and "Knowledge Verification," to build confidence in hypotheses generated by IML methods, especially when prior biological knowledge is scarce.

What Problem Does This Paper Address?

Machine learning (ML) models are increasingly powerful for analyzing complex biological data, but their "black box" nature hinders understanding. Interpretable ML (IML) aims to shed light on these models, enabling biologists to generate new hypotheses. However, the application of IML in computational biology lacks standardized guidelines, leading to potential misinterpretations and unreliable discoveries. This paper addresses the critical need for a rigorous framework to ensure that IML methods not only explain model predictions but also lead to valid biological insights. Specifically, it tackles two key assumptions: 1) the prediction model generalizes well to new data, and 2) the hypotheses derived from IML are biologically meaningful and can guide experiments.

Methods

The authors propose a three-step verification workflow to address the assumptions of IML-driven knowledge discovery:

  • Model Verification: This standard step ensures the prediction model itself is reliable and generalizes to unseen data. It involves testing the model's performance on held-out validation sets or data from different experimental settings.
  • Knowledge Verification: This existing approach validates IML-generated hypotheses against well-established prior biological knowledge. It's effective when such knowledge is abundant and relevant to the discovery goal.
  • Explanation Verification (Novel Contribution): This new step is designed for situations where prior biological knowledge is limited. It uses synthetic datasets with controlled ground truth to test whether the hypotheses derived from IML explanations align with the intended logic of the synthetic data. This allows for a quantitative assessment of an explanation's reliability.

The paper also categorizes IML methods into two main approaches: Post-hoc Explanations (applied after model training, e.g., feature importance methods like DeepLIFT, SHAP, LIME) and By-design Explanations (models inherently interpretable, e.g., biologically-informed neural networks, attention mechanisms).

Datasets

The paper does not explicitly list specific real-world biological datasets used for training the prediction models. However, for the "Explanation Verification" step, they construct synthetic datasets tailored to three computational biology applications:

  • Transcription Factor (TF) Binding Site Prediction: Synthetic datasets were created by sampling five known TF motifs and generating sequences that exhibit different binding behaviors (simple, cooperative, competitive).
  • Cell Imaging Data Classification: A synthetic dataset was created by introducing an artificial circular feature into cell images to serve as ground truth for Grad-CAM saliency maps.
  • Biologically Informed Model for Gene Expression: Synthetic datasets were designed with self-defined pathways to test hypotheses derived from the weights of a biologically-informed neural network.

These synthetic datasets are crucial for establishing ground truth and quantitatively evaluating the explanations.

Key Insights and Ideas

  • The critical need for verification: Simply applying IML methods without rigorous verification can lead to misleading biological hypotheses, especially when dealing with complex biological systems and limited prior knowledge.
  • Explanation Verification as a crucial bridge: The proposed "Explanation Verification" step is vital for scenarios lacking extensive prior biological knowledge, providing a systematic way to assess the validity of IML-generated hypotheses using synthetic data.
  • Synthetic data is a powerful tool: Constructing well-designed synthetic datasets with known ground truth is an effective strategy for evaluating the reliability and limitations of IML methods.
  • IML methods have distinct failure modes: The paper demonstrates through examples that different IML methods can fail in specific ways (e.g., inability to distinguish motifs from background, distorted feature highlighting, attributing importance to irrelevant pathways), highlighting the importance of verification.

Key Results

The paper showcases the application of the Explanation Verification workflow across three computational biology problems, illustrating potential limitations of IML methods:

  • TF Binding Site Prediction: In simple and competitive binding scenarios, DeepLIFT generally attributed higher importance scores to target motifs. However, in cooperative binding, the scores became indistinguishable from background noise, suggesting that the explanation might fail to identify true binding motifs.
  • Cell Imaging Data Classification: Grad-CAM, while highlighting the correct region in synthetic cell images, often produced imprecise and distorted saliency maps, indicating that the explanation might not be precise enough for fine-grained analysis.
  • Biologically Informed Model for Gene Expression: Explaining a biologically-informed neural network (KPNN) using edge weights revealed that only a small percentage of edge weights correlated with the actual regulatory relationships, and their signs did not consistently reflect active or repressive interactions. This suggests that relying solely on edge weights might not accurately capture biological mechanisms.

Limitations and Future Work

  • Limitations of Synthetic Data: The authors acknowledge that synthetic data may not fully capture the complexities of real biological processes. However, they emphasize that it's a valuable starting point for identifying potential issues.
  • Generalizability of Verification: While the proposed workflow is applicable to a broad range of IML methods, further work is needed to specialize the verification steps for diverse biological applications.
  • Additional Verification Steps: The paper suggests that more verification steps might be necessary, particularly for multi-modal prediction models, to ensure explanations correctly attribute importance across different data modalities.
  • Improving Explanation Presentation: Tailoring visualizations of explanations to specific computational biology research needs and data types is an ongoing area of development.
  • Guidance on Method Selection: The community would benefit from a taxonomy that demonstrates the usefulness of different IML methods for specific applications, requiring collaboration between ML and computational biology experts.

The authors envision that through continued collaboration, new IML problems can be formulated to significantly facilitate hypothesis generation and drive new discoveries in biological and biomedical contexts.

Summary updated

Abstract

Abstract Advances in machine learning (ML) have enabled the development of next-generation prediction models for complex computational biology problems. These developments have spurred the use of interpretable machine learning (IML) to unveil fundamental biological insights through data-driven knowledge discovery. However, in general, standards and guidelines for IML usage in computational biology have not been well-characterized, representing a major gap toward fully realizing the potential of IML. Here, we introduce a workflow on the best practices for using IML methods to perform knowledge discovery which covers verification strategies that bridge data, prediction model, and explanation. We outline a workflow incorporating these verification strategies to increase an IML method’s accountability, reliability, and generalizability. We contextualize our proposed workflow in a series of widely applicable computational biology problems. Together, we provide an extensive workflow with important principles for the appropriate use of IML in computational biology, paving the way for a better mechanistic understanding of ML models and advancing the ability to discover novel biological phenomena.
BibTeX
@misc{chen2022best,
  author = {Valerie Chen and Muyu Yang and Wenbo Cui and Joon Sik Kim and Ameet Talwalkar and Jian Ma},
  title = {{Best Practices for Interpretable Machine Learning in Computational Biology}},
  year = {2022},
  doi = {10.1101/2022.10.28.513978},
  howpublished = {bioRxiv},
}
Figure