SEIARN propagation prediction system based on LSTM trajectory intersection

By introducing the concepts of asymptomatic infections and secondary infections into the infectious disease model, and using the LSTM model to dynamically adjust the contact rate parameters, combined with the SEIARN model, the problem of low accuracy in predicting the spread of infectious diseases is solved and a more accurate prediction of infectious diseases is achieved. Trend prediction and early warning.

CN114496296BActive Publication Date: 2024-10-25NORTH CHINA UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210115951.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-07
Publication Date
2024-10-25
Estimated Expiration
2042-02-07

AI Technical Summary

Technical Problem

It is difficult for existing infectious disease models (such as SEIR and SEAIR) to accurately consider asymptomatic infections and secondary infection factors, resulting in low accuracy in predicting the spread of infectious diseases and the inability to achieve precise prevention and control.

Method used

The SEIARN intelligent transmission prediction system based on LSTM trajectory intersection is used. Through data collection, preprocessing, parameter optimization and model fusion modules, the concepts of asymptomatic infections and secondary infections are introduced, and the LSTM model is used to dynamically adjust the contact rate parameters, combined with the SEIARN model. Infectious disease trend forecasting.

Benefits of technology

It improves the accuracy of forecasting the spread of infectious diseases, enables more accurate analysis of transmission routes and provides early warning, and enhances the ability to grasp disease development trends.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114496296B_ABST
    Figure CN114496296B_ABST
Patent Text Reader

Abstract

The invention discloses a SEIARN propagation prediction system based on LSTM trajectory intersection: comprising a data collection module: collecting movement trajectory data of suspected case patients and confirmed patients and collecting patient data in the area; a data preprocessing module: performing quadratic spline interpolation on the collected trajectory data to expand the capacity; a parameter optimization module: optimizing the dropout inactivation rate of the LSTM model according to the original trajectory; a model fusion module: predicting the suspected case and confirmed trajectory data of the future trajectory according to the LSTM; and a result display module. The invention combines the LSTM and SEIARN algorithms, and predicts the general trend of future disease propagation by aggregating single object trajectory data, thereby improving the prediction accuracy of disease development, assisting prevention and control personnel in predicting the development trend of pneumonia, and taking corresponding measures in time to control a new round of disease outbreak.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a SEIARN propagation prediction system based on LSTM trajectory intersection, and belongs to the field of computer application. Background Art

[0002] Existing studies have not comprehensively considered asymptomatic infections and secondary infection effects. According to medical research, infectious diseases have asymptomatic infection groups, which are difficult to identify and are prone to more extensive and persistent transmission. In order to clearly grasp the changes in the number of confirmed cases and the condition of suspected cases in the future by improving the SEIR patient population prediction model, it is necessary to provide the infection rate, contact rate and various conditions of asymptomatic infections in susceptible populations. For infectious disease models, with the continuous deepening of clinical research on infectious diseases and the strict implementation of domestic prevention and control measures, symptomatic infections are quickly isolated, with low infection rates, asymptomatic infections are difficult to identify and are prone to more extensive and persistent transmission, and the emergence of secondary infection effects increases the complexity and uncertainty of transmission. Traditional infectious disease models (such as SEIR models and SEAIR models) have a single structure, and it is difficult to take into account the factors of secondary infection and asymptomatic infections in predictions. The prediction accuracy is low, and it cannot achieve our goal of precise prevention and control, and can only provide a rough trend. How to analyze the transmission pathway of the disease and accurately warn it is a difficult problem currently faced.

[0003] The concepts of asymptomatic infection and secondary infection are introduced into the traditional SEIR model, and an improved SEIARN model with asymptomatic infection and secondary infection is constructed. In previous studies, the SEIR model has fixed parameters, and it is impossible to improve the parameters in real time according to actual changes when predicting the development of future infectious diseases. In order to improve the prediction accuracy, the improved LSTM trajectory prediction cross-real-time update contact rate is used as the SEIARN model parameter to predict the trend of infectious disease changes in the next stage. Summary of the invention

[0004] The technology of the present invention solves the problem: In order to analyze the transmission path of infectious diseases and accurately warn them, overcome the shortcomings of the existing technology, improve the prediction accuracy, use the improved LSTM model to predict the trajectory. And merge with the improved SEIARN model to obtain the transmission trend of infectious diseases.

[0005] Based on the above problems, the present invention provides a SEIARN intelligent propagation prediction system based on LSTM trajectory intersection. The system is based on the traditional SEIR model, introduces asymptomatic infected person A, and involves secondary infection situation N, and uses LSTM trajectory intersection to obtain contact rate to dynamically adjust model parameters. The present invention adopts the following technical solution, a SEIARN propagation prediction system based on LSTM trajectory intersection, which includes: a data collection module, a data preprocessing module, a parameter optimization module, a model fusion module, and a result display module:

[0006] Data collection module: collects movement trajectory data of suspected and confirmed patients and collects patient data in the area;

[0007] Data preprocessing module: perform quadratic spline interpolation on the collected trajectory data to expand the capacity;

[0008] Parameter optimization module: optimize the dropout inactivation rate of the LSTM model according to the original trajectory: determine the corresponding dropout inactivation rate according to the disorder of the moving trajectory, define the direction vector γ from the starting point to the current stop point, and the continuous adjacent points x in its time series t ,x t+1 The ordered vector γ t There will be an angle with γ. If this angle is less than 90 degrees, there is directionality; if this angle is greater than 90 degrees, it proves that the data at this stop point is abnormal data and should be inactivated. The formula for its inactivation rate is defined as follows:

[0009]

[0010] Where dropout is the inactivation rate, T is the number of sample points, and γ i is the direction vector composed of the i-th coordinate data and the i+1-th coordinate data, γ is the direction vector composed of the first sample point and the last sample point, q i It is a 0-1 variable, which is used to count the number of abnormal data. Its value is 0, which means that the i+1th coordinate point of the pedestrian is in line with the target direction trend and is not included in the count; its value is 1, which means that the i+1th coordinate point of the pedestrian is not in line with the target direction trend and this point is considered as an abnormal data point and is included in the count.

[0011] According to the traditional SEIR model, the SEIARN model is established by introducing asymptomatic infected persons and secondary infections: A is introduced as an asymptomatic infected person, who is easily identified as a susceptible person S in life, and is much more contagious than a latent person E. The cured person R still has the possibility of secondary infection, so the cured R type research object still has a certain probability of becoming an S type susceptible person; in the model naming, the cured person R becomes an S type susceptible person again, which is represented by N; the main SEIARN model is as follows:

[0012]

[0013] In the formula, β1 is the probability that a susceptible person is infected by a symptomatic person; n1 represents the number of contacts between symptomatic and susceptible persons; β2 is the probability that a susceptible person is infected by an asymptomatic person; n2 represents the number of contacts between asymptomatic and susceptible persons; α is the probability that a latent person is transformed into an infected person, which is the inverse of the incubation period; m is the proportion of symptomatic infected persons among infected persons; γ1 is the probability that an asymptomatic infected person recovers; γ2 is the probability that a symptomatic infected person recovers; and θ is the probability of a recovered asymptomatic infected person being infected again.

[0014] Model fusion module: Based on the LSTM prediction of the suspected cases and confirmed trajectory data of the future trajectory, the contact rate of the two populations in this area is obtained, and then brought into the SEIARN model to calculate the development trend of patients in this area.

[0015] Result display module: Introduce traditional SEIR and SEIAR models to compare with this method and visualize the prediction results.

[0016] Furthermore, in the model fusion module, the contact rate is determined by using the predicted trajectory data of the LSTM model to calculate the latitude and longitude of the suspected patient i at time point p. ip ,lon ip ), and the longitude and latitude of patient j (lan jp ,lon jp ) Whether the trajectories intersect and the number of intersections are defined as follows:

[0017]

[0018] Among them, ovl whether is an indicator of whether the trajectories of a suspected patient and n patients intersect. ip *lan jp -lan ip lon jp |Generate zero and one variables, and get:

[0019]

[0020] Among them, ovl num -i is the number of times the trajectories of the i-th pedestrian intersect with the n patients in the k time period, where k represents the number of line segments, k+1 represents the number of time points, and n represents the number of patients. The contact trajectories of all pedestrians in this area are as follows:

[0021]

[0022] where q djFor the trajectory intersection between the d-th pedestrian and the j-th patient, the overall contact rate is defined as follows:

[0023]

[0024] Contact rate s Represents the contact situation between area s and patients, and is the contact rate between pedestrians and patients.

[0025] Furthermore, the overall process of the LSTM prediction model is as follows: determine the general parameters: input latitude, number of network layers, select the sigmoid activation function, adjust the general parameters through grid search, calculate the dropout inactivation rate according to the original trajectory of the predicted population, and obtain the trajectory prediction data.

[0026] Furthermore, the data collection module obtains pneumonia infection data in the areas where patients and suspected cases are located through crawler technology.

[0027] Beneficial effects of the present invention:

[0028] (1) The present invention uses LSTM trajectory cross-pollination to obtain the infection rate for the SEIARN model, and dynamically adjusts the model parameters in real time, thereby increasing the accuracy of long-term disease prediction;

[0029] (2) The present invention predicts various types of infected people and grasps the overall development trend of the disease.

[0030] (3) Taking into account the disorder of pedestrian trajectories, the present invention proposes the concept of missing rate to select trajectory data and obtains an improved LSTM model, making the results more representative and purposeful.

[0031] (4) The present invention improves the SEIR model and proposes the concepts of asymptomatic infection and secondary immunity, making the results more consistent with real data.

[0032] (5) The contact rate of the SEIARN model is obtained by cross-calculating the patient's trajectory, without fitting the contact rate through the data angle, making the result more consistent with the actual situation. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 Overall system framework diagram;

[0034] Figure 2 Visualization of patient movement trajectory

[0035] Figure 3 Improved LSTM structure diagram

[0036] Figure 4 Improved LSTM flow chart

[0037] Figure 5 Prediction trajectory result diagram

[0038] Figure 6 Track Crossing Display

[0039] Figure 7 SEIAR model flow chart

[0040] Figure 8 Virus infection trend graph

[0041] Fig. 9 Schematic diagram of model comparison results DETAILED DESCRIPTION

[0042] Based on the disorder of the patient's trajectory, the present invention improves the LSTM model to predict the future trajectory of existing patients, and crosses it with the trajectory of susceptible patients, and uses the obtained contact rate as a real-time update parameter of the SEIARN model. The SEIARN model introduces the probability of A asymptomatic infected persons and θ recovered asymptomatic infected persons being infected again by modifying the SEIR model; the fitting data is used to numerically simulate the development trend of the disease, and the experimental results are compared with the SEIR and SEIAR models, highlighting the improvement and innovation of the invention.

[0043] In general, this system framework is Figure 1 described.

[0044] According to the infection trajectory of the patient, the corresponding pilot project is selected to collect it, and the text data obtained is converted into JSON format, and natural language processing is performed on it. The longitude and latitude are converted according to the location. The single-person trajectory data is as follows: Figure 2 shown.

[0045] LSTM is based on the long memory s line, and adds three gates on this basis: forget gate, input gate and output gate to protect the control unit state. The three added gates are a way to selectively let information pass through. It consists of Sigmoid neural network and matrix multiplication operation, which is equivalent to adding three neural network layers. Its model structure is as follows Figure 3 shown.

[0046] Since the patient trajectory is represented by longitude and latitude, the stop points of each patient form a time series, and the LSTM input latitude is determined to be 2. The number of neural network layers is defined as 3, including the forget gate, input gate, and output gate. The Sgmoid function is selected as the activation function of the LSTM prediction model. In order to better meet the disorder and uncontrollability of the patient and pedestrian trajectories, the parameters are adjusted, and the final result is obtained by training. The LSTM trajectory prediction process is as follows: Figure 4 shown.

[0047] To determine the dropout inactivation rate, the collected data is substituted into the following formula:

[0048]

[0049] Where dropout is the inactivation rate, T is the number of sample points, and γ i is the direction vector composed of the i-th coordinate data and the i+1-th coordinate data, γ is the direction vector composed of the first sample point and the last sample point, q i It is a 0-1 variable, which is used to count the number of abnormal data. Its value of 0 means that the i+1th coordinate point of the pedestrian is in line with the target direction trend and is not included in the count; its value of 1 means that the i+1th coordinate point of the pedestrian is not in line with the target direction trend, and this point is considered as an abnormal data point and is included in the count. By optimizing the inactivation rate, some abnormal data can be inactivated, so that each neuron has the opportunity to learn more efficiently, making the network more robust and reducing overfitting.

[0050] According to the above improved LSTM model, the longitude and latitude data of suspected cases and infectious patients at the previous 13 time points are brought into the model, and the longitude and latitude of the next 6 time points are predicted, as follows: Figure 5 shown.

[0051] In order to determine the contact rate, it is known that the longitude and latitude of the past trajectory are not connected with pedestrians. In the future, it is determined whether the trajectories of patients and pedestrians overlap in the future time period. The future predictions of patients and pedestrians are integrated together. For the convenience of display, only the trajectories of two patients and one suspected case are listed, such as Figure 6 According to the formula proposed in claim 1, the overall contact rate of the region is calculated.

[0052]

[0053] Contact rate s Represents the contact situation between area s and patients, and the contact rate between all pedestrians and patients. number is the number of contacts of all suspected cases, and z is the number of suspected cases to be changed.

[0054] The contact rate obtained above is brought into the improved SEIARN infectious disease dynamics model, whose structure is as follows: Figure 7 As shown. Set the total population of the local area, the current number of confirmed cases, the current number of recovered patients, and the current number of deaths, and introduce the contact probability of infected and susceptible people obtained by trajectory intersection, and predict the cumulative number of cured, cumulative number of deaths, and cumulative number of confirmed patients in the area. The prediction results are as follows Figure 8As shown. According to the prediction results, the average accuracy, the mean of the predicted data, the mean of the real data and the average difference are calculated. The results are analyzed.

[0055] Taking Hebei Province as an example, the results are shown in Table 1:

[0056] Table 1 SEIARN results statistics

[0057]

[0058] In order to further confirm the superiority of the proposed model, the infection data is brought into the traditional SEIR and SEIAR models to predict the number of infections, cures, and deaths, and the average accuracy of each is calculated and compared with the experimental results of the SEIARN model based on LSTM trajectory prediction, as shown in the figure. Fig. 9 The SEIARN model based on LSTM trajectory prediction is an improvement on the other two models. This algorithm obtains the actual patient contact rate through the improved LSTM model, and takes into account the characteristics of pneumonia infection such as asymptomatic infections and secondary infections.

[0059] The above description is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technology can understand and think of any changes or substitutions within the technical scope disclosed by the present invention, which should be included in the scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. The SEIARN propagation prediction system based on LSTM trajectory intersection is characterized by: It includes data collection module, data preprocessing module, parameter optimization module, model fusion module and result display module, among which: Data collection module: collects movement trajectory data of suspected and confirmed patients and collects patient data in the area; Data preprocessing module: perform quadratic spline interpolation on the collected trajectory data to expand the capacity; Parameter optimization module: optimize the dropout inactivation rate of the LSTM model according to the original trajectory: determine the corresponding dropout inactivation rate according to the disorder of the moving trajectory, define the direction vector γ from the starting point to the current stop point, and the continuous adjacent points x in its time series t ,x t+1 The ordered vector γ t There will be an angle with γ. If the angle is less than 90 degrees, there is directionality; if the angle is greater than 90 degrees, it proves that the data at this stop point is abnormal data and should be inactivated. The formula for its inactivation rate is defined as follows: Where dropout is the inactivation rate, T is the number of sample points, and γ i is the direction vector composed of the i-th coordinate data and the i+1-th coordinate data, γ is the direction vector composed of the first sample point and the last sample point, q i It is a 0-1 variable, which is used to count the number of abnormal data. Its value is 0, which means that the i+1th coordinate point of the pedestrian is in line with the target direction trend and is not included in the count; its value is 1, which means that the i+1th coordinate point of the pedestrian is not in line with the target direction trend and this point is considered as an abnormal data point and is included in the count. According to the traditional SEIR model, the SEIARN model is established by introducing asymptomatic infections and secondary infections: A is introduced as an asymptomatic infection, and A is easily identified as a susceptible person S in life, and the infectiousness is far greater than that of a latent person E; the cured person R still has the possibility of secondary infection, so the cured R type research object still has a certain probability of becoming an S type susceptible person; in the model naming, the cured person R becomes an S type susceptible person, which is represented by N; the main SEIARN model is as follows: In the formula, β1 is the probability that a susceptible person is infected by a symptomatic infected person; n1 represents the number of contacts between symptomatic infected persons and susceptible persons; β2 is the probability that a susceptible person is infected by an asymptomatic infected person; n2 represents the number of contacts between asymptomatic infected persons and susceptible persons; α is the probability that a latent person is transformed into an infected person, which is the inverse of the incubation period; m is the proportion of symptomatic infected persons among infected persons; γ1 is the probability that an asymptomatic infected person recovers; γ2 is the probability that a symptomatic infected person recovers; θ is the probability of a recovered asymptomatic infected person being infected again; Model fusion module: Based on the LSTM prediction of the suspected cases and confirmed trajectory data of the future trajectory, the contact rate of the two populations in this area is obtained, and then brought into the SEIARN model to calculate the development trend of patients in this area; Result display module: introduces the traditional SEIR and SEIAR models to compare with this method and visualizes the prediction results; In the model fusion module, the contact rate is determined by using the predicted trajectory data of the LSTM model to calculate. At time point p, the longitude and latitude (lan ip ,lon ip ), and the longitude and latitude of patient j (lan jp ,lon jp ) Whether the trajectories intersect and the number of intersections are defined as follows: Among them, ovl whether is an indicator of whether the trajectories of a suspected patient and n patients intersect. ip *lan jp -lan ip lon jp |Generate zero and one variables, and get: Among them, ovl num-i is the number of times the trajectories of the i-th pedestrian intersect with the n patients in the k time period, where k represents the number of line segments, k+1 represents the number of time points, and n represents the number of patients. The contact trajectories of all pedestrians in this area are as follows: Among them, q dj For the trajectory intersection between the d-th pedestrian and the j-th patient, the overall contact rate is defined as follows: Contact rate s represents the contact between area s and patients, is the contact rate between pedestrians and patients, and zovl number is the number of contacts of all suspected cases, and z is the number of suspected cases to be changed.

2. The SEIARN propagation prediction system based on LSTM trajectory intersection according to claim 1 is characterized in that: The overall process of the LSTM prediction model is as follows: determine the general parameters: input latitude, number of network layers, select the sigmoid activation function, grid search to adjust the general parameters, calculate the dropout inactivation rate based on the original trajectory of the predicted population, and obtain the trajectory prediction data.

3. The SEIARN propagation prediction system based on LSTM trajectory intersection according to claim 1 is characterized in that: The data collection module obtains pneumonia infection data in the areas where patients and suspected cases are located through crawler technology.