Comparative evaluation of five machine learning models for forecasting monthly outpatient visits in a tertiary traditional Chinese medicine rehabilitation hospital
Background Outpatient volume forecasting supports hospital staffing and resource planning. Machine learning models have shown promise for clinical demand forecasting, but comparative evidence in traditional Chinese medicine rehabilitation hospitals is scarce, and the value of meteorological variables remains controversial. Methods Monthly outpatient visits (January 2020 to December 2025, n = 72) and eight meteorological variables were collected from a tertiary grade A TCM rehabilitation hospital. Thirteen calendar, lag and rolling features were engineered. Data were split chronologically into training (2020–2023, n = 48), validation (2024, n = 12) and test (2025, n = 12) sets. Random forest, XGBoost, support vector regression, k -nearest neighbors and multilayer perceptron were tuned on the validation set, refitted on training plus validation, and evaluated on the test set by MAE, RMSE, MAPE, R 2, and MASE. A SARIMA model served as statistical benchmark. Meteorological ablation, SHAP analysis, descriptive paired loss comparisons and residual diagnostics were performed in R 4.4.1. Results XGBoost had the lowest test MAE among the five models and SARIMA (MAE 2,812; RMSE 3,366; MAPE 12.4%; MASE 1.58), followed by RF (2,968), KNN (3,162), SARIMA (3,733), MLP (5,023), and SVR (7,163). Adding the eight meteorological features worsened test MAE of all five models by 0.8%−43.2%. SHAP identified rolling means, calendar month and lag-12 visits as dominant. Paired loss comparisons showed a consistent but modest relative advantage of XGBoost over SARIMA, whereas a fixed-origin constant benchmark was more accurate on MAE, RMSE, and MAPE alike, so the comparison supports a relative ranking rather than an operational advantage over simple rules. XGBoost residuals showed no autocorrelation; forecasts were systematically low during the steep growth of 2025. Conclusion Gradient-boosted trees gave the most accurate monthly forecasts among the compared methods, while meteorological features added no predictive value at this aggregate monthly level. ML-based forecasting is feasible for outpatient resource planning in TCM hospitals. The XGBoost advantage over SARIMA is a consistent but modest relative advantage on a 12-month test set, not evidence of an operational advantage over simple forecasting procedures.
Authors
- Huayu Fang
- Zhenfei Tang (ORCID: https://orcid.org/0000-0002-5965-6376)
- Qin Wang (ORCID: https://orcid.org/0000-0001-6514-5874)
- Zhigang Lin (ORCID: https://orcid.org/0009-0002-1043-9335)
- Jing Meng
- Chunchun Chen
- Yan Cao
- Xiaofang Wang
- Shenggen Wu
Institutions
- Fujian University of Traditional Chinese Medicine (CN)
Publication Details
- Journal
- Frontiers in Big Data
- Published
- 2026-11-30
- DOI
- https://doi.org/10.3389/fdata.2026.2011769
- Primary Topic
- Healthcare Operations and Scheduling Optimization
- Type
- article
- Field-Weighted Citation Impact
- 0.00