XGBoost and SARIMA for varicella case counts forecasting: a time-series study with SHAP-based interpretation of time-lagged vaccination effects in Suining, China, 2010–2025

Background Varicella, caused by the varicella-zoster virus, remains a substantial public health burden. While live attenuated varicella vaccines have been available since the 1980s, characterizing the non-linear and time-lagged predictive associations between vaccination activity and disease occurrence is critical for evidence-based immunization planning. This study aimed to develop and compare SARIMA and XGBoost models for forecasting monthly varicella case counts and to characterize the temporal patterns of vaccination-related predictive associations using SHAP analysis, based on surveillance data from Suining City, China, from 2010 to 2025. Methods Monthly varicella case counts and monthly counts of administered first- and second-dose varicella vaccines from January 2010 to December 2025 were obtained from the Suining Center for Disease Control and Prevention. Data from 2010 to 2024 formed the training set, and data from 2025 formed the test set. A seasonal SARIMA model was fitted after differencing based on stationarity tests. An XGBoost model was trained with 61 engineered features, including lagged case counts, rolling statistics, calendar indicators, temporal trends, and vaccination covariates at lags of 0–12 months. Hyperparameters were tuned via randomized search with time-series cross-validation. SARIMA generated a fixed 12-month-ahead forecast for 2025, whereas XGBoost produced one-step-ahead forecasts for the same period, using observed covariate values for each month; because these values would not have been available at a December 2024 forecast origin, the two sets of results are not directly comparable. Model performance was evaluated using root mean squared error (RMSE), mean absolute error (MAE) and mean absolute percentage error (MAPE). SHAP (SHapley Additive exPlanations) values were computed to interpret feature contributions. Results A total of 18,688 varicella cases were reported during the study period. On the 2025 test period, the one-step-ahead XGBoost forecasts yielded an RMSE of 35.20, an MAE of 31.26 and a MAPE% of 58.78, whereas the 12-month-ahead SARIMA forecast yielded an RMSE of 45.54, an MAE of 35.79 and a MAPE% of 64.32. Accuracy in predicting seasonal peaks was not separately evaluated. SHAP analysis identified autoregressive features, particularly Cases_Lag12, as the strongest predictors. Among vaccination features, the first-dose count at a 9-month lag (Vax1_Lag9) showed the highest predictive importance, indicating a predictive association between vaccination activity and varicella incidence at this lag. Both models overpredicted most months of 2025, so much of the reported percentage error reflects systematic bias rather than dispersion. Against a seasonal-naïve benchmark that repeats the 2024 monthly values (RMSE 55.49, MAE 45.33, MAPE 76.13), the 12-month-ahead SARIMA forecast showed lower errors. Conclusion SHAP analysis identified lagged first-dose vaccination counts, particularly at a 9-month lag, as modest predictors within the fitted model; these associations are predictive rather than causal and require confirmation in independent settings. Further evaluation across forecast periods and settings is needed before considering operational use in surveillance or vaccination-program monitoring. The comparison reported here is between two modeling workflows applied to a single regional series and should not be read as a ranking of forecasting methods.

Authors

Publication Details

Journal
Frontiers in Public Health
Published
2026-12-02
DOI
https://doi.org/10.3389/fpubh.2026.1992381
Primary Topic
Herpesvirus Infections and Treatments
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

XGBoost and SARIMA for varicella case counts forecasting: a time-series study with SHAP-based interpretation of time-lagged vaccination effects in Suining, China, 2010–2025

邓胤铭, Jing Qi, Yiyun Liu, Peng Zuo et al.
Frontiers in Public Health
Herpesvirus Infections and Treatments
article

XGBoost and SARIMA for varicella case counts forecasting: a time-series study with SHAP-based interpretation of time-lagged vaccination effects in Suining, China, 2010–2025

邓胤铭, Jing Qi, Yiyun Liu, Peng Zuo, Wangtao Yu, Junlin Li
article en

Abstract

Background Varicella, caused by the varicella-zoster virus, remains a substantial public health burden. While live attenuated varicella vaccines have been available since the 1980s, characterizing the non-linear and time-lagged predictive associations between vaccination activity and disease occurrence is critical for evidence-based immunization planning. This study aimed to develop and compare SARIMA and XGBoost models for forecasting monthly varicella case counts and to characterize the temporal patterns of vaccination-related predictive associations using SHAP analysis, based on surveillance data from Suining City, China, from 2010 to 2025. Methods Monthly varicella case counts and monthly counts of administered first- and second-dose varicella vaccines from January 2010 to December 2025 were obtained from the Suining Center for Disease Control and Prevention. Data from 2010 to 2024 formed the training set, and data from 2025 formed the test set. A seasonal SARIMA model was fitted after differencing based on stationarity tests. An XGBoost model was trained with 61 engineered features, including lagged case counts, rolling statistics, calendar indicators, temporal trends, and vaccination covariates at lags of 0–12 months. Hyperparameters were tuned via randomized search with time-series cross-validation. SARIMA generated a fixed 12-month-ahead forecast for 2025, whereas XGBoost produced one-step-ahead forecasts for the same period, using observed covariate values for each month; because these values would not have been available at a December 2024 forecast origin, the two sets of results are not directly comparable. Model performance was evaluated using root mean squared error (RMSE), mean absolute error (MAE) and mean absolute percentage error (MAPE). SHAP (SHapley Additive exPlanations) values were computed to interpret feature contributions. Results A total of 18,688 varicella cases were reported during the study period. On the 2025 test period, the one-step-ahead XGBoost forecasts yielded an RMSE of 35.20, an MAE of 31.26 and a MAPE% of 58.78, whereas the 12-month-ahead SARIMA forecast yielded an RMSE of 45.54, an MAE of 35.79 and a MAPE% of 64.32. Accuracy in predicting seasonal peaks was not separately evaluated. SHAP analysis identified autoregressive features, particularly Cases_Lag12, as the strongest predictors. Among vaccination features, the first-dose count at a 9-month lag (Vax1_Lag9) showed the highest predictive importance, indicating a predictive association between vaccination activity and varicella incidence at this lag. Both models overpredicted most months of 2025, so much of the reported percentage error reflects systematic bias rather than dispersion. Against a seasonal-naïve benchmark that repeats the 2024 monthly values (RMSE 55.49, MAE 45.33, MAPE 76.13), the 12-month-ahead SARIMA forecast showed lower errors. Conclusion SHAP analysis identified lagged first-dose vaccination counts, particularly at a 9-month lag, as modest predictors within the fitted model; these associations are predictive rather than causal and require confirmation in independent settings. Further evaluation across forecast periods and settings is needed before considering operational use in surveillance or vaccination-program monitoring. The comparison reported here is between two modeling workflows applied to a single regional series and should not be read as a ranking of forecasting methods.

Frontiers in Public HealthVol. 14
Herpesvirus Infections and Treatments
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon