Skip to main content
Journal of Healthcare Informatics Research logoLink to Journal of Healthcare Informatics Research
. 2024 May 28;8(3):478–505. doi: 10.1007/s41666-024-00167-4

DDE: Deep Dynamic Epidemiological Modeling for Infectious Illness Development Forecasting in Multi-level Geographic Entities

Ruhan Liu 1,2,3, Jiajia Li 4,, Yang Wen 5, Huating Li 6, Ping Zhang 7,8, Bin Sheng 9, David Dagan Feng 10
PMCID: PMC11310392  PMID: 39131102

Abstract

Understanding and addressing the dynamics of infectious diseases, such as coronavirus disease 2019, are essential for effectively managing the current situation and developing intervention strategies. Epidemiologists commonly use mathematical models, known as epidemiological equations (EE), to simulate disease spread. However, accurately estimating the parameters of these models can be challenging due to factors like variations in social distancing policies and intervention strategies. In this study, we propose a novel method called deep dynamic epidemiological modeling (DDE) to address these challenges. The DDE method combines the strengths of EE with the capabilities of deep neural networks to improve the accuracy of fitting real-world data. In DDE, we apply neural ordinary differential equations to solve variant-specific equations, ensuring a more precise fit for disease progression in different geographic regions. In the experiment, we tested the performance of the DDE method and other state-of-the-art methods using real-world data from five diverse geographic entities: the USA, Colombia, South Africa, Wuhan in China, and Piedmont in Italy. Compared to the state-of-the-art method, DDE significantly improved accuracy, with an average fitting Pearson coefficient exceeding 0.97 across the five geographic entities. In summary, the DDE method enhances the accuracy of parameter fitting in epidemiological models and provides a foundation for constructing simpler models adaptable to different geographic areas.

Keywords: COVID-19, SEIR model, Neural ODE, Epidemiological equations

Introduction

The coronavirus disease 2019 (COVID-19), caused by the virus SARS-CoV-2, has witnessed a catastrophic global spread, affecting over 214 countries and territories across all seven continents. This unprecedented pandemic has led to more than 103 million confirmed cases and an excess of 2 million fatalities [1]. The profound impact of COVID-19 extends beyond public health, significantly influencing economic and social development worldwide. The diverse circumstances surrounding the outbreak, including variations in quarantine measures, social distancing protocols, population density, and healthcare infrastructure, have resulted in distinct patterns of COVID-19 transmission across different regions [2, 3]. Given these disparities, the development of analytical models is imperative for comprehensively understanding the disease’s trajectory and projecting future trends. Such models play a pivotal role in analyzing the spread dynamics and formulating effective strategies to mitigate the outbreak’s impact on various geographic scales.

Many studies propose mathematical models to simulate the progression of infectious diseases, with the Susceptible-Infected-Removed (SIR) and Susceptible-Exposed-Infected-Removed (SEIR) models (Fig. 1) being widely employed by epidemiologists due to their simplicity, utilizing only infectious, exposed, and recovered rates to characterize disease dynamics [5]. However, the complex nature of real-world infection dynamics often challenges existing parameter estimation methods, resulting in suboptimal fitting performance for SIR and SEIR models [5]. To address these limitations, some studies have introduced variants to SIR or SEIR models, aiming to better capture diverse population trends with multiple parameters tailored to specific geographic areas, yielding higher precision in fitting performance [611]. Nevertheless, due to the unique characteristics of each region (with some regions experiencing nascent outbreaks while others observe diminishing cases), designing distinct models for individual regions is time-intensive. Moreover, precise modeling is crucial for estimating the spread of COVID-19. Therefore, the development of simple yet accurate models, adaptable to a wide range of countries or regions and easily transferable to new areas, holds significant value in COVID-19 modeling efforts.

Fig. 1.

Fig. 1

The architectures of Susceptible-Infected-Removed (SIR) and Susceptible-Exposed-Infected-Removed (SEIR) models. A Structure figure for SIR model. B Structure figure for SEIR model. β in the figures represents the transmission rate of infection, σ is the rate of moving from exposed to infectious class, and γ shows the recovery rate [4]

Machine learning has made significant strides in addressing numerous complex data-driven challenges, including the prediction of medical data. Consequently, it has been increasingly utilized to model COVID-19 data, offering robust data fitting capabilities particularly in early-stage modeling [1216]. However, there remains a gap in exploring the forecasts under varied development scenarios during the middle and late periods of the pandemic. Moreover, the inherent black-box nature of these machine learning models enables users to obtain predicted results directly, yet it hampers interpretability as the reasons behind predictions remain unclear. Consequently, these models exhibit low explainability, and their prediction process lacks analytical and quantifiable assessment.

Due to the limitations of existing methods, we introduce a novel deep dynamic epidemiological modeling (DDE) method, which integrates neural ordinary differential equations (Neural ODE) [17] and epidemiological equations (EE) for COVID-19 data fitting. Recognizing the diverse characteristics of countries and regions, we propose four variant models based on the SIR and SEIR models, namely SIRD, SEIRD, SMCRD, and SEMCRD. These models accommodate variations in population group classifications and can handle different data sources, such as instances where specific numbers of mild and severe cases are not explicitly provided. Furthermore, we developed the DDE framework to fit real-world data based on these four variants. We designed an auxiliary neural network within the Neural ODE solver to refine the effect function, thereby capturing the diverse impacts of regional and national intervention policies on the infection rate. In summary, the contributions of this paper can be delineated as follows.

  1. We introduce the DDE method, which integrates neural networks (NN) and Neural ODE to facilitate parameter fitting in SEIR-like models. This approach enables the derivation of transmission rates across various population groups through network training and provides visualizations depicting the evolution of these rates. Notably, DDE demonstrates superior performance, yielding Pearson correlation coefficients exceeding 0.97 across all datasets.

  2. We develop four variants of the SIR/SEIR models, namely SIRD, SEIRD, SMCRD, and SEMCRD, designed to accommodate the diverse characteristics observed across regions and countries. Employing the DDE method enhances the precision of parameter estimation compared to state-of-the-art approaches.

  3. We conduct a comparative analysis of the DDE method against other learning-based models. Our findings reveal that the DDE method consistently outperforms state-of-the-art methods, achieving significantly higher average Pearson coefficients (P < 0.05). Furthermore, we examine the output trends of the neural networks and demonstrate their correlation with real-world data.

Related Work

SEIR and their Variants

The SEIR model and its variants are widely employed in epidemiological analyses. Within the SEIR model, the population is segmented into four categories: susceptible individuals (S), exposed individuals (E), infected individuals (I), and recovered individuals (R). The dynamics of these compartments are governed by a system of coupled ordinary differential equations. Previous studies investigating infectious diseases, such as SARS and MERS, which have sparked global epidemics, often rely on the SEIR model for epidemiological analysis [5, 18, 19]. Similarly, in the context of COVID-19 research, numerous studies have focused on variants of the SEIR model tailored to specific regions or cities [6, 811]. For instance, Peng et al. [6] proposed a generalized SEIR model to analyze the COVID-19 epidemic in China, while Choi et al. [8] introduced an enhanced SEIR model, termed the SEIAQIm model, based on data from Korea. Furthermore, novel extensions of the SEIR framework have been proposed to capture additional complexities in disease transmission dynamics. Watson et al. [9] presented a population-based, age-structured Susceptible-Exposed-Infectious-Recovery-Susceptible (SEIRS) model, employing a Metropolis-Hastings Markov Chain Monte Carlo sampling scheme to fit the model to COVID-19 mortality data within a Bayesian framework. Additionally, Leung et al. [10] developed an age-structured susceptibility-exposure-infection-removal (SEIR) model to simulate the spread of the Omicron variant in Beijing. The proposed SEIR variants [810] are tailored to particular countries or regions and often feature intricate parameter designs.

Statistical Methods

Statistical models play a vital role in modeling specific aspects of real-world data. For instance, Kraemer et al. [20] utilized generalized linear models to examine the impact of human mobility and control measures during the early stages of the COVID-19 outbreak in Wuhan, China. Additionally, Chinazzi et al. [21] proposed the global epidemic and mobility model to analyze the effects of travel restrictions on the global spread of COVID-19, utilizing parameters derived from previous epidemiological studies of SARS and MERS coronaviruses. Furthermore, Kucharski et al. [22] investigated the repercussions of cases exported from Wuhan on other regions using a stochastic transmission dynamic model. While these statistical models have provided valuable insights into specific aspects of the pandemic, they exhibit diversity in their designs and complexity.

Learning-Based Methods

Some studies addressing the issue of COVID-19 data trend prediction have turned to machine learning approaches, driven by perceived deficiencies in SEIR models and statistical methods. For instance, Yang et al. [13] integrated population migration data before and after January 23, along with the latest COVID-19 epidemiological data, into the SEIR model to forecast the epidemic curve. Similarly, Rustam et al. [12] proposed the utilization of various machine learning models, including linear regression, least absolute shrinkage and selection operator, support vector machine, and exponential smoothing, to predict infection, recovery, and mortality rates. However, these approaches either relied on historical infectious disease data for training or lacked interpretability. Furthermore, Dandekar et al. [23] attempted to leverage the Neural ODE method to model changes in the infection and recovery groups. However, this method primarily focused on enhancing the performance of the SIR model and fitting real-world data, with experimentation limited to the early stages of the COVID-19 pandemic (before April). Moreover, comparative analyses with other methods were lacking, and the method did not assess data fitting across various scales of regions (countries, regions, cities), hindering its practical application.

Method

In this section, we propose a data-driven model for fitting real-world data. Firstly, we introduce four variants derived from the SEIR and SIR models to enhance the fitting accuracy of COVID-19 data. Subsequently, we elaborate on the DDE method for dynamic parameter estimation. Within our DDE framework, multi-layer neural networks are incorporated to model intervention influence functions, enabling the assessment of the impact of quarantine policies across different countries. Figure 2 illustrates the computational process involved in our DDE method for dynamic parameter estimation.

Fig. 2.

Fig. 2

The overall structure of the proposed DDE model. A The model structure of DDE method. The real data are represented by solid frames, and the predictions are shown by dotted frames. The system consists of four parts: Firstly, the current values of the equations are inputted into the parameter generation network to derive corresponding parameters. Subsequently, these generated parameters, along with the current values, are utilized to compute the function value at the subsequent time step using the Neural ODE solver. This process iterates multiple times until the solution converges to the predicted value. Finally, the loss function between the predicted value and the ground truth is calculated, enabling optimization through gradient descent. B The schematic plot of the process of solving the epidemiological equations. C The process plot provides a detailed illustration of parameter estimation

The SIR model partitions the population into three distinct groups: the susceptible (S), the infectious (I), and the recovered (R). Here, the S group represents healthy individuals, while the I group comprises those who have been infected. The R group consists of individuals who have successfully recovered from the infection. The SEIR model incorporates an additional compartment for the exposed group (E), representing individuals who have been exposed to the virus but are not yet infectious. The formulation of the SEIR model is depicted below:

dSdt=-β·S·INdEdt=β·S·IN-σ·EdIdt=σ·E-γ·IdRdt=γ·I 1

where β is the transmission rate of infection, σ is rate of moving from exposed to infectious class, γ is the recovery rate, and N=S+I+E+R is the number of the total population.

Four Variants: SIRD, SEIRD, SMCRD, and SEMCRD

The classic SEIR model has been extensively utilized in numerous prior studies [5, 18, 19]. Moreover, in the context of COVID-19 research, the SEIR model remains prevalent [2426]. Given the distinctive characteristics of COVID-19, we identify several areas for enhancing the traditional SEIR and SIR models:

  1. We introduce a novel approach to categorize the recovery population, distinguishing between fatalities and individuals undergoing disease rehabilitation. This refinement involves partitioning the original recovery group into two distinct subgroups: the deceased population and the recovery (disease rehabilitation) population. To accommodate the varied death and recovery scenarios observed across different countries, we propose the incorporation of two parameters: mortality rate and recovery rate.

  2. We refine the definition of the infected population to encompass two subcategories: the mild population and critical patients. The mild population encompasses asymptomatic individuals and those with self-recovering mild symptoms, whereas critical patients include severe cases requiring hospitalization. To capture the dynamics of real infections more accurately, we introduce three parameters: the mild infectious rate, the transition rate from mild to critical, and the recovery rates for both mild and critical cases. This refinement enhances the fidelity of our model in simulating real-world infection dynamics.

Therefore, we implement four variants: SIRD, SEIRD, SMCRD, and SEMCRD. Figure 3 illustrates the model structures of these four variants. Compared to the SIR and SEIR models, the SIRD and SEIRD models incorporate considerations for the deceased population, facilitating a comprehensive understanding of mortality growth attributed to the disease. Additionally, the SMCRD and SEMCRD models, derived from the SIRD and SEIRD models respectively, further delineate the infected group I into mild and critical cases. This segmentation aligns with the nuanced characteristics of COVID-19, enabling more accurate modeling of real-world data. The formulations of the SMCRD and SEMCRD models are depicted below:

dSdt=-β·S·(M+C)NdMdt=β·S·(M+C)N-α·M-γMR·MdCdt=α·M-γCR·C-γD·CdRdt=γMR·M+γCR·CdDdt=γD·C 2

where α is the rate of moving from people with mild symptoms to people with severe symptoms, γMR is the rate of moving from people with mild symptoms to recovered, γCR is the rate of moving from people with severe symptoms to recovered, γD is the rate of moving from people with severe symptoms to death, and N=S+M+C+R+D is the number of the total population.

dSdt=-β·S·(M+C)NdEdt=β·S·(M+C)N-σ·EdMdt=σ·E-α·M-γMR·MdCdt=α·M-γCR·C-γD·CdRdt=γMR·M+γCR·CdDdt=γD·C 3

where N=S+E+M+C+R+D is the number of the total population.

Fig. 3.

Fig. 3

The architectures display the four variants based on SEIR and SIR models: SIRD, SMCRD, SEIRD, SEMCRD. In the SIRD model, the transmission rate of infection β, recovery rate γR, and mortality rate γD are considered. Furthermore, the SEIRD model takes the exposed group E into account and assumes the exposed rate as σ. The SMCRD and SEMCRD models divide the infection group into people with mild symptoms M and people with severe symptoms C. Thus, the rate of moving from people with mild symptoms to people with severe symptoms is α, the recovery rate of the people with mild symptoms is γMR, the recovery rate of the people with severe symptoms is γCR, the death rate of the people with severe symptoms γD [4]

The unified equation form of these models is as follows:

dZ(t)dt=F(Z(t),t,θ),withZ(t0)=Z0 4

where t{t0,...,ti,...,tT} (t0 stands for the initial day, and ti represents the ith day from t0), Z(t)RD, Z0=[S0,E0,I0,R0,D0] for SEIRD model, Z0=[S0,I0,R0,D0] for SIRD model, Z0=[S0,E0,M0,C0,R0,D0] for SEMCRD model, and Z0=[S0,M0,C0,R0,D0] for SMCRD model, Z0 is the function value at time t0. The F(·) is a known and continuous function with parameter θ, and Z(t) is the unknown function that must be approximated. For the SIRD model, the parameter set θ includes β,γR,γD. The SEIRD model’s parameter set θ includes β,σ,γR,γD. Further, for SMCRD model, θ includes β,α,γMR,γCR,γD. In SEMCRD model, θ includes β,σ,α,γMR,γCR,γD.

From a computational point of view, knowing that Z(t0)=Z0, you can calculate the value of Z(ti)=Zi in any step ti by performing piecewise integration from previously known points:

Zi=Zi-1+ti-1iF(Zi-1,ti-1,θ)withi{1,...,T} 5

When Δτ=ti-ti-1 is small enough, we can get the approximation result:

Zi=Zi-1+Δτ·F(Zi-1,ti-1,θ) 6

Thus, in each time step ti, the value of function Zi can be obtained by deduction of the function value Zi-1 at the previous moment ti-1.

DDE Method Applying in SMCRD and SEMCRD Models

Neural networks are renowned for their robust fitting capabilities. In our DDE model, we employ multi-layer neural networks (MNNs) to model the effect function’s values, utilizing them as dynamic parameters within the Neural ODE solution process. Figure 4 elucidates the utilization of multi-layer neural networks in parameter design. The estimation of these designed parameters draws inspiration from the Neural ODE method [17]. In the preceding section, we introduced four variants based on the SEIR or SIR model and outlined the parameter designs for SIRD, SEIRD, SMCRD, and SEMCRD models. However, in real-world data fitting, diverse countries and regions often implement varying intervention and isolation measures, eliciting different responses from the populace. Consequently, we revise the parameter set θ to account for the myriad changes in infection scenarios:

θ=[β,W,γR,γD], for SIRDθ=[β,W,σ,γR,γD], for SEIRDθ=[β,W,α,γMR,γCR,γD], for SMCRDθ=[β,W,σ,α,γMR,γCR,γD], for SEMCRD 7

where the β is the transmission rate of infection which could be influenced by effect function Efft. The effect function Efft uses the MNNs to fit. The W represents the weights in the MNNs. The structure of the MNNs is shown in Fig. 5.

Fig. 4.

Fig. 4

The DDE method is implemented in SMCRD and SEMCRD models. In the DDE-SMCRD and DDE-SEMRD models, neural network (NN) models are used to calculate dynamic β (initial β×EEft) based on the neural ODE method

Fig. 5.

Fig. 5

The structure figure of the MNNs that are used to fit the effect function Efft on the dynamic transmission rate of infection β

According to Fig. 5, we can obtain the output of the first hidden layer of the MNNs as follows:

Hk11(ti)=a(j=1inputuWj·k11·Inputj(ti)+bk11) 8

where Hk11(ti) is the k1th of unit of the first hidden layer output in time step ti, the input tensor Input(ti) =[Input0(ti), Input1(ti), Input2(ti), Input3(ti), Input4(ti)] for SEMCRD (Input0 is Eti, Input1(ti) is Mti, Input2(ti) is Cti, Input3(ti) is Rti, and Input4(ti) is Dti) and Input(t) =[Input0(ti), Input1(ti), Input2(ti), Input3(ti)] for SMCRD (Input0(ti) is Mti, Input1(ti) is Cti, Input2(ti) is Rti, and Input3(ti) is Dti), the inputu is the number of Input(ti), it is 5 for SEMCRD model or is 4 for SMCRD model. The Wj·k11 represent the weight of the input layer and the first hidden layer in the connection weight of the jth input unit and the k1th of the first hidden unit. The bk11 is the bias of the k1th unit of the first hidden layer, and the a(·)=ELU(·) is the activation function of the hidden layer.

The output of the 2nd hidden layer to the Nth hidden layer also can be deduced in the following:

Hk22(ti)=a(k1=1h1_uWk1·k22·Hk11(ti)+bk22)......HkNN(ti)=a(kN-1=1hN-1_uWkN-1·kNN·HkN-1N-1(ti)+bkNN) 9

where a(·) is the activation function, and all hidden layers use the same activation function, hN-1_u is the number of hidden units in the N-1th hidden layer, bkNN is the bias of the kNth unit of the Nth hidden layer, WkN-1·kNN represents the parameters between the N-1th hidden layer and Nth hidden layer. And, the HkN-1N-1(ti) is the kN-1th units of the N-1th hidden layer in time step ti, and HkNN(ti) is the kNth units of the Nth hidden layer in time step ti. Similarly, replace N with 2 to get the mean of Hk22(ti), h1_u, Wk1·k22, b2, and Hk11(ti).

Thus, we can calculate the output of these MNNs:

Outputβ(ti)=(1+e-kN=1N_uWkNO·HkNN(ti)+bO)-1 10

where Outputβ(ti) in the ith time step ti as the output of N-layer NN, hN_u is the number of hidden units in the Nth hidden layer, WO represents the parameters between the Nth hidden layer and the output layer and the WkNO stands for the kNth of the weight matrix WO, HN(ti) is the output of the Nth hidden layer in time step ti and the HkNN(ti) is the output of the kNth of the hidden layer output, and the bO stands for the bias of the output layer. Moreover, we can present a simper form of Outputβ(ti) with weight of N hidden layer is W={W1,W2,...,WN}, and WO is the weight of output layer as:

Outputβ(ti)=aO(WO(a(WN...a(W1·Input(ti)+b1)...)+bN)+bO) 11

where the activation function of output layer is aO(·), and the activation function of hidden layers is a(·). The bias {b1,...,bN} is of the 1st to Nth of hidden layers.

The output of the MNNs represents the effect function Efft. To solve the ODE equations Z(t), we need to use an ODE solver. Efficient and accurate ODE solvers have been used for 120 years and can guarantee the growth of approximation error, monitor the level of error, and adapt their evaluation strategy on the fly to achieve the requested level of accuracy [17]. In specific time ti, the function Zi can be obtained into the form:

Zi=ODESlover(Zi-1,F(Zi-1,ti-1,θ),ti-1,θ),withZ(t0)=Z0 12

According to Eq. 12, each Zi can be calculated. Different models have various parameter sets θ. The specific content of θ has been given in Eq. 7.

Further, we design the loss function. The loss function L with MNNs attempts to minimize the value of the loss function by adjusting parameters for SMCRD and SEMCRD models. The simper loss function is:

L(X,X^)=13t=0Tminθ{(log(Xt)-log(Xt^))2}=13t=0Tminθ,W{||log(It)-log(M^t+C^t)||2+||log(Rt)-log(R^t))||2+||log(Dt)-log(D^t)||2} 13

where X={X0,X1,...,XT} represent real data considered in the loss function in each time step and X^={X^0,X^1,...,X^T} stands for predicted data per day. In the ith of time ti, the real data used in calculate loss is Xi=[Ii,Ri,Di], and the predicted data is X^i=[M^i+C^i,R^i,D^i] (Ii, Ri, and Di represent the number of real infection, recovery, death group, relatively, and M^i, C^i, R^i, and D^i stand for the number of predicted mild patients, critical patients, recovery, death group.).

To minimize L, understanding how the gradient of the loss depends on equation set Z(t). According to the chain rules, we can know that:

da(t)dt=-a(t)Tf(Z(t),t,θ)Zwhere,a(t)=LZ(t) 14

The LZ(t0) can be computed by the ODESolver mention above. The ODESolver must start from the initial value of LZ(tT) and run backward. A complicated situation is that solving this ODE requires knowing the value of Z(t) along its entire trajectory. However, we can simply recalculate Z(t) from its final value Z(tT)=ZT and work backward with time.

The gradients of loss function L depends on both Z(t) and a(t):

dLdθ=-tT0a(t)Tf(Z(t),t,θ)θdt 15

The a(t)TFZ, a(t)TFθ and F can be obtained through automatic differentiation of computing vector-Jacobian products. Finally, all gradients including LZ(t0) and Lθ can be calculated at once by calling the ODE solver. From the steps, we first define the initial state, and then design the dynamics system. After that, we compute vector-Jacobian products to obtain a(t)TFZ, a(t)TFθ and F. In the end, the ODESolver is used to solve the reverse-time SMCRD and SEMCRD equations and gain the gradients.

Experiments and Discussions

Implemental Details

In our experiment, we gathered two types of data: country-level and regional-level. For countries, we utilized data from three countries for model training and testing: the United States of America (USA), Colombia (CO), and South Africa (ZA). Additionally, our model implementation considered data from two specific regions: Wuhan City in China (CN-WH) and Piedmont in Italy (PD). Data collection involved obtaining information on the total cumulative infection cases, recoveries, and deaths, sourced from [9, 27]. For CN-WH, the data spanned from January 24th, 2020 to April 15th, 2020, while for PD, it ranged from February 24th, 2020 to August 4th, 2021. Regarding country-level data collection, we gathered data from January 23rd, 2020 to December 14th, 2020 for the USA, and from March 6th, 2020 to August 11th, 2020 for CO, and from March 7th, 2020 to August 12th, 2020 for ZA. All statistical data were sourced from official notifications provided by various countries, the World Health Organization (WHO), the National Health Commission, among others. For model testing, we utilized the data from the last 20 days to assess model performance, while the remaining data were used for model training.

We employed experienced initial parameter values based on [28], as both traditional parameter estimation methods and our DDE algorithm require initialization. Based on experimental results, the median time from onset to clinical recovery for mild cases is approximately two weeks, leading us to select 0.07 as the initial value for parameter γMR. Considering the recovery time for patients with severe or critical diseases ranging from 3 to 6 weeks, we set the initial γCR to 0.03. According to a previous study [28], the period from onset to the development of severe diseases is one week, leading us to choose 0.15 as the initial α. Additionally, the time from symptom onset to outcome among deceased patients varies from 2 to 8 weeks, with a median of six weeks. Thus, we set the initial value of γD to 0.03. For the models incorporating MNNs, we chose 0.15 as the initial value for σ and α, 0.07 for γMR, 0.03 for γCR, and 0.03 for γD. For fitting β using MNNs, we selected 0.5 as the initial bias of MNNs, 0.0 as the mean value of the initial weight of MNNs, and 0.01 as the standard deviation (std) of the initial weight of MNNs. All experiments were conducted on an Intel XeonE5-2630 v4 @ 2.20GHz CPU and NVIDIA RTX 2080Ti GPU running ArchLinux. We implemented all models using PyTorch. The DDE algorithms implemented in all epidemiological equations were trained for 5000 iterations with a selected learning rate (LR) of 1e-3, which decayed to 0.95 times the LR after 400 iterations. All methods followed a standardized approach, utilizing the initial 80% of the data for training and fitting purposes, allocating the middle 10% for validation, and assessing the optimal model’s performance on the remaining 10% of the data.

To evaluate and demonstrate the efficacy of our DDE algorithm, we conducted several experiments. Initially, we implemented the DDE algorithm based on two classical epidemiological equations, SIR and SEIR, along with four variants devised by us, namely SIRD, SEIRD, SMCRD, and SEMCRD. These four models of DDE algorithms are referred to as DDE-SIRD, DDE-SEIRD, DDE-SMCRD, and DDE-SEMCRD, respectively. In Part A of the experiment, we investigated the disparities between our DDE algorithm and traditional parameter estimation methods, including neural ODE, Nelder-Mead, Truncated Newton Conjugate-Gradient (TNC), Metropolis-Hastings Markov chain Monte Carlo-based method (MCMC-MH) [9], Adaptive-Metropolis Markov chain Monte Carlo-based method (MCMC-AM), and Delay Rejecting Adaptive Metropolis Markov chain Monte Carlo-based method (MCMC-DRAM). Subsequently, in Part B of the experiment, we compared the performance of the four models with state-of-the-art machine learning techniques such as Decision Tree (DT), Extremely randomized trees (ET), Random Forest, and deep learning methods including RNN, LSTM, and GRU. Finally, in Part C, we presented the estimated parameters obtained by the DDE method, providing further insight into its capabilities.

Part A: Comparisons of Traditional Parameter Estimation Methods and DDE

Using parameter estimation methods to assess essential parameters, including infection, mortality, and recovery rates, is crucial for SEIR and its variants to accurately model disease dynamics. Therefore, we conducted a comparison between traditional parameter estimation methods and the DDE method proposed in this study. The comparison performance of different estimation methods based on SIR and its variants in the national data is presented in Table 1. In the USA, the mean squared error (MSE) obtained by the best traditional parameter estimation method is 693.137, while the best MSE achieved by the DDE method is 44.209. Similarly, for the recovery rate estimation, the MSE obtained by the best traditional method is 19.575, whereas the DDE model yields a significantly lower MSE of 0.173. On ZA, the MSE obtained by the best traditional parameter estimation method is 25.209, whereas the DDE method achieves a substantially lower MSE of 0.370. These results highlight the superior performance of the DDE method in accurately estimating essential parameters compared to traditional parameter estimation methods.

Table 1.

MSE of SIR model and its variants in different optimization methods, including Neural ODE (Adam) [17], Nelder-Mead [29], BFGS [30], TNC [31]), MCMC-MH [9], MCMC-AM, MCMC-DRAM, and DDE. The unit of MSE is ten thousand people

Models Parameter estimation method Countries Regions
CO USA ZA CN-WH Italy-PD
SIR [18] Neural ODE 19.317* 16550.121* 183.378* 2.407* 4.697*
Nelder-Mead 40.253* 2979.545* 166.426* 5.875* 11.609*
BFGS 28.419* 2094.101* 196.961* 1.125* 8.182*
TNC 27.632* 2703.972* 54.257* 1.099* 5.102*
MCMC-MH 68.071* 1971.760* 211.275* 7.214* 1.740*
MCMC-AM 67.836* 2070.959* 216.647* 8.262* 1.809*
MCMC-DRAM 72.410* 1951.311* 218.704* 6.882* 1.991*
DDE 0.210 52.799 1.143 0.140 0.068
SIRD Neural ODE 29.148* 10190.655* 137.386* 2.910* 4.063*
Nelder-Mead 59.437* 2722.980* 177.995* 5.303* 8.003*
BFGS 57.518* 2693.094* 176.266* 1.067* 8.582*
TNC 29.590* 2218.704* 59.395* 1.128* 3.179*
MCMC-MH 42.029* 1265.510* 140.070* 4.657* 10.523*
MCMC-AM 46.686* 1178.305* 137.213* 6.350* 12.384*
MCMC-DRAM 42.202* 1228.337* 138.031* 4.331* 0.949*
DDE 0.173 53.628 1.047 0.096 0.034
SMCRD Neural ODE 30.634* 13553.997* 137.763* 2.899* 4.043*
Nelder-Mead 28.687* 7476.677* 85.259* 2.884* 0.705*
BFGS 28.687* 7476.649* 85.260* 2.786* 7.909*
TNC 24.860* 7901.017* 84.018* 3.678* 0.722*
MCMC-MH 22.140* 746.631* 82.189* 1.883* 5.119*
MCMC-AM 19.575* 693.137* 67.917* 4.973* 4.038*
MCMC-DRAM 21.372* 944.910* 83.602* 5.933* 3.299*
DDE 0.526 44.209 2.074 0.027 0.028

*Represents metrics with statistically significant differences compared to the proposed DDE method (p < 0.05)

The bold values in the table represent the best results on the corresponding dataset for that column

Furthermore, Table 2 presents the comparison results of different estimation methods based on SEIR and its variants in the national data. In the USA, MSE obtained by the best traditional parameter estimation method is 547.042, while the best MSE achieved by the DDE method is 41.598. Similarly, for the recovery rate estimation, the MSE obtained by the best traditional method is 5.303, whereas the DDE model yields a significantly lower MSE of 0.182. On ZA, the MSE obtained by the best traditional parameter estimation method is 37.618, whereas the DDE method achieves a substantially lower MSE of 0.370. These results underscore the superior performance of the DDE method in accurately estimating essential parameters compared to traditional parameter estimation methods.

Table 2.

MSE of SEIR model and its variants in different optimization methods, including Neural ODE (Adam) [17], Nelder-Mead [29], BFGS [30], TNC [31]), MCMC-MH [9], MCMC-AM, MCMC-DRAM, and DDE. The unit of MSE is ten thousand people

Models Parameter estimation method Countries Regions
CO USA ZA CN-WH Italy-PD
SEIR [5] Neural ODE 23.231* 10523.219* 38.832* 0.967 6.812*
Nelder-Mead 22.111* 2172.293* 195.785* 5.677* 8.903*
BFGS 33.297* 2767.012* 78.357* 8.627* 24.941*
TNC 30.671* 2882.301* 36.361* 6.777* 3.573*
MCMC-MH 27.029* 1033.137* 69.987* 1.433* 7.662*
MCMC-AM 22.506* 828.373* 66.287* 1.605* 3.799*
MCMC-DRAM 22.681* 958.117* 74.007* 0.984* 7.521*
DDE 0.192 56.901 0.967 0.250 0.034
SEIRD Neural ODE 9.664* 10858.052* 39.060* 0.366 1.271*
Nelder-Mead 57.171* 2727.172* 184.118* 5.298* 8.083*
BFGS 63.887* 2657.202* 70.900* 8.750* 54.941*
TNC 29.307* 2611.273* 32.233* 6.500* 3.598*
MCMC-MH 16.443* 550.370* 48.904* 7.340* 4.847*
MCMC-AM 22.648* 547.749* 60.919* 5.717* 4.388*
MCMC-DRAM 14.273* 547.042* 43.801* 3.268* 3.889*
DDE 0.182 52.377 0.370 0.138 0.028
SEMCRD Neural ODE 5.475* 5521.649* 69.415* 0.727* 0.720*
Nelder-Mead 16.453* 5899.235* 85.259* 2.464* 0.405*
BFGS 30.886* 7476.546* 99.747* 17.681* 1.311*
TNC 27.640 2094.233* 115.132* 3.072* 3.403*
MCMC-MH 6.586* 3447.659* 192.867* 2.075* 2.289*
MCMC-AM 13.488* 1796.291* 163.301* 1.884* 2.197*
MCMC-DRAM 5.303* 1627.123* 37.618* 1.928* 2.345*
DDE 0.459 41.598 0.386 0.033 0.014

*Represents metrics with statistically significant differences compared to the proposed DDE method (p < 0.05)

The bold values in the table represent the best results on the corresponding dataset for that column

Table 1 presents the comparison results of different estimation methods based on SEIR and its variants on the regional data. The best method among the parameter estimation methods obtains an MSE of 0.705 on PD, while the best MSE of DDE models is 0.028. Similarly, on CN-WH, the best method among the parameter estimation methods achieves an MSE of 1.067, whereas the best MSE of the DDE method is 0.027. Additionally, Table 2 illustrates the comparison performance of different estimation methods based on SEIR and its variants in the regional data. The best method among the parameter estimation methods obtains an MSE of 0.405 on PD, while the best MSE of DDE models is 0.014. Similarly, on CN-WH, the best method among the parameter estimation methods achieves an MSE of 0.366, whereas the best MSE of the DDE method is 0.033. These results demonstrate the superior performance of the DDE method in accurately estimating essential parameters compared to traditional parameter estimation methods, particularly on regional data.

Table 3 presents the Pearson coefficient to evaluate the performance of all methods based on SIR and its variants. It is interesting to note the difference in performance between the US data and other regional data. In the US data, while the DDE method still achieves a high Pearson correlation of 97.23%, it is intriguing that the traditional parameter estimation method performs slightly better with a correlation of 98.45%. The lack of significant difference (P < 0.05) between the two methods suggests that, in the context of US data, both approaches may be equally effective for parameter estimation. Similar trends are observed in CO, ZA, CN-WH, and PD, where the DDE method consistently achieves higher Pearson coefficients compared to traditional methods.

Table 3.

Pearson coefficients of SIR model and its variants in different optimization methods, including Neural ODE (Adam) [17], Nelder-Mead [29], BFGS [30], TNC [31], MCMC-MH [9], MCMC-AM, MCMC-DRAM, and DDE. N represents the prediction with no correlation to real data

Models Parameter estimation method Countries Regions
CO USA ZA CN-WH Italy-PD
SIR [18] Neural ODE 91.95%* 72.04%* 82.92%* 34.71%* 49.77%*
Nelder-Mead 84.53%* 86.98%* 86.98%* 29.60%* 46.82%*
BFGS 88.23%* 80.29%* 85.82%* 56.80%* 47.27%*
TNC 80.80%* 86.92%* 91.69%* 47.28%* 39.98%*
MCMC-MH 92.72%* 94.42%* 11.29%* -00.09%* -00.41%*
MCMC-AM 92.75%* 94.89%* 11.29%* -00.04%* -00.57%*
MCMC-DRAM 92.74%* 94.52%* 11.27%* -00.19%* -00.47%*
DDE 99.17% 97.14% 97.93% 98.33% 95.18%
SIRD Neural ODE 90.82%* 70.90%* 85.09%* 31.79%* 42.98%*
Nelder-Mead 89.95%* 82.56%* 86.01%* 29.72%* 40.54%*
BFGS 90.02%* 82.00%* 85.89%* 23.86%* 40.10%*
TNC 92.58%* 85.08%* 90.61%* 44.17%* 46.93%*
MCMC-MH 92.59%* 94.61%* 39.18%* 28.42%* 29.43%*
MCMC-AM 92.61%* 94.77%* 39.21%* 28.25%* 29.37%*
MCMC-DRAM 92.65%* 94.69%* 39.19%* 28.38%* 29.38%*
DDE 99.47% 97.23% 98.88% 97.33% 94.22%
SMCRD Neural ODE 90.77%* 70.89%* 85.06%* 31.81%* 42.94%*
Nelder-Mead 1.73%* 1.86%* 1.49%* 8.90%* 2.34%*
BFGS -2.78%* 6.16%* -5.87%* -6.09%* 40.57%*
TNC -1.62%* 17.34%* 14.24%* 8.36%* 5.98%*
MCMC-MH 93.57%* 94.78%* 40.22%* 29.10%* 29.78%*
MCMC-AM 93.81%* 96.37% 40.79%* 29.92%* 29.64%*
MCMC-DRAM 93.94%* 98.45% 40.04%* 29.11%* 29.70%*
DDE 98.95% 97.15% 98.71% 97.42% 95.38%

*Represents metrics with statistically significant differences compared to the proposed DDE method (p < 0.05)

The bold values in the table represent the best results on the corresponding dataset for that column

Similarly, Table 4 shows the Pearson coefficient to evaluate the performance of all methods based on SEIR and its variants. The DDE method outperforms traditional parameter estimation methods across all regions. For example, in the USA, the best DDE model achieves a Pearson coefficient of 98.75%, while the best traditional parameter estimation method achieves 98.08%. Similar trends are observed in CO, ZA, CN-WH, and PD, where the DDE method consistently achieves higher Pearson coefficients compared to traditional methods. Therefore, we can conclude that the DDE model outperforms all traditional parameter estimation methods in correlation and precision.

Table 4.

Pearson coefficients of SEIR model and its variants in different optimization methods, including Neural ODE (Adam) [17], Nelder-Mead [29], BFGS [30], TNC [31]), MCMC-MH [9], MCMC-AM, MCMC-DRAM, and DDE. N represents the prediction with no correlation to real data

Models Parameter estimation method Countries Regions
CO USA ZA CN-WH Italy-PD
SEIR [5] Neural ODE 90.64%* 78.31%* 90.64%* 90.77%* 59.33%*
Nelder-Mead 90.18%* 82.98%* 88.69%* 22.02%* 32.67%*
BFGS 63.17%* 84.23%* 26.39%* 55.88%* 47.55%*
TNC 57.44%* 80.28%* 91.25%* 69.52%* 35.62%*
MCMC-MH 94.30%* 95.40%* 13.39%* -00.06%* -00.49%*
MCMC-AM 94.50%* 95.82% 13.53%* -00.14%* -00.35%*
MCMC-DRAM 94.49%* 95.32%* 13.34%* -00.01%* -00.58%*
DDE 99.77% 98.75% 99.01% 98.03% 94.47%
SEIRD Neural ODE 95.97%* 76.20%* 91.66%* 93.27%* 54.99%*
Nelder-Mead 90.14%* 82.56%* 85.80%* 29.72%* 40.45%*
BFGS 53.76%* 82.03%* 29.45%* 59.88%* 47.91%*
TNC 92.57%* 82.26%* 94.00%* 68.70%* 45.98%*
MCMC-MH 94.18%* 95.88% 41.01%* 47.29%* 29.97%*
MCMC-AM 93.88%* 96.16% 40.67%* 29.09%* 30.06%*
MCMC-DRAM 94.37%* 95.98% 41.21%* 29.45%* 30.30%*
DDE 99.47% 97.35% 99.61% 97.32% 95.47%
SEMCRD Neural ODE 92.13%* N* 86.98%* 58.02%* 52.35%*
Nelder-Mead 26.34%* N* -2.32%* 11.07%* 61.82%*
BFGS 92.03%* N* 88.81%* 23.07%* 48.45%*
TNC 92.80%* N* 87.80%* 33.07%* 46.15%*
MCMC-MH 95.51%* 96.82% 42.79%* 30.29%* 30.49%*
MCMC-AM 94.35%* 97.87% 43.14%* 28.57%* 30.61%*
MCMC-DRAM 95.82%* 98.08% 41.34%* 30.07%* 30.52%*
DDE 99.17% 97.17% 99.48% 96.94% 97.59%

*Represents metrics with statistically significant differences compared to the proposed DDE method (p < 0.05)

The bold values in the table represent the best results on the corresponding dataset for that column

The comparison of the DDE method with the MCMC methods on longer-term data for the USA and PD regions is indeed insightful. As shown in Table 5, DDE exhibits better accuracy and stability in both fitting the long-term data and predicting future trends compared to the MCMC methods (MCMC-HM, MCMC-AM, MCMC-DRAM). This suggests that the DDE method may offer advantages in handling longer time series data and capturing underlying trends more effectively. The robust performance of the DDE method across different time spans underscores its reliability and potential applicability in modeling and forecasting epidemiological data over extended periods. This finding further strengthens the case for the utility of the DDE method in real-world applications where accurate long-term predictions are crucial for informing public health interventions and policy decisions. In the comparison of state-of-the-art parameter estimation methods, the DDE method attained the best MSE and Pearson coefficient. Contrasted with other parameter estimation methods, MCMC methods achieve more stable fitting performance. Additionally, the parameter estimation method based on the Stochastic Epidemic Model with Covariates and Random Dispersal (SEMCRD) model obtained the most favorable average fitting effect among the six models, irrespective of whether utilizing the DDE or MCMC method.

Table 5.

Fitting performance comparison results (mean ± deviation) of SEMCRD models in different optimization methods using long time data (USA and PD), including MCMC-MH [9], MCMC-AM, MCMC-DRAM, and our DDE method

Areas Data Parameter estimation methods
DDE MCMC-HM MCMC-AM MCMC-DRAM
MSE Pearson MSE Pearson MSE Pearson MSE Pearson
TESTING
USA I 1020.793 99.93% 222.493* 96.18%* 407.405* 99.89% 75.465 99.79%
±329.906 ±0.00% ±186.014 ±7.24% ±375.282 ±0.04% ±40.699 ±0.15%
USA R 1141.487 99.78% 1821.911 99.75% 4733.41* 99.76% 1413.249 99.74%
±251.271 ±0.00% ±1914.596 ±0.04% ±3196.488 ±0.03% ±2540.935 ±0.03%
USA D 1153.170 99.71% 2095.054* 95.28%* 7688.638* 99.69% 2845.97* 98.73%
±245.170 ±0.00% ±2018.805 ±7.75% ±4409.223 ±0.12% ±3499.636 ±2.13%
Italy-PD I 0.107 98.18% 5.27* 89.11%* 650.641* 15.25%* 870.435* 75.18%*
±0.124 ±0.36% ±4.535 ±14.22% ±1222.895 ±104.5% ±1884.292 ±49.77%
Italy-PD R 0.556 97.50% 7.098* 94.35%* 1211.114* 97.01% 891.288* 91.06%*
±0.589 ±0.05% ±6.155 ±4.06% ±1666.59 ±0.77% ±1924.663 ±10.03%
Italy-PD D 0.748 52.24% 9.906* 84.35%* 1347.102* 92.17% 897.757* 91.81%*
±0.528 ±0.05% ±8.777 ±8.01% ±1861.873 ±0.24% ±1927.825 ±1.01%
FITTING
USA I 6.639 99.68% 20.904* 98.38% 86.311* 94.77%* 27.205* 97.78%
±1.662 ±0.03% ±21.293 ±0.91% ±41.702 ±0.21% ±24.062 ±1.59%
USA R 8.542 99.44% 27.151* 97.73% 101.492* 93.34%* 32.793* 97.58%
±2.326 ±0.03% ±26.469 ±2.19% ±45.181 ±4.11% ±28.904 ±1.58%
USA D 8.651 89.41% 28.757* 89.32% 112.675* 81.31%* 39.52* 89.27%
±2.337 ±0.29% ±26.633 ±3.95% ±49.617 ±5.81% ±35.19 ±7.54%
Italy-PD I 0.009 99.07% 0.102* 92.33%* 4.855* 71.39%* 0.689* 32.31%*
±0.002 ±0.16% ±0.058 ±6.64% ±6.447 ±2.11% ±0.812 ±78.16%
Italy-PD R 0.016 99.29% 0.146* 96.53%* 6.47* 80.88%* 0.906* 82.77%*
±0.002 ±0.04% ±0.081 ±2.54% ±8.382 ±20.27% ±1.022 ±25.03%
Italy-PD D 0.017 93.023% 0.165* 89.85%* 6.628* 81.66%* 0.951* 69.98%*
±0.001 ±0.214% ±0.087 ±6.56% ±8.528 ±12.21% ±1.023 ±35.05%

*Represents metrics with statistically significant differences compared to the proposed DDE method (p < 0.05)

The bold values in the table represent the best results on the corresponding dataset for that column

Part B: Comparisons of DDE with Learning-Based Methods

To further assess the fitting capability of our DDE method, we conducted a comparative analysis with four learning-based models: DDE-SIRD, DDE-SEIRD, DDE-SMCRD, and DDE-SEMCRD, alongside state-of-the-art learning models. Figure 6 presents the overall forecast results using national data from countries such as CO, ZA, and USA. The observed trends suggest that while LSTM, representative of deep learning methods, may achieve superior results when the 20-day test data changes slowly, its stability is compromised. In contrast, the DDE models exhibit a superior ability to capture the evolving patterns of the data, with some demonstrating closer adherence to real-world developments, as evidenced by the infection curve in ZA. Additionally, Fig. 7 illustrates the results obtained from regional data, such as WH, and PD, over a 20-day test period. Our analysis indicates that the DDE models consistently outperform other deep learning methods, such as GRU or LSTM, in most scenarios. While these deep learning methods may occasionally achieve similar fitting performance to DDE, there are instances where they produce trends diverging from the actual data, as observed in the death curve of Piedmont.

Fig. 6.

Fig. 6

Comparative performance of state-of-the-art methods in predicting the progression of infectious diseases at the country level (machine learning methods: RF, ET, DT, deep learning methods: LSTM, RNN, GRU, our models: DDE-SIRD, DDE-SEIRD, DDE-SMCRD, DDE-SEMCRD). Each column of the figure contains six subfigures, arranged in pairs representing different aspects of model predictions. The top subfigure in each pair depicts the overall trend fitting, while the bottom subfigure illustrates the model’s predictions for the subsequent 20 days of testing data. Within each pair of subfigures, the top group represents the model’s prediction of I, the middle group represents predictions of R, and the bottom group represents predictions of D. Furthermore, in the subfigures depicting predictions for the 20-day testing period, the name of the best-performing model corresponding to the predicted performance is provided. From the overall predictions, our DDE model has better prediction performance in the prediction of three countries

Fig. 7.

Fig. 7

Comparative performance of state-of-the-art methods in predicting the progression of infectious diseases at the region level. Each column of the figure contains six subfigures, arranged in pairs representing different aspects of model predictions. The top subfigure in each pair depicts the overall trend fitting, while the bottom subfigure illustrates the model’s predictions for the subsequent 20 days of testing data. Within each pair of subfigures, the top group represents the model’s prediction of I, the middle group represents predictions of R, and the bottom group represents predictions of D. Furthermore, in the subfigures depicting predictions for the 20-day testing period, the name of the best-performing model corresponding to the predicted performance is provided. From the overall predictions, our DDE model has better prediction performance in the prediction of two regions

Additionally, the 20-day test results pertaining to national data from CO, ZA, and the USA are illustrated in Fig. 6. Upon analysis of the USA data, it is evident that our DDE-SEIR models exhibit superior fitting capability for the I and R trends. However, there is a slight tendency for the growth of D to be overestimated. Conversely, deep learning methods demonstrate minimal increases in I, R, and D, with limited effectiveness in trend estimation. Furthermore, concerning the CO data, both the DDE-SIRD and DDE-SEIRD models effectively capture the basic trend of I, albeit with some minor fluctuations left unanticipated. While the fitting of R is more accurate, there is a tendency towards slight overestimation of D. In contrast, the deep learning approach still struggles to capture discernible trends in CO data. In the case of ZA, the decreasing trend in I poses a challenge for accurate estimation. Both the DDE-SIRD and DDE-SMCRD models exhibit erroneous estimations of trends, while the DDE-SEIRD and DDE-SECRD models with neural network components accurately predict the downward trend in I. Moreover, all four of our models provide accurate estimations for the trends in R and D. However, deep learning methods display better prediction accuracy for the downward trend in I, with RNN estimates closely approximating the true values. Despite this, in the fitting of R and D, deep learning methods not only fail to predict the correct direction of the data but also yield results opposite to the true values.

Furthermore, as depicted in Fig. 7, the 20-day test results on regional data from PD and CN-WH are presented. Across both regions, all methods demonstrate the ability to accurately estimate the trends of the predicted data. Additionally, LSTM and RNN exhibit superior performance, particularly in CN-WH and PD. Overall, it is observed that all models achieve a better fitting effect on regional data. In contrast, due to the inherent complexity, the deep learning method does not perform as effectively as our proposed DDE method on national data.

Table 6 illustrates the Pearson correlation coefficient for our DDE models, namely DDE-SIRD, DDE-SEIRD, DDE-SMCRD, DDE-SEMCRD, along with other learning-based models (deep learning methods: RNN, LSTM, GRU, and traditional machine learning methods: RF, ET, DT) over a 20-day test period. According to the Pearson metric for real-world data presented in Table 6, deep learning methods such as LSTM and RNN models have demonstrated favorable results in regional data fitting. Specifically, in the fitting of data from CN-WH, the highest Pearson correlations for I and R are achieved by GRU and LSTM, respectively. A similar trend is observed in the data fitting for PD, where the highest Pearson correlations for I and R are obtained by RNN and LSTM, respectively. However, these deep learning algorithms still exhibit instability in fitting, often resulting in negative correlations between predicted data and real data.

Table 6.

Pearson coefficient results of RNN, LSTM, GRU, DT, ET, RF, and DDE models based on SIRD, SEIRD, SMCRD, and SEMCRD. N represents the prediction results and the real data are without correlation

Areas Data Methods
GRU LSTM RNN DT ET RF DDE- DDE- DDE- DDE-
SIRD SEIRD SMCRD SEMCRD
CO I 92.68%* 92.96%* 94.52% N* N* N* 95.77% 95.13% 94.97% 94.98%
R 88.72%* 90.97%* 90.86%* N* N* N* 99.86% 99.85% 99.78% 99.80%
D 93.85%* 95.28%* 98.51%* N* N* N* 98.83% 98.77% 98.52% 98.53%
USA I N* -64.96%* N* N* N* N* 97.81% 97.55% 97.54% 97.49%
R N* 62.31%* N* N* -87.91%* N* 99.76% 99.73% 99.73% 99.71%
D N* 64.81%* N* N* N* N* 99.71% 99.69% 99.69% 99.67%
ZA I 72.39%* -77.85%* 95.69% 92.24%* 79.95%* 93.10%* -95.06%* 94.83% -91.85%* 96.39%
R -43.67%* 88.58%* -92.86%* -92.80%* -82.24%* -90.96%* 99.35% 99.70% 99.61% 99.69%
D 98.63% 82.90%* -92.61%* -92.92%* -90.31%* -95.18%* 99.80% 99.66% 99.79% 99.73%
CN-WH I 0.9985 99.79% 99.84% N* 85.52%* N* 98.23% 99.78% 98.87% 99.46%
R 99.78% 99.84% 99.80% N* -94.92%* N* 98.23% 94.67% 98.73% 98.08%
D 97.35% -98.93%* -93.32%* N* -73.68%* N* 98.89% 96.17% 99.17% 98.75%
Italy-PD I 99.82% 99.76% 99.82% N* 98.45% 96.66%* 99.23% 99.34% 98.15% 98.15%
R 99.73% 99.84% 99.78% N* -94.92%* -70.83%* 99.33% 99.41% 98.74% 99.44%
D -85.10%* -98.71%* 99.20% N* -92.77%* -75.72%* 99.83% 99.81% 99.78% 99.77%

*Represents metrics with statistically significant differences compared to the proposed DDE method (p < 0.05)

The bold values in the table represent the best results on the corresponding dataset for that column

Furthermore, traditional machine learning methods such as RF, ET, and DT have shown limited effectiveness in fitting regional data. Instances arise where predictions exhibit no correlation or even negative correlation with real data. In contrast, our DDE models (DDE-SIRD, DDE-SEIRD, DDE-SMCRD, and DDE-SEMCRD) have consistently demonstrated stable and remarkable performance in overall regional predictions of I, R, and D. Utilizing CN-WH data as a benchmark, the four DDE models have achieved average correlation coefficients of 98.45%, 96.87%, 98.92%, and 98.76% for DDE-SIRD, DDE-SEIRD, DDE-SMCRD, DDE-SEMCRD, respectively. Similarly, on the PD dataset, these models attained average Pearson correlation coefficients of 99.46%, 99.52%, 98.89%, and 99.12% for DDE-SIRD, DDE-SEIRD, DDE-SMCRD, DDE-SEMCRD, respectively.

In summary, both the traditional ML and DL methods have demonstrated capable predictive performance. As evidenced by the data fitting results across five geographical entities, these methods have surpassed the performance of traditional EE models parameter estimations, representing a significant improvement. However, the black-box nature of these models poses challenges in understanding the underlying analysis rationale, making it difficult for users to discern the basis of their predictions. Consequently, providing actionable guidance to epidemiologists regarding subsequent management strategies for the COVID-19 epidemic becomes challenging. In contrast, the proposed DDE method, which draws inspiration from EE model design, utilizes neural networks solely as a means of parameter fitting. This approach yields parameters that can offer valuable insights to epidemiological experts. Moreover, the DDE method exhibits higher fitting accuracy and stability compared to existing parameter fitting methods. Thus, it represents a promising avenue for enhancing the precision and interpretability of COVID-19 epidemic trend estimation.

Part C: The Estimated Parameters Obtained by DDE Method

To demonstrate the interpretability of the proposed DDE method, we present the parameter estimation results in four EE variants (SIRD, SEIRD, SMCRD, SEMCRD models) fitted by DDE (Fig. 8). In the USA, the average initial transmission rate of infection β is calculated to be 0.469, while in CO, it is found to be 0.222. Similarly, the average initial transmission rate of infection β is estimated to be 0.254 in ZA. In regional analyses, the average β in Wuhan is determined to be 0.4578, while in PD the average β obtains 0.367. These infection rates obtained by our DDE method are deemed suitable for real-world scenarios. Figure 8 also illustrates that DDE can simulate various infection rate changes using neural networks to fit the effect function. The DDE models depict the fundamental trend of a gradual decline in the infection rate and provide more accurate estimates of the initial infection rate.

Fig. 8.

Fig. 8

Schematic diagram of the infection rate beta generated by each model and different countries and regions. Models include DDE-SIRD, DDE-SEIRD, DDE-SMCRD and DDE-SEMCRD. The dark red line in the figure represents the initial infection rate, and the red dotted curve line represents the change in the infection rate under the influence of the diversity of each country. The curves are simulated by MNNs

Conclusion

An indispensable tool for modeling and estimating EE is required for fitting and analyzing epidemic disease data. In response, we propose a DDE method that integrates NN into EE modeling, achieving high performance across multi-level geographic regions. Experimental findings demonstrate that our DDE model exhibits robust and superior capabilities in various regions, surpassing traditional parameter estimation methods. While learning-based models such as LSTM and RF demonstrate comparable data fitting performance, they lack interpretability crucial for epidemiologists. In addressing this limitation, our DDE method combines EE with neural networks and leverages the Neural ODE approach to enhance data fitting. Consequently, the output of the NN carries specific epidemiological significance. For instance, in the SEMCRD model utilizing DDE, the network’s output represents the effective function of the infection rate. Our model has demonstrated enhanced accuracy and correlation with real-world data. Moreover, our method introduces novel ideas and tools for future analysis of infectious diseases.

Author Contributions

B. S., H. L., P. Z., and D. D. F. conceived and supervised the project. R. L. and J. L. designed the deep learning algorithm and the computational framework. R. L., J. L., and Y. W. designed the study and contributed to the initial drafting of the manuscript. R. L. collected and organized data and performed statistical analysis. P. Z., H. L., and B. S. provided critical comments and reviewed the manuscript. All authors discussed the results and approved the final version before submission.

Funding

We would like to thank all the investigators and study subjects for this study. The Project of Intelligent Management Software supports this work for Multimodal Medical Big Data for New Generation Information Technology, Ministry of Industry and Information Technology of People’s Republic of China (TC210804V). This work is also supported by the Postdoctoral Fellowship Program of CPSF under Grand No. GZC20231604. The research presented in this paper was also supported by Shanghai Jiao Tong University “Jiao Tong University Star” plan key project of the Medical and Industrial Cross under grant number YG2022ZD007.

Data Availability

The data being used in the current study are provided at https://doi.org/10.5281/zenodo.10572455.

Code Availability

The code being used in the current study for developing the algorithm is provided at https://github.com/Liuruhan/DENN.

Declarations

Competing Interests

The authors declare no competing interests.

References

  • 1.Kelvin Kai-Wang T, Siddharth S, Kelvin Hei-Yeung C, Derek Ling-Lung H, Xin L, Ivan Fan-Ngai H, Anthony Raymond T, Tom Wai-Hin C, Jasper Fuk-Woo C, Anna Jian-Xia Z, Vincent Chi-Chung C, Kwok-Yung Y (2021) Lessons learned 1 year after SARS-CoV-2 emergence leading to COVID-19 pandemic. Emerg Microbes Infect 10(1):507–535 10.1080/22221751.2021.1898291 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Cyranoski D (2020) What China’s coronavirus response can teach the rest of the world. Nature 579(7800):479–480 10.1038/d41586-020-00741-x [DOI] [PubMed] [Google Scholar]
  • 3.Kwok KO, Chan HHH, Huang Y, Hui DSC, Tambyah PA, Wei WI, Chau PYK, Wong SYS, Tang JWT (2020) Inferring super-spreading from transmission clusters of COVID-19 in Hong Kong. Japan and Singapore. J Hospital Infect 105(4):682–685 10.1016/j.jhin.2020.05.027 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Keeling MJ, Rohani P (2011) Modeling infectious diseases in humans and animals
  • 5.Saito MM, Imoto S, Yamaguchi R, Sato H, Nakada H, Kami M, Miyano S, Higuchi T (2013) Extension and verification of the SEIR model on the 2009 influenza a (H1N1) pandemic in Japan. Bellman Prize in Math Biosci 246(1):47–54 10.1016/j.mbs.2013.08.009 [DOI] [PubMed] [Google Scholar]
  • 6.Peng L, Yang W, Zhang D, Zhuge C, Hong L (2020) Epidemic analysis of COVID-19 in China by dynamical modeling. arXiv:2002.06563
  • 7.Wei Y, Lu Z, Du Z, Zhang Z, Zhao Y, Shen S, Wang B, Hao Y, Chen F (2020) Fitting and forecasting the trend of COVID-19 by SEIR + CAQ dynamic model. Chinese J. Epidemiol. 41(4):470–475 [DOI] [PubMed] [Google Scholar]
  • 8.Choi SC, Ki M (2020) Estimating the reproductive number and the outbreak size of COVID-19 in Korea. Epidemiol Health 42:1–10 10.4178/epih.e2020011 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Watson OJ, Barnsley G, Toor J, Hogan AB, Winskill P, Ghani AC (2022) Global impact of the first year of COVID-19 vaccination: a mathematical modelling study. Lancet Infect Dis 22(9):1293–1302 10.1016/S1473-3099(22)00320-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Kathy L, Eric HY L, Carlos KHW, Gabriel ML, Joseph TW (2023) Estimating the transmission dynamics of SARS-CoV-2 omicron BF.7 in beijing after adjustment of the zero-COVID policy in November-December 2022. Nat Med 29(3):579–582 [DOI] [PubMed]
  • 11.Megan O, Dos Santos Gabriel R, Lin W, Derek ATC, Andrew SA, Juliette P, Arnaud F, Simon C, Henrik S (2021) Age-specific mortality and immunity patterns of SARS-CoV-2. Nature 590(7844):140–145 10.1038/s41586-020-2918-0 [DOI] [PubMed] [Google Scholar]
  • 12.Rustam F, Reshi AA, Mehmood A, Ullah S, On B-W, Aslam W, Choi GS (2020) Covid-19 future forecasting using supervised machine learning models. IEEE Access 8(8):101489–101499 10.1109/ACCESS.2020.2997311 [DOI] [Google Scholar]
  • 13.Yang Z, Zeng Z, Wang K, Wong SS, Liang W, Zanin M, Liu P, Cao X, Gao Z, Mai Z, Liang J, Liu X, Li S, Li Y, Ye F, Guan W, Yang Y, Li F, Luo S, Xie Y, Liu B, Wang Z, Zhang S, Wang Y, Zhong N, He J (2020) Modified SEIR and AI prediction of the epidemics trend of COVID-19 in China under public health interventions. J Thoracic Disease 12(3):165–174 10.21037/jtd.2020.02.64 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Zhu Y, Wang S, Wang S, Wu Q, Wang L, Li H, Wang M, Niu M, Zha Y, Tian J (2021) Mix contrast for COVID-19 mild-to-critical prediction. IEEE Trans Biomed Eng 68(12):3725–3736 10.1109/TBME.2021.3085576 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Wojtusiak J, Bagchi P, Durbha SSKRTN, Mobahi H, Nia RM, Roess A (2021) COVID-19 symptom monitoring and social distancing in a university population. J Heal Inf Res 5(1):114–131. 10.1007/s41666-020-00089-x 10.1007/s41666-020-00089-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Wesner JS, Peursem DV, Flores JD, Lio Y, Wesner CA (2021) Forecasting hospitalizations due to COVID-19 in south dakota, USA. J Heal Inf Res 5(2):218–229. 10.1007/s41666-021-00094-8 10.1007/s41666-021-00094-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Chen TQ, Rubanova Y, Bettencourt J, Duvenaud D (2018) Neural ordinary differential equations. In: Neural information processing systems, pp 6572–6583
  • 18.Fang H, Chen J, Hu J (2005) Modelling the SARS epidemic by a lattice-based Monte-Carlo simulation. In: IEEE Engineering in Medicine and Biology 27th Annual Conference, vol. 7:7470–7473 [DOI] [PubMed]
  • 19.Smirnova A, deCamp L, Chowell G (2019) Forecasting epidemics through nonparametric estimation of time-dependent transmission rates using the SEIR model. Bullet Math Biol 81(11):4343–4365 10.1007/s11538-017-0284-3 [DOI] [PubMed] [Google Scholar]
  • 20.Kraemer MUG, Yang CH, Gutierrez B, Wu CH, Klein B, Pigott DM, Plessis Faria NR, Li R, Hanage WP, Brownstein JS, Layan M, Vespignani A, Tian H, Dye C, Pybus OG, Scarpino SV (2020) The effect of human mobility and control measures on the COVID-19 epidemic in China. Science 368(6490):493–497 10.1126/science.abb4218 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Chinazzi M, Davis JT, Ajelli M, Gioannini C, Litvinova M, Merler S, Piontti AP, Mu K, Rossi L, Sun K, Viboud C, Xiong X, Yu H, Halloran ME, Longini IM, Vespignani A (2020) The effect of travel restrictions on the spread of the 2019 novel coronavirus (COVID-19) outbreak. Science 368(6489):395–400 10.1126/science.aba9757 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Kucharski AJ, Russell TW, Diamond C, Liu Y, Edmunds J, Funk S, Eggo RM, Sun F, Jit M, Munday JD, Davies N, Gimma A, Zandvoort K, Gibbs H, Hellewell J, Jarvis CI, Clifford S, Quilty BJ, Bosse NI, Abbott S, Klepac P, Flasche S (2020) Early dynamics of transmission and control of COVID-19: A mathematical modelling study. Lancet Infectious Diseases 20(5):553–558 10.1016/S1473-3099(20)30144-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Raj D, George B (2020) Quantifying the effect of quarantine control in COVID-19 infectious spread using machine learning. MedRxiv preprint arXiv:2020.04032
  • 24.Read JM, Bridgen JR, Cummings DA, Ho A, Jewell CP (2020) Novel coronavirus 2019-nCoV: early estimation of epidemiological parameters and epidemic predictions. MedRxiv preprint arXiv:2020.01232 [DOI] [PMC free article] [PubMed]
  • 25.Tang B, Wang X, Li Q, Bragazzi NL, Tang S, Xiao Y, Wu J (2020) Estimation of the transmission risk of the 2019-nCoV and its implication for public health interventions. J Clinical Med 9(462):1–13 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Wu JT, Leung K, Leung GM (2020) Nowcasting and forecasting the potential domestic and international spread of the 2019-nCoV outbreak originating in Wuhan, China: A modelling study. The Lancet 395(10225):689–697 10.1016/S0140-6736(20)30260-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Xu B, Kraemer MUG, Gutierrez B, Mekaru S, Sewalk K, Loskill A, Wang L, Cohn E, Hill S, Zarebski A, Li S, Wu CH, Hulland E, Morgan J, Scarpino S, Brownstein J, Pybus O, Pigott D, Kraemer M (2020) Open access epidemiological data from the COVID-19 outbreak. Lancet Infectious Diseases 20(5):534–534 10.1016/S1473-3099(20)30119-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Backer JA, Klinkenberg D, Wallinga J (2020) Incubation period of 2019 novel coronavirus (2019-nCoV) infections among travellers from Wuhan, China, 20-28 January 2020. Eurosurveillance 25(5, pii. 2000062):1–6 [DOI] [PMC free article] [PubMed]
  • 29.Nelder JA, Mead R (1965) A simplex method for function minimization. Comput J 7(4):308–313 10.1093/comjnl/7.4.308 [DOI] [Google Scholar]
  • 30.Moghrabi IAR (2006) Extra multistep BFGS updates in quasi-newton methods. Int J Math Math Sci 2006:12583–1125838 10.1155/IJMMS/2006/12583 [DOI] [Google Scholar]
  • 31.Hsia C, Chiang W, Lin C (2018) Preconditioned conjugate gradient methods in truncated newton frameworks for large-scale linear classification. Proc. ACML 95:312–326 [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The data being used in the current study are provided at https://doi.org/10.5281/zenodo.10572455.

The code being used in the current study for developing the algorithm is provided at https://github.com/Liuruhan/DENN.


Articles from Journal of Healthcare Informatics Research are provided here courtesy of Springer

RESOURCES