Skip to main content

BRIEF RESEARCH REPORT article

Front. Public Health, 05 July 2021
Sec. Infectious Diseases – Surveillance, Prevention and Treatment
This article is part of the Research Topic Modeling Epidemics - Why Are Models Wrong? View all 8 articles

Exploring Feasibility of Multivariate Deep Learning Models in Predicting COVID-19 Epidemic

\nShi Chen,
Shi Chen1,2*Rajib Paul,Rajib Paul1,2Daniel JaniesDaniel Janies3Keith MurphyKeith Murphy1Tinghao FengTinghao Feng4Jean-Claude Thill,Jean-Claude Thill2,5
  • 1Department of Public Health Sciences, University of North Carolina at Charlotte, Charlotte, NC, United States
  • 2School of Data Science, University of North Carolina at Charlotte, Charlotte, NC, United States
  • 3Department of Bioinformatics and Genomics, University of North Carolina at Charlotte, Charlotte, NC, United States
  • 4Department of Computer Science, University of North Carolina at Charlotte, Charlotte, NC, United States
  • 5Department of Geography and Earth Sciences, University of North Carolina at Charlotte, Charlotte, NC, United States

Background: Mathematical models are powerful tools to study COVID-19. However, one fundamental challenge in current modeling approaches is the lack of accurate and comprehensive data. Complex epidemiological systems such as COVID-19 are especially challenging to the commonly used mechanistic model when our understanding of this pandemic rapidly refreshes.

Objective: We aim to develop a data-driven workflow to extract, process, and develop deep learning (DL) methods to model the COVID-19 epidemic. We provide an alternative modeling approach to complement the current mechanistic modeling paradigm.

Method: We extensively searched, extracted, and annotated relevant datasets from over 60 official press releases in Hubei, China, in 2020. Multivariate long short-term memory (LSTM) models were developed with different architectures to track and predict multivariate COVID-19 time series for 1, 2, and 3 days ahead. As a comparison, univariate LSTMs were also developed to track new cases, total cases, and new deaths.

Results: A comprehensive dataset with 10 variables was retrieved and processed for 125 days in Hubei. Multivariate LSTM had reasonably good predictability on new deaths, hospitalization of both severe and critical patients, total discharges, and total monitored in hospital. Multivariate LSTM showed better results for new and total cases, and new deaths for 1-day-ahead prediction than univariate counterparts, but not for 2-day and 3-day-ahead predictions. Besides, more complex LSTM architecture seemed not to increase overall predictability in this study.

Conclusion: This study demonstrates the feasibility of DL models to complement current mechanistic approaches when the exact epidemiological mechanisms are still under investigation.

Introduction

Mathematical models are important tools to understanding and predicting COVID-19 epidemic dynamics. A recent literature search in the NIH LitCovid online COVID-19 database revealed more than 6,000 peer-reviewed published modeling papers on the current pandemic (1). Among them, most models are in the mechanistic modeling paradigm. The most common mechanistic modeling approach is to construct a compartmental SEIR (Susceptible-Exposed-Infected-Recovery)-type model, fit the published case series to the model, and quantify key parameters such as basic reproduction number (R0) (24). Other less-common approaches include cross-scale modeling, agent-based modeling, and more recent advances in machine learning and deep learning (DL) models.

Mathematical models of epidemic dynamics, regardless of types, eventually all rely on the fundamental elements, the data, to operate. While there are adequate studies on various modeling approaches, relatively less emphasis has been put on the neglected yet critical data quality and reliability issues (5). Given the novelty of the SARS-CoV-2 pathogen, the definition of “cases” is not consistently and accurately defined across time and space. Case numbers are contingent on testing capacity and our knowledge about this novel pathogen, especially at the beginning the disease. COVID-19 has at least two distinct clinical stages: severe (which requires hospitalization including intensive care, use of ventilator) and non-severe (which usually does not involve intensive medical care) (6). These two stages have distinct consequences on the transition of the epidemiological state, especially from susceptible to infected, and from infected to recovery or death. Without the understanding and incorporation of these clinical insights, it is difficult to accurately model COVID-19 epidemic dynamics.

Many non-traditional data and metadata are available but are not well-explored for the complex socioepidemiological system of COVID-19 (5). In general, more data can help characterize complex systems with more resilience to input data bias. Previously neglected metadata provide additional insights in characterizing the unprecedented pandemic. However, these data are generally not well-organized, scattered across different places, and not in standardized reporting format (e.g., in a table or database).

DL models are based on deep neural networks which include convolution neural network (CNN), recurrent neural network (RNN), and generative adversarial network (GAN). Compared to non-data-driven methods, which usually focus on epidemiological mechanisms such as transmission and recovery, data-driven models are not driven by man-made assumptions about these mechanisms. Such assumptions may be misleading because a novel pandemic has many unknowns both clinically and epidemiologically. According to the Universal Approximation Theorem (7), even simple neural networks can approximate complex functions. Among various DL models, RNNs are particularly useful to handle time series data and have demonstrated their high performance in audio-visual analytics. Long short-term memory (LSTM) models, a type of RNN, have “remember” and “forget” gates, which are essential for LSTM to learn the high-level representation in time series data by adjusting how much information to keep (i.e., useful information) or forget (i.e., unuseful information) from previous time steps (Figure 1). After all, the fundamental goal of modeling infectious disease dynamics is to accurately represent the functional response of the epi-curve across time and space. Nevertheless, most current DL approaches on COVID-19 modeling are still univariate on reported case series (811), making them prone to the same data quality issue as other approaches.

FIGURE 1
www.frontiersin.org

Figure 1. Schematic data mining and multivariate deep learning (long short-term memory LSTM) workflow for COVID-19 modeling.

In this study, we explore and demonstrate the feasibility of data-driven DL models, especially multivariate LSTM, on characterizing COVID-19 epidemic with additional metadata mining steps in Hubei, China.

Methods

Data Mining

Hubei Province, China, was selected in this study because it had a complete COVID-19 epidemic from starting to ending, a relatively large first wave of outbreak, and reasonable amount of information regarding the epidemic, although data quality was inconsistent at the beginning of the first wave of the epidemic. We checked the official Hubei Province COVID-19 press release from January 25, 2020 to May 15, 2020 (12). More than 60 publicly available government press releases were screened and archived. After the initial check, we designed a specific regular expression (regex) in Python to crawl the corresponding webpages and automatically extract information from each press release. We built a customized lookup table for the regex to identify specific data of interest, such as numbers of in-hospital monitoring, from the press release.

Data Preprocessing

The raw data extracted from the press releases were not consistent. We retrospectively fit missing values with extrapolation, assuming the first case was on January 1, 2020 in this study as the first “suspected” case was reported around then. The last official press release was published on May 11, 2020, ~5 weeks after the lift of lockdown in Wuhan, Hubei, marking the end of the first wave of the epidemic.

After data preprocessing, all variables were fitted to the same length of 125d. To fit the DL model, the multivariate time series were required to be the same length. We applied a min-max scaler to transform continuous variable values to percentage and fed them into the DL workflow for increased efficiency. The percentage outputs from the DL model were then transformed back to continuous values to compare with actual observed values and evaluate model performance.

Multivariate Deep-Learning Model Based on LSTM

The preprocessed multivariate time series were fed into the LSTM model. There were two types of multivariate LSTM settings; the first would use one variable (e.g., incident case numbers) as an output (i.e., dependent variable), while all other variables were used as predictors (i.e., independent/input variables). In this study, we used multivariate time series at the same time without differentiating the predictor (input) and response variable (output). The time series of the cumulative case, in theory, should have the same predictive power as the incident case, as the cumulative case is the sum of daily incident cases from the beginning to the current time step. However, the cumulative time series has less fluctuation than daily counts, as cumulatives were monotonically increasing. This property might have influences on LSTM performance.

LSTM requires the user to specify the number of past time steps and number of future steps to operate. These are known as “hyperparameters” in machine learning and DL models, and are user-definable values. In this study, we chose 3-day past time steps to predict 3 days ahead as a demonstration on how LSTM handled temporal autocorrelation. Shorter periods (e.g., 1 day) may ignore temporal patterns in the data, while longer periods (e.g., 7 days) may be too long for COVID-19 prognosis; therefore, 3 days were a reasonable hyperparameter of time step in LSTM. The dataset was then transformed in a series of 3-day moving windows, making the new dataset substantially larger than the original data with more information about the COVID-19 epidemic, especially potential temporal autocorrelation. This larger dataset was important for LSTM to learn high-level representation of the data and improve model performance.

LSTM architecture in this study included multiple stacked encoders and decoders. In theory, more complex architecture (i.e., more encoders and decoders) would reinforce the model to better learn the representation of the data (e.g., temporal pattern) and increase predictability, but might bear the risk of overfitting (9). We developed a simpler one-encoder one-decoder LSTM (E1D1) and a more complex two-encoder two-decoder LSTM (E2D2). We aimed to investigate whether more complex architecture E2D2 necessarily increase predictability in multivariate LSTM.

As a baseline comparison, we also developed individual univariate LSTM to predict incident cases, cumulative cases, and new deaths: the three mostly used variables in COVID-19 models. We compared model performance of these univariate LSTMs with results from multivariate LSTM. An illustration of the complete analytical workflow is shown in Figure 1. Detailed model architecture is provided in the Supplementary Material.

To run LSTM models, first 80% of the data was used to train LSTM. The trained model was then tested with the remaining 20% unseen data to evaluate model performance. Mean absolute error (MAE) was chosen for LSTM model performance evaluation by calculating the error between predicted value from the model and actual reported value in the data. Each variable derived from data mining and preprocessing steps would have its own MAE. The LSTM model was trained with 25 epochs, with the Huber loss function and Adam optimization method. We used Python 3.7 with additional Scikit Learn and Tensorflow 2.0 packages.

Results

Data Mining

After screening published COVID-19 situation reports and press releases, 10 variables were included in this study. These variables were: new confirmed cases, new deaths, new discharges from hospital, cumulative confirmed cases, cumulative hospitalization of COVID-19 patients in severe stage defined by the National Health Commission of China) (6), cumulative hospitalizations in critical stage, cumulative deaths, cumulative discharges, number of individuals tracked (i.e., contact tracing), and number of individuals with high likelihood of infection and being monitored in hospital (i.e., suspected cases). While case and death numbers were common variables in current COVID-19 models, we suggested that numbers of hospitalizations, discharges, tracing, and suspected cases could help depict the COVID-19 epidemic more comprehensively.

Additional data cleaning and extrapolation and interpolation were performed to make sure all time series of the 10 included variables had the same length of 125d, from January 1, 2020 to May 11, 2020. The dimension of the dataset was 125 by 10.

Multivariate and Univariate LSTM

Both LSTMs in E1D1 and E2D2 architectures (Figure 2 left and right panels, respectively) showed no evidence of overfitting or underfitting in either training (blue curve) or validation set (orange curve) in 25 epochs. Model losses diminished quickly after a few (<10) epochs in all scenarios. E2D2, the more complicated architecture, had a smaller difference between training and validation set, which was more desirable than E1D1.

FIGURE 2
www.frontiersin.org

Figure 2. Comparison of model loss (multivariate E1D1 vs. E2D2).

The detailed MAEs of each LSTM architecture are provided in Table 1. For prediction of new cases number, more complicated E2D2 architecture provided better accuracy in 1-d ahead (687 vs. 919), but substantially worse in 2-d ahead (1,168 vs. 470), and again better prediction (1,039 vs. 1,383) in 3-d ahead prediction than simpler E1D1. For total cumulative cases, less complicated E1D1 architecture provided consistently better predictability than E2D2 across all three prediction steps (1, 2, and 3d). Because the Health Commission of China had changed the definition of “confirmed case” on February 2, 2020 to include clinical cases based on CT scan (6), and the case numbers had a large peak, which might not reflect the actual epidemic dynamics and proposed challenge for models to deal with, especially in the middle of a time series (i.e., “spikes”). Therefore, we also provided relative MAEs based on the maximum number of each variable (Table 1, values in parenthesis) to evaluate the model performance more comprehensively.

TABLE 1
www.frontiersin.org

Table 1. Multivariate and Univariate Model Performance Comparison Between Different LSTM Architectures based on Mean Absolute Error (MAE).

We further examined whether time series of other variables could be predicted more accurately because of higher input data reliability. Multivariate LSTM performed reasonably well in predicting new deaths, hospitalizations of patients in both severe and critical condition, as well as total number of discharges from the hospital. Once again, we did not observe that either E1D1 or E2D2 was superior to the other in all three prediction time steps. Therefore, multiple architectures might need to be developed for different tasks (e.g., immediate or short-term prediction). Total deaths and new discharges were having the worst predictability among the 10 included variables. While in theory total deaths and total discharges were the cumulative sum of daily deaths and daily discharges, data-driven LSTM seemed to treat daily and total numbers independently, thus resulting in vastly different predictability of these variables.

In addition, univariate LSTM performed substantially better in 2d- and 3d-ahead prediction of the incident case, total case, and new death than their multivariate LSTM counterparts, no matter what architecture was chosen (E1D1 or E2D2). Multivariate LSTM only outperformed univariate models in 1d-ahead prediction (Table 1) in both E1D1 and E2D2 architecture. Nevertheless, because of the inconsistency in “case” definition, the seemingly better predictability of univariate LSTM on case numbers should be interpreted with caution.

Discussion

This DL approach is able to tackle some modeling challenges in current complex epidemiological systems such as the COVID-19 pandemic. In summary, not all variables had the same predictive power in the multivariate LSTM that we developed. New cases, total cases, new death, hospitalization of severe patients, hospitalization of critical condition patients, total discharged, total tracked, and total monitored in hospital had much better predictability than new discharge and total death. Univariate LSTM performed better than multivariate model in predicting both new case, total case, and new death for 2d- and 3d-ahead prediction, but multivariate LSTM outperformed at 1d-ahead prediction. We also tested 5d-ahead prediction, and the results were similar. In addition, more complex E2D2 architecture did not provide substantial performance boost over simpler E1D1 architecture. While the definitions of “case” were not consistent over time and space, we suggested that new death could be a more robust variable to track and predict during the COVID-19 epidemic. In general, there was no “one-size-fits-all” solution of LSTM architecture, and we suggest future case studies to develop several different architectures in parallel to identify the most appropriate one. In addition, LSTM is just one type of RNN besides other alternatives such as gated recurrent network (8).

LSTM is relatively easy to operate and straightforward to quickly adjust LSTM architecture by adding, removing, or revising existing layers, which are the building blocks for LSTM. More importantly, the multivariate LSTM developed in this study can be easily extended to further incorporate more data such as in the MIDAS GitHub repository (13). Other non-traditional data, such as social media, sensor-based data, and drone imaging, can be incorporated into the LSTM model to better characterize multiple aspects of COVID-19 dynamics (1419). Decentralized blockchain techniques and robotics could also provide rich and secure inputs for data-driven models such as LSTM (19, 20).

Unlike mechanistic models, data-driven DL models generally do not require thorough understanding of disease mechanisms to work with, as DL is directly driven by underlying data. We suggest the data mining step is therefore essential: more data will increase model resilience against biases in case numbers (e.g., inconsistent case definition in early phase of COVID-19). Recent blockchain technology could facilitate data archiving and mitigate data tampering issues (19).

For DL, existing models developed in a certain region can be applied to other regions with distinct sociocultural backgrounds via the transfer learning technique (10). This is another key potency specific to DL models. Modeling and comparing epidemic dynamics across sociocultural backgrounds in different regions of the world is a challenging task to mechanistic models. Many sociocultural differences (e.g., public attitude toward interventions and willingness of compliance to these interventions) may drive COVID-19 dynamics differently, but the influence of these factors is difficult to quantify in mechanistic models. However, for neural-network-based DL models, we can fix existing network layers and “transfer” this pretrained model from one region to another with distinct sociocultural backgrounds.

There are some downsides of data-driven DL models. Most prominently, DL models generally do not have good interpretability, compared to explicit mechanistic models. Therefore, DL models generally cannot derive important parameters such as R0, which is the key in mechanistic models. We suggest that DL models are more appropriate for prediction than interpretation. The other technical challenge is that although DL modeling process has been substantially simplified with Keras and Tensorflow libraries, it still requires a substantial amount of programming experiences and skills. The modeling approach, process, and results could be opaque to stakeholders and concerned citizens.

Conclusion

In this study, we describe a data-driven workflow on COVID-19 modeling, including data mining, cleaning, preprocessing, and DL with multivariate RNNs. We suggest that the multivariate LSTMs demonstrated in this study are not intended to replace the current mechanistic modeling approaches. DL models, when meticulously developed on robust datasets, are able to complement existing modeling approaches by providing a different angle on the complex epidemiological systems such as COVID-19.

Data Availability Statement

The original contributions generated for this study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding author/s.

Author Contributions

TF performed original data mining and pre-processing. SC, KM, and RP developed deep learning model. RP, DJ, and J-CT supervised the study. SC wrote the manuscript. All authors discussed and approved the final manuscript for submission.

Funding

This study was supported by the Models of Infectious Disease Agent Study (MIDAS) network supplementary grant (MIDASUP-05). The data mining part of this study was internally supported by the UNC Charlotte.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Acknowledgments

We thank the helpful discussions of the research idea with colleagues at the MIDAS network.

Supplementary Material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fpubh.2021.661615/full#supplementary-material

References

1. Chen Q, Allot A, Lu Z. Keep up with the latest coronavirus research. Nature. (2020) 579:193. doi: 10.1038/d41586-020-00694-1

PubMed Abstract | CrossRef Full Text | Google Scholar

2. Kermack WO, McKendrick AG. A contribution to the mathematical theory of epidemics. Proc Royal Soc A. (1927) 115:700–21 doi: 10.1098/rspa.1927.0118

CrossRef Full Text | Google Scholar

3. Hoertel N, Blachier M, Blanco C, Olfson M, Massetti M, Rico MS, et al. A stochastic agent-based model of the SARS-CoV-2 epidemic in France. Nat Med. (2020) 26:1417–21. doi: 10.1038/s41591-020-1001-6

PubMed Abstract | CrossRef Full Text | Google Scholar

4. Wu JT, Leung K, Leung GM. Nowcasting and forecasting the potential domestic and international spread of the 2019-nCoV outbreak originating in Wuhan, China: a modelling study. Lancet. (2020) 395:689–97. doi: 10.1016/S0140-6736(20)30260-9

PubMed Abstract | CrossRef Full Text | Google Scholar

5. Chen S, Robinson P, Janies D, Dulin M. Four challenges associated with current mathematical modeling paradigm of infectious diseases and call for a shift. Open Forum Infect Dis. (2020) 7:ofaa333. doi: 10.1093/ofid/ofaa333

PubMed Abstract | CrossRef Full Text | Google Scholar

6. The Fifth Diagnosis and Treatment Manual of the SARS-CoV-2. Chinese Center for Disease Prevention and Control. Available online at: http://www.chinacdc.cn/jkzt/crb/zl/szkb_11803/jszl_11815/202002/t20200209_212396.html (accessed June 21, 2021).

7. Kim T, Adali T. Approximation by fully complex multilayer perceptrons. Neural Comput. (2003) 15:1641–66. doi: 10.1162/089976603321891846

PubMed Abstract | CrossRef Full Text | Google Scholar

8. Shahid F, Zameer A, Muneeb M. Predictions for COVID-19 with deep learning models of LSTM, GRU and Bi-LSTM. Chaos Solitons Fractals. (2020) 140:110212. doi: 10.1016/j.chaos.2020.110212

PubMed Abstract | CrossRef Full Text | Google Scholar

9. Ibrahim MR, Haworth J, Lipani A, Aslam N, Cheng T, Christie N. Variational-LSTM autoencoder to forecast the spread of coronavirus across the globe. PLoS ONE. (2021) 16:e0246120. doi: 10.1371/journal.pone.0246120

PubMed Abstract | CrossRef Full Text | Google Scholar

10. Chimmula VKR, Zhang L. Time series forecasting of COVID-19 transmission in Canada using LSTM networks. Chaos Solitons Fractals. (2020) 135:109864. doi: 10.1016/j.chaos.2020.109864

PubMed Abstract | CrossRef Full Text | Google Scholar

11. Gautam Y. Transfer Learning for COVID-19 cases and deaths forecast using LSTM network. ISA Trans. (2021). doi: 10.1016/j.isatra.2020.12.057. [Epub ahead of print].

PubMed Abstract | CrossRef Full Text | Google Scholar

12. Hubei Province Government Press Release on COVID-19 Epidemic. Available online at: http://wjw.hubei.gov.cn/bmdt/dtyw/202106/t20210621_3603964.shtml (accessed June 21, 2021).

13. Models of Infectious Disease Agent Study (MIDAS) GitHub Repository. Available online at: https://github.com/midas-network/covid19-scenario-modeling-hub (accessed June 21, 2021).

14. Chen S, Zhou L, Song Y, Xu Q, Wang P, Wang K, et al. A novel machine learning framework for comparison of viral COVID-19-related Sina Weibo and Twitter posts: workflow development and content analysis. J Med Internet Res. (2021) 23:e24889. doi: 10.2196/24889

PubMed Abstract | CrossRef Full Text | Google Scholar

15. Huang X, Li Z, Jiang Y, Li X, Porter D. Twitter reveals human mobility dynamics during the COVID-19 pandemic. PLoS ONE. (2020) 15:e0241957. doi: 10.1371/journal.pone.0241957

PubMed Abstract | CrossRef Full Text | Google Scholar

16. Sarkar K, Khajanchi S, Nieto JJ. Modeling and forecasting the COVID-19 pandemic in India. Chaos Soliton Fract. (2020) 139:110049. doi: 10.1016/j.chaos.2020.110049

PubMed Abstract | CrossRef Full Text | Google Scholar

17. Khajanchi S, Sarkar K. Forecasting the daily and cumulative number of cases for the COVID-19 pandemic in India. Chaos. (2020) 30:071101. doi: 10.1063/5.0016240

PubMed Abstract | CrossRef Full Text | Google Scholar

18. Rai RK, Khajanchi S, Tiwari PK, Venturino E, Misra AK. Impact of social media advertisements on the transmission dynamics of COVID-19 pandemic in India. J Appl Math Comput. (2021) 27:1–26. doi: 10.1007/s12190-021-01507-y

PubMed Abstract | CrossRef Full Text | Google Scholar

19. Alsamhi SH, Lee B, Guizani M, Kumar N, Qiao Y, Liu X. Blockchain for decentralized multi-drone to combat COVID-19 and future pandemics: framework and proposed solutions. Trans Emerging Tel Tech. (2021) e4255. doi: 10.1002/ett.4255

CrossRef Full Text | Google Scholar

20. Alsamhi SH, Lee B. Blockchain-empowered multi-robot collaboration to fight COVID-19 and future pandemics. IEEE Access. (2021) 9:44173–97. doi: 10.1109/ACCESS.2020.3032450

CrossRef Full Text | Google Scholar

Keywords: COVID-19, epidemic, modeling, deep learning, multivariate

Citation: Chen S, Paul R, Janies D, Murphy K, Feng T and Thill J-C (2021) Exploring Feasibility of Multivariate Deep Learning Models in Predicting COVID-19 Epidemic. Front. Public Health 9:661615. doi: 10.3389/fpubh.2021.661615

Received: 08 February 2021; Accepted: 20 May 2021;
Published: 05 July 2021.

Edited by:

Weida Tong, National Center for Toxicological Research (FDA), United States

Reviewed by:

Justin Zhan, University of Arkansas, United States
Subhas Khajanchi, Presidency University, India
Saeed Hamood Alsamhi, Ibb University, Yemen
Bruno Ramos Nascimento, Universidade Federal de Minas Gerais, Brazil

Copyright © 2021 Chen, Paul, Janies, Murphy, Feng and Thill. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Shi Chen, schen56@uncc.edu

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.