Original Paper
Abstract
Background: Accurate prediction of population-wide depression incidence is vital for effective public mental health management. However, this incidence is often influenced by socioeconomic factors, such as abrupt events or changes, including pandemics, economic crises, and social unrest, creating complex structural break scenarios in the time-series data. These structural breaks can affect the performance of forecasting methods in various ways. Therefore, understanding and comparing different models across these scenarios is essential.
Objective: This study aimed to develop depression incidence forecasting models and compare the performance of autoregressive integrated moving average (ARIMA) and vector-ARIMA (VARIMA) and temporal fusion transformers (TFT) under different structural break scenarios.
Methods: We developed population-wide depression incidence forecasting models and compared the performance of ARIMA and VARIMA-based methods to TFT-based methods. Using monthly depression incidence from 2002 to 2022 in Hong Kong, we applied sliding windows to segment the whole time series into 72 ten-year subsamples. The forecasting models were trained, validated, and tested on each subsample. Within each 10-year subset, the first 7 years were used for training, with the eighth year for setting hold-out validation, and the ninth and tenth years for testing. The accuracy of the testing set within each 10-year subsample was measured by symmetric mean absolute percentage error (SMAPE).
Results: We found that in subsamples without significant slope or trend change (structural break), multivariate TFT significantly outperformed univariate TFT, vector-ARIMA (VARIMA), and ARIMA, with an average SMAPE of 11.6% compared to 13.2% (P=.01) for univariate TFT, 16.4% (P=.002) for VARIMA, and 14.8% (P=.003) for ARIMA. Adjusting for the unemployment rate improved TFT performance more effectively than VARIMA. When fluctuating outbreaks happened, TFT was more robust to sharp interruptions, whereas VARIMA and ARIMA performed better when incidence surged and remained high.
Conclusions: This study provides a comparative evaluation of TFT and ARIMA and VARIMA models for forecasting depression incidence under various structural break scenarios, offering insights into predicting disease burden during both stable and unstable periods. The findings support a decision-making framework for model selection based on the nature of disruptions and data characteristics. For public health policymaking, the results suggest that TFT may be a more suitable tool for disease burden forecasting during periods of stable burden level or when sudden temporary interruption, such as pandemics or socioeconomic variation, impacts disease occurrence.
doi:10.2196/67156
Keywords
Introduction
Depression is a major disease burden with substantial unmet care needs, necessitating urgent attention in health care planning. The Global Burden of Disease study indicates that the incidence of depression continuously increased from 2010 to 2019, reaching 274.8 million patients with an incidence of 3551.6 per 100,000 population in 2019 [
]. This burden has further increased since the COVID-19 pandemic rising by 20% to 30% [ , ]. The rising incidence and prolonged disease duration impose a significant strain on the health care system and create an economic burden on society, highlighting the importance of health policy planning for depression management [ ]. A systematic review showed that the use of health care resources and the productivity loss or reduction of adult patients with depression are 2.6 times and 2.3 times that of nondepressed patients, respectively [ ]. In addition, the World Health Organization reported insufficient spending on mental health over the total government health expenditure and called for estimating, planning, and monitoring the expenditure on mental health services over the long term [ ]. An accurate projection of disease burden is essential for the planning of health care resources and improving the preparedness of health care systems to respond to foreseeable demand [ ].Population-wide depression incidence is sensitive to abrupt social stressors. For example, events such as pandemics [
, - ], economic crises [ - ], social movement [ ], and natural disasters [ ] have been associated with observed surges in the incidence and prevalence of depression. These isolated historical events represent inherently unpredictable factors that create complex interruption scenarios, influencing the performance of incidence forecasting methods. Depression incidence is also affected by various demographic factors (eg, the elderly group is associated with a higher risk of depression) [ ], environmental factors (eg, seasonality and temperature) [ ], and socioeconomic variation [ ]. Among this, unemployment has been reported as the most significant external risk factor for depression [ , ] and also presents a bidirectional positive association with depression [ , ]. Research gaps exist in the current modeling literature on population-based depression incidence forecasting, particularly in evaluating the impact of various interruption scenarios caused by historical events on model performance, and in effectively incorporating predictable external factors such as unemployment and seasonality.The temporal fusion transformer (TFT) is a deep learning–based time-series forecasting tool recently seen in clinical applications used for health outcomes prediction, such as predicting population-level emergency attendance [
], individual-level vital sign trajectories [ ], blood glucose [ ], and hypertension [ ]. TFT has been shown to outperform a set of competing methods in multihorizon time-series forecasting and the handling of structural breaks in time series [ ]. The well-known and widely used vector autoregressive integrated moving average (VARIMA) models, the multivariate version of autoregressive integrated moving average (ARIMA), enables adjustment for historical data, random effects, and external covariates. VARIMA also enables the output variables to adjust to each other using a simultaneous equations approach to forecasting cointegrated systems of correlated variables [ ]. It has been proven that VARIMA is effective in forecasting hospital and emergency admissions [ , ].In this study, we used a population-based electronic medical records (EMRs) database in Hong Kong and developed TFT and VARIMA models for depression incidence forecasting, taking incidence and unemployment rates as dual outcomes for mutual adjustment. We aimed to evaluate the performance of these models in the presence of unpredictable isolated events such as pandemics, economic crises, and social movements and identify fit-for-purpose models for medium disease burden forecasting.
Methods
The analytical framework for the comparative components of different forecasting models is illustrated in
.
Data Source and Extraction
The depression diagnosis data source was the Clinical Data Analysis and Reporting System (CDARS) managed by the Hospital Authority of Hong Kong. CDARS is a territory-wide EMR database covering more than 7 million eligible residents, which encompasses all publicly funded health care services and manages 76% of chronic medical conditions, including mental health issues [
]. The database has been used in multiple epidemiological depression studies and demonstrated its data authenticity and integrity [ , , - ]. New diagnosis records were identified by diagnosis codes (ICD-9-CM [International Classification of Diseases, 9th Revision, Clinical Modification]: 296.2, 300.4, 311) and ascertained by backtracking the database to 1993 to ensure that incident cases were free from depression before the first diagnosis. We extracted records to confine the analysis to the population aged 20 years with a new clinical diagnosis of depression between 2002 and 2022. Clinically diagnosed depression incidence in the overall population (age-standardized) and age subgroups (20-29, 30-39, 40-49, 50-59, 60+ years) were computed, using 2022 as the reference year ( A). Incidence is defined as the proportion of new cases occurring within a specific age group over a given period, with the denominator being the total population of that age group. Unemployment rates in each age subgroup and the overall population ( B) were obtained from the Census and Statistics Department of Hong Kong Government [ ]. Monthly data granularity was selected to balance the need for sufficient data points to train and validate the models while effectively capturing meaningful trends, including seasonality [ ]. This choice also helps ease sparsity issues that can arise in overly granular data, such as daily data, where zero records would occur.
Time-Series Analysis to Identify Structural Breaks
We applied Chow test breakpoint analysis [
] to detect structural breaks in the time series, which indicates whether the slopes and intercepts of outcomes in two adjacent time periods are identical [ ]. We conducted the test for each pair of adjacent years (each year comprised 12 data points from January to December) to test for structural breaks. When the null hypothesis of the Chow test was accepted, we assumed that the adjacent 2 years are coherent.Construction of TFT and VARIMA Models
We developed multivariate forecasting models using VARIMA and multivariate TFT, both adjusting for seasonality as a covariate. Both unemployment rates and depression incidence were incorporated as simultaneous outcomes. As an indicator of socioeconomic stress, the unemployment rates are commonly or generally known to be nonstationary and related to socioeconomic variation, which makes them not directly predictable. Social epidemiological theories can account for bidirectional causation between population unemployment rates and depression incidence. Both TFT [
] and VARIMA models can incorporate bidirectional adjustment between the synchronous and lagged values of these 2 outcomes. We used the seasonal component of additive decomposition for seasonality adjustment [ ], and a set of dummy variables to label months as independent covariates. Univariate TFT and ARIMA models that took depression incidence as the single output variable were also fitted for model comparison. The testing accuracies of the various models on all the 10-year sub-timeseries samples were measured by symmetric mean absolute percentage error (SMAPE) between the forecasted results and actual value. Features of all the models are shown in Table S1 in .Model Training, Parameter Tuning, and Output Validation
“VARMAX” and “ARIMA” functions from the “statsmodels.tsa” package in Python were used for VARIMA and ARIMA model training. An autocorrelation function plot was generated for all the training sets of the 10-year sub-time series to test for data stationarity. Combining the Kwiatkowski-Phillips-Schmidt-Shin tests and augmented Dickey-Fuller test, we determined that both depression and unemployment were integrated of order 1 and first-order differencing applied to both variables. We then tested for significant autocorrelation in the first to third data lags. To avoid overfitting, the combination of the orders of the autoregressive and moving average components were set in the range from 0 to 3 and from 0 to 2, respectively. The trend parameter had two options, “n” and “c,” where “n” represents no drift and “c” represents constant drift in the model.
The TFT models were constructed using the “TemporalFusionTransformer” package developed by Pytorch (an open-source machine learning framework trademarked by the Linux Foundation). To optimize model performance, we used another package called “Optuna” to fine-tune various settings such as how much data the model processes at once, the speed of learning, the size of different parts of the model, how often to drop parts of the model to prevent overfitting, and other important parameters (Table S2 in
). The validation and testing accuracy were measured by SMAPE for both ARIMA and VARIMA and TFT models, thus enabling a fair comparison between the 2 methods. To ensure consistency between the training and validation steps, the TFT models were trained using the SMAPE loss function. This loss function proved beneficial for point forecasting, symmetric error evaluation, and providing easily interpretable and comparable performance metrics. To prevent overfitting and improve model generalization, we used dropout regularization and gradient clipping during training, along with the Adam optimizer and a learning rate schedule that reduces the learning rate when improvements stop. Furthermore, we implemented an early stopping mechanism that monitors the validation loss and stops training if the loss does not improve for a specified number of consecutive epochs.Ethical Considerations
This study received ethics approval from the institutional review board of The University of Hong Kong Hospital Authority Hong Kong Western Cluster (UW 20-218). Patient identification was anonymized to protect confidentiality and patient consent was not required. No participant compensation was provided for the study.
Results
Overview
During the study period from 2002 to 2022, we identified 173,865 patients newly diagnosed with depression aged 20 years or older. The mean age of these patients was 51.6 (SD 17.7) years and 72% (125,183/173,865) were female. As shown in
A, the incidence of depression was aggregated for the overall population (age-standardized) as well as for specific age subgroups (20-29, 30-39, 40-49, 50-59, 60+ years). The corresponding unemployment rates were also collected, as depicted in B.Chow Test to Identify Structural Breaks
According to structural break analysis based on Chow test, the incidence patterns between 2002 and 2022 differed between age groups. For example, the subgroup aged 20-29 years had stable depression incidence before 2018 with only one breakpoint identified in January 2008 (
A). However, breakpoints occurred more frequently in other age groups during the same period. From 2019 to 2022, depression incidence across the whole population and all age subgroups experienced significant fluctuations, and January 2020 (corresponding to the start of the COVID-19 pandemic) became the breakpoint for all the time series. In the subgroups aged 40-49, 50-59, and 60 years, sharp interruptions occurred in 2019 (corresponding to the major social movement period in Hong Kong), leading to outliers in the time series.By applying a 10-year sliding window segmentation to generate overlapping subsamples of 10 consecutive years (2002-2011, 2003-2012, etc) for each of the 6 age subgroups (
C), we identified 72 ten-year subsamples. In each subsample, the models were trained on data for the first 7 years (training set). The corresponding parameters of the forecasting models were refined based on the model’s accuracy in predicting outcomes in the eighth year (independent validation set), and the performance of the models was evaluated using outcomes in the ninth and tenth years (testing set). In each 10-year subsample, Chow test breakpoint analysis was performed between the seventh and eighth year, eighth and ninth year, and ninth and tenth year. The distribution of breakpoints is characterized by the coherence of the training, validation, and testing set in the subsamples. When there was no breakpoint in between, we assumed that the validation and testing sets were a smooth extension of the training set. Models were assumed to be trained to forecast incidence in a “stable period.” An example of a stable period sample is shown in D, in which no breakpoint existed throughout the last 4 years (from 2011 to 2014). On the other hand, if one or more breakpoints existed in the last 4 years, such a sliding window was treated as an “unstable period” sample. E is an example of an unstable period sample with a sharp interruption where January 2020 was a breakpoint. F is an example of an unstable period sample with a level shift in which January 2020 and January 2021 were identified as breakpoints. Among all the 10-year subsamples, 53 were subsamples classified as unstable periods within our dataset (Table S3 in ).Performance Comparison Between TFT and VARIMA and ARIMA Models
In the set of stable period samples, multivariate TFT models significantly outperformed the univariate TFT, VARIMA, and ARIMA. Among stable periods, t tests comparing the SMAPE of these 4 models (
) showed that the average SMAPE at 11.6% for multivariate TFT was significantly lower than the SMAPE for univariate TFT at 13.2% (P=.01), for VARIMA at 16.4% (P=.002), and for ARIMA at 14.8% (P=.003) of the same data. Univariate TFT also outperformed VARIMA (P=.03), while there was no significant difference between VARIMA and ARIMA. For the set of unstable period samples, these 4 methods had no significant difference on the overall testing accuracy. The average SMAPE of multivariate TFT was at 15.9%, univariate TFT was at 15.8%, VARIMA was at 18.3%, and ARIMA was at 17.5%.
Performance Comparison During Periods With Breakpoints
Due to the high variation of accuracy in the set of unstable period subsamples, specific manifestations of structural break should be considered. Taking the sub–time series in the period of 2013-2022 as an example, significant performance differences occurred among the VARIMA and ARIMA and TFT models. As shown in
, from 2019 to 2022, structural breakpoints in the time series of depression incidence occurred, representing a consistent 4-year ongoing population shock. We observed the response of different age groups to the interruption in different patterns. Incidence in age groups 40-49, 50-59, and 60+ years showed a sharp increase in 2019 ( A). After 2019, the incidence stabilized. However, for younger age groups (20-29 and 30-39 years), no sharp increase occurred in 2019, but a significant level shift was found in the 20-29 and 30-39 age subgroups in 2020 ( B).revealed that the performance of TFT and VARIMA and ARIMA models during the unstable period showed sharp increases. Comparison forecasts using multivariate and univariate TFT to VARIMA and ARIMA models indicated that the latter forecast higher depression incidence than observed, resulting in inaccurate estimates with large SMAPE (15.3%-43.6% for VARIMA and ARIMA models vs 11.1%-25.7% of TFT models). The performance of different models during the unstable period with level shifts was also compared ( ). The VARIMA and ARIMA models significantly outperformed the multivariate and univariate TFT models by capturing the level shift patterns by training and validation process with SMAPE of 16.2%-18.8% versus 23.1%-27.6%, respectively.

Age group (years) | Structural break scenario | SMAPEa | |||
VARIMAb | ARIMAc | Multivariate TFTd | Univariate TFTe | ||
All | Sharp interruption | 16.8 | 15.3 | 12.1 | 11.1f |
40-49 | Sharp interruption | 17.9 | 17 | 16.1 | 15f |
50-59 | Sharp interruption | 25.8 | 21.6 | 13.6 | 13f |
60+ | Sharp interruption | 43.6 | 40.7 | 25.7 | 13.3f |
20-29 | Level shift | 17.8f | 18.6 | 27.6 | 25.8 |
30-39 | Level shift | 18.4 | 16.2f | 23.1 | 23.2 |
aSMAPE: symmetric mean absolute percentage error.
bVARIMA: vector autoregressive integrated moving average.
cARIMA: autoregressive integrated moving average.
dMultivariate TFT: multivariate temporal fusion transformers.
eUnivariate TFT: univariate temporal fusion transformers.
fLowest SMAPEs.
Discussion
This study sought to answer the research question “How do deep learning–based TFT models compare to regression-based ARIMA and VARIMA models for forecasting the medium-term incidence of depression, particularly under varying structural break scenarios such as stable periods and periods with abrupt disruptions?” We discovered that in the stable periods in which there was no breakpoint between training, validation, and testing datasets, multivariate TFT significantly outperformed the univariate TFT, VARIMA, and ARIMA in incidence forecasting. This finding not only indicated that in stable periods, TFT was a better choice to forecast depression incidence than ARIMA, but also suggested the effectiveness and necessity of adjusting for unemployment rates in both models to improve accuracy. The multivariate TFT model presented the ability to partially capture the bidirectional relationship between depression incidence and unemployment, showcasing its potential to model complex interactions between socioeconomic factors and health outcomes. However, in unstable periods, the multivariate TFT did not significantly outperform the univariate TFT. On the other hand, VARIMA did not statistically outperform ARIMA both in stable and unstable periods, which indicated that the vector autoregression-based linear model might not significantly improve incidence forecasting by adjusting for the unemployment rate.
In subsamples that had one or more breakpoints between the training, validation, and testing set, the presence and number of breakpoints varied between different time periods and age groups. Therefore, a general overall comparison could not distinguish performance differences between TFT and VARIMA and ARIMA in different structural break scenarios. After further exploration of the models’ performance in different interrupted time periods, we found that TFT models were more robust to outliers, such as abrupt shocks in the time series, where incidence surged and then returned to its previous level in a short period of time. On the other hand, ARIMA and VARIMA were more sensitive to level shifts, in which the depression incidence remained high after an increase.
These phenomena could be due to the modeling mechanisms of the TFT and ARIMA models. VARIMA and ARIMA models are based on autoregression, which is a linear modeling approach that relies on past observations over specific time lags of the training set to make predictions. On the other hand, TFT models capture long-term dependencies and patterns in the data, which give rise to self-attention mechanisms modified from transformer-based architectures [
]. In our examples shown in A, incidence in 2019 was an outlier in the training set. Because of autoregression and first-order differencing in VARIMA and ARIMA models, the 2019 data points contributed to the time-lagged terms in the model and hence to the forecasting result. Since these time points were still in the structural break (outlier) period, this often led to an overestimation of incidence. However, the multivariate and univariate TFT models were more robust to the outliers and the forecasted results were closer to the observed incidence. In the examples of level shift shown in B, because the VARIMA and ARIMA models were more sensitive to recent time points and the trend parameter was adjusted based on the accuracy of the validation set, the models were better able to detect sudden changes in the time series. Therefore, the VARIMA and ARIMA models could outperform the TFT models in scenarios with level shifts.This modeling study is the first attempt at comparing the performance of TFT and ARIMA methods in forecasting disease incidence, and we introduce a practical framework for model evaluation and selection, using a sliding window approach to systematically assess model performance across various structural break scenarios. As shown in
, such a study design can guide the selection of models for forecasting disease burden in stable periods and times of major events with uncertain effects on disease epidemiology, especially in complex scenarios involving population shocks, such as the pandemic and sociopolitical events. The repeated occurrence of stable and disrupted periods along the time axis in various age subgroups strengthens the applicability of our comparative study’s findings to diverse structural break scenarios. Putting this into practice for model selection, TFT models would be more appropriate for stable periods or events that end relatively quickly. For events with long-term effects, such as level shifts, ARIMA models would be a better option.The study also has limitations. While contributing to state-of-the-art model selection, we primarily focused solely on one disease, choosing a disease with a complex time series containing breakpoints and abrupt changes. However, further research is warranted to explore the applicability and performance of these models in other types of time series or disease areas, such as communicable diseases and long-term projections. To account for external risk factors, the unemployment rate was selected as the second outcome in the multivariate models due to its bidirectional effect on depression and its timely monthly availability. Nevertheless, future studies should incorporate additional factors such as socioeconomic and health care accessibility data to further refine the models. In addition, our dataset was limited to health care records from Hong Kong, which may not fully generalize to other populations. Differences in health care–seeking behavior and socioeconomic characteristics between public and private health care users may influence depression incidence patterns. Future research could focus on validating and adapting our models in other populations and applying the model evaluation framework to diverse datasets and different patient subgroups, to assess the generalizability of our findings and refine the models for broader applicability. Furthermore, hybrid modeling approaches that integrate ARIMA and TFT could be explored in future studies to leverage their complementary strengths, potentially enhancing forecasting performance across different scenarios. Such hybrid models may prove particularly valuable in addressing diverse time-series characteristics, including both stable and unstable periods.
Acknowledgments
This research was supported by the Hong Kong University Grants Committee Research Impact Fund (reference number: R7007-22) and was partially supported by the Laboratory of Data Discovery for Health (D24H), funded by the AIR@InnoHK administered by the Innovation and Technology Commission. We extend our gratitude to Lisa Lam for proofreading this manuscript. The programming codes used in this study will be available on GitHub after it is online. ChatGPT or any other generative artificial intelligence was not used to produce text or figures in this paper.
Data Availability
The data used in this study cannot be publicly shared due to third-party restrictions but are available upon request through an application to the Hong Kong Hospital Authority. The HK EHR database is managed by the Hong Kong Hospital Authority. Local academic institutions, government departments, or nongovernmental organizations can apply for access via the Hong Kong Hospital Authority Data Sharing Portal (detailed application procedures in [
]).Authors' Contributions
XL, DY, and YT contributed to conceptualization. QF and VKYC assisted with data curation. DY and YT handled formal analysis. DY, YT, and VKYC contributed to investigation. DY, YT, and XL assisted with methodology. XL handled project administration and supervision. XL, IW, and EC contributed to resources. DY, YT, VKYC, and QW assisted with validation. DY and YT handled visualization. DY and YT contributed to writing–original draft. XL, QF, VKYC, SSMC, HL, ICKW, HTO, EWYC, DMB, YC, MK, MJ, and DC assisted with writing–review & editing.
Conflicts of Interest
XL received research grants from the Research Fund Secretariat of the Health Bureau, Health and Medical Research Fund (HMRF, HKSAR), Health and Medical Research Fund Fellowship Scheme (HMRF Fellowship, HKSAR), Research Grants Council Early Career Scheme (RGC/ECS, HKSAR), Commission grants from Hospital Authority of Hong Kong; educational and investigator initiate research fund from Janssen, Pfizer, and Amgen; internal funding from the University of Hong Kong; consultancy fee from Pfizer, Merck Sharp & Dohme, Open Health, Office of Health Economics; she is also the former non-executive director of ADAMS Limited Hong Kong; all outside the submitted work. ICKW reports research funding from the Hong Kong Research Grants Council, the Hong Kong Health and Medical Research Fund, the European Commission, IQVIA, and Amgen outside the submitted work; and is a director of Jacobson Medical, Advanced Data Analytics for Medical Science (ADAMS) in Hong Kong and a former director of Therakind Ltd in London and Asia Medicine Regulatory Affairs (AMERA) Services Limited, he was a consultant to IQVIA and World Health Organization; and serve as a member of the Pharmacy and Poisons Board, Hong Kong SAR.
Features of all the tested models; Parameter ranges for hyperparameter tuning of TFT model; Testing accuracy (SMAPE) and the breakpoint distribution between training, validation and testing set of each ten-year sub-timeseries; Feature importance (SHAP values) of independent covariates in the ARIMA/VARIMA models and feature importance (decoder variable importance) of independent covariates in the univariate TFT/multivariate TFT models of all age during unstable periods with a sharp interruption in 2019.
DOCX File , 194 KBReferences
- Institute of Health Metrics and Evaluation. GBD results. URL: https://vizhub.healthdata.org/gbd-results/ [accessed 2024-08-28]
- COVID-19 Mental Disorders Collaborators. Global prevalence and burden of depressive and anxiety disorders in 204 countries and territories in 2020 due to the COVID-19 pandemic. Lancet. 2021;398(10312):1700-1712. [FREE Full text] [CrossRef] [Medline]
- Chan VKY, Chai Y, Chan SSM, Luo H, Jit M, Knapp M, et al. Impact of COVID-19 pandemic on depression incidence and healthcare service use among patients with depression: an interrupted time-series analysis from a 9-year population-based study. BMC Med. 2024;22(1):169. [FREE Full text] [CrossRef] [Medline]
- Liu Q, He H, Yang J, Feng X, Zhao F, Lyu J. Changes in the global burden of depression from 1990 to 2017: findings from the Global Burden of Disease study. J Psychiatr Res. 2020;126:134-140. [FREE Full text] [CrossRef] [Medline]
- König H, König H-H, Konnopka A. The excess costs of depression: a systematic review and meta-analysis. Epidemiol Psychiatr Sci. 2019;29:e30. [FREE Full text] [CrossRef] [Medline]
- Mental health atlas 2020. World Health Organization. URL: https://iris.who.int/handle/10665/345946 [accessed 2024-08-28]
- Chan VKY, Leung MYM, Chan SSM, Yang D, Knapp M, Luo H, et al. Projecting the 10-year costs of care and mortality burden of depression until 2032: a Markov modelling study developed from real-world data. Lancet Reg Health West Pac. 2024;45:101026. [FREE Full text] [CrossRef] [Medline]
- Taquet M, Holmes EA, Harrison PJ. Depression and anxiety disorders during the COVID-19 pandemic: knowns and unknowns. Lancet. 2021;398(10312):1665-1666. [FREE Full text] [CrossRef] [Medline]
- World mental health report: transforming mental health for all. World Health Organization. URL: https://iris.who.int/bitstream/handle/10665/356119/9789240049338-eng.pdf?sequence=1 [accessed 2024-08-28]
- Hou WK, Li TW, Liang L, Liu H, Ettman CK, Hobfoll SE, et al. Trends of depression and anxiety during massive civil unrest and COVID-19 in Hong Kong, 2019-2020. J Psychiatr Res. 2021;145:77-84. [FREE Full text] [CrossRef] [Medline]
- Lee S, Guo W, Tsang A, Mak AD, Wu J, Ng KL, et al. Evidence for the 2008 economic crisis exacerbating depression in Hong Kong. J Affect Disord. 2010;126(1-2):125-133. [CrossRef] [Medline]
- Men YV, Yeung CY, Yip PSF. The association between unemployment and suicide among employed and unemployed people in Hong Kong: A time-series analysis. J Affect Disord. 2022;305:240-243. [CrossRef] [Medline]
- Madianos M, Economou M, Alexiou T, Stefanis C. Depression and economic hardship across Greece in 2008 and 2009: two cross-sectional surveys nationwide. Soc Psychiatry Psychiatr Epidemiol. 2011;46(10):943-952. [CrossRef] [Medline]
- Ni MY, Yao XI, Leung KSM, Yau C, Leung CMC, Lun P, et al. Depression and post-traumatic stress during major social unrest in Hong Kong: a 10-year prospective cohort study. Lancet. 2020;395(10220):273-284. [CrossRef] [Medline]
- Tang B, Liu X, Liu Y, Xue C, Zhang L. A meta-analysis of risk factors for depression in adults and children after natural disasters. BMC Public Health. 2014;14:623. [FREE Full text] [CrossRef] [Medline]
- GBD 2019 Mental Disorders Collaborators. Global, regional, and national burden of 12 mental disorders in 204 countries and territories, 1990-2019: a systematic analysis for the Global Burden of Disease Study 2019. Lancet Psychiatry. 2022;9(2):137-150. [FREE Full text] [CrossRef] [Medline]
- GBD 2019 Mental Disorders Collaborators. Global, regional, and national burden of 12 mental disorders in 204 countries and territories, 1990-2019: a systematic analysis for the Global Burden of Disease Study 2019. Lancet Psychiatry. 2022;9(2):137-150. [FREE Full text] [CrossRef] [Medline]
- Lai JCL, Chan RKH, Luk C. Unemployment and psychological health among Hong Kong Chinese women. Psychol Rep. 1997;81(2):499-505. [CrossRef] [Medline]
- Amin S, Korhonen M, Huikari S. Unemployment and mental health: An instrumental variable analysis using municipal-level data for finland for 2002-2019. Soc Indic Res. 2023;166(3):627-643. [CrossRef]
- Brenner M, Mooney A. Unemployment and health in the context of economic change. Soc Sci Med. 1983;17(16):1125-1138. [CrossRef] [Medline]
- Tuominen J, Pulkkinen E, Peltonen J, Kanniainen J, Oksala N, Palomäki A, et al. Forecasting emergency department occupancy with advanced machine learning models and multivariable input. Int J Forecast. 2024;40(4):1410-1420. [CrossRef]
- Phetrittikun R, Suvirat K, Na Pattalung T, Kongkamol C, Ingviya T, Chaichulee S. Temporal fusion transformer for forecasting vital sign trajectories in intensive care patients. 2021. Presented at: 13th Biomedical Engineering International Conference (BMEiCON); 2021 November 19-21:1-5; Ayutthaya, Thailand.
- Zhu T, Kuang L, Piao C, Zeng J, Li K, Georgiou P. Population-specific glucose prediction in diabetes care with transformer-based deep learning on the edge. IEEE Trans Biomed Circuits Syst. 2024;18(2):236-246. [CrossRef] [Medline]
- Yun D, Yang H, Kim SG, Kim K, Kim DK, Oh K, et al. Real-time dual prediction of intradialytic hypotension and hypertension using an explainable deep learning model. Sci Rep. 2023;13(1):18054. [FREE Full text] [CrossRef] [Medline]
- Lim B, Arık, Loeff N, Pfister T. Temporal Fusion Transformers for interpretable multi-horizon time series forecasting. Int. J. Forecast. 2021;37(4):1748-1764. [CrossRef]
- Lütkepohl H. New introduction to multiple time series analysis. New York, NY. Springer; 2005:69-82.
- Aboagye-Sarfo P, Mai Q, Sanfilippo FM, Preen DB, Stewart LM, Fatovich DM. A comparison of multivariate and univariate time series approaches to modelling and forecasting emergency department demand in Western Australia. J Biomed Inform. 2015;57:62-73. [FREE Full text] [CrossRef] [Medline]
- Gul M, Celik E. An exhaustive review and analysis on applications of statistical forecasting in hospital emergency departments. Health Syst (Basingstoke). 2018;9(4):263-284. [FREE Full text] [CrossRef] [Medline]
- Thematic household survey report - report no. 58 - health status of Hong Kong residents. Census and Statistics Department. URL: https://www.censtatd.gov.hk/en/data/stat_report/product/B1130201/att/B11302582015XXXXB0100.pdf [accessed 2023-12-21]
- Luo H, Lau WCY, Chai Y, Torre CO, Howard R, Liu KY, et al. Rates of antipsychotic drug prescribing among people living with dementia during the COVID-19 pandemic. JAMA Psychiatry. 2023;80(3):211-219. [FREE Full text] [CrossRef] [Medline]
- Yan VKC, Wan EYF, Ye X, Mok AHY, Lai FTT, Chui CSL, et al. Effectiveness of BNT162b2 and CoronaVac vaccinations against mortality and severe complications after SARS-CoV-2 Omicron BA.2 infection: a case-control study. Emerg Microbes Infect. 2022;11(1):2304-2314. [FREE Full text] [CrossRef] [Medline]
- Wong SMY, Chen EYH, Suen YN, Wong CSM, Chang WC, Chan SKW, et al. Prevalence, time trends, and correlates of major depressive episode and other psychiatric conditions among young people amid major social unrest and COVID-19 in Hong Kong: a representative epidemiological study from 2019 to 2022. Lancet Reg Health West Pac. 2023;40:100881. [FREE Full text] [CrossRef] [Medline]
- Labour force, employment and unemployment. Census and Statistics Department, The Government of Hong Kong Special Administrative Region. URL: https://www.censtatd.gov.hk/en/scode200.html [accessed 2024-08-28]
- Chow GC. Tests of equality between sets of coefficients in two linear regressions. Econometrica. 1960;28(3):591. [CrossRef]
- NA. General considerations and assumptions. Rev Econ Stat. 1919;1(1):6-8. [CrossRef]
- Provision of HA data for research. Hong Kong Hospital Authority Data Sharing Portal. URL: https://www3.ha.org.hk/data/Provision/ApplicationProcedure [accessed 2025-05-07]
Abbreviations
ARIMA: auto-regressive integrated moving average |
CDARS: clinical data analysis and reporting system |
EMR: electronic medical record |
ICD-9-CM: International Classification of Diseases, 9th Revision, Clinical Modification |
SMAPE: symmetric mean absolute percentage error |
TFT: temporal fusion transformer |
VARIMA: vector auto-regressive integrated moving average |
Edited by J Sarvestan; submitted 07.10.24; peer-reviewed by M Gasmi, A Rasool; comments to author 07.01.25; revised version received 27.01.25; accepted 24.03.25; published 12.05.25.
Copyright©Deliang Yang, Yiyi Tang, Vivien Kin Yi Chan, Qiwen Fang, Sandra Sau Man Chan, Hao Luo, Ian Chi Kei Wong, Huang-Tz Ou, Esther Wai Yin Chan, David Makram Bishai, Yingyao Chen, Martin Knapp, Mark Jit, Dawn Craig, Xue Li. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 12.05.2025.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.