A Hitchhiker's Guide to Deep Chemical Language Processing for Bioactivity Prediction

Riza Özçelik, Francesca GrisoniarXiv 2024 · DOI · OpenReview

TL;DR

This paper provides a practical guide for building deep learning models to predict molecular bioactivity using "chemical language" (string representations of molecules). It systematically evaluates different model architectures, molecular representations, and encoding strategies, offering clear recommendations for researchers to improve their predictive models.

What Problem Does This Paper Address?

Drug discovery is a complex and time-consuming process. Machine learning, particularly deep learning, has shown promise in accelerating this by predicting molecular properties like bioactivity. A key approach is "chemical language processing" (CLP), which treats molecules as strings (like SMILES or SELFIES) and applies natural language processing techniques. However, building effective CLP models involves many choices (architectures, representations, encoding, hyperparameters), making it challenging for researchers to know where to start or how to optimize. This paper aims to demystify these choices by providing a comprehensive guide based on systematic experimentation.

Methods

The authors explored combinations of:

  • Neural Network Architectures: Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), and Transformers.
  • Molecular String Representations: Simplified Molecular Input Line Entry Systems (SMILES) and Self-Referencing Embedded Strings (SELFIES).
  • Token Encoding Strategies: One-hot encoding, random encoding, and learnable embeddings.

They trained and evaluated these combinations across ten bioactivity datasets for both classification (active/inactive) and regression (predicting potency). Hyperparameters were optimized using grid search, and models were evaluated using balanced accuracy for classification and concordance index for regression. XGBoost models using extended connectivity fingerprints were used as a baseline.

Datasets

The study utilized ten bioactivity datasets:

  • Classification (5 datasets): Derived from ExCAPE-DB, focusing on targets like Dopamine Receptor D3 (DRD3), Flap Structure-specific Endonuclease 1 (FEN1), Mitogen-activated protein kinase kinase kinase 2 (MAP4K2), peptidyl-prolyl cis/trans isomerase (PIN1), and Vitamin D Receptor (VDR). Each dataset contained 5500 molecules.
  • Regression (5 datasets): Sourced from Molecule ACE (based on ChEMBL), for predicting pKi. Targets included Serotonin 1A receptor (5-HT1A), μ-opioid Receptor 1 (MOR), Dopamine Receptor D3 (DRD3), Sigma Opioid Receptor 1 (SOR), and Serine/threonine-protein Kinase PIM1 (PIM1). These datasets ranged from 1453 to 2596 molecules.

The classification datasets were designed to be more structurally diverse, mimicking hit discovery, while regression datasets contained more similar molecules, akin to lead optimization.

Key Insights and Ideas

  • CNNs Reign Supreme (for Classification): Convolutional Neural Networks (CNNs) consistently outperformed other architectures for classification tasks, suggesting their effectiveness in capturing local patterns in molecular strings.
  • SMILES Still Holds Strong: Despite the emergence of newer representations like SELFIES, SMILES strings generally yielded better performance, especially in classification tasks. Their ubiquity in existing databases and tools makes them a practical choice.
  • Learnable Embeddings Offer Flexibility: While all encoding strategies performed comparably, learnable embeddings offer the advantage of adapting to the data during training, potentially capturing more nuanced relationships.
  • Dataset Similarity Matters: CLP models, particularly CNNs, show a higher potential when applied to molecules structurally diverse from the training set, suggesting their strength in exploring novel chemical space.
  • Loss Re-weighting is Crucial for Imbalance: Bioactivity datasets are often imbalanced. Applying loss re-weighting significantly improved balanced accuracy, highlighting its importance for robust predictions.
  • Hyperparameter Exploration Strategy: Performance often plateaus after exploring about half of a defined hyperparameter space, suggesting that casting a broad net initially is more effective than narrowly focusing on a few options.

Key Results

  • Architecture Performance: CNNs were the best-performing architecture for classification and outperformed others on two out of five regression targets. Transformers were top performers in regression for three out of five datasets. RNNs generally performed the worst.
  • Representation Performance: SMILES strings showed statistically significant better performance than SELFIES in classification tasks. In regression, SELFIES showed a slight advantage on two datasets, but overall differences were not statistically significant.
  • Encoding Performance: No single encoding strategy consistently outperformed others, indicating that all three (one-hot, random, learnable) are viable options.
  • Loss Re-weighting Impact: Loss re-weighting increased balanced accuracy by an average of 6% in classification tasks, with some extreme cases showing a baseline-level performance without it.
  • Hyperparameter Tuning: Optimal hyperparameters were often found with a low number of convolution layers (one being most prevalent). Embedding dimensions of 32 or higher were preferred. Exploring half of the hyperparameter space was often sufficient to reach near-maximal performance.

Limitations and Future Work

  • Limitations: The paper acknowledges that while they explored key elements, many other "bells and whistles" (e.g., specific regularization techniques, advanced optimizers) can impact performance. The study focused on specific architectures and representations, and further exploration might reveal nuances.
  • Future Work: The authors encourage further exploration of molecular string augmentation (creating multiple strings for one molecule) and transfer learning to mitigate limited data availability and improve model generalization. They also suggest investigating other fascinating properties of chemical language.

Summary updated

Abstract

Deep learning has significantly accelerated drug discovery, with 'chemical language' processing (CLP) emerging as a prominent approach. CLP learns from molecular string representations (e.g., Simplified Molecular Input Line Entry Systems [SMILES] and Self-Referencing Embedded Strings [SELFIES]) with methods akin to natural language processing. Despite their growing importance, training predictive CLP models is far from trivial, as it involves many 'bells and whistles'. Here, we analyze the key elements of CLP training, to provide guidelines for newcomers and experts alike. Our study spans three neural network architectures, two string representations, three embedding strategies, across ten bioactivity datasets, for both classification and regression purposes. This 'hitchhiker's guide' not only underscores the importance of certain methodological choices, but it also equips researchers with practical recommendations on ideal choices, e.g., in terms of neural network architectures, molecular representations, and hyperparameter optimization.
BibTeX
@misc{ozcelik2024hitchhiker,
  author = {Riza Özçelik and Francesca Grisoni},
  title = {{A Hitchhiker's Guide to Deep Chemical Language Processing for Bioactivity Prediction}},
  year = {2024},
  eprint = {2407.12152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.12152},
}
Figure