Infectious disease trend prediction algorithm based on space-time hypergraph neural network
By using the spatio-temporal hypergraph neural network in infectious disease trend prediction, we construct a city-related hypergraph network, and combine the time series and hypergraph network embedding layers to solve the problem that traditional models fail to fully consider the correlation between cities and improve the trend of infectious diseases. Prediction accuracy and robustness.
Patent Information
- Application Number
- CN202410586603.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional infectious disease trend prediction models fail to fully consider the correlation between cities and the dynamic changes in the transmission process, resulting in limited prediction accuracy.
An infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network is adopted. By constructing a city-related hypergraph network, combined with the temporal embedding layer and the hypergraph network embedding layer, the recurrent neural network and the hypergraph neural network are used to learn the temporal sequence information and characteristics of urban infectious diseases. Population distribution characteristics, generate high-order correlation relationships, and then conduct accurate infectious disease trend predictions.
It improves the accuracy of predicting the number of confirmed cases of urban infectious diseases, and enhances the robustness and generalization ability of the prediction by combining information in the time domain and feature space domain from multiple angles.
Smart Images

Figure CN118609846A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data analysis, and specifically relates to an infectious disease trend prediction algorithm based on a spatiotemporal hypergraph neural network. Background Art
[0002] The COVID-19 epidemic has had a significant impact on personal life, the global economy and the environment. During a pandemic, accurately predicting the spread of infectious diseases is extremely important for preventing or controlling infectious disease outbreaks. Its market demand and application potential are huge. The infectious disease spread trend prediction system can provide governments and public health agencies with accurate predictions of infectious disease trends, and help formulate effective preventive measures and resource allocation plans; by predicting the spread of infectious diseases, the system can help medical institutions prepare in advance, optimize the allocation of medical resources, and reduce the pressure of the epidemic on the medical system; the system can provide economists and policymakers with an assessment tool for the impact of the epidemic on the economy, and assist in formulating economic stimulus and recovery plans; insurance companies can use the prediction results of the system to assess epidemic risks, design related insurance products, and provide risk protection for individuals and enterprises.
[0003] In recent years, researchers have attempted to use machine learning methods to study the spread of infectious diseases in order to overcome the limitations of mathematical models, especially deep learning models. In infectious disease prediction, RNNs can capture patterns in time series data, such as changes in case reports over time, and thus predict future trends in infectious diseases [2]. Nevertheless, these time series prediction methods were initially based on the assumption that individuals or regions are independent of each other and rely only on historical time series information, such as infection rates and mortality rates. When population density, lockdown measures, virus mutations, population mobility, and social and cultural factors are introduced, models built using only recurrent neural networks are difficult to cope with.
[0004] Considering the similarity of infectious disease transmission trends between different cities with similar urban backgrounds, the hypergraph neural network shows obvious advantages in analyzing the complex multi-factor high-order interactive relationships of urban infectious disease transmission. The hypergraph neural network extends the concept of traditional graph neural networks to hypergraphs, and hyperedges can contain multiple nodes, which naturally represent high-order associations. The hypergraph neural network is used to model the associations between cities as nodes and hyperedges to analyze and understand the high-order interactive relationships of complex multi-factor interweaving. In this analysis, a variety of data such as population mobility, population density, per capita wealth, and education level are comprehensively considered. Through a unique information aggregation mechanism, the hypergraph neural network can integrate information from different fields, provide a comprehensive analysis perspective, and help to accurately predict infectious disease trends.
[0005] When the inventors were conducting research on infectious disease trend prediction algorithms, they found that traditional data-driven prediction models often only consider time series information and fail to fully consider the correlation between cities and the dynamic changes in the transmission process when infectious diseases occur, which limits the accuracy of predicting transmission trends. Summary of the invention
[0006] In view of the above situation, the purpose of the present invention is to provide an infectious disease trend prediction algorithm based on a spatiotemporal hypergraph neural network with strong generalization and robustness.
[0007] The infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network proposed in the present invention includes: taking cities as nodes, constructing hyperedges based on the similarity of urban social population distribution characteristics, and forming an urban infectious disease association hypergraph network; constructing a spatiotemporal hypergraph neural network framework to more accurately and comprehensively predict infectious disease trends, and the framework is divided into three layers: a time series embedding layer, a hypergraph network embedding layer, and a prediction layer; in the time series embedding layer, a recurrent neural network is used to learn the number of confirmed cases, the number of deaths, and the flow of people in the city in urban infectious diseases. [1] In the hypergraph network embedding layer, the hypergraph neural network is used to learn the shared information of city characteristics in the city association relationship constructed based on the similarity of population distribution characteristics, so as to obtain the individual characteristics of the city containing the association relationship information; in the prediction layer, the features of the time series embedding layer and the features of the hypergraph network embedding layer are spliced together, and the final infectious disease trend prediction result is output through a fully connected network and a nonlinear activation function. The algorithm of the present invention uses a hypergraph to mine high-order associations between cities when infectious diseases occur, and combines multi-angle information in the time domain and feature space domain through a spatiotemporal framework to improve the accuracy of the prediction of the number of confirmed cases of infectious diseases in cities. The specific steps are:
[0008] Step 1: Preprocess the time series characteristics of urban infectious diseases and construct a hypergraph network based on the characteristics of urban social population distribution;
[0009] Step 2: Input the urban infectious disease time series features processed in step 1 into the time series embedding layer to capture the time dependency in the historical data and extract the time domain information in the data;
[0010] Step 3: Input the city hypergraph network constructed in step 1 and the time series embedding features obtained in step 2 into the hypergraph neural network embedding layer, use the attention mechanism to dynamically represent the strength of the high-order correlation between cities, perform effective feature extraction, and complete the hypergraph network embedding learning;
[0011] Step 4: Combine the time series embedding features obtained in step 2 and the hypergraph network embedding features obtained in step 3, and obtain the final urban infectious disease trend prediction results through a layer of fully connected network and ReLu activation function. The spatiotemporal hypergraph neural network model is trained and optimized through supervised learning.
[0012] Further:
[0013] The specific process of step 1 is as follows:
[0014] Step 1-1: Preprocess the time series data of urban infectious diseases. Specifically, the time series data of each city on date t is represented as a matrix The time series data x for each city t It is composed of the number of confirmed cases, the number of deaths and the flow of people in the city. L is the length of the time series, and D is the dimension of each time series feature. Set the length of the sliding time window to l, the step size to 1, and divide the overall time series into L-l+1 subsequences of the same length. First, z-score normalize the data in each time window:
[0015]
[0016] in, represents the time series characteristics of city i in the sliding time window w, μ represents the mean of the time series characteristics, and σ represents the variance of the time series characteristics; then, the normalized time series data of the first l-1 cities in each subsequence are used as features for training to predict the number of confirmed cases on the last day of the sequence;
[0017] Step 1-2: Preprocess the urban social population distribution data, and express the social population distribution characteristics of n cities as where s i A vector representing the sociodemographic characteristics of each city, with a dimension of F, including population density, education level, age, family size and status, poverty level, living in a metropolitan area or a micropolitan area, health insurance status, etc. Based on the assumption that cities with similar sociodemographic characteristics have similar transmission processes when an epidemic occurs, a hypergraph is constructed using a hypergraph generation method based on feature distance, and the Euclidean distance d(s) between the sociodemographic characteristics of city i∈[1,n] and the sociodemographic characteristics of all other cities j is calculated. i ,s j )=‖s i -s j ‖. Then, for all d(s i ,s j ) to find the k cities with the most similar population distribution characteristics to city i, and set city i and these k cities on the same hyperedge e i In this way, a hypergraph H = (V, E) is constructed, where V represents the node set and E represents the hyperedge set.
[0018] Specific process of step 2:
[0019] Step 2-1: The time series characteristics of urban infectious diseases processed in step 1 As input, after passing through the time series embedding layer, the gated unit (GRU) is used to extract time series features, and the last hidden state is used as the time series embedding of the city to obtain:
[0020]
[0021] in, Represents the vector after the city time series features are embedded by the GRU network;
[0022] Step 2-2: Pass the city time series feature representation through the fully connected layer W0 and use the LeakyReLU activation function for nonlinear transformation:
[0023]
[0024] in, represents the time series feature matrix of all cities, represents the city time series feature matrix after full connection and activation function correction, is a hyperparameter.
[0025] Step 3:
[0026] Step 3-1: Combine the hypergraph H = (V, E) obtained in step 1 and the urban infectious disease time series feature matrix obtained in step 2 As input, use the mean function to calculate the time series features of all nodes in the hyperedge. Aggregate rows to get hyperedge features
[0027]
[0028] Among them, |e| represents the number of nodes in hyperedge e;
[0029] Step 3-2: Update the features of each node through the hyperedge to which the node belongs, and convert the vector of city time series features and hyperedge features Through a shared weight matrix W s Perform a linear transformation, and then splice the two features that have undergone linear transformation according to the feature direction The concatenated features are passed through a learnable attention parameter vector a, and finally the attention coefficient is activated by the nonlinear activation function LeakyReLU, which is expressed as:
[0030]
[0031] in, Indicates the importance of hyperedge e to node i; the attention coefficient is normalized by the softmax function:
[0032]
[0033] Among them, e′ represents the hyperedge to which node i belongs, E i represents the set of hyperedges to which node i belongs;
[0034] The node feature representation is updated using the normalized attention coefficient and hyperedge feature. The hyperedge to which node i belongs is first linearly transformed through a weight matrix W1, then weighted summed by the normalized attention coefficient, and finally activated by the nonlinear activation function LeakyReLU:
[0035]
[0036] in, Represents the city embedding features output by the final hypergraph neural network embedding layer; All formulas in step 3-1 and step 3-2 are combined into the form of HGAT network,
[0037]
[0038] in, Represents the matrix of hypergraph neural network embedding features of all cities.
[0039] The specific process of step 4 is as follows:
[0040] Step 4-1: Combine the temporal embedding features obtained in step 2 and the hypergraph network embedding features obtained in step 3 according to the feature direction Obtain comprehensive characteristics in the city's time domain and feature space domain;
[0041] Step 4-2: Pass the comprehensive features of the city through the fully connected layer W p Perform dimensional mapping and use the ReLU activation function for nonlinear transformation to obtain the prediction result of the number of confirmed cases of infectious diseases in the city:
[0042]
[0043] in, Represents the predicted number of confirmed cases in all cities;
[0044] Step 4-3: Use the root mean square error loss function (RMSE total ), and adjust the model parameters through the back propagation algorithm to minimize the difference between the model prediction and the actual number of confirmed cases:
[0045]
[0046] in, represents the predicted value of the number of confirmed cases in city i at time w, Represents the actual value of the number of confirmed cases in city i at time w. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is an overall flow chart of the infectious disease trend prediction algorithm based on the spatiotemporal hypergraph neural network of the present invention.
[0048] Figure 2 RMSEweek performance chart for LSTM, GRU and TSH predictions for all cities.
[0049] Figure 3 RMSEcounty performance chart for LSTM, GRU and TSH in 9 randomly selected cities.
[0050] Figure 4 This is a dynamic process curve of new cases in 9 cities from week 0 to week 34.
[0051] Figure 5 This is a locally enlarged dynamic process curve of new cases in nine cities from week 32 to week 34. DETAILED DESCRIPTION
[0052] The present invention is further described below by way of embodiments in conjunction with the accompanying drawings.
[0053] Step 1-1: Preprocess the time series data of urban infectious diseases. Specifically, the time series data of each city on date t is represented as a matrix The time series data x for each city t It is composed of the number of confirmed cases, the number of deaths and the flow of people in the city. L is the length of the time series, and D is the dimension of each time series feature. The length of the sliding time window is set to l, the step size is 1, and the overall time series is divided into L-l+1 subsequences of the same length. The present invention first performs z-score normalization on the data of each time window.
[0054]
[0055] in represents the time series feature of city i in the sliding time window w, μ represents the mean of the time series feature, and σ represents the variance of the time series feature. Then, the normalized time series data of the first l-1 cities in each subsequence are used as features for training to predict the number of confirmed cases on the last day of the sequence.
[0056] Step 1-2: Preprocess the urban social population distribution data, and express the social population distribution characteristics of n cities as where s i The vector representing the sociodemographic characteristics of each city has a dimension of F, including population density, education level, age, family size and status, poverty level, living in a metropolitan area or a micropolitan area, health insurance status, etc. Based on the assumption that cities with similar sociodemographic characteristics have similar transmission processes when an epidemic occurs, a hypergraph is constructed using a hypergraph generation method based on feature distance, and the Euclidean distance d(s) between the sociodemographic characteristics of city i∈[1,n] and the sociodemographic characteristics of all other cities j is calculated. i ,s j )=‖s i -s j ‖. Then, for all d(s i ,s j ) to find the k cities with the most similar population distribution characteristics to city i, and set city i and these k cities on the same hyperedge e i In this way, a hypergraph H = (V, E) is constructed, where V represents the node set and E represents the hyperedge set.
[0057] Step 2-1: The time series characteristics of urban infectious diseases processed in step 1 As input, after passing through the time series embedding layer, the gated unit (GRU) is used to extract time series features, and the last hidden state is used as the time series embedding of the city to obtain:
[0058]
[0059] in, Represents the vector after the city time series features are embedded by the GRU network.
[0060] Step 2-2: Pass the city time series feature representation through the fully connected layer W0 and use the LeakyReLU activation function for nonlinear transformation.
[0061]
[0062] in, represents the time series feature matrix of all cities, represents the city time series feature matrix after full connection and activation function correction, is a hyperparameter.
[0063] Step 3-1: Combine the hypergraph H = (V, E) obtained in step 1 and the urban infectious disease time series feature matrix obtained in step 2 As input, use the mean function to calculate the time series features of all nodes in the hyperedge. Aggregate rows to get hyperedge features
[0064]
[0065] Here, |e| represents the number of nodes in the hyperedge e.
[0066] Step 3-2: Update the features of each node through the hyperedge to which the node belongs, and convert the vector of city time series features and hyperedge features Through a shared weight matrix W s Perform a linear transformation, and then splice the two features that have undergone linear transformation according to the feature direction The concatenated features are passed through a learnable attention parameter vector a, and finally the attention coefficient is activated by the nonlinear activation function LeakyReLU.
[0067]
[0068] in, Indicates the importance of hyperedge e to node i. The attention coefficient is normalized by the softmax function:
[0069]
[0070] Among them, e′ represents the hyperedge to which node i belongs, E i represents the set of hyperedges to which node i belongs.
[0071] The node feature representation is updated using the normalized attention coefficient and hyperedge feature. The hyperedge to which node i belongs is first linearly transformed through a weight matrix W1, then weighted summed by the normalized attention coefficient, and finally activated by the nonlinear activation function LeakyReLU.
[0072]
[0073] in, Represents the city embedding features output by the final hypergraph neural network embedding layer. All formulas in step 3-1 and step 3-2 are combined into the form of HGAT network.
[0074]
[0075] in, Represents the matrix of hypergraph neural network embedding features of all cities.
[0076] Step 4-1: Combine the temporal embedding features obtained in step 2 and the hypergraph network embedding features obtained in step 3 according to the feature direction Obtain comprehensive characteristics in the city's time domain and feature space domain.
[0077] Step 4-2: Pass the comprehensive features of the city through the fully connected layer W p Perform dimensional mapping and use the ReLU activation function for nonlinear transformation to obtain the prediction results of the number of confirmed cases of infectious diseases in the city.
[0078]
[0079] in, Represents the predicted number of confirmed cases in all cities.
[0080] Step 4-3: Use the root mean square error loss function (RMSE total ), adjust the model parameters through the back propagation algorithm to minimize the difference between the model prediction and the actual number of confirmed cases,
[0081]
[0082] in, represents the predicted value of the number of confirmed cases in city i at time w, Represents the actual value of the number of confirmed cases in city i at time w.
[0083] The dataset used collects data on the number of confirmed cases of novel coronavirus infection, the number of deaths, and the flow of people in cities at the county level in the United States from January 26 to September 12, 2020, for a total of 35 weeks, with each week starting on Sunday and ending on Saturday. The dataset also provides detailed information on the socio-demographic distribution characteristics of each city. These characteristics usually reflect different aspects of the socio-demographic, including population structure, racial distribution, family structure, education level, health status, etc. After preprocessing, there are 32 weeks of time series data. The 32 weeks of data are divided in chronological order, with 26 weeks of data as training sets, 3 weeks as validation sets, and 3 weeks as test sets.
[0084] The machine configuration used in the experiment is shown in Table 1:
[0085] Table 1
[0086] operating system Windows 10 Memory 32768MB CPU Model AMD Ryzen 7 5800X 8-Core 3.80GHZ Number of CPUs 8 Whether GPU acceleration yes GPU Model NVIDIA GeForce RTX 3090
[0087] In order to evaluate the quality of the prediction results, this paper chooses to use the root mean square error as the evaluation indicator. According to the different evaluation objects, it can be divided into three types of RMSE: RMSE county , RMSE weekand RMSE total .
[0088] (1)RMSE county :RMSE county The RMSE of multiple time-step predictions of the number of confirmed cases in each city is calculated.
[0089]
[0090] in, represents the predicted value of the number of confirmed cases in city i at time w, represents the actual value of the number of confirmed cases in city i at time w, and l-1 is the predicted time step.
[0091] (2)RMSE week :RMSE week represents the RMSE of the predicted number of confirmed cases in all cities in a single time step (week),
[0092]
[0093] in, represents the predicted value of the number of confirmed cases in city i at time w, represents the actual value of the number of confirmed cases in city i at time w, and n is the number of cities.
[0094] (3)RMSE total :RMSE total The RMSE of all prediction items is calculated.
[0095]
[0096] in, represents the predicted value of the number of confirmed cases in city i at time w, represents the actual value of the number of confirmed cases in city i at time w, and n×(l-1) represents the number of all predicted items.
[0097] The infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network (TSH) is compared with the following methods:
[0098] LSTM: Based on the traditional RNN model, input gate, output gate and forget gate are added to regulate the information flow in and out of the unit, which can accurately model data with short-term or long-term dependencies.
[0099] GRU: GRU is an improvement on LSTM. It simplifies the LSTM structure while maintaining the same effect as LSTM. Compared with the three gate units in the LSTM structure, GRU simplifies it to two gates, the update gate and the reset gate.
[0100] The final experimental results are shown in Table 2 and Table 3 below:
[0101] Table 2
[0102]
[0103] Table 2 shows the RMSE of LSTM, GRU and TSH models for predicting the number of confirmed cases in the next three weeks on the test set (weeks 32 to 34). total It can be observed that in the prediction of 3462 cities across the United States, the TSH model performed best compared with the LSTM and GRU models that only used the time series data of urban infectious disease transmission. This shows that the hypergraph constructed based on the characteristics of urban population distribution has mined high-order correlations between cities, which can help better predict infectious disease trends.
[0104] Table 3
[0105]
[0106] Table 3 and Figure 2 The RMSE of LSTM, GRU and TSH is shown. week From the performance of the indicators, it can be seen that the TSH model can well capture the trend of infectious disease spread in the forecasts for all cities in the next three weeks.
[0107] Figure 3 The following table shows the RMSE of LSTM, GRU and TSH predictions for 9 randomly selected cities. county From the performance, we can see that the TSH model can make good predictions for cities in different regions.
[0108] Figure 4 and Figure 5 The dynamic process of infectious disease transmission in 9 randomly selected cities over 35 weeks is shown, and 3 models are added to predict the transmission trend in the last 3 weeks. It can be seen that the TSH model can basically predict the trend. These prediction graphs show that different cities show different trends in infectious disease transmission in the same time period. The prediction of the TSH model is generally acceptable, but there are differences in the prediction results of the number of confirmed cases in different cities in the United States.
[0109] References:
[0110] [1]NIKPARVAR B,RAHMAN M M,HATAMI F,et al.Spatio-temporal predictionof the COVID-19pandemic in US counties:modeling with a deep LSTM neuralnetwork[J].Scientific Reports,2021,11(1):21715.
[0111] [2]FOROUTAN P,LAHMIRI S.The effect of COVID-19pandemic on return-volume and return-volatility relationships in cryptocurrency markets[J].Chaos,Solitons&Fractals,2022,162:112443.
[0112] [3]BATTAGLIA P,PASCANU R,LAI M,et al.Interaction networks forlearning about objects,relations and physics[J].Advances in NeuralInformation Processing Systems,2016,29.
[0113] [4]WANG P,ZHENG X,LI J,et al.Prediction of epidemic trends in COVID-19with logistic model and machine learning technics[J].Chaos,Solitons&Fractals,2020,139:110058.
[0114] [5]COSSU A,CARTA A,LOMONACO V,et al.Continual learning for recurrentneural networks:an empirical evaluation[J].Neural Networks,2021,143:607-627.
[0115] [6]SHASTRI S,SINGH K,KUMAR S,et al.Time series forecasting of COVID-19using deep learning models:India-USA comparative case study[J].Chaos,Solitons&Fractals,2020,140:110227.
[0116] [7]ZEROUAL A,HARROU F,DAIRI A,et al.Deep learning methods forforecasting COVID-19time-series data:A comparative study[J].Chaos,Solitons&Fractals,2020,140:110121。
Claims
1. An infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network, characterized by: include: Taking cities as nodes, hyperedges are constructed based on the similarity of urban social population distribution characteristics to form a hypergraph network associated with urban infectious diseases; a spatiotemporal hypergraph neural network framework is constructed, which is divided into three layers: time series embedding layer, hypergraph network embedding layer and prediction layer; in the time series embedding layer, a recurrent neural network is used to learn the time series information of the number of confirmed cases, the number of deaths and the flow of people in the city in urban infectious diseases; in the hypergraph network embedding layer, a hypergraph neural network is used to learn the shared information of urban characteristics in the urban association relationship constructed based on the similarity of population distribution characteristics, so as to obtain the individual characteristics of cities containing association relationship information; In the prediction layer, the features of the time series embedding layer and the features of the hypergraph network embedding layer are spliced together, and the final infectious disease trend prediction results are output through a fully connected network and a nonlinear activation function; the specific steps are as follows: Step 1: Preprocess the time series characteristics of urban infectious diseases and construct a hypergraph network based on the similarity of urban social population distribution characteristics; Step 2: Input the urban infectious disease time series features processed in step 1 into the time series embedding layer to capture the time dependency in the historical data and extract the time domain information in the data; Step 3: Input the city hypergraph network constructed in step 1 and the temporal embedding features obtained in step 2 into the hypergraph neural network embedding layer, use the attention mechanism to dynamically represent the strength of the high-order correlation between cities, perform effective feature extraction, and complete the hypergraph network embedding learning; Step 4: Combine the time series embedding features obtained in step 2 and the hypergraph network embedding features obtained in step 3, and obtain the final urban infectious disease trend prediction results through a layer of fully connected network and ReLu activation function. The spatiotemporal hypergraph neural network model is trained and optimized through supervised learning.
2. The infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network according to claim 1 is characterized in that: The specific process of step 1 is as follows: Step 1-1: Preprocess the time series data of urban infectious diseases. Specifically, the time series data of each city on date t is represented as a matrix The time series data x for each city t It is composed of the number of confirmed cases, the number of deaths, and the flow of people in the city. L is the length of the time series, and D is the dimension of each time series feature. Set the length of the sliding time window to l and the step size to 1, and divide the overall time series into L-l+1 subsequences of the same length; first, normalize the data of each time window by z-score: in, represents the time series characteristics of city i in the sliding time window w, μ represents the mean of the time series characteristics, and σ represents the variance of the time series characteristics; then, the normalized time series data of the first l-1 cities in each subsequence are used as features for training to predict the number of confirmed cases on the last day of the sequence; Step 1-2: Preprocess the urban social population distribution data, and express the social population distribution characteristics of n cities as where s i A vector representing the sociodemographic characteristics of each city, with a dimension of F, including population density, education level, age, family size and status, poverty level, living in a metropolitan or micropolitan area, and health insurance status. Based on the assumption that cities with similar sociodemographic characteristics have similar transmission processes when an epidemic occurs, a hypergraph is constructed using a hypergraph generation method based on feature distances, and the Euclidean distance d(s) between the sociodemographic characteristics of city i∈[1,n] and the sociodemographic characteristics of all other cities j is calculated. i ,s j )=‖s i -s j ‖; Then, for all d(s i ,s j ) to find the k cities with the most similar population distribution characteristics to city i, and set city i and these k cities on the same hyperedge e i In this way, a hypergraph H = (V, E) is constructed, where V represents the node set and E represents the hyperedge set.
3. According to the infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network according to claim 1, the specific process of step 2 is: Step 2-1: The time series characteristics of urban infectious diseases processed in step 1 As input, after the time series embedding layer, the gated unit is used to extract time series features, and the last hidden state is used as the time series embedding of the city to obtain: in, Represents the vector after the city time series features are embedded by the GRU network; Step 2-2: Pass the city time series feature representation through the fully connected layer W0 and use the LeakyReLU activation function for nonlinear transformation: in, represents the time series feature matrix of all cities, represents the city time series feature matrix after full connection and activation function correction, is a hyperparameter.
4. According to the infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network according to claim 1, the specific process of step 3 is: Step 3-1: Combine the hypergraph H = (V, E) obtained in step 1 and the urban infectious disease time series feature matrix obtained in step 2 As input, use the mean function to calculate the time series features of all nodes in the hyperedge. Aggregate rows to get hyperedge features in, |e| represents the number of nodes in hyperedge e; Step 3-2: Update the features of each node through the hyperedge to which the node belongs, and convert the vector of city time series features and hyperedge features Through a shared weight matrix W s Perform a linear transformation, and then splice the two features that have undergone linear transformation according to the feature direction The concatenated features are passed through a learnable attention parameter vector a, and finally the attention coefficient is activated by the nonlinear activation function LeakyReLU, which is expressed as: in, Indicates the importance of hyperedge e to node i; the attention coefficient is normalized by the softmax function: Among them, e′ represents the hyperedge to which node i belongs, E i represents the set of hyperedges to which node i belongs; The node feature representation is updated using the normalized attention coefficient and hyperedge feature. The hyperedge to which node i belongs is first linearly transformed through a weight matrix W1, then weighted summed by the normalized attention coefficient, and finally activated by the nonlinear activation function LeakyReLU: in, Represents the city embedding features output by the final hypergraph neural network embedding layer; All formulas in step 3-1 and step 3-2 are combined into the form of HGAT network, in, Represents the matrix of hypergraph neural network embedding features of all cities.
5. According to the infectious disease trend prediction algorithm based on spatiotemporal hypergraph neural network according to claim 1, the specific process of step 4 is: Step 4-1: Combine the temporal embedding features obtained in step 2 and the hypergraph network embedding features obtained in step 3 according to the feature direction Obtain comprehensive characteristics in the city's time domain and feature space domain; Step 4-2: Pass the comprehensive features of the city through the fully connected layer W p Perform dimensional mapping and use the ReLU activation function for nonlinear transformation to obtain the prediction result of the number of confirmed cases of infectious diseases in the city: in, Represents the predicted number of confirmed cases in all cities; Step 4-3: Use the mean square error loss function (RMSE total ), and adjust the model parameters through the back propagation algorithm to minimize the difference between the model prediction and the actual number of confirmed cases: in, represents the predicted value of the number of confirmed cases in city i at time w, Represents the actual value of the number of confirmed cases in city i at time w.
Citation Information
Cited By
Model construction method, multivariable time sequence anomaly detection method and related components
CN119203016A
Cyber-physical system anomaly state detection method and related components
CN119203016B
Epidemic mixing data prediction method based on deep learning
CN119314696A
Sudden infectious disease intelligent positioning system based on spatial-temporal distribution anomaly detection
CN120636858A
Intelligent epidemic disease prediction system based on deep learning
CN120767004A
