IDENTIFYING THE RELATIONSHIP BETWEEN IONIC LIQUID DENSITY SHIFTS AND STRUCTURAL DESCRIPTORS USING MACHINE LEARNING
Abstract: density is a key property of ionic liquids (ILs) used in calculations in chemical engineering, the energy sector, and electrochemistry.This work examines a method for quantitatively assessing the influence of the chemical structure of ionic liquids (ILs) on changes in their density. The aim of this work is to identify the dependence of the density shift of ILs on their structural descriptors and to determine the contribution of these descriptors to the density shift of ILs under various thermodynamic conditions using machine learning methods.Based on the complete ILThermo database, an automated pipeline was developed that uses an ensemble of models (LightGBM, HistGradientBoosting, and ElasticNet) and a set of 2D/3D molecular descriptors (100 descriptors). To accurately isolate the influence of the structural component, an algorithm for calculating the isolated marginal effect was proposed. Two-dimensional plots were constructed and analyzed, demonstrating the graphical dependencies of the density shift on structural descriptors, as well as plots showing the dependence of the contribution of structural descriptors on thermodynamic parameters (temperature and pressure).
Keywords: ionic liquids, ionic liquid density, structural descriptors, machine learning, ensemble models, model interpretability, dependence plots.
https://doi.org/10.24412/2712-8849-2026-699-1897-1908
Introduction. Ionic liquids are salts that exist in a liquid state at room temperature (298 K), characterized by virtually zero volatility, high thermal stability, and high solubility for a wide range of substances [1, 2]. The density of ionic liquids is one of their key properties. It is essential for any technological calculations and depends on the following factors [3, 4]: Structure of cation-anion pair. Temperature. Pressure. Traditional methods using machine learning to predict the density of ionic liquids yield non-interpretable models (black boxes) that are unable to explain the basis for the predicted density value [5]. This paper proposes a pipeline that predicts the density of ionic liquids based on 143 human-interpretable structural descriptors and identifies the dependence of the density shift on the top 100 most significant descriptors. Methods. 2.1. Data acquisition. To obtain the raw data on ionic liquids, the complete ILThermo database [6], which contains 53,523 data points with information on the density of 1,598 unique ionic liquids at various temperatures and pressures, was used. The Python library ilthermopy [7] was used to import the data and convert the names of the ionic liquids to SMILES strings in order to obtain structural descriptors. A table was generated containing the names of the ionic liquids, their SMILES strings, and their densities at various pressures and temperatures. 2.2. Data split. To prevent data leakage in machine learning, all collected molecular data was split into three groups based on their SMILES strings: 1. Train (65% of all SMILES strings). 2. Validation (15% of all SMILES strings). 3. Test (20% of all SMILES strings). The model is trained on the Train set, uses the Validation set to fine-tune the training parameters, and verifies the accuracy of the training on the Test set. 2.3. Formation of the Descriptor Space. To extract 2D and 3D descriptors, the Python libraries RDKit and MMFF94 [9] were used, respectively. Descriptors that are not interpretable by humans—Kappa indices, Chi indices, VSA, E-State, and Gasteiger charges—were excluded. The model identified 143 interpretable descriptors, dependency plots were constructed for the top 100 in terms of significance in the density shift. The complete list of descriptors is available at [8]. 2.4. Machine Learning Models. To assess the influence of descriptors on the density shift, an ensemble of three models was used: LightGBM (LGBM), HistGradientBoosting (HGBM), and ElasticNet (EN) [10, 11, 12] with the following parameters: Table 1. Parameters of models LGBM, HGBM, EN. To minimize the mean absolute error (MAE) of the predicted density, the best weights (w₁, w₂, w₃) were selected for each of the three predicted density values from different models using the grid search method. Thus, the optimal predicted density is calculated using the following formula: p=?1????+?2????+?3???. 2.5. Deriving Human-Readable Dependencies. To evaluate the contribution of structural descriptors and visualize it graphically, we used the isolated marginal effect - an assessment of each descriptor’s individual contribution to the change in density, that is: Δρ??,?=ρ?,?,??,?−?=mediantrain−ρ?,?,??=mediantrain,?−?=mediantrain. where: xᵢ - a value of the descriptor i of the molecule. x₋ᵢ - values of the rest of descriptors. median train - a value of descriptor for hypothetical molecule with average values of all the descriptors. Correlations were extracted for 143 structural descriptors, of which the 100 most significant in terms of their contribution to the density shift were selected using a three-stage screening process: selection based on the mean absolute effect, statistical testing, and FDR correction. The relationships for the 100 most significant structural descriptors were plotted on a coordinate plane. In addition, for each of the 100 descriptors, graphs were plotted showing the relationship between their contribution to the density shift (the mathematical expectation Δρᵢ) and pressure and temperature. 2.6. Visualization of effects. Three graphs are generated for each descriptor: 1. A graph showing the dependence of the density shift on the numerical value of the descriptor. It includes red dots—isolated density shift values for each molecule, a blue curve—the PDP model, and a black line—the overall linear trend. 2. A graph showing the dependence of the contribution to the density shift (the mathematical expectation of Δρᵢ) on pressure at T = 298.15 K. 3. A graph showing the dependence of the contribution to the density shift (the mathematical expectation of Δρᵢ) on temperature at P = 101.325 kPa. 3. Results. 3.1. Model accuracy. The ensemble of models demonstrated high accuracy: R² = 0.9573, MAE = 16.38 kg/m³ on a 20-percent sample of test molecules. Fig. 1. Correlation plot of predicted and experimental values of the density of ionic liquids.3.2. The Most Influential Descriptors and Thermodynamic Parameters. The following descriptors were found to be the most influential (based on the mathematical expectation of density shift modules greater than 5 kg/m³): 1. MW/Labute_ASA (molecular weight divided by Labute-approximated surface area). 2. Packing density proxy. 3. Proportion of heteroatoms in the IL structure. 4. Labute_ASA/Heavy_atoms (Labute ASA divided by the number of heavy atoms in an IL molecule). 5. Cation SP3 fraction (fraction of SP3 atoms in an IL molecule). 6. Fraction of aliphatic carbon atoms in an IL molecule. 7. Fraction of SP3 carbon atoms in an IL molecule. 8. Number of rotatable bonds per heavy atom. 9. Cation TPSA. 10. Cation alkyl chain length. Fig. 2. Graphs showing the dependence of the density shift of IL on descriptors 1–6.Fig. 3. Graphs showing the dependence of the density shift of IL on descriptors 7–10.Changes in thermodynamic parameters (pressure and temperature) did not result in a significant change in the contribution (change in the mathematical expectation Δρᵢ) of structural descriptors to the density of the liquid. Fig. 4. Graphs showing the dependence of the contribution to the density of the IL on temperature and pressure for descriptors 1–2.The entire set of graphs can be found at the following link [8]. 3.3. Physicochemical Interpretation of Descriptors. 1. MW/Labute_ASA represents the ratio of the molecular weight of the compound to its approximate molecular surface area, calculated using the Labute method. This metric provides information about the molecule’s shape and mass: if the molecule is heavy and compact, the MW/Labute_ASA value increases along with the compound’s density. 2. Packing density proxy indicates the density of the molecular structure. The higher this value, the fewer «voids» there are in the molecule, the lower it is, the more loose and branched the molecular structure is. 3. The proportion of heteroatoms in the structure of the ionic liquid indicates the proportion of nitrogen, oxygen, sulfur, phosphorus, and halogen atoms in the molecule and reflects its polarity. As polarity increases, the number of hydrogen bonds that compact the molecular structure of the liquid increases. If the proportion of heteroatoms—and thus the polarity—decreases, intermolecular interactions naturally weaken, making the liquid less dense. 4. Labute_ASA/Heavy_atoms, similar to the first and second descriptors, characterizes the packing density of the IL molecule relative to the position of heavy atoms. If they are located on the outside, their large atomic radius increases the number of intermolecular «voids,» thereby reducing the density. 5. Cation SP3 fraction demonstrates the «flexibility» of the cation. Since sp³ structures have many rotational degrees of freedom and many conformations, changes in these conformations create temporary voids, reducing the efficiency of volume utilization, which likely leads to a decrease in density at high fractions of sp³ atoms in the cation. 6. The fraction of aliphatic carbon atoms in an IL molecule characterizes the presence of alkyl chains or aromatic systems. As the proportion of aliphatic carbon atoms increases, the chain length increases, creating many conformations, consequently, it utilizes space less efficiently and reduces density. A low fraction, conversely, indicates the presence of aromatic systems in the structure, which fill space more «stably» and efficiently due to the small number of conformations, thereby increasing density. 7. The fraction of sp³ carbon atoms in an IL molecule demonstrates a comparison similar to the previous one, but more specifically regarding sp³ carbon atoms. 8. The number of rotatable bonds per heavy atom demonstrates the same principle: increased flexibility leads to less efficient space-filling and, consequently, a decrease in density. 9. Cation TPSA calculates the polar surface area of cation atoms. The larger it is, the stronger the dipole and hydrogen interactions between molecules, which increase density. Conversely, weak polarity weakens intermolecular interactions, leading to a decrease in density. 10. Cation alkyl chain length, similar to descriptors 5, 6, 7, and 8, characterizes the degrees of freedom of a molecule, which leads to an increase in free volume and a decrease in density. 4. Discussion. 4.1. Practical application. By using the derived relationships and a method for training machine learning models exclusively on human-understandable structural descriptors, it becomes possible to design new ILs with specific density values in an explainable and refined manner, as well as to adjust the structures of existing ILs in order to decrease or increase their density values. 4.2. Current Limitations. The main limitation of the obtained dependencies is the inability to predict the density of the IZ outside the ranges of thermodynamic parameters available in the ILThermo database (230–550 K for temperature, 50–500 kPa for pressure). Thus, it remains impossible to determine the contribution of various structural descriptors to the density shift under extreme thermodynamic conditions. Furthermore, some significant descriptors are strongly correlated with one another, which hinders a comprehensive study of the influence of IL structure on their density. 5. Conclusion. An interpretable machine learning approach has been developed to identify the relationships between the density of ionic liquids and their structural features and to predict the density of ionic liquids based on these features. An ensemble consisting of LightGBM, HistGradientBoosting, and ElasticNet was trained on the complete ILThermo database (for the densities of pure ionic liquids). Based on the results of validation on a test set (20% of unique molecules), high prediction accuracy was achieved (R² = 0.9573, MAE = 16.38 kg/m³), guaranteeing the reliability and accuracy of the identified relationships. The isolated marginal effects method allowed us to quantitatively assess the contribution of each structural parameter to the shift in IL density, enabling a physicochemical interpretation.
Полная версия статьи PDF
Номер журнала «Вестник науки» № 6 (99) том 3
Ссылка для цитирования:
IDENTIFYING THE RELATIONSHIP BETWEEN IONIC LIQUID DENSITY SHIFTS AND STRUCTURAL DESCRIPTORS USING MACHINE LEARNING // Журнал «Вестник науки» от 21 июня 2026 г. № 6 (99) том 3. С. 1897 - 1908. 2026 г. ISSN 2712-8849 // Электронный ресурс: https://www.вестник-науки.рф/article/32171 (дата обращения: 29.11.2026 г.)
Альтернативная ссылка латинскими символами: vestnik-nauki.com/article/32171
Нашли грубую ошибку (плагиат, фальсифицированные данные или иные нарушения научно-издательской этики) ?
- напишите письмо в редакцию журнала: zhurnal@vestnik-nauki.com
