Towards the prediction of drug solubility in binary solvent mixtures at various temperatures using machine learning

Zeqing Bao, Gary Tom, Austin H. Cheng, Jeffrey Watchorn, Alán Aspuru-Guzik, Christine Allen

Abstract

Accurate prediction of drug solubility is critical for pharmaceutical development, yet traditional experimental methods are resource-intensive. Most existing computational models focus on aqueous solubility at ambient temperatures, neglecting the complexity of multi-solvent systems and thermal variations common in manufacturing. This study presents a machine learning framework trained on a newly compiled dataset of 27,000 data points covering 123 solutes and 110 binary solvent mixtures across various temperatures. Gradient-boosted models, specifically LightGBM and XGBoost, achieved high predictive accuracy with a Mean Absolute Error (MAE) of 0.33 for LogS. Prospective validation on four drugs confirmed the model's utility while highlighting the importance of the applicability domain. This work provides a robust, open-access tool for in silico solubility screening in complex solvent environments.

Introduction

Solubility is a fundamental property that determines a drug candidate's bioavailability and formulation stability. In the pharmaceutical industry, scientists frequently utilize "solvent cocktails"—binary mixtures such as ethanol and water—to optimize solubility. Furthermore, manufacturing processes often involve temperature fluctuations that significantly impact solute behavior. Despite its importance, measuring solubility experimentally is a bottleneck in early-stage drug discovery due to the high cost and limited availability of new chemical entities.

While machine learning (ML) has been applied to solubility prediction, most models suffer from "tunnel vision," focusing primarily on single-solvent aqueous systems at room temperature. There is a clear need for models that can generalize across diverse solvent ratios and temperature ranges. This paper addresses this gap by developing a comprehensive ML pipeline for multi-solvent solubility prediction.

Methods

The researchers developed a robust data-to-prediction pipeline encompassing data collection, feature engineering, and model optimization.

Machine learning workflow for solubility prediction, from data mining to prospective study validation.

Data Acquisition and Organization

The study utilized a comprehensive, open-access dataset compiled from 125 research papers, totaling 27,000 solubility data points. This dataset includes 123 small-molecule solutes (30% FDA-approved), 44 solvents, and 110 unique binary solvent mixtures. The measurements span a wide range of temperatures and solvent ratios, making it one of the most extensive datasets for non-aqueous solubility modeling to date.

Feature Engineering and Selection

Chemical structures were converted into numerical descriptors using RDKit and MACCS molecular fingerprints. A key feature included was the melting temperature ($T_m$), a physical proxy for crystal lattice energy. To prevent overfitting and the "curse of dimensionality," the initial pool of over 1,000 descriptors was reduced to 362 through variance and redundancy filtering. Interestingly, the study found that 2D topological features outperformed complex 3D or quantum mechanical descriptors, which often introduced noise.

Model Development

Eight different ML architectures were evaluated, including Neural Networks and Random Forests. Hyperparameters were fine-tuned using Bayesian optimization. Gradient-boosted decision tree models, specifically LightGBM and XGBoost, emerged as the top performers.

Results and Discussion

The optimized LightGBM and XGBoost models achieved a Mean Absolute Error (MAE) of 0.33 for LogS (solubility in g/100g), outperforming typical benchmark models for simpler systems which usually range between 0.4 and 0.5. The models demonstrated a strong Pearson correlation coefficient (PCC) of 0.90, indicating high reliability across the tested conditions.

Prospective Validation and Applicability Domain

The framework was validated through "wet lab" experiments on four drugs: Aspirin, Acetaminophen, 3-indolepropionic acid, and Celecoxib. While the model performed accurately for the first three, it struggled with Celecoxib. Analysis using Mahalanobis distances revealed that Celecoxib’s chemical features were outside the training data's "neighborhood." This underscores the importance of the applicability domain; ML models are most reliable when predicting molecules similar to those in their training set.

Practical Implementation

A significant finding was that using predicted melting temperatures (from auxiliary ML models) resulted in accuracy levels comparable to using experimental values. This makes the tool highly practical for early-stage discovery where experimental $T_m$ may not yet be available.

Conclusion

This research provides a powerful in silico alternative to traditional solubility measurements in complex binary solvent systems. By making the dataset and code openly available, the authors enable the broader scientific community to refine and expand these models. Future efforts will focus on incorporating "beyond-rule-of-five" molecules—such as large, hydrophobic oncology drugs—and extending the framework to ternary solvent systems.

Summary updated

BibTeX
@article{bao2024towards,
  author = {Zeqing Bao and Gary Tom and Austin H. Cheng and Jeffrey Watchorn and Alán Aspuru-Guzik and Christine Allen},
  title = {{Towards the prediction of drug solubility in binary solvent mixtures at various temperatures using machine learning}},
  journal = {J. Cheminformatics},
  year = {2024},
  doi = {10.1186/s13321-024-00911-3},
}
Figure