Chi-Ta
Yang
a,
Ishan
Pandey
b,
Dan
Trinh
b,
Chau-Chyun
Chen
b,
Joshua D.
Howe
b and
Li-Chiang
Lin
*ac
aWilliam G. Lowrie Department of Chemical and Biomolecular Engineering, The Ohio State University, Columbus, Ohio 43210, USA
bDepartment of Chemical Engineering, Texas Tech University, Lubbock, TX 79409, USA
cDepartment of Chemical Engineering, National Taiwan University, Taipei 106, Taiwan. E-mail: lclin@ntu.edu.tw
First published on 28th May 2022
This study proposes ab initio neural network force fields with physically motivated features to offer superior accuracy in describing adsorbate–adsorbent interactions of nonpolar (CO2) and polar (H2O and CO) molecules in metal–organic frameworks with open-metal sites. Effects of the neural network architecture and features are also investigated for developing accurate models.
Machine learning (ML) is a powerful means that can interpret data in complicated forms and make accurate predictions, which may show promise for describing highly complex intermolecular interactions for gaseous adsorption in porous materials. ML has been applied in a variety of applications such as image recognition,17 speech recognition,18 drug discovery and development,19 as well as chemistry and materials science.20–23 The potential of ML for describing intermolecular interactions, however, has not yet been explored. To date, ML force fields using artificial neuron networks (ANN), the so-called Behler–Parrinello neural networks, have been reported to compute potential energy surfaces of systems by summing the atomic energies of each of the involved elements (i.e. one neural network (NN) per element type).24,25 Using this NN framework, deep potential molecular dynamics was developed along with features that encode the atomic structures (configurations) using relative coordinates with respect to a reference atom.26,27 Generally, the features (or descriptors) are global and local in scope.28 The global features (ex: Coulomb matrix29 and Ewald sum matrix30) capture bulk structure information, while the local features (ex: atom-centered symmetry functions31 and smooth overlap of atomic positions32) capture the regional information of the bulk. Applying Behler–Parrinello NNs to predict adsorbate–adsorbent interactions for gaseous adsorption may lead to an excess of parameters, given that host materials can involve chemically diverse environments (several NNs will be needed). In adsorption applications, porous materials are also generally treated as rigid such that the total energies of the adsorbents are not of interest. Besides, the adsorbate–adsorbent interactions are dominated by non-bonded forces and therefore the aforementioned features may not be well suited. Thus, new developments with a simplified architecture and a feature set designed for adsorption applications are needed.
Herein, we report a first-of-its-kind deep neural network (DNN) potential to describe adsorbate–adsorbent interactions for gaseous adsorption in MOFs. The adsorption of CO2, H2O, and CO in Mg-MOF-74 was focused on herein. DNN models were developed with features containing information regarding physical short- and long-range interactions, as schematically illustrated in Fig. 1. In these models, the distances (rij) between each distinct atom type of the adsorbate and that of the adsorbent were computed. Using H2O in Mg-MOF-74 as an example, the adsorbate contains two distinct atom types (i.e., H and O) while the framework has nine different types (i.e., magnesium, three different oxygens, four distinct carbons, and hydrogen). This leads to a total of 18 different adsorbate–adsorbent atom-type pairs. For each pair, N smallest pair distances were adopted to represent the adsorption environment with N being a hyperparameter of the DNN model. Further, rather than directly using the pair distances as the inputs to the DNN model, the distances in forms of Born–Mayer33 expression, Coulombic interaction, and dispersion multipoles were used to reflect the fundamental adsorption behaviors for the benefit of physics-assisted training. In this study, we set N = 4 and the DNN architecture comprised of 5 hidden layers and 50 neurons per layer, unless otherwise noted. The number of parameters involved in the resulting DNN model was more than 30,000. More details can be found in ESI.†
Fig. 1 Illustration of the proposed features and DNN for modeling adsorbate–adsorbent interactions in MOFs. The blue dashed lines illustrate the atom pairs between the adsorbate and the adsorbent. More details can be found in ESI.† |
We first investigated the capabilities of several common ML algorithms, including DNNs, random forests (RF), k-nearest neighbors (KNN), and support vector machines (SVM) in interpreting adsorbate–adsorbent interactions for both CO2 and H2O adsorbed in Mg-MOF-74. Their corresponding Henry coefficients (KH) of adsorption were also calculated. Herein, the previously developed force fields using DFT by Lin et al.5 were utilized to generate reference energies for training and testing. A dataset consisting of random configurations was generated using Monte Carlo (MC) simulations in a canonical ensemble at a high temperature of 8,000 K. DNN was found capable of describing the interactions of CO2 and H2O with Mg-MOF-74 at a superior accuracy as compared to other ML algorithms (Fig. 2(a) and (b)). DNN-predicted values resemble those computed by the reference force field in a wide energy range from as small as −40 kJ mol−1 for CO2 and −65 kJ mol−1 for H2O to as large as 80 kJ mol−1. By contrast, RF and KNN show considerable deviations. SVM overestimates interactions in the low energy region, while it underestimates energies above 0 kJ mol−1. We note that, considering that it is rather computationally expensive to employ DFT or other quantum chemical methods to obtain reference energies, a small training set size of 2400 points was used. These results are also reflected in the computed KH values at 300 K as shown in Fig. 2(c) and (d). Using merely 2400 data points for training the ML models, the developed DNN can yield Henry coefficients that are in excellent agreement with those by the force field of Lin et al.5 RF, KNN, and SVM underestimate the values, even with a size of training set to be as large as 80000 points (Fig. 2(c) and (d)).
Fig. 2 Parity plots of the ML-predicted (DNN, RF, KNN, and SVM models trained with 2400 points) energies and reference values computed by the force field of Lin et al.5 for 0.4 M unseen points regarding (a) CO2 adsorption and (b) H2O adsorption in Mg-MOF-74. Calculated Henry's coefficients of (c) CO2 and (d) H2O adsorbed in Mg-MOF-74 as a function of the training size from as small as 800 to as large as 80000. The dotted lines in (c) and (d) represent the reference value (i.e., ∼1.0 × 10−3 mol (kg−1 Pa−1) for CO2 and ∼5 mol (kg−1 Pa−1) for H2O) computed by the force field of Lin et al. |
The energy distribution of the training set was found critical in developing accurate ML models. Training datasets with a focus on different energy regions (i.e., randomly distributed vs. biased toward the low-energy region), obtained by MC at different temperatures (Fig. S1, ESI†), were used to train models for comparison. As shown in Fig. S2a and b (ESI†), DNN prefers a diverse training set, since DNN is based on the weights associated with neurons, so a diverse training set is anticipated to help train a robust model. RF, KNN, and SVM can also predict accurate KH values with biased datasets. In RF regression, the trees are developed by asking questions regarding features to minimize the metrics (e.g., mean squared error). Therefore, a training set with more low-energy configurations helps in developing nodes with purity. However, when the query point is an unfavorable adsorption configuration but with similar configurational features to favorable configurations, it can be mis-predicted as a lower energy configuration. The same scenario also applies to KNN. These can be seen in Fig. S3 and S4 (ESI†) for their inaccuracy in predicting energies greater than 0 kJ mol−1. A similar behavior was also observed for the SVM model. More details concerning the ML algorithms are presented in ESI.† Overall, DNN prevails among the common ML algorithms.
DFT-derived DNN force fields were developed for the adsorption of CO2 and H2O in Mg-MOF-74, and their accuracy was compared to existing force fields (i.e., UFF6 and the force field developed by Lin et al.5). The aforementioned scaling factor approach11 was also employed herein for comparison. The DNN models and the scaling factors for these systems were trained using the DFT-computed reference energies from the work of Lin et al.5 that contains configurations of a wide spectrum of the energy (Fig. S5, ESI†). These DFT-computed reference data are made available in the ESI,† including both of their interaction energy and adsorption configuration. Our developed DNN models are shown in Fig. 3 to be much more accurate in representing adsorbate–adsorbent interactions, including configurations at both small (near the surface of the framework) and large distances (e.g., 3.0–5.0 Å) from the framework; using CO2 as an example, the root mean squared error (RMSE) for the computed adsorption energies is as small as 1.15 kJ mol−1, a value that is notably smaller than other classical potentials. The UFF-predicted energies are greatly overestimated with a large RMSE (CO2) of 6.90 kJ mol−1 because of the spuriously steep repulsive (i.e., r12) region of the potential.5 For the DFT-derived force field reported by Lin et al.,5 while it as expected decently predicts adsorption energy, noticeable deviations between the force field-computed energies and DFT-computed energies still exist, a RMSE (CO2) of 2.25 kJ mol−1. We note that, in Monte Carlo simulations for adsorption properties, configurations of lower energies (i.e., favorable adsorption) play a significantly more important role. While configurations with an energy greater than 10 kJ mol−1 are included in the model training, they are excluded in the abovementioned RMSE calculations for the test set. The superior accuracy of the DNN model is even more pronounced for the case of H2O (Fig. 3(c) and (d)). With respect to the scaling approach, employing only two scaling parameters appears to be too limited to succeed in accurately modeling this rather complex system. Overall, these results illustrate the inevitable limitation of force fields that employ a specific functional form. These limitations are additionally reflected in the computed KH values. The CO2 Henry coefficients computed by the DNN model, the force fields of Lin et al.,5 and the scaling approach are 3.0 × 10−3, 1.0 × 10−3, and 1.1 × 10−5 mol (kg−1 Pa−1), respectively, and the former two agree well with the experimental value34 of 2.0 × 10−3 mol (kg−1 Pa−1). Both the DNN model and the potential by Lin et al.5 predicted comparable KH values in the H2O adsorption (i.e., 4.07 ± 0.50 and 4.81 ± 1.11 mol (kg−1 Pa−1), respectively). To extend this work to a system with electronic properties that could pose a challenge to conventional force fields, a DFT-derived DNN force field for CO adsorption was also developed using a total of 2000 CO adsorption configurations in the distance of 2.0–5.5 Å from the framework (Fig. S5, ESI†). The parity plot again shows outstanding description of CO adsorption in Mg-MOF-74 by DNN as compared to existing methods (Fig. 3(e) and (f)); a Henry coefficient of 5.5 × 10−5 mol (kg−1 Pa−1) was predicted.
Fig. 3 Parity plots of the DFT-computed energy (test sets) and those by the developed DNN force field, UFF, the force field reported by Lin et al.,5 or the parameterized potential using the scaling factor (a) CO2 (1.15, 6.90, 2.25, 6.34), (c) H2O (3.05, 18.58, 10.92), and (e) CO (5.64, 25.21, 13.46) adsorption in Mg-MOF-74. The values in the parentheses show the respective root mean square error (RMSE, kJ mol−1) for each studied model following the order in the legends. Note that only configurations with DFT-computed energies to be less than 10 kJ mol−1 are included in the RMSE values as mentioned in the text. (b), (d), and (f) are the corresponding energy deviation from the DFT references as a function of the shortest distance between the adsorbate and the Mg-MOF-74 framework. See Fig. S6 in the ESI† for the computed energy values as a function of interaction distance. |
In the development of accurate NN potentials, two architecture parameters, i.e., the number of hidden layers and the number of neurons per hidden layer, can greatly affect their accuracy (i.e., RMSE of the test set). As shown in Fig. 4(a), deeper learning notably improves the overall description of the adsorbate–adsorbent interactions in a wide range of adsorption distance. This can also be seen from the energy deviation as a function of the shortest H2O–MOF distance as shown in Fig. 4(b); using five hidden layers, relative to only one, offers a much more accurate energy prediction for configurations at distances ranging from 1.5 Å to 5.0 Å that are associated with both repulsive and attractive regions. Besides, to have a small RMSE, a sufficiently large number of neurons per hidden layer (≥20 in this case) is required. Particularly, the number of neurons per hidden layer was found to improve short-range interaction. By comparing the energy deviations of NNs (five hidden layers) with 50 neurons per hidden layer and with 20, the energy deviation largely diminishes primarily in the distance of approximately 2.5 Å, suggesting that the repulsive behavior is better described (Fig. 4(b)). Overall, employing deeper NN seems to improve the overall descriptions of interaction energies, while the number of neurons per hidden layer appears to facilitate predictions of adsorption energy for configurations at short distances from the framework.
NN models presented so far have adopted features resembling of physical interactions-Pauli repulsion (e−r), dispersion forces (r−4, r−6, r−8, r−10), and coulombic interactions (r−1). As shown in Fig. 4(c), these physically motivated features indeed result in more accurate DNN force fields to better describe adsorbent–adsorbate interactions. Moreover, the behavior of resulting DNN models is directly reflected on the physical meaning of the adopted input features. As shown in Fig. 4(d), the energy predictions of DNN models with e−r, which has been known to resemble the inter-atomic repulsive behavior, as compared to only the r term noticeably reduce the energy deviation for configurations with a short distance of less than 3.0 Å from the framework. Further, by adding features representing dispersive forces, energy deviation is overall reduced. Note incorporating more terms of dispersion multipole expansions as the input features does not lead to a better result (Fig. S7, ESI†), as the models are prone to overfitting and thus a higher RMSE of the test set was observed. This also explains the results regarding the choice of the number of the smallest pair distance (N); Fig. 4(c) shows an optimum value of 4, which justified the implementation of N = 4 in this study. It should be however noted that using more dispersion terms and more pair distances (i.e., larger N) may result in more accurate models when a larger training dataset is available.
Footnote |
† Electronic supplementary information (ESI) available. See DOI: https://doi.org/10.1039/d1ma01152a |
This journal is © The Royal Society of Chemistry 2022 |