Research on Ozone Concentration Prediction Based on Morris Sensitivity Analysis and LSTM

Abstract

Variations in atmospheric ozone (O3) concentration are influenced not only by meteorological conditions but also closely associated with changes in the concentrations of other pollutants. Accurate prediction of O3 concentration variations therefore requires the simultaneous consideration of meteorological parameters and the concentrations of other pollutants, which renders the prediction model high-dimensional and strongly nonlinear. To improve the prediction accuracy and reduce the training time, this study applies Morris sensitivity analysis to examine the correlations among large volumes of meteorological and pollutant concentration data before model training, thereby identifying the key variables affecting ozone concentration and reducing the data dimensionality during training. A two-layer LSTM model is then adopted to predict O3 concentration variations over 8 - 48 h. By comparing the training results obtained using the full dataset and the dimension-reduced dataset, the model is found to achieve the best performance for the 24-h prediction horizon, with the coefficient of determination (R2) exceeding 0.95; the R2 for the 8-h horizon exceeds 0.75, and those for the other horizons are all above 0.9. The maximum mean absolute error (MAE) reaches 11.

Share and Cite:

Li, Y. , Zhou, Y. and Chen, J. (2026) Research on Ozone Concentration Prediction Based on Morris Sensitivity Analysis and LSTM. Open Journal of Applied Sciences, 16, 5083-5094. doi: 10.4236/ojapps.2026.1612278.

1. Introduction

At present, global atmospheric pollution presents a complex situation characterized by overall deterioration, regional differentiation, the intertwining of old and new problems, and a vicious cycle between climate and pollution, among which ozone has become a new focus. Studies have shown that near-surface O3 is an important pollutant in the human living environment, and ozone is associated with adverse health effects, including cardiopulmonary and skin problems, imposing a significant disease burden [1].

Since the concentration variation of ozone (O3) in the atmosphere is not only affected by weather conditions but also closely related to the concentration changes of other pollutants, accurate prediction of O3 concentration changes requires simultaneous consideration of meteorological parameters and the concentrations of other pollutants, which makes prediction models high-dimensional and strongly nonlinear. Traditional air pollutant concentration prediction methods, although widely used, have significant limitations [2]. Statistical regression models struggle to effectively characterize the complex nonlinear evolution of pollutants and generally suffer from low prediction accuracy [3]; numerical air quality models, constructed based on the mechanisms of atmospheric physical and chemical processes, involve large computational costs, depend on the accuracy of emission inventories, are prone to systematic biases, and are often limited in timeliness [4]. In recent years, deep learning methods have shown strong modeling capabilities in time-series modeling. Among them, deep learning models represented by recurrent neural networks (RNNs) have demonstrated significant advantages in pollutant concentration prediction due to their powerful temporal modeling characteristics [5]. Han et al. proposed a new module named SARFE, which integrates the Statewide Air Pollution Research Center (SAPRC) mechanism and the recursive feature elimination (RFE) algorithm for dimensionality reduction, significantly improving the performance of all models [6]. Xiao and Xiu combined multifractal detrended cross-correlation analysis (MF-DCCA) with a novel STL-Bi-LSTM-Transformer framework, advancing O3 pollution management and providing a paradigm for control strategies in megacity clusters [7]. In addition, long short-term memory (LSTM) networks, with their unique gating mechanisms, can effectively alleviate the vanishing/exploding gradient problems in traditional RNN training; compared with traditional statistical models such as multiple linear regression and ARIMA, LSTM does not rely on linear assumptions and can accurately characterize the complex nonlinear temporal features in pollutant concentration changes; compared with traditional machine learning models such as decision trees and support vector machines (SVM), LSTM has more prominent representation capability for long-period fluctuations and dynamic changes in pollutant concentration time-series data, and is more suitable for high-precision short-term prediction requirements. To improve the accuracy and training time of the prediction model, this paper first uses the Morris sensitivity analysis method to analyze various influencing parameters, and then, according to the degree of influence, adopts a double-layer LSTM model to predict ozone concentration changes over 8 - 48 hours.

2. Research Overview

2.1. Data Sources and Preprocessing

The data were obtained from real measurements at the University of Science and Technology monitoring site in Xiangtan City from 2023 to 2024, with one group of data recorded per hour. Starting from 0:00 on January 1, 2023, the first 16,080 groups of data were selected in chronological order. Due to some missing values in the data, 15,294 valid groups were obtained after statistics, with valid data accounting for 95.1%. In addition, to ensure data continuity, the maximum consecutive missing threshold was set to 24, meaning that among 25 consecutive time-series data groups, at least one group was valid. On this basis, uniform interpolation was used to supplement the data, and after processing, the time-series data were complete. The validation set consisted of data starting from time step 16,081, and the subsequent 48 groups of data were selected for validation in this study. After processing the missing data, the moving window average method was used to smooth the time-series data, and the moving average smoothing window was set to 12.

For the target variable (O3), the sliding window method is used to construct supervised learning samples, with an initial time step set to 24 h to fully capture the temporal correlation characteristics of pollutant concentrations. In addition, because the dimensions of different input features (especially various meteorological parameters) differ, which can adversely affect model training accuracy and convergence speed, standardization and normalization are applied to all input features to eliminate dimensional interference, accelerate model convergence, and ensure the accuracy and reliability of prediction results.

This study adopts a stratified partitioning strategy to strictly divide the original dataset into a training set, a validation set, and a test set. The partitioning criteria, proportions, and purposes of each dataset are as follows. The original dataset contains multiple groups of feature data related to ozone concentration and corresponding ozone concentration labels, and the dataset partitioning rules are set strictly according to the research requirements. First, the first 8150 samples of the dataset are selected as the total training set. Second, a validation set is partitioned from the total training set at a ratio of 20%. Finally, all remaining samples after the total training set are partitioned into the test set. The test set data do not participate at all in model training and validation and are used only for the final independent evaluation of ozone concentration prediction performance after model training is completed, to verify the actual generalization ability and prediction accuracy of the model and ensure the authenticity and reliability of the prediction results.

2.2. LSTM Model

An LSTM unit is primarily composed of a cell state and three gating mechanisms: the forget gate, the input gate, and the output gate. The cell state acts as the “memory backbone” running through the entire sequence of time steps, carrying long-term memory via linear propagation, which effectively mitigates the issues of exponential gradient vanishing or explosion. The forget gate is a critical computational unit that determines how much long-term information should be retained. It is controlled by a Sigmoid function; the larger the value of ft, the greater the degree of retention. Its computation is formulated as Equation (1), where W and b denote the weights and biases of the respective gates.

(1)

where Xt represents the input at the current time step, ht−1 denotes the short-term information (hidden state) from the previous time step, and σ is the Sigmoid function. The input gate is employed to control the proportion of new information to be written. Specifically, it determines the ratio it of new information to be retained based on the input Xt, the hidden state ht−1, and the weight Wi, as formulated in Equation (2). Subsequently, a candidate memory cell is generated. Modulated by the hidden state of the previous time step, its output is regulated by the non-linear activation function tanh. The calculation method is given by Equation (3).

(2)

(3)

The cell state update is realized by fusing the historical long-term memory with the newly added current information: first, the forget gate output factor ft is used to weight the cell state Ct−1 from the previous time step, thereby controlling the degree to which historical information is retained; then, combined with the input gate output factor it, the current candidate cell state Ct is weighted to screen and inject new information; Finally, the iterative update of the cell state is completed to obtain the new memory cell Ct, with the calculation method given by Equation (4).

(4)

The output gate Ot determines what information is to be output, which is filtered by the Sigmoid function as given in Equation (5). After this computation is completed, the output state ht at the current time step is updated according to Equation (6).

(5)

(6)

The weight matrices of the forget gate, input gate, and output gate are denoted by Wf, Wi, and Wc, respectively, and the bias vectors are denoted by bf, bi, and bc.

2.3. Morris Sensitivity Analysis Method

Global sensitivity analysis can quantify the contribution of each parameter to the model output under the simultaneous variation of all variables. It determines the relative importance of each variable and identifies the key underlying driving factors that regulate system behavior. The Morris method, proposed by Max Morris in 1991, is a global sensitivity screening approach. It has been widely applied to complex systems across various fields, including engineering, environmental science, economics, and machine learning. Its core principle relies on the one-at-a-time (OAT) perturbation scheme, determining the importance of parameters via the Elementary Effect (EE). Compared to traditional variance-based analysis (e.g., the Sobol method), the Morris method focuses on rapidly identifying highly influential variables. It requires fewer samples and offers high computational efficiency, obtaining global sensitivity results at a low computational cost, making it well-suited for large-scale models and complex systems. The computation of the elementary effect is given by Equation (7):

(7)

where k is the number of parameters, EEi represents the elementary effect of the i-th parameter, a larger EEi indicates higher sensitivity of the parameter at its current position, and Δ is the variation step size of the parameter.

The Morris method does not explore only a single trajectory. To achieve global analysis, rr trajectories are randomly generated (each trajectory contains k + 1 parameter points), with each trajectory corresponding to one EEi. Based on the rr values of EEi, two key sensitivity indices are calculated as follows:

The absolute mean of elementary effects, denoted as : This index is used to characterize the overall impact intensity of parameter Xi and eliminate the influence of cancellation between positive and negative effects. The calculation method is given by Equation (8):

(8)

The standard deviation of elementary effects, denoted as σi: This index is used to characterize the non-linear features of parameter xi and its interaction strength with other parameters. A larger σ indicates the presence of strong interactions or pronounced non-linearity. The calculation method is given by Equation (9):

(9)

2.4. LSTM Model under Sensitivity Analysis

For the LSTM model built on high-dimensional data, data with weak sensitivity is likely to interfere with the output during prediction, potentially reducing the prediction accuracy of the model. At the same time, more training data increases the training time of the model. To improve model accuracy and reduce training time, this paper attempts to integrate the Morris sensitivity analysis method into the LSTM model. The specific steps are as follows:

1) Build LSTM models using a full factorial design and perform Morris sensitivity analysis on them to obtain the and of each factor. During this calculation process, the time steps used in the Morris method are consistent with those of the constructed LSTM models. That is, the number of LSTM models trained corresponds to the number of different time steps. In this study, the LSTM time step is equivalent to the look-back window length. During the training process, hyperparameter optimization is used to select the model with high accuracy;

2) Rank each factor based on , and select factors in order as the training input data for the prediction model. Different time steps will have different ranking orders; therefore, the optimized parameters selected for each time step are also inconsistent;

3) Perform hyperparameter optimization using the selected number of input factors to construct a new set of LSTM models;

4) Filter out models that meet the accuracy requirements. Combined with the last 24 sets of data in the training set, select the model with relatively high short-term prediction accuracy as the final short-term ozone prediction model.

2.5. Model Evaluation Metrics

This study selects the coefficient of determination (R2), mean absolute error (MAE), and root mean square error (RMSE) as model evaluation metrics to assess the prediction performance of the model, so as to comprehensively evaluate its predictive performance. Among them, R2 characterizes the ability of the model to explain the variance of the target variable and reflects the degree of similarity and agreement between predicted values and true values; its value range is [0, 1], and the closer the value is to 1, the higher the goodness of fit. Generally, R2 > 0.6 can be considered to indicate that the model has practical application value. Both MAE and RMSE are used to measure the deviation between true values and predicted values. MAE reflects the average absolute deviation level of the samples, and the smaller the value, the higher the prediction accuracy. RMSE amplifies the influence of large errors through the squaring operation and is more sensitive to outliers; the smaller its value, the stronger the robustness of the model.

(10)

(11)

In the above evaluation formulas, the parameters are defined as follows: epresents the predicted value of the i-th sample, denotes the true value of the i-th sample, denotes the mean of the true values of all samples, and n denotes the total number of samples.

The evaluation criteria and core implications of each evaluation metric are as follows. The closer the coefficient of determination R2 is to 1, the stronger the model’s ability to explain the fluctuation patterns of the data and the higher the goodness of fit. The smaller the values of mean absolute error (MAE) and root mean square error (RMSE), the smaller the average deviation between the model’s predicted values and the true sample values, and the higher the prediction accuracy. In terms of metric characteristics, MAE can intuitively reflect the average error range between predicted values and true values; its calculation is simple and its sensitivity to outliers is relatively low. RMSE is more sensitive to large errors in the prediction process and can more accurately reveal the model’s prediction performance on abnormal samples (outliers), thereby providing a more targeted reference for model accuracy optimization.

3. Experiments and Results

3.1. LSTM Model Training

To construct a suitable O3 concentration prediction model, this study selected 5 - 10 parameters as model training inputs according to the parameter sensitivity results obtained in the previous section. Meanwhile, to ensure high accuracy during model training, a grid search strategy was adopted for hyperparameter optimization, performing an exhaustive Cartesian product over candidate values. The input time step length T, number of hidden units H, number of stacked LSTM layers L, and batch size B were set as optimization variables. A dynamic learning rate was adopted, with an initial learning rate of 0.001. Other optimization parameter settings are shown in Table 1.

Table 1. LSTM parameter settings.

Parameter name

Parameter symbol

Parameter value range

Time step length

T

{24, 36, 48, 72}

Number of hidden units

H

{120, 192, 256, 300}

Number of stacked layers

L

{1, 2, 3}

Batch size

B

{24, 48, 72}

3.2. Model Construction

To improve model prediction accuracy and training efficiency and to reduce the dimensionality of the parameter space and the interference of redundant features during training, this study first evaluated and screened the input features through sensitivity analysis before model training. The Morris method for global sensitivity analysis was implemented using the open-source Python sensitivity analysis library SALib. The number of sampling trajectories was set to 100, the number of feature discretization levels to 6, the confidence level to 0.95, the number of resampling iterations to 100, and the number of feature parameters to 5. By systematically perturbing the values of each feature and observing the corresponding changes in model output responses, the mean absolute effect and the standard deviation of effects of each feature were calculated to quantify the contribution of each feature to the prediction results.

In this study, ten data parameters—temperature, relative humidity, pressure, wind speed, surface radiation, sulfur dioxide (SO2), nitrogen dioxide (NO2), carbon monoxide (CO), PM10, and PM2.5—were selected as model inputs. The Morris screening method was used to conduct global sensitivity analysis. The degree of influence of each meteorological factor on the ozone concentration prediction results and its nonlinear interaction characteristics were assessed using three core indicators: the mean absolute elementary effect μ, the standard deviation of elementary effects σ, and the coefficient of variation σ/μ. The analysis results are shown in Figure 1.

(a) Parameter sensitivity at a temporal step of 24

(b) Parameter sensitivity at a temporal step of 36

(c) Parameter sensitivity at a temporal step of 48

(d) Parameter sensitivity at a temporal step of 72

Figure 1. Results of morris global sensitivity analysis for 10 input parameters.

Through the sensitivity analysis of the input parameters at different time steps, it can be seen that humidity, PM10, PM2.5, NO2, and surface radiation have a significant influence across different time steps. Therefore, these five parameters are used as the primary input parameters. Then, the corresponding parameters are added sequentially for training according to the magnitude of at different time steps. Finally, the optimal prediction models obtained using 5 - 10 parameters are presented in Table 2.

Table 2. Optimal LSTM models under different input parameter dimensions.

Input data dimension

T

H

L

B

5

48

192

1

72

6

48

256

1

24

7

72

120

2

72

8

72

192

1

72

9

72

256

2

48

10

72

192

1

24

3.3. Model Prediction Results

In this paper, the LSTM-Morris fusion model is used to predict the short-term O3 concentration under a 24-h prediction step. The research results for different times and parameters are shown in Figure 2.

From Figure 2, it can be seen that across the five time periods, R2 first increases and then decreases. When the parameter is 5, the prediction of 8-hour data is the most accurate, with R2 reaching above 0.9; when the parameter is 6, the predicted R2 reaches its peak, after which R2 shows a downward trend. When the parameter is 8 or above, the R2 for the 12-hour and 24-hour prediction periods fluctuates considerably; as the parameter increases, the different R2 values gradually stabilize. Among the hyperparameters studied in the paper, the model can be used for short-term prediction, while long-term prediction still needs to be improved and may require adjusting the step size or other parameters.

Figure 2. Predicted R2 under different parameters and different time settings.

To gain a more detailed understanding of the data before and after modeling, a detailed comparison of R2, MAE, and EMSE between the training set and the test set was conducted, as shown in Figure 3.

(a) Training set data

(b) Test set data

Figure 3. Comparison of training set and test set data under different parameters.

As can be seen from Figure 3, as the number of parameters increases, the R2 value of the training set gradually rises, while the MAE steadily decreases. This indicates that as the number of parameters increases, the model is able to perform data training and learning well, and can successfully learn the information from the newly added parameters. When the number of parameters is 7, all metrics of the test set reach their optimal values. This indicates that, after sensitivity analysis, parameters with a low degree of influence, although capable of improving accuracy during the training process, may actually reduce the accuracy of the prediction results. This suggests that parameters with weak interaction with O3 are highly likely to cause the model to overfit during the training process.

4. Conclusion

In this paper, the Morris sensitivity analysis method was first used to analyze and process the data, and then a two-layer LSTM network model was used to predict O3 concentrations at different time periods. The model prediction results under different parameters and different time settings were discussed in detail. The experimental results show that the model accuracy exhibits a trend of first increasing and then decreasing with changes in the parameters, reaching a peak at 24 h. However, when the number of parameters is 7 or more, the accuracy can basically remain stable at around 92.5%, indicating that the model has high robustness under multi-parameter conditions. In addition, as the number of parameters increases, the coefficient of determination (R2) of the training set shows a steady upward trend, while the mean absolute error (MAE) and root mean square error (RMSE) gradually decrease; when the number of parameters reaches 7, all indicators of the test set reach their optimal values. Multiple indicators of the test set perform better than those of the training set, which proves that the model has excellent learning ability for the data and also indicates that the model has good generalization. Overall, the combined model of the Morris sensitivity analysis method and the LSTM network has high accuracy and feasibility in the study of short-term O3 concentration prediction under a 24-h prediction step, providing a new method for O3 concentration prediction.

Funding

Natural Science Foundation of Hunan Province (2024J18271).

Author Contributions

Responsible for writing the paper and code: Li Yujie.

Responsible for the collection and processing of data: Zhou Yuxiang.

Provide guidance on the thinking process and revise the thesis: Chen Jiehao.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Li, Y.Q., Jian, X.T., Guo, Y.N., Deng, F.R., Zhang, J.F., Li, Y.T., et al. (2026) Indoor Ozone and Ozone Reaction Products: An Emerging Health Threat. Environmental Pollution, 389, Article ID: 127416.[CrossRef]
[2] Fan, S.N. (2025) Research on the Construction of Assessment Models for Urban Air Pollution Sources and Ecological Environment Impacts. Green China, No. 1, 145-147. (In Chinese)
https://kns.cnki.net/kns8s/defaultresult/index?crossids=YSTT4HG0%2CLSTPFY1C%2CEMRPGLPA%2CJUP3MUPD%2CMPMFIG1A%2CWQ0UVIAA%2CBLZOG7CK%2CPWFIRAGL%2CNLBO1Z6R%2CNN3FJMUV&korder=SU&kw=%E5%9F%8E%E5%B8%82%E7%A9%BA%E6%B0%94%E6%B1%A1%E6%9F%93%E6%BA%90%E4%B8%8E%E7%94%9F%E6%80%81%E7%8E%AF%E5%A2%83%E5%BD%B1%E5%93%8D%E8%AF%84%E4%BC%B0%E6%A8%A1%E5%9E%8B%E6%9E%84%E5%BB%BA%E7%A0%94%E7%A9%B6
[3] Duan, Z.Y., Liu, Y.H., Wang, K., et al. (2017) Research Progress on Dust Dispersion Patterns in Large Open-Air Stockyards. Journal of Earth Environment, 8, 307-319. (In Chinese)
https://kns.cnki.net/kcms2/article/abstract?v=YsZ6lxCJneSKIa9FgQJOKiFlz_GiceZ6jnFI992ckMvbeN_AfMsSZZWoO2eLF8jEqTWJATchlhBHcBMWBieh2rtvBnCn3om37SWvfLahz2mfhQzcY5fPGRLWRbWdHK45mJ6AjRdjBPL4eYVm4PNVDozz56z1OGDK1WP-FKU55AS2MHCVqW5M1w==
[4] Ren, W.Z., Liu, J., Deng, Y.T., et al. (2025) Research and Prediction of Air Pollution Coupling Based on RF Regression and LSTM Neural Network—A Case Study of Beijing. Scientific and Technological Innovation, No. 10, 22-26. (In Chinese)
https://kns.cnki.net/kcms2/article/abstract?v=YsZ6lxCJneSQvgDn_bqXrvrUr6gW-8jVNMsVMsvdozlY7lOn_8dsPkrJh2tVIPUxBJWjfgXpDuBS4IhcwdRBiYDKT2dMypSIexuyKPf4ezaHpYVeexaUp_OVgpjsKF-ugcUvAw1bjUeRxFWe9JoK5UOThMwkkIvZSs9ZAgPPuihH1Di2qbh8WQ==
[5] Yang, H.R., He, N.T., Bu, L.B., et al. (2025) Estimation Method of Atmospheric Particulate Matter Mass Concentration Based on Machine Learning and Multi-Source Data. Journal of Atmospheric and Environmental Optics, 20, 176-187. (In Chinese)
https://kns.cnki.net/kcms2/article/abstract?v=YsZ6lxCJneTJteOYEKdScSifiCSM1-iayDi8VnHQNSkw3GPZzsEPgiW5WBJRWggguDXSiJ8u-IULi6QbvhLt8nPK5f6PMnRoZ_8I_AQuZwpc4CdhajJDwuhcGm9Y3F8d2FL-gpw3aGiAbMx1U0JjFLhi72svtJsIGHYdDVSL1Ns6GVtGLd9QaA==
[6] Han, M., Ji, W., Wang, H., Liu, G., Xu, W., Lin, H., et al. (2026) Ozone Concentration Prediction Using Machine Learning Models Integrated with 115 Volatile Organic Compound Measurements and Dimensionality Reduction Techniques. Ecotoxicology and Environmental Safety, 311, Article ID: 119868.[CrossRef]
[7] Xiao, Z. and Xiu, G. (2026) Fractal-Based Machine Learning for Ozone Prediction across Urban and Rural Landscapes: Decoupling Temporal Persistence and Spatial Divergence. Atmospheric Pollution Research, 17, Article ID: 103012.[CrossRef]

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.