Hybrid LSTM-RNN And Sarima Modeling For Time Series Temperature Prediction: The Case Of Antananarivo, Madagascar
Abstract
This study evaluates various approaches for temperature forecasting in Antananarivo, Madagascar, by comparing the performance of LSTM and SARIMA models, as well as their hybrid combinations. One of the explored strategies involves using an LSTM model to generate an initial forecast, and then modeling its residuals with SARIMA to refine the results. Another approach relies on using SARIMA to produce a preliminary estimate, whose predictions are subsequently incorporated into an LSTM model to better capture the complex dynamics of temperature variations. The goal is to identify the method that offers the best accuracy and stability to improve the reliability of weather forecasts.
While SARIMA has proven effective for linear data, it struggles to capture the non-linear fluctuations of local temperatures. The LSTM model, with its ability to model long-term dependencies and non-linearities, aims to address these limitations.
Our study demonstrated that combining forecasting models, particularly the SARIMA_LSTM hybrid approach, offers superior accuracy compared to other models for temperature forecasting in Antananarivo. This approach, which integrates exogenous variables into the SARIMA model and uses LSTM to refine forecasts by modeling residuals, consistently produced the most accurate results.
The performance of the models was rigorously evaluated using several statistical metrics and tests. We used the Root Mean Square Error (RMSE) to measure forecast accuracy, and Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots to analyze the temporal structure of the data and residuals. Additionally, we applied the Ljung-Box test to verify the absence of residual autocorrelation, and analyzed skewness and kurtosis to understand the distribution of residuals. Finally, the heteroscedasticity test was performed to evaluate the constancy of error variance.
These analyses confirmed that the SARIMA_LSTM model, by leveraging the strengths of each constituent model, successfully captured both seasonal trends and complex relationships in the temperature data, leading to more reliable forecasts.
Keywords
Full Text:
PDFReferences
Box,G.E.P.,Jenkins,G.M.,Reinsel,G.C.,&Ljung,G.M. (2015). Time Series Analysis: Forecasting and Control (5th Edition). Wiley.
Hyndman, R. J., & Athanasopoulos, G., 2018, Forecasting: Principles and Practice (2nd ed.), OTexts.
Brockwell, P. J., & Davis, R. A., 1991, Time Series: Theory and Methods (2nd ed.), Springer-Verlag.
Arthus Anin, 2024, "Séries temporelles : SARIMA pour initiation aux prédictions temporelles", Ivoire Talents Labs
Veysel Süleyman Yavuz, 7 feb. 2025, “ Forecasting monthly rainfall and tempera-ture patterns in Van Province, Türkiye, using ARIMA and SARIMA models: a long-term climate analysis”, Journal of Water and Climate Change, Volume 16, Numéro 2, pages 800–818
Sepp Hochreiter, Jürgen Schmidhuber, 1997, “Long Short-Term Memory,” Neural Computation, Volume 9, Issue 8, pages 1735–1780.
Lipton, Z. C., Berkowitz, J., & Elkan, C. (2015). «A Critical Review of Recurrent Neural Networks for Sequence Learning », arXiv preprint, arXiv : 1506.00019.
Sepp Hochreiter, Jürgen Schmidhuber, 1997, “Long Short-Term Memory,” Neural Computation, Volume 9, Issue 8, pages 1735–1780.
Ljung, G. M., & Box, G. E. P. (1978). On a measure of a lack of fit in time series mod-els. Biometrika, 65(2), 297-303. https://doi.org/10.1093/biomet/65.2.297
Brockwell, P. J., & Davis, R. A. (2002). Introduction to Time Series and Forecast-ing. Springer Science & Business Media, pp. 292-298.
Wooldridge, J. M. (2010). Econometric Analysis of Cross Section and Panel Data. MIT Press, pp. 267-275.
Tabachnick, B. G., & Fidell, L. S. (2013). Using Multivariate Statistics (6th ed.). Pearson Education, pp. 67-72.
DOI: http://dx.doi.org/10.52155/ijpsat.v50.1.7123
Refbacks
- There are currently no refbacks.
Copyright (c) 2025 RALIJAONA Herilala Tafitasoloniaina, RANDRIANJA Malanto Miangaly

This work is licensed under a Creative Commons Attribution 4.0 International License.