DeepTox: Toxicity Prediction using Deep Learning

Andreas Mayr, Günter Klambauer, Thomas Unterthiner, Sepp Hochreiter

Abstract

The Tox21 Data Challenge has been the largest effort of the scientific community to compare computational methods for toxicity prediction. This challenge comprised 12,000 environmental chemicals and drugs which were measured for 12 different toxic effects by specifically designed assays. We participated in this challenge to assess the performance of Deep Learning in computational toxicity prediction. Deep Learning has already revolutionized image processing, speech recognition, and language understanding but has not yet been applied to computational toxicity. Deep Learning is founded on novel algorithms and architectures for artificial neural networks together with the recent availability of very fast computers and massive datasets. It discovers multiple levels of distributed representations of the input, with higher levels representing more abstract concepts. We hypothesized that the construction of a hierarchy of chemical features gives Deep Learning the edge over other toxicity prediction methods. Furthermore, Deep Learning naturally enables multi-task learning, that is, learning of all toxic effects in one neural network and thereby learning of highly informative chemical features. In order to utilize Deep Learning for toxicity prediction, we have developed the DeepTox pipeline. First, DeepTox normalizes the chemical representations of the compounds. Then it computes a large number of chemical descriptors that are used as input to machine learning methods. In its next step, DeepTox trains models, evaluates them, and combines the best of them to ensembles. Finally, DeepTox predicts the toxicity of new compounds. In the Tox21 Data Challenge, DeepTox had the highest performance of all computational methods winning the grand challenge, the nuclear receptor panel, the stress response panel, and six single assays. We found that Deep Learning excelled in toxicity prediction and outperformed many other computational approaches like naive Bayes, support vector machines, and random forests.

Introduction

In the world of drug discovery and environmental safety, determining if a chemical is toxic is both a moral and a massive logistical hurdle. Traditionally, this requires time-consuming and expensive in vivo (animal) or in vitro (cell-based) experiments. Computational methods, known as Quantitative Structure-Activity Relationship (QSAR) models, aim to predict toxicity directly from chemical structures. However, these models historically struggled with accuracy and relied heavily on "handcrafted" features—specific chemical substructures identified by human experts. The DeepTox project sought to determine if Deep Learning could overcome these limitations by automatically learning a hierarchy of chemical features.

The DeepTox Pipeline

The authors developed the DeepTox pipeline, which consists of several distinct stages designed to transform raw chemical data into accurate toxicity predictions:

  1. Data Cleaning: Normalizing chemical representations and handling mixtures by fragmenting them into individual compounds.
  2. Feature Engineering: The model uses both "Static" features (2,500+ expert-defined toxicophores and atom counts) and "Dynamic" features (millions of ECFP fingerprints extracted directly from the chemical graphs).
  3. Deep Neural Networks (DNNs): The core of the system. These networks used Rectified Linear Units (ReLUs) to prevent vanishing gradients and Dropout to prevent overfitting.
  4. Multi-task Learning: Instead of training one model per toxic effect, DeepTox trained a single network to predict 12 different toxic effects simultaneously. This allows the model to "borrow" features across related biological pathways.
  5. Ensembling: To maximize performance, the final predictions were an ensemble of DNNs, Support Vector Machines (SVMs), and Random Forests, combined using Platt scaling to ensure all model outputs were on a comparable probabilistic scale.

Datasets: The Tox21 Challenge

The study utilized the Tox21 Data Challenge dataset, the largest effort of its kind to benchmark computational toxicity models.

Overview of the Tox21 challenge dataset.

As shown in Figure 1, the dataset included approximately 12,000 environmental chemicals and drugs. Labels were provided for 12 different toxic effects (assays) categorized into two panels: Nuclear Receptors (NR) and Stress Response (SR). The data was split into a training set (11,764 compounds), a leaderboard set (296 compounds), and a final withheld test set (647 compounds).

Key Insights and Results

DeepTox was the clear winner of the Tox21 Challenge, achieving the highest average performance across all assays and winning both the Nuclear Receptor and Stress Response panels. Several key insights emerged from the study:

  • Automated Toxicophore Discovery: DNNs are not just "black boxes." By analyzing hidden layers, the authors found that neurons automatically learned to recognize known toxicophores without explicit programming.
  • Feature Hierarchy: Similar to vision models learning edges before faces, DeepTox builds a hierarchy where lower layers identify simple functional groups and higher layers identify complex toxic clusters.
  • The Multi-task Advantage: Multi-task learning outperformed single-task learning in 10 out of 12 assays. Shared hidden layers capture more general and robust chemical characteristics.
  • Superior Performance: DNNs significantly outperformed traditional methods. For example, in the NR-AR-LBD assay, the Multi-task DNN achieved an AUC of 0.9289, compared to the SVM baseline of 0.8771.

Conclusion and Future Work

DeepTox demonstrated that deep learning can revolutionize computational toxicity prediction. However, the authors noted that models still struggle with assays containing extremely few positive cases. Additionally, training thousands of models for hyperparameter optimization requires significant computational resources, such as high-performance GPUs. Future research will likely focus on improving the interpretability of the "latent" chemical knowledge discovered by these networks.

Summary updated

BibTeX
@inproceedings{mayr2016deeptox,
  author = {Andreas Mayr and Günter Klambauer and Thomas Unterthiner and Sepp Hochreiter},
  title = {{DeepTox: Toxicity Prediction using Deep Learning}},
  booktitle = {Frontiers in Environmental Science},
  year = {2016},
  doi = {10.3389/fenvs.2015.00080},
}
Figure