Research Article

Weather prediction using CNN-LSTM for time series analysis: A case study on Delhi temperature data

Bangyu Li1,*, Yang Qian2
1. Glasgow College, University of Electronic Science and Technology of China, Chengdu, China
2. Viterbi School of Engineering, University of Southern California, Los Angeles, California, USA

* Corresponding author: [email protected]

Abstract

As global climate change intensifies, accurate weather forecasting is increasingly crucial for sectors such as agriculture, energy management, and environmental protection. Traditional methods, which rely on physical and statistical models, often struggle with complex, nonlinear, and time-varying data, underscoring the need for more advanced techniques. This study explores a hybrid CNN-LSTM model to enhance temperature forecasting accuracy for the Delhi region, using historical meteorological data from 1996 to 2017. We employed both direct and indirect methods, including comprehensive data preprocessing and exploratory analysis, to construct and train our model. The CNN component effectively extracts spatial features, while the LSTM captures temporal dependencies, leading to improved prediction accuracy. Experimental results indicate that the CNN-LSTM model significantly outperforms traditional forecasting methods in terms of both accuracy and stability, with a mean square error (MSE) of 3.26217 and a root mean square error (RMSE) of 1.80615. The hybrid model demonstrates its potential as a robust tool for temperature prediction, offering valuable insights for meteorological forecasting and related fields. Future research should focus on optimizing model architecture, exploring additional feature extraction techniques, and addressing challenges such as overfitting and computational complexity. This approach not only advances temperature forecasting but also provides a foundation for applying deep learning to other time series forecasting tasks.

Keywords: Time series forecasting; convolutional neural networks (CNN); long short-term memory networks (LSTM)
Published: September 20, 2024
DOI: 10.54254/2755-2721/92/20241738
Volume: ACE Vol.92
pp. 121-127
Download PDF

References

  1. E. Kalnay et al., "The NCEP/NCAR 40-Year Reanalysis Project," Bull. Amer. Meteor. Soc., vol. 77, no. 3, pp. 437-471, 1996.
  2. Y. LeCun, Y. Bengio, and G. Hinton, "Deep learning," Nature, vol. 521, pp. 436-444, 2015.
  3. S. Hochreiter and J. Schmidhuber, "Long short-term memory," Neural Comput., vol. 9, no. 8, pp. 1735-1780, 1997.
  4. Y. Qin et al., "A dual-stage attention-based recurrent neural network for time series prediction," in Proc. 26th Int. Joint Conf. Artif. Intell., 2017, pp. 2627-2633.
  5. F. A. Gers, J. Schmidhuber, and F. Cummins, "Learning to forget: Continual prediction with LSTM," Neural Comput., vol. 12, no. 10, pp. 2451-2471, 2000.
  6. M. Kiranyaz, T. Ince, and M. Gabbouj, "Real-time patient-specific ECG classification by 1-D convolutional neural networks," IEEE Trans. Biomed. Eng., vol. 63, no. 3, pp. 664-675, Mar. 2016.
  7. X. Shi et al., "Convolutional LSTM network: A machine learning approach for precipitation nowcasting," in Proc. 29th Conf. Neural Inf. Process. Syst., 2015, pp. 802-810.
  8. R. Chevallier et al., "Global real-time precipitation forecasting with a neural network approach," in Proc. IEEE Int. Conf. Big Data (Big Data), 2018, pp. 3849-3858.
  9. A. Ahmed and J. A. S. Alalana, "Temperature prediction using LSTM neural network," in Proc. IEEE 9th International Conference on Electronics (ICEL), 2020, pp. 210-215.
  10. H. Wang et al., "Temperature forecasting using deep learning methods: A comprehensive review," Energy Reports, vol. 6, pp. 232-245, 2020.
  11. Y. Zhang et al., "Time series temperature forecasting with convolutional neural networks," in Proc. IEEE International Conference on Data Mining, 2019, pp. 734-739.