Skip to main content

Prediction of organic compound aqueous solubility using machine learning: a comparison study of descriptor-based and fingerprints-based models


A reliable and practical determination of a chemical species’ solubility in water continues to be examined using empirical observations and exhaustive experimental studies alone. Predictions of chemical solubility in water using data-driven algorithms can allow us to create a rationally designed, efficient, and cost-effective tool for next-generation materials and chemical formulations. We present results from two machine learning (ML) modeling studies to adequately predict various species’ solubility using data for over 8400 compounds. Molecular-descriptors, the most used method in previous studies, and Morgan fingerprint, a circular-based hash of the molecules' structures, were applied to produce water solubility estimates. We trained all models on 80% of the total datasets using the Random Forest (RFs) technique as the regressor and tested the prediction performance using the remaining 20%, resulting in coefficient of determination (R2) test values of 0.88 and 0.81 and root-mean-square deviation (RMSE) test values 0.64 and 0.80 for the descriptors and circular fingerprint methods, respectively. We interpreted the produced ML models and reported the most effective features for aqueous solubility measures using the Shapley Additive exPlanations (SHAP) and thermodynamic analysis. Low error, ability to investigate the molecular-level interactions, and compatibility with thermodynamic quantities made the fingerprint method a distinct model compared to other available computational tools. However, it is worth emphasizing that physicochemical descriptor model outperformed the fingerprint model in achieving better predictive accuracy for the given test set.


Chemical compounds solubility in various solvents is one of the most important properties for understanding the physicochemical behavior of various materials and chemical formulations, as well as the design and synthesis of the next-generation materials. Aqueous solubility predictions have been the subject of numerous research and application studies, ranging from environmental predictions, biochemistry, chemical process design, and agrochemical uses to drug development [1, 2]. Solubility prediction remains a critical challenge due to the lack of reliable and reproducible measurements alongside the time and cost of experimental approaches. A machine learning (ML) algorithm that accurately describes behavioral component compositions can be used to fulfill this requirement. ML techniques will allow us to test a significant majority of materials without a physical sample and more efficiently determine the materials’ physical properties, such as solubility. The primary challenge when using ML algorithms for aqueous solubility predictions is that the solubility experimental data are most often unreliable, and the resultant models would be no better than the raw data. Nonetheless, using a large database can greatly improve a model’s accuracy and reliability.

Several computational models capable of predicting a molecule’s aqueous solubility have been reported in the literature. Descriptor-based [3,4,5,6], and group contribution [7,8,9] are two distinct data preparation approaches that have been used recently in various modeling methods to determine solubility measures. Parameters in descriptor-based models rely on physical properties such as molecular topological indices. Group contribution methods demonstrate a correlation between water solubility and several functional groups by decomposing the molecular units into subunits and adding the estimated solubility of each of these subunits together. A comparison between notable developed models and their performance is presented in Table 1.

Table 1 Comparison between different current models that predict water solubility

Previous studies have revealed that aqueous solubility prediction is accessible; however, researchers new to the field may face difficulties in comprehending these algorithms due to their complex physicochemical characteristics. Moreover, most concerns with current studies are related to the validity of the correlations (since they are very susceptible to the variations of the conditions used during calibration) where they are defined ahead of time. Also, the effect of chemical representations and their role in a ML method’s performance have not been thoroughly investigated.

In this study, we compared the descriptor-based and fingerprint methods for investigating the effects of data preparation ahead and behind the time on the ML’s accuracy. The fingerprint model used in this study is similar to the group contribution methods addressed above, with the advantage that it does not obtain the chemical building blocks in advance. Additionally, the fingerprint model is derived from physicochemical insights [16], which allows for easier interpretation of the model, and is useful in the context of developing efficient Quantitative Structure–Property Relationships (QSPRs) for the solubility [17]. The significance of this study lies in the practical utility of the developed fingerprint model, which can aid experts in investigating the impact of different functional groups on solubility predictions, which can have important implications for drug discovery and other related applications.

Materials & method

Data acquisition

The data needed for model training are vital if the model is to interpret many aspects, including feature selection effectiveness, applicability domain, and ability to handle the various contributions that can describe the equilibrium between the solute’s dissolved and bulk states. A significant amount of data will lead to reliable data-driven models.

Our database is a curated collection of the aqueous solubilities of organic compounds from three literature-based large databases: (1) Vermeire’s (11804 datapoints) [18], (2) Boobier’s (901 datapoints) [1], and (3) Delaney’s (1145 datapoints) [12]. The produced dataset was prepared by omitting the non-unique measures and noisy data, consisting of more than one solubility measure for a single molecule, yielding a total of 8,438 unique data entries (Additional file 1). The number of C (Carbon) atoms in each compound ranged from 1 to 12, representing the low molecular weight organic compounds with an average molecular weight of 190. They are of key interest due to their use as lead compounds in the search for new pharmacological effectors [19]. The range of molecular weights and the number of compounds containing N (Nitrogen), S (Sulfur), Halogens, OH, and aromatic groups is illustrated in Fig. 1.

Fig. 1
figure 1

A molecular weight distribution of the produced dataset; B number of compounds in the dataset for each of the five nominated chemical species

A database of 100 reliable solubility measurements provided by Llinàs et al. [20] was selected for external validation. The set of molecules was disjointed from other data used in this study and was never used for model training or internal testing.

Data preparation

We prepared the training data using the chemical and physical feature descriptor functions, i.e., molecular descriptors and circular fingerprint methods. Molecular descriptors define fragments as related physicochemical properties, or a collection of relevant structural features, such as a molecule’s ring count [2, 21]. A Descriptor-based model, which is considered as a standard ML approach, relies on a set of known descriptors [22]. We used Mordred package [23] to generate 1,613 two-dimensional (2D) descriptors and disregarded 3D descriptors to increase prediction speed and avoid repeatability problems regarding 3D descriptors values [24]. To prune the set of molecular descriptors, we initially excluded categorical variables, resulting in a reduced set of 811 descriptors out of the initial 1613. Subsequently, a correlation filter was applied using an optimized threshold of 0.1 to prune out the less relevant descriptors with low variance numeric, resulting in a selection of 506 descriptors. The descriptors’ pair correlation matrix was then calculated, and highly correlated descriptors were eliminated to prevent any particular mode of information from dominating the model’s mechanism. Furthermore, "FilterItLogS" feature was excluded from the descriptors to prevent data leakage from another ML model (FilterIt) that predicts solubility. This process yielded a final selection of 177 physicochemical descriptors.

Compared to molecular descriptors, fingerprinting methods provide a more dynamic representation that encompasses the characteristics of materials through their fragment features [25]. There are various types of molecular fingerprints, which are determined by the method used to convert the molecular fragment into a binary string [26]. Fingerprints with longer bit strings are more reliable for a similarity search since each significant bond in a molecule is defined separately as a sequence of binary digits (bits), and they have more stored information regarding the molecular properties. In this study, the Morgan algorithm was used as the circular fingerprinting method due to its exceptional performance in virtual screening experiments. This algorithm analyzes different fragments and encodes all possible molecular structure bonds [27]. Circular fingerprints are generated by considering the “circular” environment of each atom up to a given “radius” or “diameter” from the central atom [28]. The Morgan fingerprint, also known as extended-connectivity fingerprints (ECFPs), is the most popular circular fingerprint. This fingerprint perceives the presence of specific circular substructures around each atom in a molecule [29]. ECFPs is a method that identifies identical molecules with different atom numberings by representing the number of heavy-atom neighbors, number of hydrogen atoms, isotopes, and ring information. ECFPs are categorized into different types based on the selection of different maximum bond lengths or diameters of the circular atom neighborhood, where the digit at the end represents the maximum diameter value used to generate the fingerprint. We used a circular fingerprint with a diameter of four, ECFP4.

The schematic for transforming each molecular structure into a bit for Morgan fingerprints is illustrated in Fig. 2, where the path for transforming each molecular structure into a bit and the hashing technique are depicted. Chemical structures, as the SMILES form, were read by a machine and then hashed into a fingerprint with a size of 2,048 bits for all information bit-strings. Each bit was nominated as a single feature that can be used to survey the impact of various functional groups and their connectivity pathways on aqueous solubility [30].

Fig. 2
figure 2

Molecular structure hashing to a list of bits using Morgan fingerprinting method

ML method

We randomly split our datasets into two groups: one for training and the other for testing the ML model and verifying the model’s accuracy. The training datasets comprised ~ 80% of our total database, representing approximately 6750 organic compounds. Random forest (RF) and Multiple Linear Regression (MLR) regressions were used in this study as our ML algorithms since they are among the most accurate general-purpose classifiers and also have fast computational efficiency[31, 32]. The training and test dataset sizes, RF hyperparameters, estimators, and random states were kept constant for all models during the analysis to improve comparisons.

ML models are treated as black boxes, and a model’s learning principles remain challenging; however, interpretations of a given feature’s impact on the prediction measures can still be obtained using SHAP (SHapley Additive exPlanations [33]) values. The effects of the most common physical quantities and characteristics of higher-performing features on aqueous solubility predictions were examined and the most important features for each method were obtained by performing SHAP analyses for all chemical representation methods implemented to structure the data into the ML model’s format. SHAP was chosen over other criteria, such as random forest feature or permutation importance, since it can be used to interpret complex model predictions. However, if a selected descriptor is a kind of a “vague” global value derived from the entire molecule, the interpretation becomes less clear. In order to overcome this limitation and gain a comprehensive understanding of the factors influencing solubility and the impact of diverse chemotypes on solubility, a sparse MLR coefficient approach was also employed. SHAP is based on the magnitude of feature attributions and assigns each feature an important value in comparison with permutation feature importance, which is based on the decrease in model performance. Additionally, SHAP values can be used to generate feature importance plots that show how each feature affects the model's output across the entire dataset. This provides a more comprehensive understanding of how the model is making predictions and offers a high level of interpretability for a model.

The mean absolute error (MAE) and root-mean-square deviation (RMSE) were used to approximate the models’ prediction accuracy and algorithm performance. In addition, we included the coefficient of determination (R^2), a frequently used statistical parameter. However, R^2 is not regarded as a reliable measure of model predictivity due to its sensitivity to model complexity and the number of parameters fitted in the model, in contrast to the MAE and RMSE metrics [34, 35].

Results and discussion

Chemical and physical feature descriptor methods

The scatter plot in Fig. 3 demonstrates the relationship between the predicted LogS values derived from the Molecular-descriptors method and the corresponding measured values obtained from the RF and MLR models. The scatter plot encompasses data from both the training and test datasets. Significantly, the RF model demonstrates a stronger correlation and consequently delivers superior predictive performance when compared to the MLR model. This is evident from the higher R-squared (R^2) values of 0.88 and 0.80, as well as the lower RMSE and MAE values of 0.64/0.41 and 0.82/0.62, respectively, obtained for the test dataset. Table 2 provides a comprehensive summary of the accuracies associated with each of them.

Fig. 3
figure 3

Estimated linear and Random Forest regressions for aqueous solubility predictions in the Molecular-descriptors method: A and C for training data; B and D for test data

Table 2 Estimated linear and Random Forest model evaluation for aqueous solubility predictions in the Molecular-descriptors method

In order to address the presence of data outliers, we employed the Local Outlier Factor (LOF) technique to identify and thoroughly examine outliers within the training dataset. The LOF model operates on a local level, assessing the degree of isolation of an object relative to its immediate neighborhood. This locality-based characteristic allows LOF to effectively detect outliers that may possess substantive significance but would remain undetectable using conventional approaches [36]. This approach ensured that only data points conforming to the normal distribution were retained, resulting in a more robust and reliable training dataset for subsequent analysis. The list of 177 physicochemical descriptors for outliers and inliers can be found in the GitHub repository associated with this work. T-test and corresponding P-values conducted on the physicochemical descriptors for outliers and inliers, revealed variations in the variable represented by ATSC2Z, ATSC2se, ATSC7Z, ATSC7i, EState_VSA4, NaaNH, PEOE_VSA3 and SlogP_VSA3 descriptors. Detailed information regarding the t-statistic and p-values for all 177 physicochemical descriptors can be found in Additional file 2: Table S1.

By removing outliers and recalculating the models, a slight improvement was observed in the MAE and RMSE values for test data in both the RF and MLR methods where the results can be found in Additional file 2: Table S2. Given that the predictions of the test set for models with and without outliers yielded essentially identical results, we present our analysis based on the complete data set, encompassing both outlier and non-outlier instances.

Figure 4 illustrates the results of the SHAP analysis for the RF model trained on chemical descriptors and compares the impacts of top eleven chemical and physical descriptors, based on their average SHAP values, on the aqueous solubility outputs. In Fig. 4A, the blue bars depict the descriptors with the highest degree of impact, while Fig. 4B demonstrates the individual impact of each descriptor on the model's predictions. The feature values in the positive SHAP value range indicate a positive effect on solubility, while feature values in the negative SHAP value range indicate a negative effect. The density of the points represents the feature distribution. Red denotes a higher feature value, and blue denotes lower values.

Fig. 4
figure 4

SHAP analysis of the RF model trained on the molecular descriptors: A average SHAP values and MLR Coefficients of each descriptor, and B impact of each descriptor on solubility output

An MLR coefficient method was also utilized to identify the globally important chemical features, rather than the SHAP values, which exhibit local sensitivity. The MLR coefficient magnitudes corresponding to each of the top descriptors were incorporated into the Fig. 4, represented by the orange bars. Notably, the descriptors Slogp_VSA2, NsOH, NHBDon, and GATS1p, which exhibit positive SHAP values impact to the model's output, are characterized by higher MLR coefficient. As elucidated in Sect. “Fingerprinting methods”, feature importance in nonlinear models is a local rather than global property that depends on the location on the response surface where it is measured. Figure 5 illustrates the top ten physiochemical descriptors with high MLR coefficient obtained from the MLR model trained on chemical descriptors. Furthermore, Additional file 2: Table S1 provides a comprehensive list of all physiochemical descriptors along with their corresponding regression coefficients.

Fig. 5
figure 5

Top ten physiochemical descriptors with high MLR coefficient obtained from the MLR model trained on chemical descriptors. nF number of F atoms, nCl number of Cl atoms, nBr number of Br atoms, nO number of O atoms, nN number of N atoms, ATSC1se centered Moreau-Broto autocorrelation of lag 1 weighted by sanderson EN, NsCH3 number of sCH3, NssCH2 number of ssCH2, NssssC number of ssssC, NsssCH number of sssCH [37]

Fingerprinting methods

To identify the most relevant features among the 2048 considered in the Morgan Fingerprint model, a feature selection technique using the LASSO model was employed. A range of alpha values, specifically 0.00001, 0.0001, 0.001, 0.01, 0.1, 1.0, and 10.0, were considered for optimization purposes. Subsequently, an alpha value of 0.001 was selected, resulting in the identification of 631 features from the original set. The performance of the pruned data was compared to the model with the 2048 features, as presented in Table 3. The findings indicate that when employing the RF model, the pruned data exhibited higher RMSE and MAE values. Conversely, for the MLR model, the pruned data demonstrated improved RMSE, MAE, and R^2 metrics. The improved results for MLR can be attributed to the inherent nature of LASSO, which acts as a regularization technique that performs variable selection and regularization by imposing a penalty on the absolute values of the regression coefficients. Figure 6 depicts the performance evaluation of the Morgan Fingerprint model with 2048 features using the RF and MLR algorithms.

Table 3 Estimated linear and Random Forest model evaluation for aqueous solubility predictions- Morgan-Fingerprint method
Fig. 6
figure 6

Performance of linear and Random Forest regressions for aqueous solubility predictions (A), (C) training data, and (B) and (D) test data; Morgan-Fingerprint method with 2048 features

The Morgan fingerprints are binary representations that capture the presence or absence of specific structural features in molecules. In the context of Morgan fingerprints, which represent a sequence of bits rather than continuous variables, we utilized the Local Outlier Factor (LOF) technique to identify and scrutinize data outliers within the binary data. The LOF technique is applicable even with binary or categorical data, allowing us to detect and analyze potential outliers in the context of Morgan fingerprints' binary representations.

The RF and MLR models exhibited improved predictive performance upon excluding large outliers, although they demonstrated higher Absolute Calculation Error when applied to the blind dataset in Sect. “Blind test” (Additional file 2: Table S3). In order to investigate the nature of these outliers, an analysis was conducted on the frequency counts of each feature within the entire dataset. The findings revealed that some features appeared less than 100 times while some features appeared more than 3000 times. The ratio of “the number of features in an outlier’s fingerprint with less than 100 counts” to “the total number of features in outlier’s fingerprint” was calculated for all SMILES in each dataset. The results revealed that outliers exhibited a slightly higher mean ratio compared to inliers, with values of 0.31 and 0.29 respectively. This indicates that the frequency of each feature has a significant impact on the model's performance. Taking into account that removing outliers would result in a reduction in the occurrence of repeated features and considering the outcomes of the blind test, we made the decision to keep the model as-is without removing outliers. The complete list of outliers, inliers, and the aforementioned ratio has been uploaded to the associated GitHub repository for reference.

Figure 7 displays the top twelve important chemical substructures for predicting aqueous solubility based on their average SHAP values where the Morgan fingerprint was applied. Features 807, 222, 650, and 1171 are fragments consisting of the sp2 hybridized Carbon, hydroxyl group, carboxyl group and amine group respectively, contributed to increased solubility measures with enhanced amounts, and the rest negatively affected aqueous solubility. Solubility is a question of equilibria; therefore, to interpret the results we should frame the important features in terms of the energetics of the states as opposed to the dynamics that would transition between states. The energetics of a compounds in water can be estimated through a statistical thermodynamical-like approach [38, 39]. Gibbs energy, enthalpy or entropy as thermodynamic analysis of solubility with the purpose of contributing to the understanding of the possible molecular interactions can be used for interpretation of data [16]. Calculated Gibbs energy, as a thermodynamic paradigm, was adopted in this study to indicate a better mastery of the chemistry involved and improve the clarity of the discussion. Lower Gibbs energy measures indicate greater solubility in water, and a higher positive Gibbs energy specifies lower solubility in water. Table 4 illustrates the Gibbs energies for the top important features calculated by Perlovich’s equation (Eq. 1) [40].

$$\Delta {\text{G}}^{{{298}}} = \, \left( { - 0.{5} \pm {1}.{6}} \right) \, {-} \, \left( {{1}.{37} \pm 0.0{6}} \right)\alpha \, + \, \left( {{3}.{84} \pm 0.{25}} \right)\sum {\text{Ca }}{-} \, \left( {{2}.{97} \pm 0.{26}} \right)\sum {\text{Cd}}$$

where α is molecular polarizability, ƩCa is the sum of all H-bond acceptor factors in a molecule, and ƩCd is the sum of H-bond donor factors. Three described variables for each feature were calculated by descriptors-based method described in Sect. "Chemical and physical feature descriptor methods".

Fig. 7
figure 7

SHAP analysis of the ML model trained on the Morgan fingerprint A impact of each feature on solubility output, B average SHAP values and MLR Coefficients for the top twelve features

Table 4 Gibbs energies and MLR Coefficients for the top twelve features

Features 807, 222, 650, and 1171, as the features with positive effects, have low Gibbs energies and are thermodynamically favorable; they have lower Gibbs energies compared to Features 1380, 561, 1143, 1750, 114 and 591 with negative effects. The thermodynamic results are intuitive and agree with expectations arising from SHAP’s analysis. The agreement between the impactful features and the thermodynamic quantities can separated the fingerprint method from other computational tools to predict the physico-chemical properties [41].

Blue represents the central atom, yellow depicts the aromatic atoms, and the aliphatic ring atoms are highlighted in dark gray in the substructure drawings illustrated in Table 4. Light gray also indicates atom/bond structures that influence the atom’s connectivity invariants but are not directly part of the fingerprint. A schematic of extracting features 561 and 807 from their molecular structure is provided in Fig. 8 to illustrate the concept of hashing each structure.

Fig. 8
figure 8

Illustrations of the structure positions of the three selected features extracted by Morgan fingerprint

To have a robust illustration of the factors driving solubility and the role of diverse chemotype on solubility, a sparse MLR coefficient approach was also utilized. Feature importance in nonlinear models is a local rather than global property that depends on the location on the response surface where it is measured. This is evident in the SHAP graphs that span ranges from negative to positive influences on the model rather than having a single value. Given that the MLR model has a better RMSE than the RF model, the regression coefficients of the MLR model were analyzed to gain insight into how different features modulate solubility in linear model. The last column of Table 4 summarizes the regression coefficient corresponding to each of the twelve important features. Additionally, the MLR coefficients magnitudes for each important feature were added to Fig. 7 as the orange bars to facilitate a comparison between the nonlinear feature importances obtained from SHAP (blue bars) and the linear MLR coefficients. Notably, high measures of the regression coefficient for features 807, 222, 650, and 1171, as well as the low measures for features 1380, 561, 1143, 1750, 114 and 591, align with the expectations arising from SHAP’s analysis for the RF model and Gibbs energy results. Additional file 2: Table S4 provides a list of the top 50 features with positive regression coefficients, further elucidating the role of different features in modulating solubility.

Blind test

We performed a blind test on a database that was never used in our model to verify performance and compare the two models. The database consists of 32 low molecular weight organic molecules with the number of C atoms ranging from 1 to 12, extracted from the dataset of 100 druglike molecules at 25 °C from the Llinàs et al. [20] study. It is worth mentioning that identifying a reliable benchmark reference for solubility can be challenging due to the multiple definitions that exist, and ambiguity in reported values. Furthermore, the medium used for measurements, such as distilled or pH-buffered water, can yield significantly different results. We selected this dataset as the benchmark reference since it reports the intrinsic solubility. This parameter refers to the solubility of a compound in its free acid or free base form, which is independent of the medium’s pH and it is rather more reproducible than other measures. Thus, the selection of intrinsic solubility as our benchmark reference allows for a more standardized and reliable comparison of solubility values, and contribute to the accuracy and precision of our research findings.

Table 5 displays the performance of the random forest (RF) model in predicting the aqueous solubility of the benchmark dataset using two distinct methods, namely the Morgan fingerprint (MF) and physicochemical descriptors. The results show MF model outperformed the physicochemical model in predicting the blind set, whereas the latter achieved higher accuracy on the test set (RMSE 0.80 versus 0.64). To address this anomalous discrepancy, it should be noted that the performance of an ML model on a test set may not necessarily predict its performance on a blind set. The test set and the blind set may differ in ways that affect the predictive accuracy of the models, such as the types of compounds, the chemical properties, and the experimental conditions. To further assess the robustness of the models, we tested our models using a different dataset comprised of also 32 compounds that were listed in the “Solubility Challenge” section of the Llinàs study [20]. The results of this challenge test are summarized in Additional file 2: Table S5. The mean averages of the estimated error are 0.64 and 1.12 logS for MF and MD models, respectively. The performance of the MF model reflects its potential usefulness in predicting the solubility of drug-like molecules. Interestingly, our MF model was trained on low molecular weight molecules (an average molecular weight around 190) with the number of C atoms ranging from 1 to 12, whereas the 32 drug-like molecules in this challenge had a significantly higher molecular weight and more carbon atoms (an average of 296 molecular weight and 19 carbon atoms).

Table 5 Empirical and predicted solubility for selected druglike molecules using different chemical representation methods

The results in Table 5 and Additional file 2: Table S5 indicate an acceptable difference since the average uncertainty in measured aqueous solubility for organic molecules typically ranges from 0.6 to one order of magnitude, as reported in previous studies [20, 42,43,44]. The reason behind this can be attributed to the fact that the reported solubility values were gathered from various published works under varied experimental conditions. Furthermore, differences in solubility between different polymorphs of a given substance can also contribute to the mean average error of the models. Additionally, there may be confusion in identifying the type of solubility reported, as intrinsic solubilities can be mistakenly assumed to be thermodynamic values or kinetic measures. It is important to differentiate between these concepts: kinetic solubility refers to the dissolution rate of a substance, while thermodynamic solubility represents the equilibrium concentration of the solute in the solvent. In contrast, intrinsic solubility pertains to the solubility of a compound in its free acid or free base form. The kinetic solubility cannot be used as a reliable guide to the intrinsic or thermodynamic solubility of a compound, given its strong dependence on time and experimental parameters [45]. Stuart et al. highlighted a significant difference between the kinetic approximation of solubility and the intrinsic solubility of some compounds [45]. For instance, diclofenac exhibited precipitation levels that surpassed 50 times its intrinsic solubility. Similarly, Saal et al. investigated the differences between thermodynamic and kinetic solubility [46]. They reported mean differences of 0.22 log units and maximum differences of 1.96 log units for compounds where the residue of the thermodynamic assay exhibited a crystalline nature. Conversely, for compounds with an amorphous residue, the mean differences were 0.04 log units, with maximum differences reaching 0.89 log units.


We compared two supervised machine learning implementations to predict the aqueous solubility of various components using two distinct cheminformatics methods. We used molecular descriptors and fingerprints as the chemical representation methods. Our results were compared to a blind, low molecular database with specified aqueous solubility experiments, revealing that using a fingerprint method has a lower average absolute calculation error, which is comparable to other group contribution methods currently available. We also gained insight into how important features impact an ML’s output using SHAP analysis and calculated Gibbs energies for these features to investigate their thermodynamic favorability. Compare to the fingerprint model, the physicochemical descriptor model has demonstrated better predictive accuracy for the given test set and can incorporate more complex information.

Availability of data and materials

The code and datasets for our ML implementation can be found at:


  1. Boobier S, Hose DRJ, Blacker AJ, Nguyen BN (2020) Machine learning with physicochemical relationships: solubility prediction in organic solvents and water. Nat Commun 11:5753.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  2. Hou TJ, Xia K, Zhang W, Xu XJ (2004) ADME evaluation in drug discovery. 4. prediction of aqueous solubility based on atom contribution approach. J Chem Inf Comput Sci 44(1):266–275.

    Article  CAS  PubMed  Google Scholar 

  3. Patil GS (1994) Prediction of aqueous solubility and octanol—water partition coefficient for pesticides based on their molecular structure. J Hazard Mater 36(1):34–43.

    Article  Google Scholar 

  4. Nlrmalakhandan NN, Speece RE (1988) “Prediction of aqueous solubility of organic chemicals based on molecular structure”, environ. Sel Technoi 22:328–338.

    Article  Google Scholar 

  5. Mitchell BE, Jurs PC (1998) Prediction of aqueous solubility of organic compounds from molecular structure. J Chem Inf Comput Sci 38(3):489–496.

    Article  CAS  Google Scholar 

  6. Nelson TM, Jurs PC (1994) Prediction of aqueous solubility of organic compounds. J Chem Inf Comput Sci 34:601–609.

    Article  CAS  Google Scholar 

  7. Kühne R, Ebert RU, Kleint F, Schmidt G, Schüürmann G (1995) Group contribution methods to estimate water solubility of organic chemicals. Chemosphere 30(11):2061–2077.

    Article  Google Scholar 

  8. Klopman G, Wang S, Balthasar DM (1992) Estimation of aqueous solubility of organic molecules by the group contribution approach. application to the study of biodegradation. J Chem Inf Comput Sci 32:474–482.

    Article  CAS  PubMed  Google Scholar 

  9. Lee YC, Myrdal PB, Yalkowsky SH (1996) Aqueous functional group activity coefficients (AQUAFAC) 4: applications to complex organic compounds. Chemosphere 33(11):2129–2144.

    Article  CAS  Google Scholar 

  10. Huuskonen J (2000) Estimation of aqueous solubility for a diverse set of organic compounds based on molecular topology. J Chem Inf Comput Sci 40(3):773–777.

    Article  CAS  PubMed  Google Scholar 

  11. Yan A, Gasteiger J (2003) Prediction of aqueous solubility of organic compounds based on a 3D structure representation. J Chem Inf Comput Sci 43(2):429–434.

    Article  CAS  PubMed  Google Scholar 

  12. Delaney JS (2004) ESOL: estimating aqueous solubility directly from molecular structure. J Chem Inf Comput Sci 44(3):1000–1005.

    Article  CAS  PubMed  Google Scholar 

  13. Ali J, Camilleri P, Brown MB, Hutt AJ, Kirton SB (2012) In silico prediction of aqueous solubility using simple QSPR models: the importance of phenol and phenol-like moieties. J Chem Inf Model 52(11):2950–2957.

    Article  CAS  PubMed  Google Scholar 

  14. Sorkun MC, Koelman JMVA, Er S (2021) Pushing the limits of solubility prediction via quality-oriented data selection. iScience 24(1):101961.

    Article  CAS  PubMed  Google Scholar 

  15. Salahinejad M, Le TC, Winkler DA (2013) Aqueous solubility prediction: do crystal lattice interactions help? Mol Pharm 10(7):2757–2766.

    Article  CAS  PubMed  Google Scholar 

  16. Baracaldo-Santamaría D, Calderon-Ospina CA, Ortiz CP, Cardenas-Torres RE, Martinez F, Delgado DR (2022) Thermodynamic analysis of the solubility of isoniazid in (PEG 200 + Water) cosolvent mixtures from 278.15 K to 318.15 K. Int J Mol Sci.

    Article  PubMed  PubMed Central  Google Scholar 

  17. Ye Z, Ouyang D (2021) Prediction of small-molecule compound solubility in organic solvents by machine learning algorithms. J Cheminform 13(1):1–13.

    Article  Google Scholar 

  18. Vermeire FH, Chung Y, Green WH (2022) Predicting solubility limits of organic solutes for a wide range of solvents and temperatures. J Am Chem Soc 144(24):10785–10797.

    Article  CAS  PubMed  Google Scholar 

  19. Landwehr N, Kersting K, Wrobel S (2007) Integrating Na¨ıve Bayes and FOIL * Luc De Raedt. J Mach Learn Res 8:481–507

    Google Scholar 

  20. Llinàs A, Glen RC, Goodman JM (2008) Solubility challenge: can you predict solubilities of 32 molecules using a database of 100 reliable measurements? J Cheminform.

    Article  Google Scholar 

  21. Kurotani A, Kakiuchi T, Kikuchi J (2021) Solubility prediction from molecular properties and analytical data using an in-phase deep neural network (ip-dnn). ACS Omega 6(22):14278–14287.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  22. Pirashvili M, Steinberg L, Belchi Guillamon F, Niranjan M, Frey JG, Brodzki J (2018) Improved understanding of aqueous solubility modeling through topological data analysis. J Cheminform.

    Article  PubMed  PubMed Central  Google Scholar 

  23. Moriwaki H, Tian YS, Kawashita N, Takagi T (2018) Mordred: a molecular descriptor calculator. J Cheminform 10(1):1–14.

    Article  Google Scholar 

  24. Mansouri K, Grulke CM, Judson RS, Williams AJ (2018) OPERA models for predicting physicochemical properties and environmental fate endpoints. J Cheminform 10(1):1–19.

    Article  Google Scholar 

  25. Talukder MJ, Alshami AS, Tayyebi A, Ismail N, Yu X (2022) Membrane science meets machine learning: future and potential use in assisting membrane material design and fabrication. Sep Purif Rev.

    Article  Google Scholar 

  26. Tayyebi A, Alshami AS, Yu X, Kolodka E (2022) Can machine learning methods guide gas separation membranes fabrication? J Membrane Sci Lett.

    Article  Google Scholar 

  27. Zagidullin B, Wang Z, Guan Y, Pitkänen E, Tang J (2021) Comparative analysis of molecular fingerprints in prediction of drug combination effects. Brief Bioinform 22(6):1–15.

    Article  Google Scholar 

  28. Baldi P, Nasr R (2010) When is chemical similarity significant? The statistical distribution of chemical similarity scores and its extreme values. J Chem Inf Model 50(7):1205.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  29. Rogers D, Hahn M (2010) Extended-connectivity fingerprints. J Chem Inf Model 50(5):742–754.

    Article  CAS  PubMed  Google Scholar 

  30. Bajusz D, Rácz A, Héberger K (2017) Chemical data formats, fingerprints, and other molecular descriptions for database analysis and searching. Compreh Med Chem III 3–8:329–378.

    Article  Google Scholar 

  31. Biau G, Devroye L, Lugosi G (2008) Consistency of random forests and other averaging classifiers. J Machine Learning Res 9:2015–2033

    Google Scholar 

  32. Jiang D et al (2021) Could graph neural networks learn better molecular representation for drug discovery? A comparison study of descriptor-based and graph-based models. J Cheminform 13(1):1–23.

    Article  Google Scholar 

  33. Lundberg SM, Lee SI (2017) A unified approach to interpreting model predictions. Adv Neural Inf Process Syst 2017:4766–4775.

    Article  Google Scholar 

  34. Alexander DLJ, Tropsha A, Winkler DA (2015) Beware of R2: simple, unambiguous assessment of the prediction accuracy of QSAR and QSPR models. J Chem Inf Model 55(7):1316–1322.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  35. Bagheri M, Akbari A, Mirbagheri SA (2019) Advanced control of membrane fouling in filtration systems using artificial intelligence and machine learning techniques: a critical review. Process Saf Environ Prot 123:229–252.

    Article  CAS  Google Scholar 

  36. MM Breunig, HP Kriegel, RT Ng, and J Sander. “LOF: Identifying Density-Based Local Outliers,” SIGMOD, International Conference on Management of Data, pp. 93–104, 2000, doi:

  37. “Descriptor List.” Accessed 21 May 2023

  38. Duchowicz PR, Castro EA (2009) QSPR Studies on aqueous solubilities of drug-like compounds. Int J Mol Sci 10(6):2558.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  39. Vakili K et al (2021) Solubility study of sildenafil citrate in (2-propanol + water) binary mixtures at different temperatures. J Mol Liq 344:117915.

    Article  CAS  Google Scholar 

  40. Perlovich GL, Raevsky OA (2010) Sublimation of molecular crystals: prediction of sublimation functions on the basis of HYBOT physicochemical descriptors and structural clusterization. Cryst Growth Des 10(6):2707–2712.

    Article  CAS  Google Scholar 

  41. Sepehri B (2020) A review on created QSPR models for predicting ionic liquids properties and their reliability from chemometric point of view. J Mol Liq 297:112013.

    Article  CAS  Google Scholar 

  42. Myrdal PB, Manka AM, Yalkowsky SH (1995) AQUAFAC 3: aqueous functional group activity coefficients; application to the estimation of aqueous solubility. Chemosphere 30(9):1619–1637.

    Article  CAS  Google Scholar 

  43. Jorgensen WL, Duffy EM (2002) Prediction of drug solubility from structure. Adv Drug Deliv Rev 54(3):355–366.

    Article  CAS  PubMed  Google Scholar 

  44. Avdeef A (2019) Multi-lab intrinsic solubility measurement reproducibility in CheqSol and shake-flask methods. ADMET DMPK 7(3):210.

    Article  PubMed  PubMed Central  Google Scholar 

  45. Stuart M, Box K (2005) Chasing equilibrium: measuring the intrinsic solubility of weak acids and bases. Anal Chem 77(4):983–990.

    Article  CAS  PubMed  Google Scholar 

  46. Saal C, Petereit AC (2012) Optimizing solubility: kinetic versus thermodynamic solubility temptations and risks. Eur J Pharm Sci 47(3):589–595.

    Article  CAS  PubMed  Google Scholar 

Download references


We are grateful to the City of Grand Forks for partially funding this work through Project number: UND0027392, and the State of North Dakota for funding the balance of this work through project number UND0026282.

Author information

Authors and Affiliations



AT: conceptualization, Methodology, Literature Search, Visualization, Study Design, Data Collection, Data Analysis, Data Interpretation, Data Curation, Writing- Original Draft Preparation. AA: conceptualization, Investigation, Writing- Reviewing and Editing, Supervision. ZR: data Interpretation, Visualization, Writing- Reviewing. XY: investigation, Validation, Data Interpretation, Writing- Reviewing and Editing. NI: data Interpretation, Writing- Reviewing. MJT: data Interpretation, Writing- Reviewing. JP: writing- Reviewing.

Corresponding author

Correspondence to Ali S Alshami.

Ethics declarations

Ethics approval and consent to participate

The authors declare that research ethics approval was not required for this study.

Competing interests

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Additional file 1.


Additional file 2: Table S1

. List of descriptors along with their corresponding MLR coefficients, T-statistics and P-values used to predict aqueous solubility. Table S2. Evaluation of estimated Linear and Random Forest models for aqueous solubility predictions with outliers removed using the Molecular-Descriptors Method. Table S3. Evaluation of estimated Linear and Random Forest models for aqueous solubility predictions with outliers removed using the Morgan-Fingerprint method with key 2048 features. Table S4. List of the top 50 features in Morgan-Fingerprint with positive regression coefficients in predicting the aqueous solubility. Table S5. Performance of Molecular-Descriptors and Morgan-Fingerprint Methods in Predicting the Aqueous Solubility for 32 Compounds in the “Solubility Challenge”.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Tayyebi, A., Alshami, A.S., Rabiei, Z. et al. Prediction of organic compound aqueous solubility using machine learning: a comparison study of descriptor-based and fingerprints-based models. J Cheminform 15, 99 (2023).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: