Infectious disease transmission prediction method and device, electronic equipment and storage medium

By automatically calibrating the parameters of the infectious disease transmission prediction system through a loss function based on historical real data, the problem of prediction inaccuracy caused by reliance on expert experience is solved, and the efficiency, accuracy and automatic calibration of the infectious disease transmission prediction system are achieved.

CN118571503APending Publication Date: 2024-08-30THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310631385.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, the parameter calibration of the infectious disease transmission prediction system relies on the experience of experts, making it difficult to ensure prediction accuracy. Moreover, when there are many and changing parameters, non-gradient optimization methods are prone to failure.

Method used

Construct a loss function based on historical real data to automatically calibrate the infectious disease spread prediction system equation. Through discrete system equation modeling and gradient optimization of training parameters, the target value of the second parameter is determined, thereby determining the final value of the first parameter.

Benefits of technology

It improves the accuracy of the infectious disease spread prediction system, avoids subjective errors caused by expert experience, saves manpower and time costs, and achieves efficient automation of parameter calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118571503A
    Figure CN118571503A
Patent Text Reader

Abstract

The invention relates to an infectious disease transmission prediction method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a system equation of an infectious disease transmission prediction system; discretizing the system equation; modeling the discrete system equation; determining a loss function of the target model; based on the loss function, training a target model to determine a target value of the second parameter; determining a final value of the first parameter corresponding to the second parameter based on the target value of the second parameter; and carrying out infectious disease transmission prediction by using an infectious disease transmission prediction system which sets the value of the first parameter as a final value. Therefore, since the historical real data is the real data in a certain historical time period, the parameters calibrated based on the historical real data are objective, subjective errors caused by parameter calibration depending on the experience of experts are avoided, and the prediction accuracy of the infectious disease transmission prediction system can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically, to a method, device, electronic device and storage medium for predicting the spread of infectious diseases. Background Art

[0002] Discrete system equation simulation is one of the main methods used to describe discrete events. Discrete system equations usually use the discrete format of differentials and integrals to describe the deduction process of discrete systems. Before using a discrete system, the parameters of the discrete system equations need to be calibrated based on historical data. For example, a discrete system can be an infectious disease propagation prediction system, which can be used to predict the spread of infectious diseases within a period of time after the initial infection. However, before using the infectious disease propagation prediction system, the parameters of the system need to be calibrated to ensure the prediction accuracy of the system.

[0003] In the related art, the parameters of the infectious disease propagation prediction system are mainly adjusted based on the experience of experts. This method strongly relies on the experience of experts, but the experience of experts is not impeccable and mistakes may occur. At this time, it is difficult to ensure the accuracy of the infectious disease propagation prediction system by calibrating parameters based solely on the experience of experts, that is, it is difficult to ensure the prediction accuracy of the infectious disease propagation prediction system. Summary of the invention

[0004] The present disclosure provides an infectious disease transmission prediction method, device, electronic device and storage medium to at least solve the problem in the above-mentioned related technologies that it is difficult to ensure the prediction accuracy of the infectious disease transmission prediction system by simply calibrating parameters based on the experience of experts.

[0005] According to a first aspect of an embodiment of the present disclosure, a method for predicting the spread of an infectious disease is provided, comprising: obtaining a system equation of an infectious disease spread prediction system, wherein the system equation includes a first parameter and a state variable of the number of newly confirmed cases at a current moment; discretizing the system equation to obtain a discrete system equation, wherein the discrete system equation includes a second parameter and a state variable of the number of newly confirmed cases at each moment from a preset initial moment to the current moment, and the second parameter is a discrete parameter corresponding to the first parameter; modeling the discrete system equation to obtain a target model; determining a loss function of the target model based on the historical true value of the state variable of the number of newly confirmed cases at each historical moment after a first historical initial moment, wherein the first historical initial moment is a historical moment corresponding to the preset initial moment; training the target model based on the loss function to determine a target value of the second parameter; determining a final value of the first parameter corresponding to the second parameter based on the target value of the second parameter; and predicting the spread of an infectious disease using the infectious disease spread prediction system that sets the value of the first parameter to the final value.

[0006] Optionally, modeling the discrete system equation to obtain the target model includes: substituting each moment into the discrete system equation respectively to obtain an expression of the state variable of the number of newly confirmed cases at each moment, wherein the expression includes the second parameter and an initial value of the state variable of the number of newly confirmed cases, and the initial value is the first historical initial true value of the state variable of the number of newly confirmed cases at the first historical initial moment.

[0007] Optionally, the loss function of the target model is determined based on the historical actual value of the status variable of the number of newly confirmed cases at each historical moment after the first historical initial moment, including: determining the loss function based on an expression of the status variable of the number of newly confirmed cases at each moment, and the historical actual value of the status variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment.

[0008] Optionally, training the target model to determine a target value of the second parameter based on the loss function includes: determining that the value of the second parameter when the value of the loss function is minimized is the target value.

[0009] Optionally, after determining the final value of the first parameter corresponding to the second parameter based on the target value of the second parameter, it also includes: setting the value of the first parameter to the final value; inputting the second historical initial true value into the infectious disease transmission prediction system that has set the value of the first parameter to the final value, to obtain the predicted estimated value of the newly confirmed number state variable at each historical moment after the second historical initial moment, wherein the second historical initial true value is the value of the newly confirmed number state variable at the second historical initial moment; based on the gap between the estimated value of the newly confirmed number state variable at each historical moment and the historical true value at each historical moment, the reliability of the final value of the first parameter is evaluated.

[0010] Optionally, the loss function is determined based on an expression of the state variable of the number of newly confirmed cases at each moment and the historical actual value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment, including: determining the loss function based on an expression of the state variable of the number of newly confirmed cases at each moment and the historical actual value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment contained in each historical path in multiple historical paths.

[0011] Optionally, the loss function is:

[0012]

[0013] Wherein, V[n](t) is the expression of the state variable of the number of newly confirmed cases at each moment, V history [n](t) is the historical real value of the newly confirmed number state variable at each corresponding historical moment, t is the moment, and n∈history represents the historical path.

[0014] Optionally, the system equation of the infectious disease spread prediction system is:

[0015] DV(t)+MV(t)+∫CV(t)dt=0

[0016] Among them, D, M, and C are the first parameters, D is the differential / difference operator, M is the linear matrix, C is the coefficient matrix, V(t) is the state variable of the number of newly confirmed cases, ∫CV(t)dt is the integral about V(t), and t is the time.

[0017] Optionally, the discrete system equation is:

[0018] [D0V(t)+D1V(t-1)+…+D iV(ti)] / Δt+MV(t)+Δt[C0V(t)+C1V(t-1)+…+C i V(ti)]=0

[0019] Among them, D0, D1...D i is a second parameter corresponding to the first parameter D, C0, C1...C i is the second parameter corresponding to the first parameter C, Δt is a discrete unit, V(t) is the state variable of the number of newly confirmed cases at time t, V(t-1) is the state variable of the number of newly confirmed cases at time (t-1), V(ti) is the state variable of the number of newly confirmed cases at time (ti), 1≤i≤t, and i is an integer.

[0020] According to a second aspect of an embodiment of the present disclosure, there is provided an infectious disease transmission prediction device, comprising: a system equation acquisition module, configured to acquire a system equation of an infectious disease transmission prediction system, wherein the system equation comprises a first parameter and a state variable of the number of newly confirmed cases at a current moment; a discretization processing module, configured to discretize the system equation to obtain a discrete system equation, wherein the discrete system equation comprises a second parameter and a state variable of the number of newly confirmed cases at each moment from a preset initial moment to a current moment, and the second parameter is a discrete parameter corresponding to the first parameter; a modeling module, configured to model the discrete system equation to obtain a target model; a loss function determination module, configured To determine the loss function of the target model based on the historical real values ​​of the newly confirmed number state variable at each historical moment after the first historical initial moment, wherein the first historical initial moment is the historical moment corresponding to the preset initial moment; a training module, configured to train the target model based on the loss function to determine the target value of the second parameter; a first parameter final value determination module, configured to determine the final value of the first parameter corresponding to the second parameter based on the target value of the second parameter; an infectious disease transmission prediction module, configured to use the infectious disease transmission prediction system that sets the value of the first parameter to the final value to perform infectious disease transmission prediction.

[0021] Optionally, the modeling module is configured to: substitute each moment into the discrete system equation respectively to obtain an expression of the state variable of the number of newly confirmed cases at each moment, wherein the expression includes the second parameter and an initial value of the state variable of the number of newly confirmed cases, and the initial value is the first historical initial true value of the state variable of the number of newly confirmed cases at the first historical initial moment.

[0022] Optionally, the loss function determination module is configured to determine the loss function based on an expression of the state variable of the number of newly confirmed cases at each moment, and the historical actual value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment.

[0023] Optionally, the training module is configured to: determine that the value of the second parameter when the value of the loss function is minimized is the target value.

[0024] Optionally, the infectious disease transmission prediction device also includes: a setting module, configured to set the value of the first parameter to the final value; an input module, configured to input the second historical initial true value into the infectious disease transmission prediction system that has set the value of the first parameter to the final value, to obtain the predicted estimated value of the newly confirmed number state variable at each historical moment after the second historical initial moment, wherein the second historical initial true value is the value of the newly confirmed number state variable at the second historical initial moment; an evaluation module, configured to evaluate the reliability of the final value of the first parameter based on the gap between the estimated value of the newly confirmed number state variable at each historical moment and the historical true value at each historical moment.

[0025] Optionally, the loss function determination module is configured to determine the loss function based on an expression of the state variable of the number of newly confirmed cases at each moment, and the historical actual value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment contained in each historical path in multiple historical paths.

[0026] Optionally, the loss function is:

[0027]

[0028] Wherein, V[n](t) is the expression of the state variable of the number of newly confirmed cases at each moment, V history [n](t) is the historical real value of the state variable of the number of newly confirmed cases at each corresponding historical moment, t is the moment, and n∈hcistory represents the historical path.

[0029] Optionally, the system equation of the infectious disease spread prediction system is:

[0030] DV(t)+MV(t)+∫CV(t)dt=0

[0031] Among them, D, M, and C are the first parameters, D is the differential / difference operator, M is the linear matrix, C is the coefficient matrix, V(t) is the state variable of the number of newly confirmed cases, ∫CV(t)dt is the integral about V(t), and t is the time.

[0032] Optionally, the discrete system equation is:

[0033] [D0V(t)+D1V(t-1)+…+D i V(ti)] / Δt+MV(t)+Δt[C0V(t)+C1V(t-1)+…+C i V(ti)]=0

[0034] Among them, D0, D1...D i is a second parameter corresponding to the first parameter D, C0, C1...C i is the second parameter corresponding to the first parameter C, Δt is a discrete unit, V(t) is the state variable of the number of newly confirmed cases at time t, V(t-1) is the state variable of the number of newly confirmed cases at time (t-1), V(ti) is the state variable of the number of newly confirmed cases at time (ti), 1≤i≤t, and i is an integer.

[0035] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the infectious disease transmission prediction method according to the present disclosure.

[0036] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the infectious disease transmission prediction method according to the present disclosure.

[0037] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0038] In the present disclosure, a loss function can be constructed based on historical real data, and the parameters of the infectious disease transmission prediction system equation can be calibrated based on the loss function. Since the historical real data are real data that existed in a certain period of history, the parameters calibrated based on these historical real data are more objective, avoiding the subjective errors caused by relying on the experience of experts to calibrate the parameters, and can ensure the accuracy of the infectious disease transmission prediction system, that is, the prediction accuracy of the infectious disease transmission prediction system can be guaranteed.

[0039] Furthermore, since the present disclosure does not need to rely on the experience of experts, it can realize automatic calibration of the parameters of the infectious disease transmission prediction system equation, thereby saving manpower and time costs to a large extent and improving the efficiency of parameter calibration.

[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0042] Figure 1 is a flow chart showing a method for predicting the spread of an infectious disease according to an exemplary embodiment of the present disclosure;

[0043] Figure 2 is a schematic diagram showing a method of verifying the reliability of a parameter value by simulation according to an exemplary embodiment of the present disclosure;

[0044] Figure 3 is a flowchart showing a specific implementation of a method for predicting the spread of an infectious disease according to an exemplary embodiment of the present disclosure;

[0045] Figure 4 is a block diagram illustrating an infectious disease spread prediction device according to an exemplary embodiment of the present disclosure;

[0046] Figure 5 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0047] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0049] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0050] In the related art, the parameters of the infectious disease propagation prediction system are mainly adjusted based on the experience of experts. This method relies heavily on the experience of experts, but the experience of experts is not impeccable and mistakes may occur. At this time, it is difficult to ensure the accuracy of the infectious disease propagation prediction system by calibrating parameters based solely on the experience of experts, that is, it is difficult to ensure the prediction accuracy of the infectious disease propagation prediction system. In addition, there are also non-gradient optimization methods used to calibrate the parameters of discrete system equations. This method is prone to failure in scenarios with more parameters, especially in scenarios where the parameters of discrete systems change over time.

[0051] In order to solve the problems existing in the related art, the infectious disease propagation prediction method, device, electronic device and storage medium provided by the present disclosure can construct a loss function based on historical real data, and calibrate the parameters of the infectious disease propagation prediction system equation based on the loss function. Since the historical real data is the real data that existed in a certain period of history, the parameters calibrated based on these historical real data are more objective, avoiding the subjective errors caused by relying on the experience of experts for parameter calibration, and can ensure the accuracy of the infectious disease propagation prediction system, that is, the prediction accuracy of the infectious disease propagation prediction system can be guaranteed.

[0052] Furthermore, since the present disclosure does not need to rely on the experience of experts, it can realize automatic calibration of the parameters of the infectious disease transmission prediction system equation, thereby saving manpower and time costs to a large extent and improving the efficiency of parameter calibration.

[0053] Figure 1 is a flowchart illustrating a method for predicting the spread of an infectious disease according to an exemplary embodiment of the present disclosure.

[0054] Reference Figure 1 In step 101, a system equation of an infectious disease transmission prediction system may be obtained. The system equation may include a first parameter and a state variable of the number of newly confirmed cases at the current moment, and the first parameter may be various types of operators, matrices, and the like.

[0055] According to an exemplary embodiment of the present disclosure, the system equation of the above infectious disease spread prediction system may be:

[0056] DV(t)+MV(t)+∫CV(t)dt=0……(1)

[0057] Among them, D, M, and C are the first parameters, D is the differential / difference operator, M is the linear matrix, C is the coefficient matrix, V(t) is the state variable of the infectious disease transmission prediction system, that is, V(t) is the state variable of the number of newly confirmed cases, ∫CV(t)dt is the integral about V(t), and t is the time.

[0058] In step 102, the above system equation can be discretized to obtain a discrete system equation. Exemplarily, the above system equation can be discretized according to the independent variable time t. Among them, the discrete system equation can include a second parameter and a state variable of the number of newly confirmed cases at each moment from the preset initial moment to the current moment. The second parameter can be a discrete parameter corresponding to the first parameter, and the preset initial moment can be the moment t=0.

[0059] According to an exemplary embodiment of the present disclosure, the above discrete system equation may be:

[0060] [D0V(t)+D1V(t-1)+…+D i V(ti)] / Δt+MV(t)+Δt[C0V(t)+C1V(t-1)+…+C i V(ti)]=0......(2)

[0061] Among them, D0, D1...D i is the second parameter corresponding to the first parameter D, C0, C1...C i is the second parameter corresponding to the above-mentioned first parameter C, V(t) is the state variable of the number of newly confirmed cases at time t, V(t-1) is the state variable of the number of newly confirmed cases at time (t-1), and so on, V(ti) is the state variable of the number of newly confirmed cases at time (ti), 1≤i≤t, and i can be an integer, and Δt is a discrete unit.

[0062] It should be noted that the discrete unit Δt can be set based on the actual needs to determine the length of time. For example, Δt can be in units of "days", "hours", "minutes", "seconds", etc.

[0063] In step 103, the discrete system equations may be modeled to obtain a target model. For example, a framework such as a symbolic mathematical system (TensorFlow) may be used to model the discrete system equations.

[0064] According to an exemplary embodiment of the present disclosure, each moment can be substituted into the above-mentioned discrete system equation to obtain an expression of the newly confirmed number state variable V(t) at each moment, that is, the expression of V(t) at each moment can be calculated progressively in time. Among them, the expression may include a second parameter and an initial value V(t=0) of the newly confirmed number state variable. The initial value V(t=0) may be the first historical initial true value of the newly confirmed number state variable at the first historical initial moment, that is, the initial value V(t=0) may be the real newly confirmed number at the beginning of the infectious disease infection in a certain period of history.

[0065] Exemplarily, as mentioned above, the discrete system equation may be:

[0066] [D0V(t)+D1V(t-1)+…+D i V(ti)] / Δt+MV(t)+Δt[C0V(t)+C1V(t-1)+…+C i V(ti)]=0......(2)

[0067] We can set t=1, that is, we can substitute the moment t=1 into the above discrete system equation, and then we can get:

[0068] [D0V(1)+D1V(0)] / Δt+MV(1)+Δt[C0V(1)+C1V(0)]=0

[0069] It can be seen that the expression V(1) of the newly confirmed number state variable V(t) at time t=1, that is, the expression V(t=1) will include D0, D1, M, C0, C1, Δt, V(t=0), that is, the expression V(t) of the newly confirmed number state variable V(t) at time t=1 includes the second parameters D0, D1, M, C0, C1 and the initial value V(t=0) of the newly confirmed number state variable;

[0070] We can set t=2, that is, we can substitute the moment t=2 into the above discrete system equation, and then we can get:

[0071] [D0V(2)+D1V(1)+D2V(0)] / Δt+MV(2)+Δt[C0V(2)+C1V(1)+C2V(0)]=0

[0072] It can be seen that the expression V(2) of the state variable V(t) of the number of newly confirmed cases at time t=2, that is, the expression V(t=2) will include D0, D1, D2, M, C0, C1, C2, Δt, V(t=0), V(t=1), and V(t=1) includes D0, D1, M, C0, C1, Δt, V(t=0). Therefore, the expression V(t) of the state variable V(t) of the number of newly confirmed cases at time t=2 includes the second parameters D0, D1, D2, M, C0, C1, C2 and the initial value V(t=0) of the state variable of the number of newly confirmed cases;

[0073] We can set t=3, that is, we can substitute the time t=3 into the above discrete system equation, and then we can get:

[0074] [D0V(3)+D1V(2)+D2V(1)+D3V(0)] / Δt+MV(3)+Δt[C0V(3)+C1V(2)+C2V(1)+C3V(0)]=0

[0075] It can be seen that the expression V(3) of the newly confirmed number of state variables V(t) at time t=3, that is, the expression V(t=3) will contain D0, D1, D2, D3, M, C0, C1, C2, C3, Δt, V(t=0), V(t=1), V(t=2), and V(t=1) contains D0, D1, M, C0, C1, Δt, V(t=0), and V(t=2) contains D0, D1, D2, M, C0, C1, C2, V(t=0), so the expression of the newly confirmed number of state variables V(t) at time t=3 contains the second parameters D0, D1, D2, D3, M, C0, C1, C2, C3 and the initial value V(t=0) of the newly confirmed number of state variables. By analogy, the expression of the newly confirmed number of state variables V(t) at each moment can be obtained.

[0076] In step 104, the loss function of the target model can be determined based on the historical real value of the state variable of the number of newly confirmed cases at each historical moment after the first historical initial moment. That is, the loss function of the target model can be determined based on the real number of newly confirmed cases at each historical moment after the start of the infectious disease transmission in the historical process. Among them, the first historical initial moment is the historical moment corresponding to the preset initial moment, that is, the first historical initial moment is the moment t=0 in the historical process.

[0077] According to an exemplary embodiment of the present disclosure, a loss function can be determined based on an expression of a state variable of the number of newly confirmed cases at each moment, and the historical real value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment. That is, a loss function can be determined based on an expression of a state variable of the number of newly confirmed cases at each moment, and the real number of newly confirmed cases at each historical moment after the start of the infectious disease transmission in the historical process.

[0078] According to an exemplary embodiment of the present disclosure, it should be noted that there may be a lot of historical data in the historical process. Exemplarily, infectious diseases may occur in different regions, and the spread of infectious diseases in each region may be somewhat different from each other, that is, each region where infectious diseases occur corresponds to its own real number of newly confirmed cases at each historical moment after the start of the infection in the historical process. When determining the loss function, the infection situation in each region in the different regions where infectious diseases occurred in the historical process can be taken into account. That is, the loss function can be determined based on the expression of the state variable of the number of newly confirmed cases at each moment, and the historical real value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment contained in each historical path in multiple historical paths.

[0079] In this way, by referring to the infection situation of each historical path in multiple historical paths, the training data is greatly enriched, which can ensure that the parameters obtained through training can more realistically simulate the transmission law of infectious diseases in the real world, that is, the accuracy and precision of the infectious disease transmission prediction system in predicting the transmission of infectious diseases can be guaranteed.

[0080] According to an exemplary embodiment of the present disclosure, the above loss function may be:

[0081]

[0082] Among them, V[n](t) is the expression of the state variable of the number of newly confirmed cases at each moment, V history [n](t) is the historical real value of the state variable of the number of newly confirmed cases at each corresponding historical moment, t is the moment, and n∈history represents the historical path.

[0083] In step 105, the target model may be trained based on the loss function to determine the target value of the second parameter. Exemplarily, a gradient descent optimizer in TensorFlow, such as an adam optimizer, may be used to train the target model to determine the target value of the second parameter.

[0084] According to an exemplary embodiment of the present disclosure, the value of the second parameter when the value of the loss function is minimized can be determined as the target value, that is, the problem to be solved at this time is converted into:

[0085] It should be noted that, as mentioned above, since the loss function is represented by the difference between the expression of the state variable of the number of newly confirmed cases at each moment and the actual number of newly confirmed cases at each historical moment after the start of the infectious disease transmission in the historical process, the smaller the loss function, the more realistic the corresponding parameter is, and the more closely it can simulate the actual spread of infectious diseases in the real world. In this way, the value of the second parameter that minimizes the loss function can be determined as the final result, which can ensure that the second parameter obtained through training can more realistically simulate the spread of infectious diseases in the real world, that is, the accuracy and precision of the infectious disease transmission prediction system in predicting the spread of infectious diseases can be guaranteed.

[0086] In step 106, the final value of the first parameter corresponding to the second parameter may be determined based on the target value of the second parameter, that is, the final value of the first parameter may be determined based on the target value of the second parameter and the mapping relationship between the second parameter and the first parameter.

[0087] It should be noted that although the second parameter value can minimize the value of the loss function when it is the target value, when the infectious disease propagation prediction system is actually used to predict the spread of infectious diseases, it may not be completely guaranteed that the propagation situation deduced by the infectious disease propagation prediction system after parameter calibration is the closest to the actual propagation situation of infectious diseases in the real world, that is, it is necessary to verify the reliability of the calibrated parameter value. For example, the reliability of the parameter value can be verified by simulation.

[0088] Figure 2 is a schematic diagram showing a method of verifying the reliability of a parameter value by simulation according to an exemplary embodiment of the present disclosure. Figure 2 , the left half shows the process of calibrating the parameters of the infectious disease propagation prediction system based on historical data. As mentioned earlier, the system equations of the infectious disease propagation prediction system can be discretized to obtain discrete system equations. Then, the discrete system equations can be modeled using a differentiable framework to obtain a target model, that is, the above discrete system equations can be modeled using frameworks such as TensorFlow to obtain the expression of the state variable V(t) of the number of newly confirmed cases at each moment. Next, the loss function can be determined based on the expression V(t) of the state variable of the number of newly confirmed cases at each moment, as well as the actual number of newly confirmed cases at each historical moment after the start of the infectious disease transmission in the historical process. Then, the gradient descent method can be used to solve the parameter value that minimizes the value of the loss function and the final value at the end of the parameter calibration.

[0089] Figure 2The middle right half shows the simulation process, in which the "simulator" is the infectious disease propagation prediction system in the present disclosure. When performing the simulation, the parameters of the infectious disease propagation prediction system can be taken as the final values ​​after the calibration of the aforementioned parameters, and the initial value, that is, the actual number of newly confirmed cases at the beginning of the infectious disease transmission in a certain period of history, can be input into the infectious disease propagation prediction system. At this point, the simulation results can be obtained, that is, the estimated propagation situation at each time point after the beginning of the infectious disease transmission deduced by the infectious disease propagation prediction system can be obtained. Next, the reliability of the parameter values ​​obtained by calibration can be evaluated based on the estimated propagation situation deduced by the infectious disease propagation prediction system and the actual propagation situation in a certain period of history.

[0090] According to an exemplary embodiment of the present disclosure, after determining the final value of the first parameter, the value of the first parameter of the infectious disease propagation prediction system can also be set to the final value obtained. Then, the second historical initial true value can be input into the infectious disease propagation prediction system that has set the value of the first parameter to the final value, and the estimated value of the predicted number of newly confirmed people state variable at each historical moment after the second historical initial moment is obtained. Among them, the second historical initial true value can be the value of the newly confirmed people state variable at the second historical initial moment, that is, the second historical initial true value can be the real number of newly confirmed people at the beginning of the infectious disease transmission in the historical process.

[0091] Next, the reliability of the final value of the first parameter can be evaluated based on the gap between the estimated value of the state variable of the number of newly confirmed cases at each historical moment and the historical actual value at each historical moment. For example, the smaller the gap between the estimated spread and the actual spread, the higher the reliability of the final value of the first parameter; the larger the gap between the estimated spread and the actual spread, the lower the reliability of the final value of the first parameter, that is, the final value of the first parameter is difficult to truly simulate the spread of infectious diseases in the real world. At this time, further calibration of the first parameter is required to ensure the prediction accuracy of the infectious disease spread prediction system.

[0092] In this way, the estimated spread of infectious diseases at each historical moment can be estimated by simulation. Then, the reliability of the final value of the first parameter can be evaluated based on the gap between the estimated spread of infectious diseases and the actual spread. That is, based on the above gap, it can be verified whether the final value of the first parameter can truly simulate the spread of infectious diseases in the real world, thus achieving accurate verification of the final value of the first parameter.

[0093] In step 107, the infectious disease propagation prediction system that sets the value of the first parameter as the final value can be used to predict the spread of infectious diseases. For example, if an infectious disease is found to have occurred, the confirmed situation at the beginning of the infectious disease transmission can be input into the infectious disease propagation prediction system that has been calibrated with parameters. At this time, the infectious disease propagation prediction system can predict the spread of the infectious disease at each time point in the subsequent process, so that relevant personnel can take corresponding prevention and control measures in time based on the predicted spread situation, and avoid the situation where the spread of infectious diseases is difficult to control due to the lack of clear spread laws and the inability to take effective prevention and control measures.

[0094] Figure 3 FIG. 1 is a flowchart showing a specific implementation of a method for predicting the spread of an infectious disease according to an exemplary embodiment of the present disclosure. The infectious disease spread prediction system in this embodiment can be an infectious disease model that takes vaccines into consideration.

[0095] Reference Figure 3 In step 301, a system equation of an infectious disease transmission prediction system considering vaccines is obtained. Exemplarily, the system equation of the infectious disease transmission prediction system considering vaccines may be as follows:

[0096] S=(1-θρ)N

[0097] V=θρN

[0098]

[0099]

[0100]

[0101]

[0102]

[0103]

[0104]

[0105]

[0106]

[0107] Among them, N is the total population; S is the susceptible population. Since the proportion of infected population in the total population is very small, it is assumed that the total number of susceptible population remains basically unchanged; V is the immune population; E is the infected but undiagnosed population; Is is the seriously infected person who has not been vaccinated; Im is the mild infected person who has not been vaccinated; Isv is the seriously infected person who has been vaccinated; Imv is the mild infected person who has been vaccinated; As is the asymptomatic infected person; R is the recovered person; D is the deceased person; I is all confirmed people; A(t), B(t), C(t), D(t), and F(t) are functions of the conversion ratio and time relationship of converting various types of infected people into confirmed people respectively; θ, ρ, a, μ, λ, δ, ε, and γ are all artificially set and unchanging constants.

[0108] in, out represent the floating population between regions, that is, E in 、E out It can represent the flow of infected but undiagnosed people between regions; in 、As out It can represent asymptomatic infections flowing between regions; R in , R out can represent the restorer of the flow between regions. And, E in 、E out 、As in 、As out , R in , R out All of them are known data. For example, in and out can represent the floating population between cities.

[0109] EA(t) is the current confirmed population, that is, the number of newly confirmed cases on that day. It can be expressed as:

[0110]

[0111] E increase (t) can be the number of newly infected but undiagnosed people on that day. The onset time of these people is a function related to time. For example, assuming that the probability of newly infected but undiagnosed people on that day getting sick after the 3rd day, the 4th day, and the 5th day is 1 / 3, then E increase (t) will be converted into confirmed population I at a ratio of 1 / 3 on the 3rd, 4th, and 5th day in the future. Therefore, the number of newly confirmed cases EA(t) on that day can be calculated by the following formula:

[0112]

[0113] This formula can express the number of newly confirmed cases from the cumulative number of infections in the past few days on that day, that is, this formula can express that the newly infected but undiagnosed people on the 3rd day before that day, the newly infected but undiagnosed people on the 4th day before that day, and the newly infected but undiagnosed people on the 5th day before that day were all converted into confirmed people on that day at a ratio of 1 / 3.

[0114] In step 302, the system equation of the infectious disease transmission prediction system considering vaccines is discretized to obtain a discrete system equation.

[0115] It should be noted that when calculating the number of newly infected but undiagnosed people on the same day, the population that has been diagnosed, cured, or died on the same day can be ignored. Each variable can be divided into two states: morning and evening. The morning state is represented by the subscript a, and the evening state is represented by the subscript p. Then the above system equation can be discretized as:

[0116]

[0117]

[0118] As p (t)=As a (t)+μ(E p (t-1)-E a (t))

[0119]

[0120]

[0121]

[0122]

[0123]

[0124]

[0125]

[0126]

[0127]

[0128] It should be noted that, assuming that the infectious disease is infected during the day and develops overnight, people who have been infected but not diagnosed will develop the disease at night and become confirmed people on the morning of the next day.

[0129] The formula in row 1 is: The left side of E p (t) represents the total number of people who have been infected but not diagnosed as of the evening of the tth day; the first term on the right side of the formula in the first row, E a (t) represents the total number of people who have been infected but not diagnosed as of the morning of the t-th day; the sum of the 2nd to 7th items on the right side of the formula in the first row represents the number of people who have been newly infected but not diagnosed from the morning of the t-th day to the evening of the t-th day.

[0130] in, This item indicates the number of people E who have been infected but not diagnosed as of the morning of day t. a (t) After contact with susceptible population S, it will be E The proportion of the susceptible population S is converted into the infected but undiagnosed population;

[0131] Bao Yi said that by the morning of the tth day, the number of seriously ill infected people who had not been vaccinated would After contact with susceptible population S, The proportion of the susceptible population S is converted into the infected but undiagnosed population;

[0132] This item indicates the number of mildly infected people who have not been vaccinated by the morning of day t. After contact with susceptible population S, The proportion of the susceptible population S is converted into the infected but undiagnosed population;

[0133] This item indicates the number of mildly infected people who received the vaccine by the morning of day t. After contact with susceptible population S, The proportion of the susceptible population S is converted into the infected but undiagnosed population;

[0134] This item indicates the number of seriously ill infected people who received the vaccine by the morning of day t. After contact with susceptible population S, The proportion of the susceptible population S is converted into the infected but undiagnosed population;

[0135] This item indicates that asymptomatic infections As have been reported by the morning of day t a (t) After contact with susceptible population S, it will be As The proportion of converting part of the susceptible population S into infected but undiagnosed people.

[0136] Formula for row 2: The left side is E p(t-1)-E a (t), where E p (t-1) is the total number of people who have been infected but not diagnosed as of the evening of the (t-1)th day, E a (t) is the total number of people who have been infected but not diagnosed by the morning of day t. As mentioned above, infectious diseases occur overnight, that is, the infected but not diagnosed people will become ill at night and become confirmed people in the morning of the next day. Therefore, E p (t-1)-E a (t) represents the number of newly confirmed cases on day t.

[0137] because

[0138] and,

[0139] therefore,

[0140] It can be seen that the number of newly confirmed cases E on day t p (t-1)-E a (t) is about β E , β As The function of , that is, the parameter to be learned is β E , β As . Assumptions:

[0141] β E (t) = α(t)β E0

[0142]

[0143]

[0144]

[0145]

[0146] β As (t) = α(t)β As0

[0147] β E0 , β As0are all constants, then the parameter to be learned is α(t). Among them, α(t) is a learning variable, which can be represented by a trainable vector of length T (T is the total simulation time), that is, the tth element of the vector is α at time t; or, α(t) can be represented by a neural network, that is, the input is the current time t, and the output is α at time t.

[0148] In step 303, a loss function for training the learning variable α(t) is determined. Exemplarily, the loss function can be expressed by the following formula:

[0149]

[0150] Among them, as mentioned above, E p (t-1)-E a (t) represents the number of newly confirmed cases on day t, Represents the actual number of newly confirmed cases on the tth day in the historical process.

[0151] In step 304, based on the loss function, the learning variable α(t) is trained to determine the final value of α(t), that is, the α(t) that minimizes the loss function is determined as the final α(t). At this point, the problem is transformed into:

[0152]

[0153] Exemplarily, the process of training the learning variable α(t) can be solved using a gradient descent optimizer (such as an adam optimizer) in TensorFlow.

[0154] It should be noted that since the number of newly confirmed cases E on the tth day is used p (t-1)-E a The loss function is expressed by the difference between the actual number of newly confirmed cases on the tth day and the actual number of newly confirmed cases on the tth day. Therefore, the smaller the loss function, the more realistic and appropriate the corresponding parameters can simulate the real spread of infectious diseases in the real world. In this way, the value of α(t) when the loss function is minimized can be determined as the final result, which can ensure that the parameters obtained through training can more realistically simulate the spread of infectious diseases in the real world, that is, the accuracy and precision of the infectious disease spread prediction system in predicting the spread of infectious diseases can be guaranteed.

[0155] Figure 4 is a block diagram illustrating an infectious disease spread prediction device according to an exemplary embodiment of the present disclosure.

[0156] Reference Figure 4The device 400 may include a system equation acquisition module 401, a discretization processing module 402, a modeling module 403, a loss function determination module 404, a training module 405, a final value determination module of the first parameter 406 and an infectious disease transmission prediction module 407.

[0157] The system equation acquisition module 401 can acquire the system equation of the infectious disease transmission prediction system, wherein the system equation can include a first parameter and a state variable of the number of newly confirmed cases at the current moment, and the first parameter can be various types of operators, matrices, and the like.

[0158] According to an exemplary embodiment of the present disclosure, the system equation of the above infectious disease spread prediction system may be:

[0159] DV(t)+MV(t)+∫CV(t)dt=0......(1)

[0160] Among them, D, M, and C are the first parameters, D is the differential / difference operator, M is the linear matrix, C is the coefficient matrix, V(t) is the state variable of the infectious disease transmission prediction system, that is, V(t) is the state variable of the number of newly confirmed cases, ∫CV(t)dt is the integral about V(t), and t is the time.

[0161] The discretization processing module 402 can discretize the above system equation to obtain a discrete system equation. Exemplarily, the above system equation can be discretized according to the independent variable time t. Among them, the discrete system equation can include a second parameter and a state variable of the number of newly confirmed cases at each moment from the preset initial moment to the current moment. The second parameter can be a discrete parameter corresponding to the first parameter, and the preset initial moment can be the moment t=0.

[0162] According to an exemplary embodiment of the present disclosure, the above discrete system equation may be:

[0163] [D0V(t)+D1V(t-1)+…+D i V(ti)] / Δt+MV(t)+Δt[C0V(t)+C1V(t-1)+…+C i V(ti)]=0......(2)

[0164] Among them, D0, D1...D i is the second parameter corresponding to the first parameter D, C0, C1...C i is the second parameter corresponding to the above-mentioned first parameter C, V(t) is the state variable of the number of newly confirmed cases at time t, V(t-1) is the state variable of the number of newly confirmed cases at time (t-1), and so on, V(ti) is the state variable of the number of newly confirmed cases at time (ti), 1≤i≤t, and i can be an integer, and Δt is a discrete unit.

[0165] It should be noted that the discrete unit Δt can be set based on the actual needs to determine the length of time. For example, Δt can be in units of "days", "hours", "minutes", "seconds", etc.

[0166] The modeling module 403 can model the above discrete system equations to obtain a target model. Exemplarily, a framework such as a symbolic mathematical system (TensorFlow) can be used to model the above discrete system equations.

[0167] According to an exemplary embodiment of the present disclosure, the modeling module 403 can substitute each moment into the above-mentioned discrete system equation to obtain the expression of the newly confirmed number state variable V(t) at each moment, that is, the expression of V(t) at each moment can be calculated progressively in time. Among them, the expression may include a second parameter and an initial value V(t=0) of the newly confirmed number state variable. The initial value V(t=0) can be the first historical initial true value of the newly confirmed number state variable at the first historical initial moment, that is, the initial value V(t=0) can be the real newly confirmed number of people at the beginning of the infectious disease infection in a certain period of history.

[0168] The loss function determination module 404 can determine the loss function of the target model based on the historical real value of the newly confirmed number state variable at each historical moment after the first historical initial moment. That is, the loss function of the target model can be determined based on the real newly confirmed number of people at each historical moment after the start of the infectious disease transmission in the historical process. Among them, the first historical initial moment is the historical moment corresponding to the preset initial moment, that is, the first historical initial moment is the t=0 moment in the historical process.

[0169] According to an exemplary embodiment of the present disclosure, the loss function determination module 404 can determine the loss function based on the expression of the newly confirmed number of state variables at each moment, and the historical real value of the newly confirmed number of state variables at each corresponding historical moment after the first historical initial moment. That is, the loss function can be determined based on the expression of the newly confirmed number of state variables at each moment, and the real newly confirmed number of people at each historical moment after the start of the infectious disease transmission in the historical process.

[0170] According to an exemplary embodiment of the present disclosure, it should be noted that there may be a lot of historical data in the historical process. Exemplarily, infectious diseases may occur in different regions, and the spread of infectious diseases in each region may be somewhat different from each other, that is, each region where infectious diseases occur corresponds to its own real number of newly confirmed cases at each historical moment after the start of the infection in the historical process. When determining the loss function, the infection situation in each region in the different regions where infectious diseases occurred in the historical process can be taken into account. That is, the loss function determination module 404 can determine the loss function based on the expression of the state variable of the number of newly confirmed cases at each moment, and the historical real value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment contained in each historical path in multiple historical paths.

[0171] In this way, by referring to the infection situation of each historical path in multiple historical paths, the training data is greatly enriched, which can ensure that the parameters obtained through training can more realistically simulate the transmission law of infectious diseases in the real world, that is, the accuracy and precision of the infectious disease transmission prediction system in predicting the transmission of infectious diseases can be guaranteed.

[0172] According to an exemplary embodiment of the present disclosure, the above loss function may be:

[0173]

[0174] Among them, V[n](t) is the expression of the state variable of the number of newly confirmed cases at each moment, V history [n](t) is the historical real value of the state variable of the number of newly confirmed cases at each corresponding historical moment, t is the moment, and n∈history represents the historical path.

[0175] The training module 405 can train the target model based on the loss function to determine the target value of the second parameter. Exemplarily, a gradient descent optimizer in TensorFlow, such as an adam optimizer, can be used to train the target model to determine the target value of the second parameter.

[0176] According to an exemplary embodiment of the present disclosure, the training module 405 may determine that the value of the second parameter when the value of the loss function is minimized is the target value, that is, the problem to be solved at this time is converted into:

[0177] It should be noted that, as mentioned above, since the loss function is represented by the difference between the expression of the state variable of the number of newly confirmed cases at each moment and the actual number of newly confirmed cases at each historical moment after the start of the infectious disease transmission in the historical process, the smaller the loss function, the more realistic the corresponding parameter is, and the more closely it can simulate the actual spread of infectious diseases in the real world. In this way, the value of the second parameter that minimizes the loss function can be determined as the final result, which can ensure that the second parameter obtained through training can more realistically simulate the spread of infectious diseases in the real world, that is, the accuracy and precision of the infectious disease transmission prediction system in predicting the spread of infectious diseases can be guaranteed.

[0178] The final value determination module 406 of the first parameter may determine the final value of the first parameter corresponding to the second parameter based on the target value of the second parameter, that is, the final value of the first parameter may be determined based on the target value of the second parameter and the mapping relationship between the second parameter and the first parameter.

[0179] According to an exemplary embodiment of the present disclosure, the infectious disease spread prediction device 400 may further include a setting module, an input module and an evaluation module.

[0180] After determining the final value of the first parameter, the setting module can also set the value of the first parameter of the infectious disease propagation prediction system to the final value obtained. Then, the input module can input the second historical initial true value into the infectious disease propagation prediction system that has set the value of the first parameter to the final value, and obtain the estimated value of the predicted number of newly confirmed people state variable at each historical moment after the second historical initial moment. Among them, the second historical initial true value can be the value of the newly confirmed people state variable at the second historical initial moment, that is, the second historical initial true value can be the real number of newly confirmed people at the beginning of the infectious disease transmission in the historical process.

[0181] Next, the evaluation module can evaluate the reliability of the final value of the first parameter based on the gap between the estimated value of the state variable of the number of newly confirmed cases at each historical moment and the historical actual value at each historical moment. For example, the smaller the gap between the estimated spread and the actual spread, the higher the reliability of the final value of the first parameter; the larger the gap between the estimated spread and the actual spread, the lower the reliability of the final value of the first parameter, that is, the final value of the first parameter is difficult to truly simulate the spread of infectious diseases in the real world. At this time, further calibration of the first parameter is required to ensure the prediction accuracy of the infectious disease spread prediction system.

[0182] In this way, the estimated spread of infectious diseases at each historical moment can be estimated by simulation. Then, the reliability of the final value of the first parameter can be evaluated based on the gap between the estimated spread of infectious diseases and the actual spread. That is, based on the above gap, it can be verified whether the final value of the first parameter can truly simulate the spread of infectious diseases in the real world, thus achieving accurate verification of the final value of the first parameter.

[0183] The infectious disease propagation prediction module 407 can use the infectious disease propagation prediction system that sets the value of the first parameter as the final value to predict the propagation of infectious diseases. For example, if it is found that an infectious disease has occurred, the confirmed situation at the beginning of the infectious disease transmission can be input into the infectious disease propagation prediction system that has been calibrated with parameters. At this time, the infectious disease propagation prediction system can predict the propagation of the infectious disease at each time point in the subsequent process, so that relevant personnel can take corresponding prevention and control measures in time based on the predicted propagation situation, and avoid the situation where the propagation law of infectious diseases is not clear and effective prevention and control measures cannot be taken, resulting in the spread of infectious diseases being difficult to control.

[0184] Figure 5 is a block diagram illustrating an electronic device 500 according to an exemplary embodiment of the present disclosure.

[0185] Reference Figure 5 The electronic device 500 includes at least one memory 501 and at least one processor 502, wherein the at least one memory 501 stores instructions, and when the instructions are executed by the at least one processor 502, the infectious disease propagation prediction method according to the exemplary embodiment of the present disclosure is executed.

[0186] As an example, the electronic device 500 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instructions. Here, the electronic device 500 is not necessarily a single electronic device, but may also be any device or circuit capable of executing the above instructions (or instruction sets) individually or in combination. The electronic device 500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.

[0187] In the electronic device 500, the processor 502 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0188] The processor 502 may execute instructions or codes stored in the memory 501, wherein the memory 501 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.

[0189] The memory 501 may be integrated with the processor 502, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 501 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 501 and the processor 502 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 502 can read files stored in the memory.

[0190] In addition, the electronic device 500 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 500 may be connected to each other via a bus and / or a network.

[0191] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium may also be provided, and when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned infectious disease spread prediction method. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0192] According to the infectious disease propagation prediction method, device, electronic device and storage medium disclosed in the present invention, a loss function can be constructed based on historical real data, and the parameters of the infectious disease propagation prediction system equation can be calibrated based on the loss function. Since the historical real data is the data that actually existed in a certain period of history, the parameters calibrated based on these historical real data are more objective, avoiding the subjective errors caused by relying on the experience of experts for parameter calibration, and can ensure the accuracy of the infectious disease propagation prediction system, that is, the prediction accuracy of the infectious disease propagation prediction system can be guaranteed.

[0193] Furthermore, since the present disclosure does not need to rely on the experience of experts, it can realize automatic calibration of the parameters of the infectious disease transmission prediction system equation, thereby saving manpower and time costs to a large extent and improving the efficiency of parameter calibration.

[0194] Furthermore, since the infection situation of each historical path in multiple historical paths is referred to, the training data is greatly enriched, which can ensure that the parameters obtained through training can more realistically simulate the transmission law of infectious diseases in the real world, that is, the accuracy and precision of the infectious disease transmission prediction system in predicting the transmission of infectious diseases can be guaranteed.

[0195] Furthermore, since the loss function is represented by the difference between the expression of the state variable of the number of newly confirmed cases at each moment and the actual number of newly confirmed cases at each historical moment after the start of the infectious disease transmission in the historical process, the smaller the loss function, the more realistic the corresponding parameter is, and the more closely it can simulate the actual spread of infectious diseases in the real world. In this way, the value of the second parameter that minimizes the loss function can be determined as the final result, which can ensure that the second parameter obtained through training can more realistically simulate the spread of infectious diseases in the real world, that is, the accuracy and precision of the infectious disease transmission prediction system in predicting the spread of infectious diseases can be guaranteed.

[0196] Furthermore, the estimated spread of infectious diseases at each historical moment can be estimated by simulation. Then, the reliability of the final value of the first parameter can be evaluated based on the gap between the estimated spread of infectious diseases and the actual spread. That is, the final value of the first parameter can be verified based on the above gap to see whether it can truly simulate the spread of infectious diseases in the real world, thus achieving accurate verification of the final value of the first parameter.

[0197] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0198] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for predicting the spread of infectious diseases, characterized in that: include: Obtaining a system equation of an infectious disease transmission prediction system, wherein the system equation includes a first parameter and a state variable of the number of newly confirmed cases at a current moment; Discretizing the system equation to obtain a discrete system equation, wherein the discrete system equation includes a second parameter and a state variable of the number of newly confirmed cases at each moment from a preset initial moment to the current moment, and the second parameter is a discrete parameter corresponding to the first parameter; Modeling the discrete system equations to obtain a target model; Determine the loss function of the target model based on the historical real value of the newly confirmed number state variable at each historical moment after the first historical initial moment, wherein the first historical initial moment is the historical moment corresponding to the preset initial moment; Based on the loss function, training the target model to determine a target value of the second parameter; Based on the target value of the second parameter, determining a final value of the first parameter corresponding to the second parameter; The infectious disease spread prediction system is used to predict the spread of an infectious disease by setting the value of the first parameter as the final value.

2. The infectious disease propagation prediction method according to claim 1, characterized in that: The step of modeling the discrete system equation to obtain a target model includes: Substitute each moment into the discrete system equation respectively to obtain the expression of the state variable of the number of newly confirmed cases at each moment, wherein the expression includes the second parameter and the initial value of the state variable of the number of newly confirmed cases, and the initial value is the first historical initial true value of the state variable of the number of newly confirmed cases at the first historical initial moment.

3. The infectious disease propagation prediction method according to claim 2, characterized in that: The determining of the loss function of the target model based on the historical real value of the newly confirmed number state variable at each historical moment after the first historical initial moment includes: The loss function is determined based on the expression of the state variable of the number of newly confirmed cases at each moment and the historical actual value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment.

4. The infectious disease propagation prediction method according to claim 1, characterized in that: The step of training the target model based on the loss function to determine a target value of the second parameter includes: Determine that the value of the second parameter when the value of the loss function is minimized is the target value.

5. The infectious disease propagation prediction method according to claim 1, characterized in that: After determining a final value of the first parameter corresponding to the second parameter based on the target value of the second parameter, the method further includes: Setting the value of the first parameter to the final value; Inputting the second historical initial true value into the infectious disease propagation prediction system which has set the value of the first parameter as the final value, obtaining the estimated value of the newly confirmed number state variable at each historical moment after the second historical initial moment, wherein the second historical initial true value is the value of the newly confirmed number state variable at the second historical initial moment; Based on the gap between the estimated value of the newly confirmed number status variable at each historical moment and the actual historical value at each historical moment, the reliability of the final value of the first parameter is evaluated.

6. The infectious disease propagation prediction method according to claim 3, characterized in that: The expression of the state variable of the number of newly confirmed cases at each moment, and the historical real value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment, determine the loss function, including: The loss function is determined based on the expression of the state variable of the number of newly confirmed cases at each moment, and the historical actual value of the state variable of the number of newly confirmed cases at each corresponding historical moment after the first historical initial moment contained in each historical path in multiple historical paths.

7. The infectious disease propagation prediction method according to claim 6, characterized in that: The loss function is: Wherein, V[n](t) is the expression of the state variable of the number of newly confirmed cases at each moment, V history [n](t) is the historical real value of the newly confirmed number state variable at each corresponding historical moment, t is the moment, and n∈history represents the historical path.

8. An infectious disease transmission prediction device, characterized in that: include: A system equation acquisition module is configured to acquire a system equation of an infectious disease transmission prediction system, wherein the system equation includes a first parameter and a state variable of the number of newly confirmed cases at a current moment; A discretization processing module is configured to discretize the system equation to obtain a discrete system equation, wherein the discrete system equation includes a second parameter and a state variable of the number of newly confirmed cases at each moment from a preset initial moment to a current moment, and the second parameter is a discrete parameter corresponding to the first parameter; A modeling module is configured to model the discrete system equation to obtain a target model; A loss function determination module is configured to determine the loss function of the target model based on the historical real value of the newly confirmed number state variable at each historical moment after the first historical initial moment, wherein the first historical initial moment is a historical moment corresponding to the preset initial moment; A training module is configured to train the target model based on the loss function to determine a target value of the second parameter; a final value determination module for the first parameter, configured to determine a final value of the first parameter corresponding to the second parameter based on a target value of the second parameter; The infectious disease propagation prediction module is configured to perform infectious disease propagation prediction using the infectious disease propagation prediction system that sets the value of the first parameter as the final value.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the infectious disease spread prediction method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the infectious disease spread prediction method as described in any one of claims 1 to 7.

Citation Information

Cited By

  • New infectious disease transmission prediction method and system based on transfer learning

    CN120319500A