A High-Performance and Interpretable pKa Prediction Framework Integrating Count-Based Fingerprints and Ensemble Learning
Abstract
1. Introduction
2. Results and Discussion
2.1. Comparative Performance Assessment of B-MF and C-MF
2.2. Dimensionality Reduction and Optimal Model Framework Selection
2.3. Interpretability and Chemical Significance of SHAP-Derived Features
2.4. Definition and Evaluation of Applicability Domain
2.5. External Dataset Validation
2.6. Performance Comparison with State-of-the-Art pKa Prediction Models
3. Materials and Methods
3.1. Dataset Construction
3.2. Generation of Molecular Fingerprint
3.3. Model Development and Evaluation
3.3.1. Dataset Partitioning
3.3.2. Ensemble Learning Algorithms
3.3.3. Hyperparameter Optimization
3.3.4. Model Performance Evaluation
3.4. SHAP-Based Recursive Feature Elimination
3.5. Model Mechanism Interpretation
3.6. Defining the Applicability Domain
4. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| AD | Multidisciplinary Digital Publishing Institute |
| ADSAL | Directory of open access journals |
| B-MF | Three letter acronym |
| C-MF | Linear dichroism |
| EWG | Electron-withdrawing group |
| GBDT | Gradient Boosting Decision Tree |
| MAE | Mean absolute error |
| ML | Machine learning |
| QSPR | Quantitative structure-property relationship |
| pKa | Acid dissociation constant |
| R2 | Coefficient of determination |
| RF | Random Forest |
| RMSE | Root mean square error |
| SHAP-RFE | SHAP-based recursive feature elimination |
| XGBoost | Extreme Gradient Boosting |
References
- Escher, B.I.; Schwarzenbach, R.P.; Westall, J.C. Evaluation of Liposome−Water Partitioning of Organic Acids and Bases. 1. Development of a Sorption Model. Environ. Sci. Technol. 2000, 34, 3954–3961. [Google Scholar] [CrossRef] [Scilit]
- Liu, M.J.; Graham, N.; Wang, W.Y.; Zhao, R.Z.; Lu, Y.L.; Elimelech, M.; Yu, W.Z. Spatial assessment of tap-water safety in China. Nat. Sustain. 2022, 5, 689–698. [Google Scholar] [CrossRef] [Scilit]
- Schüürmann, G.; Aptula, A.O.; Kühne, R.; Ebert, R.-U. Stepwise Discrimination between Four Modes of Toxic Action of Phenols in the Tetrahymena pyriformis Assay. Chem. Res. Toxicol. 2003, 16, 974–987. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Erkan, S.A.; Celik, H.; Kesanli, B. Determination of Acid Dissociation Constants of Some 2-(3H) -Benzoxazolone Derivatives by UV-Vis Spectrophotometry. Iran. J. Chem. Chem. Eng.-Int. Engl. Ed. 2025, 44, 730–735. [Google Scholar] [CrossRef]
- Zhou, T.; Jhamb, S.; Liang, X.D.; Sundmacher, K.; Gani, R. Prediction of acid dissociation constants of organic compounds using group contribution methods. Chem. Eng. Sci. 2018, 183, 95–105. [Google Scholar] [CrossRef] [Scilit]
- Alcázar, J.J.; Misad Saide, A.C.; Campodónico, P.R. Reliable and accurate prediction of basic pKa values in nitrogen compounds: The pKa shift in supramolecular systems as a case study. J. Cheminform. 2023, 15, 90. [Google Scholar] [CrossRef] [Scilit]
- Yang, C.; Gong, C.; Zhang, Z.; Fang, J.; Li, W.; Liu, G.; Tang, Y. In silico prediction of pKa values using explainable deep learning methods. J. Pharm. Anal. 2025, 15, 101174. [Google Scholar] [CrossRef] [Scilit]
- Rafieezade, M.-R.; Fazeli, A. Predicting the amino group pKa of amino acids using machine learning-QSPR methods. J. Mol. Liq. 2024, 408, 125355. [Google Scholar] [CrossRef] [Scilit]
- Tayyebi, A.; Alshami, A.S.; Rabiei, Z.; Yu, X.; Ismail, N.; Talukder, M.J.; Power, J. Prediction of organic compound aqueous solubility using machine learning: A comparison study of descriptor-based and fingerprints-based models. J. Cheminform. 2023, 15, 99. [Google Scholar] [CrossRef] [Scilit]
- Fazeli, A.; Karimzadeh, M. Predicting pKa of the carboxylic acid group in water solutions of amino acids based on molecular structures using machine learning QSPR methods. Mater. Today Commun. 2023, 37, 107554. [Google Scholar] [CrossRef] [Scilit]
- Yang, Q.; Li, Y.; Yang, J.-D.; Liu, Y.; Zhang, L.; Luo, S.; Cheng, J.-P. Holistic Prediction of the pKa in Diverse Solvents Based on a Machine-Learning Approach. Angew. Chem. Int. Ed. 2020, 59, 19282–19291. [Google Scholar] [CrossRef] [Scilit]
- Mansouri, K.; Cariello, N.F.; Korotcov, A.; Tkachenko, V.; Grulke, C.M.; Sprankle, C.S.; Allen, D.; Casey, W.M.; Kleinstreuer, N.C.; Williams, A.J. Open-source QSAR models for pKa prediction using multiple machine learning approaches. J. Cheminform. 2019, 11, 60. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.L.; Ding, J.J.; Pan, L.; Cao, D.S.; Jiang, H.; Ding, X.Q. Quantum chemical descriptors in quantitative structure-activity relationship models and their applications. Chemom. Intell. Lab. Syst. 2021, 217, 12. [Google Scholar] [CrossRef] [Scilit]
- Adamczyk, J.; Ludynia, P. Scikit-fingerprints: Easy and efficient computation of molecular fingerprints in Python. Softwarex 2024, 28, 101944. [Google Scholar] [CrossRef] [Scilit]
- Xu, Z.; Zhao, H.; Wang, J.; Li, X.; Li, Z.; Zhang, X.; Ou, Y. Prediction and mechanism analysis of octanol-air partition coefficient for persistent organic pollutants based on machine learning models. J. Environ. Chem. Eng. 2025, 13, 115741. [Google Scholar] [CrossRef] [Scilit]
- Kim, D.; Ahn, S.; Choi, J. Identification of developmental and reproductive toxicity of biocides in consumer products using ToxCast bioassays data and machine learning models. Environ. Int. 2025, 202, 109621. [Google Scholar] [CrossRef] [Scilit]
- Zhong, S.; Guan, X. Count-Based Morgan Fingerprint: A More Efficient and Interpretable Molecular Representation in Developing Machine Learning-Based Predictive Regression Models for Water Contaminants’ Activities and Properties. Environ. Sci. Technol. 2023, 57, 18193–18202. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Zhang, M.; Sun, P. Prediction of acute toxicity of organic contaminants to fish: Model development and a novel approach to identify reactive substructures. J. Hazard. Mater. 2025, 491, 137917. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Marino, S.M. Protein Flexibility and Cysteine Reactivity: Influence of Mobility on the H-Bond Network and Effects on pKa Prediction. Protein J. 2014, 33, 323–336. [Google Scholar] [CrossRef] [Scilit]
- Siggel, M.R.F.; Streitwieser, A.; Thomas, T.D. The role of resonance and inductive effects in the acidity of carboxylic acids. J. Am. Chem. Soc. 1988, 110, 8022–8028. [Google Scholar] [CrossRef] [Scilit]
- Haslak, Z.P.; Zareb, S.; Dogan, I.; Aviyente, V.; Monard, G. Using Atomic Charges to Describe the pKa of Carboxylic Acids. J. Chem. Inf. Model. 2021, 61, 2733–2743. [Google Scholar] [CrossRef] [Scilit]
- Rajasekaran, E.; Jayaram, B.; Honig, B. Electrostatic Interactions in Aliphatic Dicarboxylic Acids: A Computational Route to the Determination of pKa Shifts. J. Am. Chem. Soc. 1994, 116, 8238–8240. [Google Scholar] [CrossRef] [Scilit]
- Mahmood, A.; Akram, T.; Kiani, M.; Akram, T.; Tian, X.; Sun, Y. Mechanism and regioselectivity in methylation of nitronates [CH2NO2]−: Resonance vs. inductive effects. New J. Chem. 2022, 46, 16593–16602. [Google Scholar] [CrossRef] [Scilit]
- Kolthoff, I.M.; Chantooni, M.K., Jr.; Bhowmik, S. Acid-Base Properties of Mono- and Dinitrophenols in Acetonitrile1. J. Am. Chem. Soc. 1966, 88, 5430–5439. [Google Scholar] [CrossRef] [Scilit]
- Moore, C.E.; Peck, R.L. Effects of steric hindrance on ultraviolet absorption spectra and ionization constants through mono-and di-alkyl substitution in 2,4,6-trinitrophenol. J. Org. Chem. 1955, 20, 673–679. [Google Scholar] [CrossRef] [Scilit]
- Silva, P.J. Inductive and resonance effects on the acidities of phenol, enols, and carbonyl alpha-hydrogens. J. Org. Chem. 2009, 74, 914–916. [Google Scholar] [CrossRef] [Scilit]
- Sander, T.; Freyss, J.; von Korff, M.; Rufener, C. DataWarrior: An Open-Source Program for Chemistry Aware Data Visualization And Analysis. J. Chem. Inf. Model. 2015, 55, 460–473. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sander, T. Openmolecules.Org: Free Services All Around Molecules. Available online: http://www.openmolecules.org/ (accessed on 8 March 2026).
- Eckert, F.; Klamt, A. Accurate prediction of basicity in aqueous solution with COSMO-RS. J. Comput. Chem. 2006, 27, 11–19. [Google Scholar] [CrossRef] [Scilit]
- Silverman, B.D.; Platt, D.E. Comparative Molecular Moment Analysis (CoMMA): 3D-QSAR without Molecular Superposition. J. Med. Chem. 1996, 39, 2129–2140. [Google Scholar] [CrossRef] [Scilit]
- Brown, T.N.; Mora-Diez, N. Computational Determination of Aqueous pKa Values of Protonated Benzimidazoles (Part 2). J. Phys. Chem. B 2006, 110, 20546–20554. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tao, L.; Han, J.; Tao, F.M. Correlations and predictions of carboxylic acid pKa values using intermolecular structure and properties of hydrogen-bonded complexes. J. Phys. Chem. A 2008, 112, 775–782. [Google Scholar] [CrossRef] [Scilit]
- Tehan, B.G.; Lloyd, E.J.; Wong, M.G.; Pitt, W.R.; Montana, J.G.; Manallack, D.T.; Gancia, E. Estimation of pKa Using Semiempirical Molecular Orbital Methods. Part 1: Application to Phenols and Carboxylic Acids. Quant. Struct.-Act. Relatsh. 2002, 21, 457–472. [Google Scholar] [CrossRef] [Scilit]
- Jover, J.; Bosque, R.; Sales, J. Neural Network Based QSPR Study for Predicting pKa of Phenols in Different Solvents. QSAR Comb. Sci. 2007, 26, 385–397. [Google Scholar] [CrossRef] [Scilit]
- Milletti, F.; Storchi, L.; Sforna, G.; Cruciani, G. New and Original pKa Prediction Method Using Grid Molecular Interaction Fields. J. Chem. Inf. Model. 2007, 47, 2172–2181. [Google Scholar] [CrossRef] [Scilit]
- Sakaushi, K.; Lyalin, A.; Taketsugu, T. Observations and theories of quantum effects in proton transfer electrode processes. Curr. Opin. Electrochem. 2020, 19, 96–105. [Google Scholar] [CrossRef] [Scilit]
- Parthasarathi, R.; Padmanabhan, J.; Elango, M.; Chitra, K.; Subramanian, V.; Chattaraj, P.K. pKa Prediction Using Group Philicity. J. Phys. Chem. A 2006, 110, 6540–6544. [Google Scholar] [CrossRef] [Scilit]
- Habibi Yangjeh, A.; Danandeh Jenagharad, M.; Nooshyar, M. Prediction Acidity Constant of Various Benzoic Acids and Phenols in Water Using Linear and Nonlinear QSPR Models. Bull. Korean Chem. Soc. 2005, 26, 2007–2016. [Google Scholar] [CrossRef] [Scilit]
- Jover, J.; Bosque, R.; Sales, J. QSPR Prediction of pKa for Benzoic Acids in Different Solvents. QSAR Comb. Sci. 2008, 27, 563–581. [Google Scholar] [CrossRef] [Scilit]
- Mienye, I.D.; Sun, Y.X. A Survey of Ensemble Learning: Concepts, Algorithms, Applications, and Prospects. IEEE Access 2022, 10, 99129–99149. [Google Scholar] [CrossRef] [Scilit]
- Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.-I. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bentéjac, C.; Csörgo, A.; Martínez-Muñoz, G. A comparative analysis of gradient boosting algorithms. Artif. Intell. Rev. 2021, 54, 1937–1967. [Google Scholar] [CrossRef] [Scilit]
- Victoria, A.H.; Maragatham, G. Automatic tuning of hyperparameters using Bayesian optimization. Evol. Syst. 2021, 12, 217–223. [Google Scholar] [CrossRef] [Scilit]
- Hodson, T.O. Root-mean-square error (RMSE) or mean absolute error (MAE): When to use them or not. Geosci. Model Dev. 2022, 15, 5481–5487. [Google Scholar] [CrossRef] [Scilit]
- Li, R.; Shinde, A.; Liu, A.; Glaser, S.; Lyou, Y.; Yuh, B.; Wong, J.; Amini, A. Machine Learning-Based Interpretation and Visualization of Nonlinear Interactions in Prostate Cancer Survival. JCO Clin. Cancer Inform. 2020, 4, 637–646. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Liu, W.; Chen, J.; Ji, S. Transfer Learning with a Graph Attention Network and Weighted Loss Function for Screening of Persistent, Bioaccumulative, Mobile, and Toxic Chemicals. Environ. Sci. Technol. 2025, 59, 578–590. [Google Scholar] [CrossRef] [Scilit] [PubMed]





| ML Algorithm | SHAP-RFE | Train Set | Validation Set | Test Set | Feature Number | |||
|---|---|---|---|---|---|---|---|---|
| R2 | RMSE | R2 | RMSE | R2 | RMSE | |||
| Catboost | Before | 0.955 | 0.645 | 0.823 | 1.180 | 0.880 | 1.073 | 2048 |
| After | 0.964 | 0.580 | 0.833 | 1.144 | 0.890 | 1.026 | 81 | |
| XGBoost | Before | 0.959 | 0.616 | 0.841 | 1.117 | 0.891 | 1.030 | 2048 |
| After | 0.961 | 0.603 | 0.843 | 1.110 | 0.891 | 1.023 | 451 | |
| GBDT | Before | 0.924 | 0.839 | 0.838 | 1.128 | 0.876 | 1.088 | 2048 |
| After | 0.948 | 0.697 | 0.836 | 1.135 | 0.885 | 1.051 | 101 | |
| RF | Before | 0.933 | 0.790 | 0.820 | 1.187 | 0.859 | 1.160 | 2048 |
| After | 0.940 | 0.749 | 0.823 | 1.179 | 0.868 | 1.124 | 111 | |
| Model | Core Molecular Representation | Optimal Algorithm | Full Chemical Interpretability | Strict AD Definition | High Computational Cost Required |
|---|---|---|---|---|---|
| This study | C-MF (SMILES-driven) | Catboost | Yes (SHAP-based substructure decoding and hierarchical mechanism analysis) | Yes (ADSAL dual-parameter method) | No |
| Yang et al. [7] | Graph-based molecular descriptors | Graph neural network | Partial (attention weight visualization) | No systematic definition | Yes |
| Mansouri et al. [12] | Multi-type 2D molecular descriptors | RF/SVM | Limited (only overall feature importance ranking) | No systematic definition | No |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Shen, H.; He, Y.; Deng, J.; Li, X.; Yang, C.; Ma, D.; Xia, D.; Yu, H. A High-Performance and Interpretable pKa Prediction Framework Integrating Count-Based Fingerprints and Ensemble Learning. Molecules 2026, 31, 961. https://doi.org/10.3390/molecules31060961
Shen H, He Y, Deng J, Li X, Yang C, Ma D, Xia D, Yu H. A High-Performance and Interpretable pKa Prediction Framework Integrating Count-Based Fingerprints and Ensemble Learning. Molecules. 2026; 31(6):961. https://doi.org/10.3390/molecules31060961
Chicago/Turabian StyleShen, Hui, Yongquan He, Juefeng Deng, Xiaoying Li, Chenqiang Yang, Dingren Ma, Dehua Xia, and Haiying Yu. 2026. "A High-Performance and Interpretable pKa Prediction Framework Integrating Count-Based Fingerprints and Ensemble Learning" Molecules 31, no. 6: 961. https://doi.org/10.3390/molecules31060961
APA StyleShen, H., He, Y., Deng, J., Li, X., Yang, C., Ma, D., Xia, D., & Yu, H. (2026). A High-Performance and Interpretable pKa Prediction Framework Integrating Count-Based Fingerprints and Ensemble Learning. Molecules, 31(6), 961. https://doi.org/10.3390/molecules31060961

