IDEAS home Printed from https://ideas.repec.org/a/wly/jijmms/v2025y2025i1n4795841.html

Forecasting Temperature Time Series Data Using Combined Statistical and Deep Learning Methods: A Case Study of Nairobi County Daily Temperature

Author

Listed:
  • John Kamwele Mutinda
  • Amos Kipkorir Langat
  • Samuel Musili Mwalili

Abstract

Accurate temperature forecasting is of paramount importance across various sectors, influencing decision‐making processes and impacting numerous aspects of daily life. This study analyzes temperature time series data from the Nairobi County in Kenya, aiming to develop accurate hybrid time series forecasting models. Initial statistical tests revealed significant nonstationarity and nonlinearity in the data, prompting the adoption of specialized modeling techniques. Using variational mode decomposition (VMD), the raw time series was decomposed into interpretable components, enhancing feature representation and understanding of temperature dynamics. Hybrid forecasting models were then constructed by integrating VMD with both statistical (autoregressive integrated moving average [ARIMA]) and deep learning (gated recurrent unit [GRU], long short‐term memory [LSTM], and Transformer) architectures. Evaluation metrics, including root mean squared error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and R‐squared, highlighted the superiority of hybrid models over individual approaches, particularly those combining VMD with ARIMA, GRU, LSTM, and Transformer. The experimental results for temperature prediction show that the hybrid models combining VMD with statistical and deep learning networks achieved improved forecasting accuracy compared with baseline models. Specifically, the VMD–ARIMA–GRU model emerged as the top performer, demonstrating the lowest error metrics and highest explanatory power. With a low RMSE of 0.710090, MAE of 0.561726, and MAPE of 2.808193%, the model demonstrates remarkable accuracy in predicting temperature values. In addition, the high R‐squared value of 0.779234 indicates that approximately 77.92% of the variance in the observed data is explained by the model, showcasing its robustness and effectiveness in capturing the underlying patterns in temperature time series data. Overall, this study underscores the importance of VMD in preprocessing data to enhance feature representation and forecasting accuracy. By combining statistical and deep learning methods, hybrid models incorporating VMD offer a comprehensive solution for accurate temperature prediction, with implications for climate modeling and environmental monitoring.

Suggested Citation

  • John Kamwele Mutinda & Amos Kipkorir Langat & Samuel Musili Mwalili, 2025. "Forecasting Temperature Time Series Data Using Combined Statistical and Deep Learning Methods: A Case Study of Nairobi County Daily Temperature," International Journal of Mathematics and Mathematical Sciences, John Wiley & Sons, vol. 2025(1).
  • Handle: RePEc:wly:jijmms:v:2025:y:2025:i:1:n:4795841
    DOI: 10.1155/ijmm/4795841
    as

    Download full text from publisher

    File URL: https://doi.org/10.1155/ijmm/4795841
    Download Restriction: no

    File URL: https://libkey.io/10.1155/ijmm/4795841?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Franses,Philip Hans & Dijk,Dick van, 2000. "Non-Linear Time Series Models in Empirical Finance," Cambridge Books, Cambridge University Press, number 9780521770415, August.
    2. Gangqiang Li & Huaizhi Wang & Shengli Zhang & Jiantao Xin & Huichuan Liu, 2019. "Recurrent Neural Networks Based Photovoltaic Power Forecasting Approach," Energies, MDPI, vol. 12(13), pages 1-17, July.
    3. Qian, Zheng & Pei, Yan & Zareipour, Hamidreza & Chen, Niya, 2019. "A review and discussion of decomposition-based hybrid models for wind energy forecasting applications," Applied Energy, Elsevier, vol. 235(C), pages 939-953.
    4. Niu, Dongxiao & Yu, Min & Sun, Lijie & Gao, Tian & Wang, Keke, 2022. "Short-term multi-energy load forecasting for integrated energy systems based on CNN-BiGRU optimized by attention mechanism," Applied Energy, Elsevier, vol. 313(C).
    5. Alexander J. McNeil, 2021. "Modelling Volatile Time Series with V-Transforms and Copulas," Risks, MDPI, vol. 9(1), pages 1-26, January.
    6. Alexander J. McNeil, 2020. "Modelling volatile time series with v-transforms and copulas," Papers 2002.10135, arXiv.org, revised Jan 2021.
    7. Wang, Kejun & Qi, Xiaoxia & Liu, Hongda, 2019. "Photovoltaic power forecasting based LSTM-Convolutional Network," Energy, Elsevier, vol. 189(C).
    8. Etaf Alshawarbeh & Alanazi Talal Abdulrahman & Eslam Hussam, 2023. "Statistical Modeling of High Frequency Datasets Using the ARIMA-ANN Hybrid," Mathematics, MDPI, vol. 11(22), pages 1-17, November.
    9. Amir Mosavi & Mohsen Salimi & Sina Faizollahzadeh Ardabili & Timon Rabczuk & Shahaboddin Shamshirband & Annamaria R. Varkonyi-Koczy, 2019. "State of the Art of Machine Learning Models in Energy Systems, a Systematic Review," Energies, MDPI, vol. 12(7), pages 1-42, April.
    10. Bollerslev, Tim, 1987. "A Conditionally Heteroskedastic Time Series Model for Speculative Prices and Rates of Return," The Review of Economics and Statistics, MIT Press, vol. 69(3), pages 542-547, August.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. John Kamwele Mutinda & Amos Kipkorir Langat & Samuel Musili Mwalili, 2025. "Forecasting Airtel Stock Prices Through Decomposition and Integration: A Novel VMD‐GARCH‐LSTM Framework," International Journal of Mathematics and Mathematical Sciences, John Wiley & Sons, vol. 2025(1).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ma, Zhengjing & Mei, Gang, 2022. "A hybrid attention-based deep learning approach for wind power prediction," Applied Energy, Elsevier, vol. 323(C).
    2. Cui, Xiwen & Yu, Xiaoyu & Niu, Haowei & Niu, Dongxiao & Liu, Da, 2025. "A novel data-driven multi-step wind power point-interval prediction framework integrating sliding window-based two-layer adaptive decomposition and multi-objective optimization for balancing prediction accuracy and stability," Applied Energy, Elsevier, vol. 397(C).
    3. Lim, G.C. & McNelis, Paul D., 2008. "Computational Macroeconomics for the Open Economy," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262123061, December.
    4. Tim Bollerslev, 2008. "Glossary to ARCH (GARCH)," CREATES Research Papers 2008-49, Department of Economics and Business Economics, Aarhus University.
    5. Munyao, Jackson Ndoto & Oluoch, Lillian Achola & Iftikhar, Hasnain & Rodrigues, Paulo Canas, 2025. "Recurrent neural networks for hierarchical time series forecasting: An application to the S&P 500 market value," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 678(C).
    6. Yan, Jie & Li, Xiuyu & Wang, Han & Si, Fangyuan & Qiao, Wenjie & Liu, Yongqian, 2025. "The economic value of wind power forecasting: a data-driven method and its application in various scenarios," Energy, Elsevier, vol. 340(C).
    7. Ahmet Faruk Aysan & Asad Ul Islam Khan & Humeyra Topuz, 2021. "Bitcoin and Altcoins Price Dependency: Resilience and Portfolio Allocation in COVID-19 Outbreak," Risks, MDPI, vol. 9(4), pages 1-13, April.
    8. Mario Tovar & Miguel Robles & Felipe Rashid, 2020. "PV Power Prediction, Using CNN-LSTM Hybrid Neural Network Model. Case of Study: Temixco-Morelos, México," Energies, MDPI, vol. 13(24), pages 1-15, December.
    9. Duan, Jikai & Zuo, Hongchao & Bai, Yulong & Chang, Mingheng & Chen, Xiangyue & Wang, Wenpeng & Ma, Lei & Chen, Bolong, 2023. "A multistep short-term solar radiation forecasting model using fully convolutional neural networks and chaotic aquila optimization combining WRF-Solar model results," Energy, Elsevier, vol. 271(C).
    10. Rizk M Rizk-Allah & Lobna M Abouelmagd & Ashraf Darwish & Vaclav Snasel & Aboul Ella Hassanien, 2024. "Explainable AI and optimized solar power generation forecasting model based on environmental conditions," PLOS ONE, Public Library of Science, vol. 19(10), pages 1-33, October.
    11. Rodríguez, Fermín & Martín, Fernando & Fontán, Luis & Galarza, Ainhoa, 2021. "Ensemble of machine learning and spatiotemporal parameters to forecast very short-term solar irradiation to compute photovoltaic generators’ output power," Energy, Elsevier, vol. 229(C).
    12. Rita Teixeira & Adelaide Cerveira & Eduardo J. Solteiro Pires & José Baptista, 2024. "Advancing Renewable Energy Forecasting: A Comprehensive Review of Renewable Energy Forecasting Methods," Energies, MDPI, vol. 17(14), pages 1-30, July.
    13. Hao Zhen & Dongxiao Niu & Min Yu & Keke Wang & Yi Liang & Xiaomin Xu, 2020. "A Hybrid Deep Learning Model and Comparison for Wind Power Forecasting Considering Temporal-Spatial Feature Extraction," Sustainability, MDPI, vol. 12(22), pages 1-24, November.
    14. Zhang, Yijie & Ma, Tao & Yang, Hongxing, 2025. "Prediction-based optimal system design of an improved building-to-vehicle-to-building energy community under different operation strategies concerning three PV installation types," Energy, Elsevier, vol. 341(C).
    15. Elham M. Al-Ali & Yassine Hajji & Yahia Said & Manel Hleili & Amal M. Alanzi & Ali H. Laatar & Mohamed Atri, 2023. "Solar Energy Production Forecasting Based on a Hybrid CNN-LSTM-Transformer Model," Mathematics, MDPI, vol. 11(3), pages 1-19, January.
    16. Xu, Fang Yuan & Tang, Rui Xin & Xu, Si Bin & Fan, Yi Liang & Zhou, Ya & Zhang, Hao Tian, 2021. "Neural network-based photovoltaic generation capacity prediction system with benefit-oriented modification," Energy, Elsevier, vol. 223(C).
    17. Perez-Alonso, Alicia, 2007. "A bootstrap approach to test the conditional symmetry in time series models," Computational Statistics & Data Analysis, Elsevier, vol. 51(7), pages 3484-3504, April.
    18. Zang, Haixiang & Xu, Ruiqi & Cheng, Lilin & Ding, Tao & Liu, Ling & Wei, Zhinong & Sun, Guoqiang, 2021. "Residential load forecasting based on LSTM fusing self-attention mechanism with pooling," Energy, Elsevier, vol. 229(C).
    19. Ryan Lemand, 2003. "The Contagion Effect Between the Volatilities of the NASDAQ-100 and the IT.CA :A Univariate and A Bivariate Switching Approach," Econometrics 0307002, University Library of Munich, Germany, revised 07 Dec 2020.
    20. Ze Wu & Feifan Pan & Dandan Li & Hao He & Tiancheng Zhang & Shuyun Yang, 2022. "Prediction of Photovoltaic Power by the Informer Model Based on Convolutional Neural Network," Sustainability, MDPI, vol. 14(20), pages 1-16, October.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:wly:jijmms:v:2025:y:2025:i:1:n:4795841. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: https://onlinelibrary.wiley.com/journal/6396 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.