A Comparative Study of Machine Learning Models for Hourly Forecasting of Air Temperature and Relative Humidity
AI 摘要
该研究比较了多种机器学习模型在重庆市气温和相对湿度小时预测中的表现,XGBoost表现最佳。
主要贡献
- 比较多种机器学习模型在气象预测中的应用
- 提出适用于山区城市气象预测的有效方法
- 证明XGBoost在气象时间序列预测中的有效性
方法论
采用统一框架进行数据预处理、特征工程和时间序列验证,系统评估各模型在预测精度和鲁棒性方面的表现。
原文摘要
Accurate short-term forecasting of air temperature and relative humidity is critical for urban management, especially in topographically complex cities such as Chongqing, China. This study compares seven machine learning models: eXtreme Gradient Boosting (XGBoost), Random Forest, Support Vector Regression (SVR), Multi-Layer Perceptron (MLP), Decision Tree, Long Short-Term Memory (LSTM) networks, and Convolutional Neural Network (CNN)-LSTM (CNN-LSTM), for hourly prediction using real-world open data. Based on a unified framework of data preprocessing, lag-feature construction, rolling statistical features, and time-series validation, the models are systematically evaluated in terms of predictive accuracy and robustness. The results show that XGBoost achieves the best overall performance, with a test mean absolute error (MAE) of 0.302 °C for air temperature and 1.271% for relative humidity, together with an average R2 of 0.989 across the two forecasting tasks. These findings demonstrate the strong effectiveness of tree-based ensemble learning for structured meteorological time-series forecasting and provide practical guidance for intelligent meteorological forecasting in mountainous cities.