IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0323070.html
   My bibliography  Save this article

Structural time series modelling for weekly forecasting of enterovirus outpatient, inpatient, and emergency department visits

Author

Listed:
  • Cathy WS Chen
  • Leon L Hsieh
  • Betty XY Chu

Abstract

Objectives: Enteroviruses pose a substantial public health challenge in Taiwan, often leading to increased healthcare visits. This study utilizes Taiwan CDC databases to analyse weekly enterovirus case data from emergency departments (EDs), as well as outpatient and inpatient settings. The objectives are to understand infection patterns through model fitting, forecast future visits for proactive epidemic management, and improve forecast accuracy by incorporating holiday effects. This approach enhances the reliability of predictions, supporting timely and effective surveillance and early detection of significant case surges.Methods: This study divides the time series data into an in-sample period (2016—2023) and an out-of-sample period covering weeks 1 to 27 in 2024. Using an expanding window approach, the analysis applies Bayesian structural time series (BSTS) models, exponential smoothing, and random forest to forecast one-week-ahead cases over the 27 weeks in 2024. The study evaluates forecast accuracy using five key metrics and identifies significant surges in cases by detecting values that exceed the 95% prediction intervals, enhancing anomaly detection.Results: The results demonstrate that BSTS models, which incorporate trends, seasonal variations, summer, and Lunar New Year holiday effects, achieve superior forecasting accuracy. Specifically, by accounting for the Lunar New Year holiday within the out-of-sample period, the models attain mean absolute percentage error (MAPE) values of 6.509% for non-ED visits and 12.645% for ED visits.Conclusions: The BSTS model effectively addresses nonlinearity and non-stationarity and adapts well to structural changes. This study highlights the importance of holiday adjustments, particularly for the Lunar New Year, in improving forecast accuracy during periods of unusual healthcare demand. These adjustments enhance the BSTS model performance for predicting irregular healthcare service demand.

Suggested Citation

  • Cathy WS Chen & Leon L Hsieh & Betty XY Chu, 2025. "Structural time series modelling for weekly forecasting of enterovirus outpatient, inpatient, and emergency department visits," PLOS ONE, Public Library of Science, vol. 20(5), pages 1-16, May.
  • Handle: RePEc:plo:pone00:0323070
    DOI: 10.1371/journal.pone.0323070
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0323070
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0323070&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0323070?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. Harvey,Andrew C., 1991. "Forecasting, Structural Time Series Models and the Kalman Filter," Cambridge Books, Cambridge University Press, number 9780521405737, Enero-Abr.
    Full references (including those not matched with items on IDEAS)

    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. Avanzi, Benjamin & Taylor, Greg & Vu, Phuong Anh & Wong, Bernard, 2020. "A multivariate evolutionary generalised linear model framework with adaptive estimation for claims reserving," Insurance: Mathematics and Economics, Elsevier, vol. 93(C), pages 50-71.
    2. Prilly Oktoviany & Robert Knobloch & Ralf Korn, 2021. "A machine learning-based price state prediction model for agricultural commodities using external factors," Decisions in Economics and Finance, Springer;Associazione per la Matematica, vol. 44(2), pages 1063-1085, December.
    3. David Bolder & Shudan Liu, 2007. "Examining Simple Joint Macroeconomic and Term-Structure Models: A Practitioner's Perspective," Staff Working Papers 07-49, Bank of Canada.
    4. Yuo-Hsien Shiau & Su-Fen Yang & Rishan Adha & Syamsiyatul Muzayyanah, 2022. "Modeling Industrial Energy Demand in Relation to Subsector Manufacturing Output and Climate Change: Artificial Neural Network Insights," Sustainability, MDPI, vol. 14(5), pages 1-18, March.
    5. Clements, Kenneth W. & Fry, Renée, 2008. "Commodity currencies and currency commodities," Resources Policy, Elsevier, vol. 33(2), pages 55-73, June.
    6. Faust, Jon & Gupta, Abhishek, 2010. "Posterior Predictive Analysis for Evaluating DSGE Models," MPRA Paper 26721, University Library of Munich, Germany.
    7. Rutger-Jan Lange & Coen N. Teulings, 2021. "The option value of vacant land: Don't build when demand for housing is booming," Tinbergen Institute Discussion Papers 21-022/IV, Tinbergen Institute.
    8. Matteo Barigozzi & Matteo Luciani, 2019. "Quasi Maximum Likelihood Estimation and Inference of Large Approximate Dynamic Factor Models via the EM algorithm," Papers 1910.03821, arXiv.org, revised Sep 2024.
    9. Zirogiannis, Nikolaos & Tripodis, Yorghos, 2013. "A Generalized Dynamic Factor Model for Panel Data: Estimation with a Two-Cycle Conditional Expectation-Maximization Algorithm," Working Paper Series 142752, University of Massachusetts, Amherst, Department of Resource Economics.
    10. Tobias Hartl & Roland Jucknewitz, 2022. "Approximate state space modelling of unobserved fractional components," Econometric Reviews, Taylor & Francis Journals, vol. 41(1), pages 75-98, January.
    11. Gardner, Jesse & Sloan, Richard G. & Yoon, Joon Sang, 2024. "Distinguishing between recurring and nonrecurring components of earnings using unobserved components modeling," Journal of Accounting and Economics, Elsevier, vol. 78(1).
    12. Moshe Buchinsky & Phillip Leslie, 2010. "Educational Attainment and the Changing U.S. Wage Structure: Dynamic Implications on Young Individuals' Choices," Journal of Labor Economics, University of Chicago Press, vol. 28(3), pages 541-594, July.
    13. S. Boragan Aruoba & Francis X. Diebold, 2010. "Real-Time Macroeconomic Monitoring: Real Activity, Inflation, and Interactions," American Economic Review, American Economic Association, vol. 100(2), pages 20-24, May.
    14. Ippei Fujiwara & Koji Takahashi, 2012. "Asian Financial Linkage: Macro‐Finance Dissonance," Pacific Economic Review, Wiley Blackwell, vol. 17(1), pages 136-159, February.
    15. Hongsheng Bi & Rubao Ji & Hui Liu & Young-Heon Jo & Jonathan A Hare, 2014. "Decadal Changes in Zooplankton of the Northeast U.S. Continental Shelf," PLOS ONE, Public Library of Science, vol. 9(1), pages 1-12, January.
    16. Reema Gh. Alajmi, 2024. "Energy Consumption and Carbon Emissions: An Empirical Study of Saudi Arabia," Sustainability, MDPI, vol. 16(13), pages 1-16, June.
    17. Leif Anders Thorsrud, 2016. "Nowcasting using news topics Big Data versus big bank," Working Papers No 6/2016, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    18. Knut Are Aastveit & Karsten R. Gerdrup & Anne Sofie Jore & Leif Anders Thorsrud, 2014. "Nowcasting GDP in Real Time: A Density Combination Approach," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 32(1), pages 48-68, January.
    19. Obryan Poyser, 2017. "Exploring the determinants of Bitcoin's price: an application of Bayesian Structural Time Series," Papers 1706.01437, arXiv.org.
    20. Abad, David & Massot, Magdalena & Nawn, Samarpan & Pascual, Roberto & Yagüe, José, 2025. "Message traffic and short-term illiquidity in high-speed markets," Emerging Markets Review, Elsevier, vol. 65(C).

    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:plo:pone00:0323070. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.