{"id":100006,"date":"2025-08-21T18:51:18","date_gmt":"2025-08-21T18:51:18","guid":{"rendered":"https:\/\/www.newsbeep.com\/us\/100006\/"},"modified":"2025-08-21T18:51:18","modified_gmt":"2025-08-21T18:51:18","slug":"evaluating-forecasting-models-for-health-service-demand-during-the-covid-19-pandemic","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/us\/100006\/","title":{"rendered":"Evaluating forecasting models for health service demand during the COVID-19 pandemic"},"content":{"rendered":"<p>Approaches to forecast<\/p>\n<p>The simplest way to forecast is to use past values of these variables and estimate a univariate autoregressive model. In the case of the demand for health services, the forecast for each variable and for each state yields the one-step ahead forecast (see Appendix <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">A<\/a> \u2013 Eq.\u00a01 and 2).<\/p>\n<p>It is possible to augment this model by taking advantage of cross-sectional information from other states in forecasting state s\u2019s health demand (see Appendix <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">A<\/a> \u2013 Eq.\u00a03 and 4). This approach is consolidated practice in forecasting.<\/p>\n<p>In recent times, machine learning models have also been used to generate forecasts by building up, in an iterative process, new models from the residuals of the existing models to capture complex non-linear relationships. This feature sets apart machine learning model from traditional time-series models<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 18\" title=\"Deng, S. et al. Stock index direction forecasting using an explainable eXtreme Gradient Boosting and investor sentiments. North Am. J. Econ. Fin. 64, 101848 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#ref-CR18\" id=\"ref-link-section-d6489719e593\" rel=\"nofollow noopener\" target=\"_blank\">18<\/a>. The intuition behind Gradient Boosting Machines (GBM) is rooted in the idea of building on mistakes. At each stage, a weak learner is introduced to correct the errors and shortcomings of the existing ensemble. As a result, this iteration combines the predictions of multiple weak learners (individual trees) to generate a final prediction.<\/p>\n<p>The combination of weak models to form a stronger ensemble is akin to the concept of Bayesian Model Averaging (BMA) in that both methods involve aggregating the predictions of multiple models. However, two alternatives are possible, and we use them both. The first one focuses on decision trees and employs a boosting approach, where each tree is trained to address the shortcomings of its predecessors, enhancing the model\u2019s overall performance through sequential refinement.<\/p>\n<p>The second approach involves combining predictions from different models using a weighted average, considering them as parallel rather than sequentially improved models. Parameters of the model are iteratively estimated by minimizing the prediction error (difference between predicted and actual values)\u2014a procedure called gradient descent optimization technique<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 19\" title=\"Gao, Q., Shi, V., Pettit, C. &amp; Han, H. Property valuation using machine learning algorithms on statistical areas in Greater Sydney. Australia. Land Use Pol. 123, 106409 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#ref-CR19\" id=\"ref-link-section-d6489719e604\" rel=\"nofollow noopener\" target=\"_blank\">19<\/a>. In each iteration, a new decision tree is added to the ensemble, focusing on capturing the remaining errors from the combined predictions of the existing models. The model assigns weights to each tree based on its performance, allowing more accurate trees to contribute more to the final prediction. While gradient boosting is often associated with large datasets, it uses regularization techniques that are efficient in fitting non-linear relationships for small datasets<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 20\" title=\"&#x17B;bikowski, K. &amp; Antosiuk, P. A machine learning, bias-free approach for predicting business success using Crunchbase data. Inf. Proc. Man. 58(4), 102555 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#ref-CR20\" id=\"ref-link-section-d6489719e608\" rel=\"nofollow noopener\" target=\"_blank\">20<\/a>.<\/p>\n<p>Using a machine learning model<\/p>\n<p>We use a nonlinear machine learning model that is referred to as XGBoost (eXtreme Gradient Boostin), an implementation of gradient boosting machines (GBMs), a category of ensemble learning methods, which is efficient in handling large-scale dataset or a large number of variables. The efficiency stems from several key features. First, XGBoost employs a scalable and parallelized implementation of gradient boosting, allowing it to efficiently process and analyze massive amounts of data. It introduces regularization techniques such as L1 and L2 regularization, which mitigate overfitting and enhance generalization, crucial factors when dealing with extensive datasets. Second, XGBoost utilizes a tree-based ensemble approach, where decision trees are added sequentially to correct errors made by previous models. This not only enables the model to capture complex non-linear relationships but also facilitates the handling of a large number of variables, as it can naturally select and prioritize features. The combination of these features, along with its ability to handle missing data and provide insights into variable importance, makes XGBoost a versatile and efficient choice for a variety of tasks, especially in scenarios involving large and complex datasets.<\/p>\n<p>XGBoost uses the gradient descent optimization technique to minimize an objective function<\/p>\n<p>$$\\hat{y}_{t} = \\Sigma_{k = 1}^{K} f_{k} \\left( {x_{t} } \\right),f_{k} \\in F$$<\/p>\n<p>with respect to the model\u2019s parameters. This approach is formalized in Eqs.\u00a05 and 6 in Appendix <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">A<\/a>.<\/p>\n<p>Gradient descent and well-established gradient methods like BFGS (Broyden-Fletcher-Goldfarb-Shanno) share the common goal of optimizing a function by iteratively adjusting parameters. However, they differ in their approaches. Gradient descent is a first-order optimization algorithm that relies solely on the first-order derivative (gradient) of the objective function. It updates parameters in the direction opposite to the gradient, aiming to minimize the function step by step. In contrast, BFGS belongs to the family of quasi-Newton methods and is a second-order optimization algorithm. It not only considers the gradient but also incorporates information about the curvature of the function through the Hessian matrix. BFGS tends to converge faster than simple gradient descent methods since it utilizes additional information about the local curvature, making it more suitable for optimizing complex and non-linear objective.<\/p>\n<p>Figure\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a> illustrates the full forecasting pipeline described above. The process begins with the loading of both daily and monthly data, followed by iteration across eight states and territories. Daily sentiment data are aggregated to the monthly level and merged with target variables. We then construct various feature sets with Machine learning approach (ML) and apply three forecasting models which are Autoregression (AR), Vector Autoregression (VAR), and XGBoost within a rolling-window cross-validation framework (18-month training, 1-month testing, over 12 windows). Forecast performance is evaluated using Root Mean Square Errors (RMSE) and results are aggregated across states and time windows. The details are presented in section \u201c<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"section anchor\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#Sec8\" rel=\"nofollow noopener\" target=\"_blank\">Results<\/a>\u201d.<\/p>\n<p>Fig. 1<a class=\"c-article-section__figure-link\" data-test=\"img-link\" data-track=\"click\" data-track-label=\"image\" data-track-action=\"view figure\" href=\"https:\/\/www.nature.com\/articles\/s41598-025-14669-7\/figures\/1\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" aria-describedby=\"Fig1\" src=\"https:\/\/www.newsbeep.com\/us\/wp-content\/uploads\/2025\/08\/41598_2025_14669_Fig1_HTML.png\" alt=\"figure 1\" loading=\"lazy\" width=\"685\" height=\"1284\"\/><\/a><\/p>\n<p>Forecasting pipeline overview. Note: This flowchart outlines the end-to-end forecasting procedure used in the study. The process begins with loading daily sentiment and monthly health data, followed by state-level aggregation and feature construction.<\/p>\n<p>Combining data collected at different frequencies (nowcasting)<\/p>\n<p>Nowcasting model is the model to predict current events, nearby events in the past or future<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 21\" title=\"Marta, B., Domenico, G., &amp; Lucrezia, R. Nowcasting.&#xA0;CEPR Discussion Papers,&#xA0;7883 (2010).\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#ref-CR21\" id=\"ref-link-section-d6489719e681\" rel=\"nofollow noopener\" target=\"_blank\">21<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 22\" title=\"Shang, W., Zhang, X., Tao, R., Wang, X., &amp; Zhang, L. GDP nowcasting based on daily electricity data and financial market data. In&#xA0;IEEE International Conference on Big Data (BigData) 3445&#x2013;3452 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#ref-CR22\" id=\"ref-link-section-d6489719e684\" rel=\"nofollow noopener\" target=\"_blank\">22<\/a>. We applied Mixed Data Sampling (MIDAS) regression as one of common method in nowcasting model<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 23\" title=\"Hopp, D. Benchmarking econometric and machine learning methodologies in nowcasting GDP. Empir. Econ. 66, 2191&#x2013;2247 (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41598-025-14669-7#ref-CR23\" id=\"ref-link-section-d6489719e688\" rel=\"nofollow noopener\" target=\"_blank\">23<\/a> to utilize higher frequency data in direct predicting lower frequency data:<\/p>\n<p>$$y_{t}^{s} = \\beta _{0} + \\beta _{1} B(L^{{1{ \/ }d}} ;\\theta )x_{{t &#8211; h}}^{d} + \\varepsilon _{t}$$<\/p>\n<p>where \\(B(L^{{1{ \/ }d}}\\);\\(\\theta )\\) is a lag polynomial that fits h-lags of the daily explanatory variable \\(x_{t &#8211; h}^{d}\\) as a function of a small parameter space \\(\\theta\\) in predicting the monthly health demand \\(y_{t}^{s}.\\)<\/p>\n<p>Therefore, we use a parametric MIDAS regression with an exponential Almon lag structure to relate daily sentiment indicators to monthly health outcomes. This structure imposes a smooth weighting across high-frequency lags using a low-dimensional parameter space. An alternative specification is the unrestricted MIDAS approach, which relaxes functional constraints on lag coefficients, enabling greater flexibility and compatibility with machine learning models. While U-MIDAS can enhance forecasting accuracy in large datasets, our approach favors parsimony and interpretability, which is important given our explanatory focus and relatively short time span of data.<\/p>\n","protected":false},"excerpt":{"rendered":"Approaches to forecast The simplest way to forecast is to use past values of these variables and estimate&hellip;\n","protected":false},"author":2,"featured_media":100007,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[67029,4000,67030,97,252,67026,254,255,253,1159,67028,1877,1160,67027,79],"class_list":["post-100006","post","type-post","status-publish","format-standard","has-post-thumbnail","category-health-care","tag-anti-depressants","tag-covid-19","tag-forecasting","tag-health","tag-health-care","tag-health-care-economics","tag-health-policy","tag-health-services","tag-healthcare","tag-humanities-and-social-sciences","tag-internet-searches","tag-machine-learning","tag-multidisciplinary","tag-nowcasting","tag-science"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/100006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/comments?post=100006"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/100006\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media\/100007"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media?parent=100006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/categories?post=100006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/tags?post=100006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}