Full text
1. Introduction
Nitroaliphatic compounds [6] represent a major class of energetic materials. Their impact sensitivity ( h50%), defined as the height at which there is a 50% probability of reaction under mechanical impact, is a critical parameter for evaluating the likelihood of reaction under shock conditions. This property serves as a key basis for safety assessment and explos ive classification of such compounds. Regulatory frameworks such as EU REACH and CLP [2] impose explicit requirements for the accurate characterization of this property. However, given the vast number of chemicals awaiting evaluation, comprehensive experimental characterization is impractical. Experimental measurements are constrained by long testing times, high financial costs, and significant safety and ethical considerations. Consequently, there is an urgent need for reliable alternative approaches capable of predicting chemical properties without extensive experimental testing.
Quantitative structure -property relationship (QSPR) modeling, combined with machine learning techniques, enables regression analysis of selected molecular descriptors to predict target properties. This approach can provide more accurate predictions of the impact sensitivity of nitroaliphatic compounds while avoiding repetitive experimental testing of hazardous materials, thereby significantly reducing labor, material costs, and safety risks. As a result, QSPR modeling has become an effective alternative to experimental determination and has been widely applied in the prediction of impact sensitivity for energetic materials.
Prana[3] conduct a comprehensive study on predicting the impact sensitivity of nitroaliphatic compounds. They identify three key structural descriptors and construct a multiple linear regression (MLR) model based on them. The descriptors can be derived directly from the two-dimensional molecular structure, allowing straightforward statistical calculation without requiring complex quantum-chemical simulations or three-dimensional structural optimization. However, the model MLR relies on a linear modeling fra mework, whereas the structure –property relationships between molecular descriptors and impact sensitivity exhibit complex nonlinear characteristics. Linear models are inherently limited in capturing such nonlinear correlations, which restricts further improvement in prediction performance.
To address these limitations, the present study adopts the same three key structural descriptors identified by Prana[3] as Abstract:Nitroaliphatic compounds constitute an important class of energetic materials, and their impact sensitivity ( h50% ) is a key parameter for evaluating the safety of these compounds under mechanical shock. In this study, nonlinear quantitative structur e-property relationship (QSPR) models are developed to accurately predict the impact sensitivity of nitroaliphatic compo unds, providing a reliable alternative to experimental testing for safety assessment of energetic materials. Three key molecular descriptors previously screened by Prana are employed to construct four nonlinear QSPR models: random forest (RF), linear mixed -kernel support vector regression (LMIX -SVR), gaussian process regression (GPR), and linear multilayer perceptron (L -MLP). Model performances are comprehensively evaluated through internal validation, external validation, and applicability domain analysis. Overall, models based on kernel methods with smooth distance metrics (GPR and LMIX -SVR) or lightweight regularize neural networks (L -MLP) demonstrate superior fitting ability and prediction robustness. Among them, the L -MLP model exhibit the best overall performance, with a coefficient of determination of RTrain 2 =0.9040 and root-mean-square error RMSETrain=0.1406 for the training set; for the external validation set, REXT 2 =0.8343 and RMSEEXT=0.1720; and crossvalidation results ofQLOO 2 =0.8511 and Q5CV 2 =0.8526. Within the applicability domain, for the internal validation set, the L-MLP model achieve RIN 2 =0.8073, RMSEIN=0.1776, demonstrating significantly higher prediction accuracy than the conventional multiple linear regression model.
These results indicate that nonlinear QSPR models based on simple structural descriptors can effectively capture the complex structure– property relationships governing impact sensitivity. In particular, the L -MLP model combines the interpretability of linear models with the nonlinear fitting capability of neural networks, offering a reliable methodological reference for rapid prediction o f the impact sensitivity of nitroaliphatic compounds and for safety screening of energetic materials.
Table 1. Measured and Predicted - logh50%exp Compound Structure h50% exp logh50%exp Predicted-logh50%exp RF LMIX-SVR GPR L-MLP
8 0.90 1.02712 0.814504 0.85084 0.86701
7 0.85 1.04781 0.931712 0.94083 0.97550
80 1.90 1.90061 1.89258 1.93801 1.91148
29 1.46 1.46165 1.559809 1.53496 1.52819
56 1.75 1.85761 1.836512 1.87324 1.85218
18 1.26 1.23256 1.396994 1.32538 1.36102
110 2.04 2.01224 1.958377 1.92157 1.98660
28 1.45 1.72623 1.722981 1.69519 1.71751
40 1.60 1.44951 1.58319 1.49397 1.53662
16 1.20 1.20898 1.096451 1.06479 1.11729
17 1.23 1.23084 1.241161 1.19642 1.23832
17 1.23 1.18363 1.105045 1.16861 1.09303
81 1.91 2.03711 1.975791 2.01865 2.00977
15 1.18 1.36011 1.192156 1.15189 1.20116
13 1.11 1.16664 1.204345 1.20679 1.18468
18 1.26 1.21378 1.260059 1.22013 1.24436
24 1.38 1.29773 1.298329 1.31806 1.25095
110 2.04 1.89035 2.101626 2.11289 2.10494
34 1.53 1.45140 1.41493 1.37879 1.38592
151 2.18 1.93053 1.771906 1.80431 1.78752
70 1.85 1.93053 1.771906 1.80431 1.78752
300 2.48 2.32144 2.142081 2.25822 2.20374
23 1.36 1.29006 1.584022 1.51859 1.49106
14 1.15 1.38951 1.442015 1.42252 1.41732
6 0.78 0.92536 1.084053 0.99250 1.03457
30 1.48 1.50897 1.584461 1.57882 1.56971
138 2.14 2.07854 2.003333 2.08471 2.04148
279 2.45 2.37514 2.293246 2.43588 2.37455
7 0.85 0.95282 0.760721 0.79536 0.77612
113 2.05 1.77567 1.903806 1.84702 1.84695
120 2.08 2.05622 2.10589 2.17204 2.14230
72 1.86 1.73333 1.912104 1.84988 1.87843
50 1.70 1.79573 1.784113 1.72222 1.76674
32 1.51 1.57805 1.591576 1.49163 1.54201
33 1.52 1.61767 1.388273 1.33591 1.37333
17 1.23 1.20898 1.096451 1.06479 1.11729
9 0.95 1.16432 0.957756 1.09061 0.96680
125 2.10 1.89593 1.810212 1.80672 1.81974
112 2.05 1.49202 1.848718 1.79540 1.80787
18 1.26 1.36142 1.256774 1.21321 1.25339
15 1.18 1.51624 1.616758 1.61805 1.60747
7 0.85 1.00256 0.99968 0.92150 0.96184
27 1.43 1.28953 1.599081 1.53440 1.50890
72 1.86 1.57049 1.766235 1.74513 1.73629
19 1.28 1.29006 1.584022 1.51859 1.49106
30 1.48 1.62541 1.659785 1.66582 1.65283
227 2.36 2.37514 2.228532 2.36847 2.30597
45 1.65 1.29221 1.675837 1.61052 1.58837
101 2.00 1.60119 2.001309 2.01994 2.00002
68 1.83 1.79573 1.784113 1.72222 1.76674 model inputs and introduces nonlinear machine -learning approaches to construct four QSPR model: random forest (RF) model, linear mixed-kernel support vector regression (LMIX -SVR) model, gaussian process regression (GPR) model, and linear multilayer perceptron (L-MLP) model. These models are used to further investigate and predict the impact sensitivity of nitroaliphatic compounds. By comparing their performance with that of the MLR model [4] using relevant statistical indicators, this study evaluates the prediction capabilities of nonlinear models based on this descriptor framework. The aim is to provide new modeling strategies for the accurate prediction of impact sensitivity in nitroaliphatic compounds and to offer useful insights for QSPR-based prediction of physicochemical properties in energetic materials.
2. Material and method
2.1. Data set
This study select 50 nitroaliphatic compounds and record their experimental impact sensitivity ( h50%) values, all data derive from the research of Prana[3]. The allocation of relevant data and their experimental values are detailed in Table 1. Following the dataset partitioning method of Prana[3], compounds 1 to 34 are selected as the training set, while 35 to 50 are used as the external validation set. This partitioning provides input data for the subsequent construction of the RF model, LMIX-SVR model, GPR model, and L -MLP model,which are all nonlinear models built with the same set of descriptors to facilitate a fair comparison of their performance.
2.2. Calculation and Screening of Molecular descriptions
For the 50 nitroaliphatic compounds under study, 66 structural descriptors that can be directly derive from the twodimensional molecular structure are systematically calculated [5], forming the initial set of descriptors. Subsequently, the best multiple linear regression (BMLR) method [6] integrated in CodessaPro [7] software is employed to select descriptors from the initial set. Among various descriptor combinations, the one that show the highest correlation with logh50% and use the fewest descriptors is selected to achieve a balance between prediction accuracy and computational simplicity. Finally Student’s t test at the 95% confidence level is conducted to verify the statistical significance and correlation of the selected descriptors in the models. The contribution of each descriptor to the model's prediction is assessed based on the t-test values.
After this selection and validation process, three key molecular descriptors are identified from the 66 structural descriptors: nitrogen atom relative count ( nN/natom), single bond count ( nsingle), and nitro group count ( nNO2), which are used as the input descriptors for the MLR model. The detailed information for each descriptor is as follows: (1)nN/natom:This descriptor is calculated by determining the total number of nitrogen atoms (nN) in the target compound and dividing it by the total number of atoms ( natom) in the molecule. It reflects the proportion of nitrogen atoms in the molecule. (2)nsingle:This descriptor counts the number of single bonds in the molecular structure of the target compound, excluding double bonds, triple bonds, and other unsaturated chemical bonds. It characterizes the chemical bond saturation of the molecule. (3)nNO2: This descriptor counts the number of nitro ( -NO2) functional groups in the nitroaliphatic compound, which serves as a characteristic functional group for this class of compounds. The number of nitro groups is one of the core structural factors influencing impact sensitivity.
2.3. Random forest (RF) Model
Random Forest (RF) is an ensemble learning method that performs prediction by constructing a large number of decision trees during the training phase and averaging their outputs. The central idea of RF is to introduce randomness in both sample selection and feature selection in order to reduce overfitting and improve generalization performance.
Specifically, each decision tree is trained using bootstrap sampling with replacement from the original training dataset. During the node-splitting process, only a randomly selected subset of features is considered as candidate splitting variables. This dual randomness reduces the correlation among individual trees, thereby improving the robustness of the model against noise and enabling it to capture complex nonlinear relationships between molecular descriptors and the target property.
For a new sample x, the prediction of the RF regression model is calculated as the average output of all decision trees: y�= 1 T � ft T t=1 (x) Where ft(x) denotes the prediction generated by the t-th decision tree. During tree construction, node splitting is typically determined by impurity minimization criteria, such as the Gini index in classification tasks or the mean squared error in regression tasks. In terms of descriptor importance evaluation, RF measures the contribution of each descriptor by calculating the average decrease in impurity across all trees.
For classification problems, the Gini impurity at a node is defined as: Gini(p)=1- � pk 2 K k=1
Where pk represents the proportion of samples belonging to class k at the node. In regression tasks, variance reduction is commonly used as an analogous metric. In addition to constructing trees using bootstrap sampling from the training dataset, RF can quantify the importance of each descriptor through impurity -based measures such as the Gini index. Consequently, RF simultaneously provides prediction capability and feature-importance evaluation in QSPR modeling.
2.4. Support Vector Regression (SVR) Model
Random Forest models are prone to overfitting when applied to small datasets. Therefore, Support Vector Regression (SVR) which is particularly suitable for small -sample scenarios is employed. By defining the width of the ε-insensitive band as 2ε. The objective is to ensure that as many samples as possible fall within this tube while minimizing both the structural risk and the training error, thereby balancing model complexity and generalization ability.
The optimization objective of SVR can be expressed as: min w,b,ξi,ξi * 2 ǁwǁ2+C � ( n i=1 ξi+ξi *) s.t. yi-(w⋅ xi+b)≤ε+ξi, (w⋅ xi+b)-yi≤ε+ξi *, ξi,ξi *≥0 Where w is the weight vector in feature space, b is the bias term; Cis the regularization parameter controlling the trade off between model complexity and training error; ε defines the width of the insensitive tube; ξi and ξi *are slack variables representing deviations above and below the ε-tube.
Because the structure-property relationships between molecular descriptors and the impact sensitivity of nitroaliphatic compounds are typically nonlinear, solving the problem directly in the original feature space is insufficient. Therefore, the kernel tri ck is introduced to map the low -dimensional feature space into a higher -dimensional space through a kernel function K(xi,xj)=ϕ(xi)⋅ ϕ(xj) enabling the identification of an optimal hyperplane while avoiding the computational burden associated with explicit high-dimensional mapping.
The choice of kernel function plays a decisive role in determining the prediction performance of the SVR model. In QSPR modeling and SVR regression tasks, the most commonly used kernels include the linear kernel, polynomial kernel, and radial basis function (RBF) kernel.
. Linear kernel KLinear�xi,xj�=xi ⋅ xj The linear kernel has low computational complexity, requires no additional hyperparameters, and offers strong interpretability. It directly captures linear relationships among features and is suitable for simple linear structure –property relationships. However, it can only address linearly separable problems and performs poorly when representing nonlinear relationships. (2). Polynomial kernel Kpoly�xi,xj�=�γxi ⋅ xj+coef 0� degree
Where degree is the polynomial degree and coef 0 is the bias term.This kernel can capture higher -order nonlinear interactions among features and provides both global and local representation capabilities. However, it involves multiple hyperparameters, making optimization more difficult. High -degree poly nomials may lead to numerical instability and generally require greater computational effort than linear or RBF kernels. (3). RBF kernel Krbf�xi,xj�= exp�-γ|xi-xj|2� Where γ denotes the kernel width parameter. The RBF kernel possesses strong nonlinear mapping capability and can effectively model complex nonlinear relationships, particularly in small datasets. However, its strong local fitting capability may increase the risk of overfitting and it may fail to adequately capture global linear trends.
A single kernel function is often limited in its ability to simultaneously capture global trends and complex nonlinear structures. Hybrid kernels overcome this limitation by linearly combining multiple kernel functions, thereby integrating their respective advantages and improving model adaptability and generalization performance.
According to Mercer's theorem, any non- negative linear combination of positive semi -definite kernels remains a valid kernel function. In this study, a linear weighted hybrid kernel composed of linear, polynomial, and RBF kernels is constructed: Kmix�xi,xj�=w1Klinear�xi,xj�+w2Kpoly�xi,xj�+w3Krbf�xi,xj� Where w1,w2,w3≥0 are weight coefficients satisfying w1+w2+w3=1.
Due to the excessive number of parameters and their significant impact on model performance, Bayesian methods are adopted. Bayesian optimization is employed to determine the optimal combination of hyperparameters,enhancing the model's performance.By systematically exploring the hyperparameter space, this approach ensures that the best parameters are selected for the kernel function, leading to improved model accuracy.
The hybrid kernel allows simultaneous modeling of linear trends, global multidimensional structures, and complex local
nonlinear variations, thereby improving the ability of the SVR model to capture the structure–property relationship between molecular descriptors and impact sensitivity.
2.5. Gaussian Process Regression (GPR) Model
Although SVR can capture nonlinear relationships through kernel functions, its performance on small datasets is often sensitive to hyperparameter optimization. To address this issue, Gaussian Process Regression (GPR) is introduced. GPR is a non-parametric probabilistic regression method based on a Bayesian framework. Unlike traditional regression methods, it does not assume a predefined functional form. Instead, it directly models the function space through a Gaussian process prior, which provides stronger generalization capability and better resistance to overfitting in small -sample scenarios. The prior distribution of the regression function is defined as a Gaussian Process (GP), which is updated using the training data to obtain the posterior distribution of predictions.
For the input set X={x1,x2,...,xn},the corresponding output y={y1,y2,...,yn} follows a multivariate Gaussian distribution: y∼N(μ(X),K(X,X)+σn 2I) Where μ(X) is the mean function; K(X,X)is the covariance matrix constructed from the kernel function, σn 2 is the noise variance, I is the identity matrix.
For a new input x*,the posterior prediction distribution y* is also Gaussian distribution: y*∼N�μ*,σ* 2� where the posterior mean and variance are: μ*=K(x*,X)[K(X,X)+σn 2I]-1y σ* 2=K(x*,x*)-K(x*,X)[K(X,X)+σn 2I]-1K(X,x*) The key idea of hybrid kernels is to decompose a complex function space into the superposition of several simpler subspaces, each characterized by a base kernel. This allows the model to simultaneously capture global trends, local fluctuations, multi-scale structures, and stochastic noise.
To adequately represent the complex multi -scale nonlinear relationships between molecular descriptors and the impact sensitivity of nitroaliphatic compounds, a hybrid kernel combining a constant scaling kernel, radial basis function (RBF) kernel, rational quadratic (RQ) kernel, and white noise kernel is constructed:
Kmix=C⋅ (KRBF+KRQ)+KWhite Where KC=c,c is an optimizable scaling factor controlling the amplitude of the covariance. For the rational quadratic kernel: KRQ(xi,xj)= �1+ ǁxi-xjǁ2 2αl2 � -α
α is the shape parameter that enables modeling of local multi-scale nonlinear patterns. The white noise kernel is defined as KWhite=σn 2δij ⋅ δij is the Kronecker delta function and σn 2 represents the noise level used to model random noise in the data and improve model regularization
2.6. Linear-Multilayer Perceptron (L-MLP) Model
To simultaneously capture both linear trends and nonlinear residual relationships in the data, a hybrid Linear–Multilayer Perceptron (L -MLP) model is developed. This architecture integrates the interpretability of linear regression with the nonlinear fitting capability of neural networks, thereby maintaining a simple model structure while improving the ability to represent complex structure–property relationships.
The model consists of two parallel branches whose outputs are combined at the final layer (Figure 1).
Figure 1. The Structure of L-LMP Model
The linear branch employs a simple linear transformation layer, which is essentially equivalent to a Branching Multilayer Perceptron (BMLP) with no hidden layers. This branch captures the global linear trend in the data and provides a baseline prediction.To model nonlinear relationships between molecular descriptors and impact sensitivity, a nonlinear branch based on a lightweight multilayer perceptron (MLP) is introduced. The nonlinear branch contains two hidden layers. Considering the relatively small dataset used in this study, the hidden layer dimensions are set to 5 and 3 neurons, respectively, to reduce the risk of overfitting while maintaining sufficient representation capability.
The hidden layers employ the ReLU6 activation function, which enhances nonlinear representation ability while ensuring stable training. The final prediction is defined as the sum of the outputs from the linear and nonlinear branches:
y�=y�linear+y�nonlinear Where y�linear=Wlinear ⋅ X+blinear , y�nonlinear=MLP(X). The model is trained using the Mean Squared Error (MSE) loss function with L2 regularization: L= 1 n � ( n i=1 yi-y�i)2+λǁWǁ2 Where λ is the regularization coefficient,ǁWǁ2represents the sum of squared weights.
This residual-style architecture enhances the model's expressive capability while avoiding the overfitting risk associated with deep neural networks. The Adam optimizer is used for parameter updates, and L2 regularization is incorporated to constrain the magnitude of model weights.
Through this architecture, the model can effectively capture the structure –property relationship between molecular descriptors and the impact sensitivity of nitroaliphatic compounds.
2.7. Applicability Domain (AD) Analysis
The applicability domain (AD) is an essential component of model validation, defining the chemical space within which model predictions are considered reliable. To ensure consistency with the Eq.8 model proposed by Prana [3], the present study adopt the sa me applicability domain determination method and results used in the original study rather than performing an independent AD analysis.
In the original study, the AD is constructed using the three structural descriptors employed in the Eq. 8 model and is determined using the Euclidean distance method. The AD boundary is defined at the 95% confidence level to include 95% of the training samples.[3] According to this criterion, 15 samples from the external validation set are located within the applicability domain when evaluating the MLR model. The same AD determination is directly adopted in the present study to ensure objective and consistent compar ison of prediction performance between the nonlinear models and the MLR model within the valid applicability domain.
2.8. Evaluation Metrics
To ensure consistency with the model evaluation framework proposed by Prana [3], several statistical indicators are used to assess model performance:coefficient of determination (R2 )、root mean square error (RMSE)、leave-one-out cross-validation coefficient ( QLOO 2 )、five-fold cross -validation coefficient ( Q5CV 2 )、external coefficient of determination(REXT 2 )、RMSE of the external validation set (RMSEEXT )、external cross -validation coefficient (QEXT 2 )、coefficient of determination within the applicability domain (RIN 2 ),All indicators are calculated using predicted values logh50% exp to maintain consistency with the original experimental study.
The coefficient of determination R2 reflects the linear correlation between predicted and experimental values, representing the proportion of experimental variance explained by the model. Values closer to 1 indicate better model performance.The RMSE measures the average prediction error between predicted and experimental values and has the same dimension as the target property logh50% exp,providing an intuitive measure of model accuracy.The cross -validation coefficients QLOO 2 and Q5CV 2 all perform cross-validation calculations based on the training set and evaluate the robustness of the model. Values closer to 1 indicate stronger model stability.
External prediction ability is evaluated using REXT 2 and RMSEEXT, where larger REXT 2 and smaller RMSEEXT indicate stronger prediction capability for unseen samples.The external cross-validation coefficient QEXT 2 is calculated as: QEXT 2 =1- ∑ �yi�-yi� 2next i=1 ∑ �yi-yTR������ 2next i=1
Where yTR is the arithmetic mean of the experimental values logh50%exp in the training set. Finally RIN 2 and RMSEIN evaluate prediction performance within the applicability domain. Following the procedure in the original study, samples locate outside the AD are excluded, and the metrics are calculated using only samples within the valid domain.
3. Result and discussion
3.1. Results of RF
The Random Forest (RF) model exhibit exceptional fitting performance on the training set, with an R2 value of 0.9194,and an RMSE of 0.2839 indicating the model's ability to learn the mapping relationship between molecular descriptors and target values in the training data. However, its performance significantly decline on the test set and in crossvalidation, where the R2 reflect a drop of around 0.26 compared to the training set. The RLOO 2 is only approximately
0.5674.The five-fold cross-validation coefficient Q5CV 2 is 0.6937,which is notably lower than the training set performance.
These results clearly demonstrate overfitting on the training set and insufficient generalization capability on the test set. This is a characteristic of RF, where the model tends to excessively learn the fine details of the small sample data, leading to poor generalization performance on new samples.
In terms of external prediction performance, the model's REXT 2 for the 16 external validation samples is 0.6611, with an RMSEEXT=0.5424,The external validation cross-validation coefficient QEXT 2 is 0.6611.Within the applicability domain, the model show RIN 2 is 0.6243,RMSEIN is 0.5467,which are consistent with the external validation results. This indicates that the RF model's prediction ability within the applicability domain did not outperform its overall performance on the test set.
Compared to the MLR model, although RF demonstrate superior fitting on the training set, it exhibit a decline in performance in both external validation and cross -validation, suggesting a trade -off between training set accuracy and generalization in small sample scenarios. This highlights the li mitation of RF as an ensemble tree method, where its
powerful nonlinear fitting capability needs to be complemented with stricter pruning or regularization strategies to avoid overfitting. The fitting results of the RF model are shown in Figure 2. Figure 2. The Plot of Measured and Predictedlogh50%exp by RF Figure 3. The Plot of Measured and Predictedlogh50%exp by LMIX-SVR
The core reason for overfitting of the RF model lies in its fundamental component, the decision tree splitting mechanism. Given the three continuous features and 34 training samples in this task, the decision tree essentially performs orthogonal splits in the three -dimensional feature space, resulting in a "staircase- like" discontinuous response surface. When faced with sparse small sample data, RF struggles to interpolate smoothly through kernel functions as kernel methods do. This leads to significant prediction bias in the "gaps" of the feature space (i.e., new combinations appearing in the test set).
3.2. Results of LMIX-SVR
After optimizing the hyperparameters, the best combination for the LMIX-SVR model is determined: �C,γ,ϵ,d,coef0,wrbf,wlin,wpoly�=(29.4101,0.0013,0.1869,3,7.8178,0.4258,0.3471,0.2271) The detailed performance evaluation of LMIX-SVR is presented in Table 3.
For the training set, the LMIX -SVR model achieve an R2 of 0.8842,and an RMSE of 0.3403, demonstrating a good fitting ability. The internal robustness verification, measured through leave -one-out cross-validation QLOO 2 and five-fold cross-validation Q5CV 2 result in values of 0.8511 and 0.8463, respectively. These values are closely aligned, indicating no significant overfitting, and showing that the model maintained strong internal robustness.In terms of external prediction performance, the model's REXT 2 for the 16 external validation samples is 0.8058, with an RMSEEXT of 0.4106, and the external validation cross -validation coefficient QEXT 2 is 0.8058. Within the applicability domain, the model show RIN 2 =0.7740,RMSEIN=0.42 indicating improved performance within the valid domain. Compared to the MLR model, the LMIX-SVR show a slight improvement in training set fitting and enhance prediction capabilities in both external validation and within the applicability domain. The fitting results of the LMIX-SVR model are shown in Figure 3.
3.3. Results of GPR Model
After optimizing the kernel function hyperparameters, the GPR model achieve an optimal hybrid kernel form: 1.872⋅RBF(length_scale=4.28)+RationalQuadratic�α=103,length_scale=4.29�+WhiteKernel(noise_level=0.112) The model's fitting performance on the training set is evaluated, with an R2 of 0.9136 and an RMSE of 0.1334 representing a substantial improvement over the MLR model.The internal robustness validation show that the leave -oneout cross-validation coefficient QLOO 2 is comparable to the MLR model, and the five -fold cross-validation coefficient is 0.8254,slightly lower than the MLR model, but still indicate good internal stability and no significant overfitting.
For external prediction performance, the GPR model achieve an REXT 2 of 0.8041 and an RMSEEXT of 0.1871 for the external validation set, with an external cross -validation coefficient QEXT 2 of 0.8041.The aforementioned metrics are essentially comparable to the MLR model REXT 2 , RMSEEXT, QEXT 2 ,indicating comparable external prediction ability to the MLR model.Within the applicability domain, the model's performance show significant improvement compared to the MLR model, with RIN 2 =0.7800, RMSEIN=0.1898,which reflected the model's enhanced prediction accuracy within the valid
domain. The fitting results of the GPR model are shown in Figure 4.
Figure 4. The Plot of Measured and Predictedlogh50%exp by GPR
Figure 5. The Plot of Measured and Predictedlogh50%exp by L-MLP Table 2. The Performances of different models Metrics Model RTrain 2 RMSETrain
REXT 2 RMSEEXT QLOO 2 MLR 0.88 0.17 0.81 0.22 0.85 RF 0.9194 0.2839 0.6611 0.5424 0.6937 LMIX-SVR 0.8842 0.3403 0.8052 0.4106 0.8511 GPR 0.9136 0.1334 0.8041 0.1871 0.8410 L-MLP 0.9040 0.1406 0.8343 0.1720 0.8511
Metrics Model Q5CV 2 QEXT 2 RMSEIN RIN 2 MLR 0.85 0.81 0.23 0.78 RF 0.6937 0.6611 0.5467 0.6243 LMIX-SVR 0.8463 0.8058 0.42 0.7740 GPR 0.8254 0.8041 0.1898 0.7800 L-MLP 0.8526 0.8343 0.1776 0.8073
3.4. Results of L-MLP Model
The Linear-Multilayer Perceptron (L-MLP) model exhibit the best overall performance among the four models construct in this study. It demonstrated superior fitting ability, internal robustness, external prediction performance, and prediction within the applicability domain compared to both the MLR model and other nonlinear models. The core evaluation metrics for the L-MLP model are summarized below.
In terms of fitting to the training set, the L-MLP model achieve an RTraining 2 =0.9040 and an RMSE of 0.1406, representing a significant improvement in fitting accuracy compared to the MLR model. This indicates that the L -MLP model can effectively capture the structure –property relationship between molecular descriptors and impact sensitivity. Internal
robustness is verified through leave-one-out cross-validation QLOO 2 =0.8511 and Q5CV 2 =0.8526, indicating that the model do not overfit and maintained good internal stability. For external prediction, the L -MLP model achieve an REXT 2 =0.8343, RMSEEXT= 0.1720, and QEXT 2 =0.8343 for the 16 external validation samples. These results suggest that the L-MLP model demonstrates excellent prediction accuracy for new, unseen data. Within the applicability domain, the model achieve an RIN 2 =0.8073 and an RMSEIN of 0.1776, representing a significant improvement in both prediction accuracy and reliability compared to other models. These results further highlight the advantages of nonlinear modeling methods in uncovering the complex structure –activity relationships between m olecular descriptors and impact sensitivity, thus enhancing the model's performance within the practical application domain. The fitting results of the L -MLP model are shown in Figure 5.
4. Comparison and Discussion
Table 2 summarizes the performance of the four models across various evaluation metrics. Overall, the RF model exhibit excellent fitting on the training set but demonstrate poor generalization capability on the test set, indicating overfitting. In contrast, the other three models,LMIX -SVR, GPR, and L -MLP show strong fitting ability, robustness, and prediction accuracy, with performance metrics closely aligned.Among these models, the L -MLP model exhibit a slight advantage in both test set and external valida tion performance, indicating superior generalization capability. The GPR model show the best fitting on the training set but perform similarly to LMIX -SVR on the test set. LMIX -SVR, on the other hand, demonstrate a balanced performance across all metrics.
Compared to the MLR model proposed by Prana [3], all four nonlinear models demonstrate improve prediction capabilities. Specifically, models based on kernel methods with smooth distance metrics (GPR, LMIX-SVR) or regularize neural networks (L -MLP) are more suitable for the current data distribution. The L -MLP model, in particular, achieve higher external prediction accuracy while maintaining robustness, highlighting the potential of nonlinear models in uncovering the inherent relationships between molecular descriptors and impact sensitivity.
5. Conclusion
This study successfully apply four machine learning methods, Random Forest, Support Vector Regression, Gaussian Process Regression, and Linear -Mltilayer Perceptron, to predict the impact sensitivity of nitroaliphatic compounds. By leveraging three simple s tructural descriptors proposed by Prana, all four nonlinear models demonstrate excellent fitting ability, robustness, and external prediction performance. Among these, the L -MLP model exhibit the best performance in external prediction.
The results indicate that by selecting representative structural descriptors and combining them with nonlinear machine learning algorithms, reliable prediction models for impact sensitivity can be developed. This approach offers a feasible nonlinear modeling strategy for QSPR prediction of the impact sensitivity of nitroaliphatic compounds and provides valuable methodological insights for future research on safety assessment in energetic materials.
Conflict and interest
The authors confirm that this article content has no conflict of interest.
Figures






