Application of Data Science for COVID-19 Modeling in Africa: A Comparative Study of ARIMA and ANN Models, a Retrospective Time-Series Analysis.
Kofi Afriyie Nyamekye, Eric Sampane-Donkor, Josephine Aboagye, Felicity Bennin, Haruna Latif, Justice Moses K Aheto
University of Professional Studies Accra Ghana. · University of Ghana Medical School Accra Ghana.
Key points
From the paper's conclusion- South Africa presented the greatest forecasting challenge due to high volatility and multiple distinct waves, though ANN substantially outperformed ARIMA in this setting, reducing RMSE by 56% and MAPE by 51%.
Abstract
BACKGROUND AND AIMS: The COVID-19 pandemic highlighted the urgent need for robust forecasting tools to guide public health responses in Africa, where data infrastructure remains limited, and epidemic dynamics differ substantially from high-income settings. METHODS: Daily COVID-19 surveillance data were obtained from the WHO COVID-19 Dashboard for Egypt, Ghana, Kenya, Morocco, Nigeria, South Africa, and Tunisia. ARIMA models were fitted using the auto.arima function in R, with stationarity assessed using Augmented Dickey-Fuller (ADF) and Kwiatkowski-Phillips-Schmidt-Shin (KPSS) tests. ANN models were implemented using the nnetar algorithm, configured with lag parameter p = 7, seasonal lag p = 1, hidden layer size of 10 nodes, and 20 repeats. Model accuracy was evaluated using root mean square error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and R-squared (R 2). RESULTS: ARIMA outperformed ANN for four countries (Egypt, Kenya, Morocco, Nigeria), while ANN performed better for three countries (Ghana, Tunisia, South Africa). Egypt achieved the highest forecast accuracy (MAPE = 0.09% for ARIMA). South Africa presented the greatest forecasting challenge due to high volatility and multiple distinct waves, though ANN substantially outperformed ARIMA in this setting, reducing RMSE by 56% and MAPE by 51%. Negative R 2 values for six of seven countries reflected the structural inability of backward-looking autoregressive models to anticipate variant-driven wave peaks, consistent with limitations documented in COVID-19 forecasting literature. CONCLUSION: Neither model is universally superior; model selection should be context-dependent. ANN is recommended for settings with stable case fatality rates and complex non-linear dynamics (e.g., Ghana) and for high-volume settings with multiple distinct waves (e.g., South Africa). ARIMA is recommended for moderate-transmission settings with more linear patterns where interpretability is prioritized.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Forecasting Weekly Influenza Detections in South Africa Using SARIMA and LSTM ModelsJournal of Information Systems and Informatics · 2026
- Infectious disease prediction model based on optimized deep learning algorithmFrontiers in Public Health · 2026
- Combination forecasting of COVID-19 in Bangladesh: guiding public health policy through integrated time series, ML, and DL modelsBMC Infectious Diseases · 2025
- A comparative evaluation of multiple machine learning approaches for forecasting dengue outbreaks in BangladeshScientific Reports · 2025
- Forecasting monthly AIDS incidence in China via LSTM-CNN parallel fusion: a comparative study of 10 predictive models.Frontiers in public health · 2026
- Forecasting Acute Respiratory Infections (ARI) and Influenza Like Illness (ILI) in EuropeEuropean Journal of Public Health · 2026