Towards the Prediction of Drug Solubility in Binary Solvent Mixtures at Various Temperatures Using Machine Learning

Zeqing Bao, Gary Tom, Austin Cheng, Alán Aspuru‐Guzik, Christine Allen

Abstract

Drug solubility is a critical factor in pharmaceutical development, yet traditional experimental measurement techniques are often resource-intensive and impractical for rare or expensive compounds. While machine learning (ML) has emerged as a powerful alternative, most existing models are limited to aqueous solubility or specific temperature points. This study addresses these limitations by introducing an ML framework trained on a comprehensive dataset of 27,000 solubility data points across various binary solvent mixtures and temperatures. Through Bayesian optimization and rigorous validation, gradient-boosted models demonstrated high predictive accuracy, offering a rapid, open-access tool for drug formulation.

Introduction: The Solubility Challenge

In pharmaceutical science, solubility is often considered "king." A drug’s efficacy is fundamentally tied to its ability to dissolve and be absorbed by the human body. However, real-world drug formulation rarely involves pure water. Scientists frequently utilize binary solvent mixtures (such as ethanol and water) and vary temperatures to optimize manufacturing processes and delivery mechanisms.

Traditionally, determining the optimal solubility conditions requires saturating solvents in a laboratory setting—a process that is slow, expensive, and often impossible when only milligram quantities of a new drug candidate are available. While computational tools like COSMO-RS exist, they are often computationally demanding and rely on proprietary software. This research aims to bridge this gap by providing an open-access, data-driven approach that accounts for the complexity of multi-solvent systems and temperature fluctuations simultaneously.

Methodology and Feature Engineering

The research team evaluated nine different ML architectures, ranging from simple Linear Regression to complex Neural Networks. The top performers were gradient-boosted tree models: XGBoost (XGB) and LightGBM.

To achieve high accuracy, the researchers focused on sophisticated feature engineering:

  • Experimental Features: Melting points of both solutes and solvents were included as classic thermodynamic indicators of solubility.
  • Computational Descriptors: Using RDKit, the team generated molecular fingerprints (MACCS) and chemical descriptors (such as molecular weight and LogP) from SMILES strings.
  • Refinement: An initial pool of over 1,000 features was trimmed to 370 by removing those with zero variance or high correlation (>0.8). Interestingly, the study found that Principal Component Analysis (PCA) reduced model performance, likely because it obscured specific chemical information vital for solubility prediction.
  • Optimization: The models were refined using Bayesian hyperparameter optimization with 10-fold group cross-validation to ensure generalizability across different drug-solvent pairs.

Data Diversity and Scale

The study utilized what is believed to be the most extensive open-access dataset of its kind, compiled from literature published since 2019. The dataset includes:

  • 27,000 solubility data points.
  • 125 small-molecule solutes (30% of which are FDA-approved).
  • 44 unique solvents and 110 unique binary mixtures.

To test true predictive power, the team used an 80/20 train-test split, ensuring that specific solute-binary solvent systems were not repeated across sets.

Key Results and Insights

The XGB model emerged as the leader, achieving a Mean Absolute Error (MAE) of 0.215 for LogS (g/100g). This performance is comparable to or exceeds state-of-the-art models that are restricted to single solvents or constant temperatures.

The Importance of Chemical Space

A prospective study on four drugs—Aspirin, Acetaminophen, 3-indolepropionic acid, and Celecoxib—revealed a critical insight into ML behavior. While the model was highly accurate for the first three, it struggled with Celecoxib. Analysis showed that Celecoxib was a "feature outlier," with chemical properties falling outside the distribution of the training data. This underscores that ML models are bounded by the "chemical space" they have encountered during training.

Efficiency and Thermodynamics

Unlike quantum chemistry simulations that require significant compute time and specific enthalpy data, these ML models generate predictions in seconds. Furthermore, the models successfully captured the physical reality that higher temperatures generally increase solubility, proving that the framework learned underlying thermodynamic trends rather than mere statistical noise.

Conclusion

This machine learning framework provides a fast, accurate alternative to traditional solubility measurements. To support future advancements, the researchers have open-sourced their dataset and code. By inviting the community to contribute data on more diverse and complex molecules, the goal is to evolve this tool into a universal resource for pharmaceutical scientists worldwide.

Summary updated

BibTeX
@article{bao2024towards,
  author = {Zeqing Bao and Gary Tom and Austin Cheng 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