Building robust machine learning models for small chemical science data: the case of shear viscosity of fluids
Open Access
- 1 December 2022
- journal article
- research article
- Published by IOP Publishing in Machine Learning: Science and Technology
- Vol. 3 (4) , 045032
Abstract
Shear viscosity, though being a fundamental property of all fluids, is computationally expensive to calculate from equilibrium molecular dynamics simulations. Recently, machine learning (ML) methods have been used to augment molecular simulations in many contexts, thus showing promise to estimate viscosity too in a relatively inexpensive manner. However, ML methods face significant challenges—such as overfitting, when the size of the data set is small, as is the case with viscosity. In this work, we train seven ML models to predict the shear viscosity of a Lennard–Jones fluid, with particular emphasis on addressing issues arising from a small data set. Specifically, the issues related to model selection, performance estimation and uncertainty quantification were investigated. First, we show that the widely used performance estimation procedure of using a single unseen data set shows a wide variability—in estimating the errors on—small data sets. In this context, the common practice of using cross validation (CV) to select the hyperparameters (model selection) can be adapted to estimate the generalization error (performance estimation) as well. We compare two simple CV procedures for their ability to do both model selection and performance estimation, and find that k-fold CV based procedure shows a lower variance of error estimates. Also, these CV procedures naturally lead to an ensemble of trained ML models. We discuss the role of performance metrics in training and evaluation and propose a method to rank the ML models based on multiple metrics. Finally, two methods for uncertainty quantification—Gaussian process regression (GPR) and ensemble method—were used to estimate the uncertainty on individual predictions. The uncertainty estimates from GPR were also used to construct an applicability domain using which the ML models provided even more reliable predictions on an independent viscosity data set generated in this work. Overall, the procedures prescribed in this work, together, lead to robust ML models for small data sets.Keywords
All Related Versions
Funding Information
- Department of Science and Technology, India (DST/NSM/ R&D_HPC_Applications/2021/05)
This publication has 119 references indexed in Scilit:
- Enumeration of 166 Billion Organic Small Molecules in the Chemical Universe Database GDB-17Journal of Chemical Information and Modeling, 2012
- Computational studies of ionic liquids: Size does matter and time tooThe Journal of Chemical Physics, 2012
- Diffusion coefficient and shear viscosity of rigid water modelsJournal of Physics: Condensed Matter, 2012
- Predicting human blood viscosity in silicoProceedings of the National Academy of Sciences of the United States of America, 2011
- Influence of the mass ratio on viscosity in Lennard–Jones mixtures: The one-fluid model revisited using nonequilibrium molecular dynamicsFluid Phase Equilibria, 2005
- A Stepwise Approach for Defining the Applicability Domain of SAR and QSAR ModelsJournal of Chemical Information and Modeling, 2005
- Alternative View of Self-Diffusion and Shear ViscosityThe Journal of Physical Chemistry B, 2005
- Similarity to Molecules in the Training Set Is a Good Discriminator for Prediction Accuracy in QSARJournal of Chemical Information and Computer Sciences, 2004
- System-Size Dependence of Diffusion Coefficients and Viscosities from Molecular Dynamics Simulations with Periodic Boundary ConditionsThe Journal of Physical Chemistry B, 2004
- Transport coefficients of Lennard-Jones fluids: A molecular-dynamics and effective-hard-sphere treatmentPhysical Review B, 1988