基于多变量LSTM与注意力机制的成都市空气质量指数预测研究
Research on Air Quality Index Prediction in Chengdu Based on Multivariate LSTM with Attention Mechanism
摘要: 针对成都市空气质量波动剧烈、极端污染频发且现有研究缺乏分层对比的现状,本文基于2020~2025年逐日空气质量监测数据,构建了单变量LSTM、多变量LSTM及融合注意力机制的多变量LSTM三种递进式预测模型,并引入AQI > 150的极端污染专项误差评价。实验以21天为时间步长进行单步预测。结果表明:多变量LSTM引入PM2.5、PM10、O3、SO2、CO、NO2六项污染物后,MAE、RMSE、R2、MAPE均显著优于单变量模型;融合注意力机制进一步将R2提升至0.7981、MAPE降至23.63%,极端污染预测误差较单变量模型降低约25%。三种模型均有效收敛且无过拟合,注意力机制在多变量基础上显著增强了对关键时段与峰值的捕捉能力。综合来看,融合注意力机制的多变量LSTM模型在常规预测与极端污染场景中均表现出较好的适用性,可为成都市空气质量预测与重污染天气应对提供一定的参考。
Abstract: In response to the severe fluctuations of air quality and frequent extreme pollution events in Chengdu, as well as the lack of layered comparative studies in existing research, this paper constructs three progressive prediction models based on daily air quality monitoring data from 2020 to 2025: univariate LSTM, multivariate LSTM, and multivariate LSTM with attention mechanism. A specific error evaluation for extreme pollution (AQI > 150) is also introduced. The experiment uses a 21-day time step for one-step-ahead prediction. The results show that after introducing six pollutants (PM2.5, PM10, O3, SO2, CO, NO2), the multivariate LSTM significantly outperforms the univariate LSTM in terms of MAE, RMSE, R2, and MAPE. The attention mechanism further improves R2 to 0.7981 and reduces MAPE to 23.63%, while the extreme pollution prediction error decreases by about 25% compared with the univariate model. All three models converge effectively without overfitting, and the attention mechanism significantly enhances the ability to capture key periods and peaks on top of the multivariate model. Overall, the multivariate LSTM model with attention mechanism demonstrates promising applicability in both routine prediction and extreme pollution scenarios, and may serve as a useful reference for air quality forecasting and heavy pollution response in Chengdu.
文章引用:张艳. 基于多变量LSTM与注意力机制的成都市空气质量指数预测研究[J]. 统计学与应用, 2026, 15(7): 175-187. https://doi.org/10.12677/sa.2026.157160

参考文献

[1] Mishra, A. and Gupta, Y. (2024) Comparative Analysis of Air Quality Index Prediction Using Deep Learning Algorithms. Spatial Information Research, 32, 63-72.
https://doi.org/10.1007/s41324-023-00541-1
[2] Jin, Y.M., Ren, G., Hu, Y.X., Wang, W.N. and Zhang, J.T. (2024) A Study on Air Quality Prediction with Multiple Features Based on GCN-LSTM. Journal of Physics: Conference Series, 2816, Article 012074.
https://doi.org/10.1088/1742-6596/2816/1/012074
[3] 胡彦军. 基于多变量LSTM模型的大蒜种植面积预测研究[J]. 河南科技学院学报(自然科学版), 2026, 54(1): 75-83.
[4] 曹天垚. 基于多变量LSTM的配电网调度预测[J]. 电子元器件与信息技术, 2026, 10(1): 32-35.
[5] 杨雨, 王永千, 胥娇, 等. 融合多头自注意力机制和LSTM的风电塔筒倾角预测模型[J]. 风机技术, 2026, 68(2): 49-56.
[6] 刘小燕, 邵长虹, 李瑞, 等. 融合PMV物理方程和Attention-LSTM神经网络的铁路客站旅客舒适度模型研究[J]. 中国铁路, 2024(5): 16-24.
[7] 钟垚, 曾胜兰, 宋雨润. 四川盆地大气污染物质量浓度时空变化特征[J]. 成都信息工程大学学报, 2023, 38(1): 107-115.
[8] 柳霄钰, 梁蓝元, 何雨璐, 等. 四川盆地PM2.5浓度与人口暴露水平的时空变化特征[J/OL]. 地球环境学报, 2026: 1-17.
https://link.cnki.net/urlid/61.1482.x.20260401.1359.008, 2026-05-22.
[9] 郑梓玲. 基于Attention-LSTM模型的PM2.5浓度预测: 以成都市为例[D]: [硕士学位论文]. 广州: 暨南大学, 2023.
[10] Hochreiter, S. and Schmidhuber, J. (1997) Long Short-Term Memory. Neural Computation, 9, 1735-1780.
https://doi.org/10.1162/neco.1997.9.8.1735
[11] Bahdanau, D., Cho, K. and Bengio, Y. (2015) Neural Machine Translation by Jointly Learning to Align and Translate. arXiv: 1409.0473.
https://arxiv.org/abs/1409.0473