Exploring QSAR models for activity-cliff prediction

Markus Dablander, Thierry Hanser, Renaud Lambiotte, Garrett M. Morris

Abstract

Pairs of similar compounds that only differ by a small structural modification but exhibit a large difference in their binding affinity for a given target are known as activity cliffs (ACs). It has been hypothesised that quantitative structure-activity relationship (QSAR) models struggle to predict ACs and that ACs thus form a major source of prediction error. However, a study to explore the AC-prediction power of modern QSAR methods and its relationship to general QSAR-prediction performance is lacking. We systematically construct nine distinct QSAR models by combining three molecular representation methods (extended-connectivity fingerprints, physicochemical-descriptor vectors and graph isomorphism networks) with three regression techniques (random forests, k-nearest neighbours and multilayer perceptrons); we then use each resulting model to classify pairs of similar compounds as ACs or non-ACs and to predict the activities of individual molecules in three case studies: dopamine receptor D2, factor Xa, and SARS-CoV-2 main protease. We observe low AC-sensitivity amongst the tested models when the activities of both compounds are unknown, but a substantial increase in AC-sensitivity when the actual activity of one of the compounds is given. Graph isomorphism features are found to be competitive with or superior to classical molecular representations for AC-classification and can thus be employed as baseline AC-prediction models or simple compound-optimisation tools. For general QSAR-prediction, however, extended-connectivity fingerprints still consistently deliver the best performance. Our results provide strong support for the hypothesis that indeed QSAR methods frequently fail to predict ACs. We propose twin-network training for deep learning models as a potential future pathway to increase AC-sensitivity and thus overall QSAR performance.

Introduction

In drug discovery, the "molecular similarity principle" posits that structurally similar molecules should exhibit similar biological activities. However, Activity Cliffs (ACs) represent critical exceptions to this rule. An AC occurs when a minor structural modification—such as the addition of a single functional group—results in a disproportionately large change in potency (often 100-fold or more).

These cliffs present a significant challenge for Quantitative Structure-Activity Relationship (QSAR) models. Because ACs represent sharp discontinuities in the chemical landscape, they are frequently identified as the primary source of prediction error. While it has been suggested that modern deep learning architectures, such as Graph Neural Networks (GNNs), might navigate these discontinuities better than classical methods, a rigorous head-to-head comparison has been missing. This study evaluates whether current AI models can truly "see" these cliffs or if they merely smooth them over during training.

Methodology

To investigate the relationship between general QSAR performance and AC-prediction power, we developed a systematic "3x3 matrix" of nine distinct models. This framework combines three molecular representation methods with three regression techniques.

Overview of the systematic methodology, showing the combination of molecular representations and regression techniques for dual tasks: QSAR-prediction and AC-classification.

Representations and Regression

  • Extended-Connectivity Fingerprints (ECFPs): Classical bit-vector representations encoding molecular fragments.
  • Physicochemical-Descriptor Vectors (PDVs): Vectors capturing global properties like molecular weight, logP, and hydrogen count.
  • Graph Isomorphism Networks (GINs): Modern GNNs that learn features directly from the molecular graph topology.

These representations were paired with Random Forests (RF), k-Nearest Neighbors (kNN), and Multilayer Perceptrons (MLP).

Evaluation Scenarios

Models were tested on three high-quality binding affinity datasets: Dopamine receptor D2, Factor Xa, and the SARS-CoV-2 main protease ($M_{pro}$). We employed the Matched Molecular Pair (MMP) formalism to identify ACs and utilized a rigorous data-splitting strategy to distinguish between different real-world scenarios:

  1. $M_{test}$: Predicting a cliff where both molecules are unknown to the model.
  2. $M_{inter}$: Predicting a cliff where the activity of one molecule is known (simulating lead optimization).
  3. $M_{cores}$: Predicting cliffs in entirely novel structural families.

Key Results and Discussion

Our analysis confirmed that when entering novel chemical space ($M_{test}$), all models suffer from a significant "blind spot." They tend to predict similar activities for similar structures, effectively smoothing over the cliff and missing the discontinuity.

However, performance improved dramatically in the $M_{inter}$ scenario. When the activity of one molecule in a pair is known, QSAR models become surprisingly effective at predicting whether a small structural change will trigger a cliff. This suggests that current models are better suited as "relative" predictors for lead optimization than as "absolute" predictors for de novo discovery.

Correlation between general prediction error (MAE) and AC-classification performance (MCC). The plot highlights the trade-offs between different representation and regression combinations.

Performance Trade-offs

As shown in the results above, there is a strong linear correlation (Pearson's $r = -0.86$) between a model's general prediction error (Mean Absolute Error, MAE) and its ability to detect cliffs (Matthews Correlation Coefficient, MCC).

  • ECFP-MLP consistently delivered the lowest MAE, making it the most reliable for general activity prediction.
  • GIN-based models showed superior sensitivity in identifying the existence of ACs, even if their absolute error was slightly higher. GINs appear to learn embeddings where distance more accurately reflects activity changes rather than just structural similarity.
  • Random Forests exhibited high precision but low sensitivity; they were often correct when they predicted a cliff but missed many others.

Conclusion and Future Directions

This study provides empirical evidence that standard QSAR models are largely "cliff-blind" in unknown chemical territories. To overcome this limitation, we propose a shift in training paradigms. Rather than training on individual molecules, future research should explore Twin-Network (Siamese) training. By training deep learning models on pairs of molecules and explicitly penalizing errors in the difference of their activities, we may force models to recognize the subtle structural triggers of activity cliffs. This "difference-learning" approach represents a promising frontier for enhancing the utility of AI in medicinal chemistry.

Summary updated

BibTeX
@article{dablander2023exploring,
  author = {Markus Dablander and Thierry Hanser and Renaud Lambiotte and Garrett M. Morris},
  title = {{Exploring QSAR models for activity-cliff prediction}},
  journal = {Journal of Cheminformatics},
  year = {2023},
  doi = {10.1186/s13321-023-00708-w},
}
Figure