Abstract
Molecular energy is used to estimate the overall favorability of the formation of a molecule, which can be measured either directly or indirectly. However, both methods require a chemical reaction. Molecular energy has also been investigated computationally. Yet, these calculations require a lot of expensive computer resources. The purpose of this project is to apply machine learning (ML) techniques to create models from known molecular properties. Once the model is created, the molecular properties of new molecules can be predicted quickly. Feedforward Neural Network (FNN) models were trained with two different representations of the molecules. In the first model, the molecules were represented by the Coulombic force between each atom; in the second model, the molecular structure, the bonding between atoms, and the electron configuration of each atom were provided as inputs. Prediction errors of the two models were compared statistically to determine the better representation of the molecule. The FNN network was able to predict the molecular energy with low errors in both models. Though, the model with the Coulomb matrix performed better for molecules that do not contain high electronegative atoms and performed poorly for molecules with three or more fluorine atoms. The effect of fluorine (or other electronegative atoms) on the Coulomb matrix needs to be further investigated.
Introduction
The determination of molecular energy is a fundamental task in chemical engineering and drug discovery. It serves as a primary indicator of a molecule's stability and its likelihood to participate in specific chemical reactions. Traditionally, researchers have relied on two main avenues: experimental measurement and high-fidelity computational simulations. Experimental methods are inherently slow and resource-intensive, requiring physical synthesis and reaction monitoring. On the other hand, computational approaches like Density Functional Theory (DFT) or Ab Initio calculations, while accurate, demand significant high-performance computing (HPC) resources and can take days to process a single complex molecule.
This study explores the potential of machine learning (ML) to serve as a high-speed surrogate for these traditional methods. By training neural networks on existing molecular data, the goal is to develop a system capable of predicting potential energy in seconds using standard cloud computing resources, thereby accelerating the pace of molecular screening.
Methodology
The researchers investigated two distinct neural network architectures and two methods of molecular representation to identify the most effective combination for energy prediction.
Molecular Representations
- Coulomb Matrix (Model A): This representation captures the electrostatic (Coulombic) forces between every pair of atoms within a molecule. It is a mathematically elegant way to describe the spatial arrangement and atomic charges.
- Atom Vector & Adjacency Matrix (Model B): This approach provides more granular structural information. It includes an "atom vector" detailing the electron configuration of each atom and an "adjacency matrix" that maps the specific bonding patterns between them.
Neural Network Architectures
- Feedforward Neural Network (FNN): A standard deep learning architecture consisting of three interconnected hidden layers.
- Graph Neural Network (GNN): A specialized model designed for graph-structured data. In this context, atoms are treated as nodes and bonds as edges. The GNN uses "message passing" to aggregate information about an atom's local environment across the entire molecular graph.
Dataset and Training
The study utilized a dataset of 85,000 molecules sourced from PubChem (via a Kaggle project). The dataset included a diverse range of elements, including H, C, N, O, F, Si, P, S, Cl, Br, and I. The "ground truth" target energies were pre-calculated using the Force Field method. The data was split into an 80% training set and a 20% validation set.
Results
The experimental results highlighted significant differences in performance based on both representation and architecture.
Performance Metrics
The FNN using atom vectors and adjacency matrices (Model B) emerged as the superior model overall. It achieved a Root Mean Square Error (RMSE) of 1.78 kJ/mol and a Mean Absolute Percent Error (MAPE) of just 0.07%.
The FNN using the Coulomb matrix (Model A) also performed well, with an RMSE of 1.88 kJ/mol and a MAPE of 0.19%. While Model A showed high accuracy for molecules without high electronegative atoms, its performance was less robust across the entire dataset.
In contrast, the GNN lagged significantly behind both FNN models, recording an RMSE of 15.75 kJ/mol and a MAPE of 2.79%. This suggests that for this specific dataset, the global features captured by the FNN were more informative than the local iterative updates of the GNN.
The "Fluorine Flaw"
A critical finding was the performance degradation of the Coulomb matrix model when applied to molecules containing three or more fluorine atoms. The high electronegativity of fluorine creates complex electronic environments that a simple electrostatic representation like the Coulomb matrix fails to capture accurately.
Discussion and Limitations
While the FNN models demonstrated high accuracy and remarkable speed—predicting energies in seconds rather than hours—several challenges remain:
- Enantiomer Blindness: The Coulomb matrix representation is unable to distinguish between enantiomers (non-superimposable mirror images). Since enantiomers often exhibit radically different biological activities, this is a significant limitation for pharmaceutical applications.
- GNN Optimization: The relatively poor performance of the GNN indicates a need for further hyperparameter tuning or perhaps a shift in application. The authors suggest GNNs might be better suited for predicting molecular geometry (bond angles and lengths) rather than scalar energy values.
- Electronegativity Effects: Future research should focus on refining molecular descriptors to better incorporate the effects of highly electronegative atoms, ensuring model robustness across the entire chemical space.
Conclusion
This research demonstrates that machine learning, particularly Feedforward Neural Networks using detailed structural inputs, can provide highly accurate and near-instantaneous predictions of molecular energy. While limitations regarding electronegativity and stereochemistry persist, these models offer a promising path toward more efficient molecular discovery and engineering.
Summary updated