Weather probability prediction method, system, equipment and medium

Through deep learning spatiotemporal feature extraction network and Copula method, the spatiotemporal relationship of weather data is captured, and the joint probability distribution of weather data is constructed, which solves the problem of inaccurate weather prediction results in the existing technology and provides high accuracy and robustness. Weather probabilistic forecasting scheme.

CN118795577AActive Publication Date: 2024-10-18SHANDONG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411287765.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-10-18
Estimated Expiration
2044-09-14

AI Technical Summary

Technical Problem

Existing weather prediction methods cannot obtain the probability distribution of future weather and ignore the relationship between different weather variables, resulting in poor accuracy of weather prediction results.

Method used

The spatiotemporal feature extraction network based on deep learning is used to capture the spatiotemporal relationship of weather data through Transformer and graph convolution network, combined with the Copula method to construct a joint probability distribution of future weather data, and output the probability distribution of weather variables at each time point and location.

Benefits of technology

It provides the probability distribution of future weather conditions, improves the accuracy and robustness of forecasts, helps management departments make decisions in advance, and achieves more comprehensive weather condition analysis and forecasts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795577A_ABST
    Figure CN118795577A_ABST
Patent Text Reader

Abstract

The invention provides a weather probability prediction method, system and device and a medium, and belongs to the technical field of weather probability prediction, and the scheme is based on Copula probability estimation, uses transformer and graph convolution to capture a complex time-space relationship of weather data, and predicts the probability distribution of the weather data based on the time-space relationship. On one hand, the scheme can output probability distribution of weather variables at each time and each place in the future, provides possible weather conditions and probabilities thereof, and is beneficial to visually capturing abnormal conditions; and on the other hand, the scheme explicitly learns the correlation of different weather variables, and each variable obtains auxiliary information of other variables, so that the prediction accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of weather probability prediction, and in particular relates to a weather probability prediction method, system, equipment and medium. Background Art

[0002] Weather forecasting is an important research topic in smart meteorology. Predicting weather conditions in the future based on weather trends in the past period of time is beneficial for citizens to plan ahead according to the weather and provide effective information for urban management decisions.

[0003] There are currently many weather forecasting methods based on deep learning. They use spatiotemporal networks to capture the temporal trends and spatial correlations of weather data over a period of time, and predict multiple weather variables for each site in the future, such as temperature, wind speed, and PM2.5 values. Most of the current weather forecasting models are point estimation models, which can only output a predicted value, such as predicting the temperature at each moment and outputting a possible temperature value.

[0004] However, existing methods are unable to obtain the probability distribution of future weather (such as temperature) and capture a variety of possible weather conditions and their probabilities in order to provide management departments with more effective information for decision-making. At the same time, current weather forecasting models mainly learn the correlation between data at different times and the spatial correlation of different sites, ignoring the relationship between different weather variables (such as temperature, wind speed), resulting in poor accuracy of weather forecast results. Summary of the invention

[0005] The present invention provides a weather probability prediction method, system, device and medium to solve the problems in the prior art of being unable to obtain the probability distribution of various weather conditions that may occur in the future, and ignoring the consideration of the relationship between different weather variables, resulting in poor accuracy of weather prediction results.

[0006] In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions: An embodiment of the present invention provides a weather probability prediction method, comprising: Obtain historical weather data for different sites within a preset time period and future time information to be predicted; Based on the historical weather data obtained, a pre-trained deep learning-based spatiotemporal feature extraction network is used to obtain spatiotemporal features; wherein the spatiotemporal feature extraction network performs the following processing: based on the historical weather data, the time features of the historical weather data are obtained; based on the time features, the spatial features and weather variable features of different locations at different times are obtained respectively; based on the fusion features of the obtained spatial features and weather variable features, the spatiotemporal features are obtained; Based on the spatiotemporal characteristics, construct a joint probability distribution of weather data at future times; Based on the joint probability distribution, a probability prediction result of the weather condition in the future is obtained through sampling.

[0007] Furthermore, the spatiotemporal feature extraction network specifically performs the following processing procedures: based on the historical weather data obtained, for the weather data at different times under each weather variable at different locations, the Transformer network is used to capture the time correlation between the weather data to obtain the time features; based on the time features, the spatial relationship under each weather variable at each time is obtained; based on the spatial relationship combined with the corresponding geographic location map, a graph convolutional network is used to obtain the spatial features of each location, and, based on the time features, the weather variable relationship under each time and location is obtained; based on the weather variable relationship, a graph convolutional network is used to obtain the time variable characteristics of each location; based on the obtained spatial features and the fusion features of the weather variable features, the spatiotemporal features are obtained.

[0008] Furthermore, the acquisition of the spatial features is specifically expressed as follows: ; ; in, Indicates at time No. The characteristics of all locations under the weather variables, Indicates at time t No. j The spatial relationship between weather variables, A Represents a geographical location map, is the first parameter matrix and the second parameter matrix, which is used to convert Mapped to a higher-order space, K represents the order of capturing neighbor relations, , which is used to map spatial features to high-order space, express t Moment j The spatial characteristics of each location under each weather variable, N is the number of sites, C is the characteristic length.

[0009] Furthermore, the acquisition of the weather variable characteristics is specifically expressed as follows: ; ; in, Indicates at time No. The characteristics of all weather variables at each location, Indicates at time No. The correlation between different weather variables at each station, is the first parameter matrix and the second parameter matrix, which is used to convert the parameter matrix Mapped to a higher-order space, K represents the order of capturing neighbor relations, It is used to map weather variable features to a high-order space. express Moment The characteristics of the weather variables at each station capture the correlation of weather variables. C is the characteristic length.

[0010] Optionally, based on the spatiotemporal characteristics, a joint probability distribution of future weather data is constructed, specifically by using a Copula method. The joint probability distribution of multiple weather variables is divided into a Copula density function and a marginal density distribution of each variable through the Copula method, and the joint probability distribution of future weather data is obtained by multiplying the copula density function with the marginal density distribution.

[0011] Optionally, the training of the spatiotemporal feature extraction network uses the negative maximum likelihood of future weather data for each weather variable at each location as a loss function.

[0012] Furthermore, the historical weather data includes: weather data collected by each weather monitoring station in the area to be predicted within a preset time period in the past, including the temperature, wind speed and PM2.5 value of each station at different times in the past.

[0013] Another aspect of the present invention provides a weather probability prediction system, including: A data acquisition unit, which is used to acquire historical weather data of different stations within a preset time period and future time information to be predicted; A spatiotemporal feature extraction unit, which is used to obtain spatiotemporal features based on the historical weather data obtained, using a pre-trained spatiotemporal feature extraction network based on deep learning; wherein the spatiotemporal feature extraction network performs the following processing: based on the historical weather data, obtaining the time features of the historical weather data; based on the time features, respectively obtaining the spatial features and weather variable features of different locations at different times; based on the fusion features of the obtained spatial features and weather variable features, obtaining the spatiotemporal features; A joint probability distribution construction unit, which is used to construct a joint probability distribution of future time weather data based on the spatiotemporal characteristics; The weather probability prediction unit is used to obtain the probability prediction result of the weather condition in the future by sampling based on the joint probability distribution.

[0014] An embodiment of the present invention further provides an electronic device, comprising a processor, wherein the processor is configured to implement a weather probability prediction method as described above when executing a computer program stored in a memory.

[0015] Finally, an embodiment of the present invention further provides a non-transitory readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a weather probability prediction method as described above is implemented.

[0016] Compared with the prior art, the present invention has the following beneficial effects: (1) The scheme described in the present invention provides a weather probability prediction method and system. The scheme is based on probability estimation, uses transformers and graph convolution to capture the complex spatiotemporal relationship of weather data, and predicts the probability distribution of weather data based on the spatiotemporal relationship. On the one hand, the scheme described in this embodiment can output the probability distribution of weather variables at each time and location in the future, provide possible weather conditions and their probabilities, which is conducive to intuitively capturing abnormal situations, facilitating management departments to make decisions in advance, and increasing the practicality of the prediction system. On the other hand, the scheme described in this embodiment explicitly learns the correlation between different weather variables, and each variable obtains auxiliary information of other variables to improve the accuracy of the prediction. Compared with other existing methods, the scheme described in this embodiment can provide an intuitive probability distribution of weather conditions, facilitate analysis of possible future weather conditions and make decisions in advance, and provide a prediction scheme with fast prediction speed, high accuracy and strong practicality.

[0017] (2) The scheme uses the learned spatiotemporal features and Copula to learn the joint probability distribution of future weather data. Based on the idea that the Copula method can separate the joint probability distribution of multiple variables into a copula density function and the marginal density distribution of each variable, a method for constructing the joint probability distribution of future weather data is provided. By using the statistical method copula to predict the probability distribution of future weather, a more comprehensive weather condition can be obtained, thereby increasing the accuracy and robustness of the prediction.

[0018] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0020] Figure 1 A flow chart of a weather probability prediction method training process described in an embodiment of the present invention; Figure 2 A flow chart of a weather probability prediction method described in an embodiment of the present invention; Figure 3 The figure is a schematic diagram of the structure of a weather probability forecasting system described in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0022] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0023] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0024] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.

[0025] See first Figure 1 and Figure 2 , a weather probability prediction method provided by an embodiment of the present invention uses a graph convolution model to capture the relationship between different weather variables at different locations from static and dynamic perspectives, and uses a statistical method copula to predict the probability distribution of future weather, so as to obtain a more comprehensive weather condition and increase the accuracy and robustness of the prediction. In a specific implementation, a variety of weather data at different sites at different times are first collected and preprocessed, and a deep learning network is constructed in the training phase to learn the joint probability distribution of future weather data. First, a transformer is used to capture time correlation, and graph convolution is used to learn the spatial relationship of different locations and the relationship between different variables from static and dynamic perspectives. Then, the learned spatiotemporal relationship is used to fit the joint probability distribution of future weather data using copula. In the testing phase, the probability distribution of each predicted weather is obtained by sampling from the joint probability distribution, so as to improve the practicality and accuracy of the prediction. The method specifically includes the following contents: Step 1: Obtain historical weather data of different stations within a preset time period and future time information to be predicted; Specifically, we collect past weather data at different weather detection and recording stations in the city, including past temperature, wind speed, PM2.5 and other weather data. We also record the time information corresponding to each data, including the day of the week, whether it is a weekend, the hour of the day, and the minute of the hour, and convert it into a one-hot code. We also obtain the geographical location relationship diagram between weather detection stations based on the city road network. , is the number of weather monitoring stations in the city. We organize the weather data into a regular data set and correspond it to the time information. We use the weather data of the past 36 moments to predict the weather data of the next 12 moments, and divide the data set into training set, validation set and test set in 8:1:1 order according to the time sequence.

[0026] Among them, the training set is used to train the model; The validation set is used for: Adjust model hyperparameters. We first set the model hyperparameters, then train the model, input the validation set data into the trained model, and see the model results. We continuously adjust the model hyperparameters, select the hyperparameters with the best validation set results as the training hyperparameters, and save the parameters of the trained model for testing; verify the generalization ability of the model. If the model's results in the validation set are much worse than those in the training set, the model may be overfitting and needs to be adjusted; the test set is used to test the trained model.

[0027] Step 2: Based on the historical weather data obtained, a pre-trained deep learning-based spatiotemporal feature extraction network is used to obtain spatiotemporal features; wherein the spatiotemporal feature extraction network performs the following processing: based on the historical weather data, the time features of the historical weather data are obtained; based on the time features, the spatial features and weather variable features of different locations at different times are obtained respectively; based on the fusion features of the obtained spatial features and weather variable features, the spatiotemporal features are obtained; In the specific implementation, the spatiotemporal feature extraction network specifically includes the following processing procedures: based on the historical weather data obtained, for the weather data at different times under each weather variable at different locations, the Transformer network is used to capture the time correlation between the weather data to obtain the time features; based on the time features, the spatial relationship under each weather variable at each time is obtained; based on the spatial relationship combined with the corresponding geographical location map, the graph convolution network is used to obtain the spatial features of each location, and, based on the time features, the weather variable relationship under each time and each location is obtained; based on the weather variable relationship, the graph convolution network is used to obtain the time variable characteristics of each location; based on the fusion features of the obtained spatial features and weather variable characteristics, the spatiotemporal features are obtained.

[0028] Specifically, the extraction of the spatiotemporal features includes the following processing steps: We use the training data to train the network. The input data is , is the length of time past, is the number of weather monitoring stations in the city, is the number of weather variables (including temperature, wind speed, and PM2.5 in this example). First, transformer and graph convolution are used to learn the temporal, spatial, and variable relationships of weather data. In the temporal dimension, the weather data at each moment is closely related to the weather data at the previous and subsequent moments. For the weather data at different times under each weather variable at each location, we use transformer to capture the temporal correlation, and aggregate the features of the time with relatively large correlation at each time to obtain the temporal features. , is the number of weather variables, is the length of time, is the characteristic length.

[0029] We use graph convolutional networks to extract spatial relationships and weather variable relationships. The spatial relationships between different sites are different at different times, so we learn the spatial relationships under each weather variable at each time.

[0030] In time No. The characteristics of all locations under the weather variables are , we capture the spatial correlation of the dynamics: (1) in, is the parameter matrix Mapped to a higher-order space, Indicates at time t No. jWe add it to the location relationship graph to obtain a more comprehensive spatial relationship, including both global location relationships and real-time location relationships, and then use the graph convolution model to capture the spatial relationship: (2) in, K represents the order of capturing neighbor relations, Mapping spatial features to high-order space, express t Moment j The characteristics of each location under each weather variable.

[0031] We then use a graph convolutional model to learn the relationship between weather variables. The relationship between weather variables at different times and locations is different. We capture the dynamic relationship between weather variables at each time and location. No. The characteristics of all weather variables at each location are , we capture the weather variable relationship at this time: (3) in is the parameter matrix Mapped to a higher-order space, Indicates at time No. We use the graph convolution model to aggregate weather variable features according to the weather variable correlation: (4) in, Mapping weather variable features to a high-order space, express Moment The characteristics of the weather variables at each site capture the correlation of weather variables.

[0032] For each data, such as time No. Location weather data, we obtain its spatial characteristics and weather variable characteristics , we add it up: (5) in, Indicates at time No. Sites under The spatiotemporal characteristics of weather data capture the correlation between this data and other data from the dimensions of time, location, and weather variables.

[0033] Step 3: Based on the spatiotemporal characteristics, construct a joint probability distribution of future weather data; Step 4: Based on the joint probability distribution, obtain the probability prediction result of the weather conditions in the future through sampling.

[0034] In this way, the above scheme uses transformer and graph convolution to capture the complex spatiotemporal relationship of weather data based on probability estimation, and predicts the probability distribution of weather data based on spatiotemporal relationship. On the one hand, the scheme described in this embodiment can output the probability distribution of weather variables at each time and location in the future, provide possible weather conditions and their probabilities, which is conducive to intuitively capturing abnormal situations, facilitating management departments to make decisions in advance, and increasing the practicality of the prediction system. On the other hand, the scheme described in this embodiment explicitly learns the correlation between different weather variables, and each variable obtains auxiliary information of other variables to improve the accuracy of the prediction. Compared with other existing methods, the scheme described in this embodiment can provide an intuitive probability distribution of weather conditions, which is convenient for analyzing possible weather conditions in the future and making decisions in advance, and provides a prediction scheme with fast prediction speed, high accuracy and strong practicality.

[0035] In one or more embodiments, the joint probability distribution of future weather data is constructed based on the spatiotemporal characteristics, specifically using the Copula method, which divides the joint probability distribution of multiple weather variables into a Copula density function and the marginal density distribution of each variable, and obtains the joint probability distribution of future weather data by multiplying the copula density function with the marginal density distribution.

[0036] Specifically, the solution described in this embodiment uses the learned spatiotemporal features and copula to learn the joint probability distribution of future weather data. Copula is a statistical method that proves that the joint probability distribution of multiple variables can be divided into a copula density function and the marginal density distribution of each variable. No. j weather variables, its joint probability distribution of future weather data can be written as: (6) in, It is the location No. j Future data of weather variables, a total of A future moment, It's time Place No. The marginal cumulative distribution of the weather variables, is its edge density distribution, is the copula density function. Next we estimate the marginal density distribution and the copula density function to obtain the location No. The joint probability distribution of future weather data for the weather variables.

[0037] Because the marginal cumulative distribution function satisfies monotonically increasing and its value is between [0,1], Deep SigmoidelFlows (DSF) can approximate the marginal cumulative distribution by limiting the network parameters. , we use the features learned using it Parameterize the DSF and obtain the marginal cumulative distributions: (7) We obtain the marginal density distribution by taking the derivative of DSF .

[0038] For the copula density function, we arrange the subscripts randomly The order of variables is disrupted, and the copula density functions of multiple variables are divided into conditional distribution forms: (8) For the first copula density , we assume it is a uniformly distributed density to ensure that the copula is valid. indivual Copula conditional density , we use attention to learn its relationship with the condition. For each condition, we concatenate its value and the learned spatiotemporal features into the conditional feature , The characteristics of all conditions are We use attention to learn the relationship between input and condition: (9) in, is the parameter matrix, It indicated We assume that the copula conditional density satisfies the piecewise constant distribution (PCD), and each segment has the same probability. We use Get the parameters of a piecewise constant distribution and obtain the value of the conditional density distribution: (10) We multiply each conditional density distribution to obtain the copula density function, and multiply the copula density function with the marginal density distribution to obtain the joint probability distribution of future weather data.

[0039] In this way, the scheme described in this embodiment utilizes the learned spatiotemporal features and uses Copula to learn the joint probability distribution of future weather data. Based on the idea that the Copula method can divide the joint probability distribution of multiple variables into a copula density function and the marginal density distribution of each variable, a method for constructing the joint probability distribution of future weather data is provided. By using the statistical method copula to predict the probability distribution of future weather, a more comprehensive weather condition can be obtained, thereby increasing the accuracy and robustness of the prediction.

[0040] In the specific implementation, based on the obtained spatiotemporal characteristics, the probability distribution of each future data is obtained by sampling from the probability distribution. First, sampling is performed from the copula conditional probability density, and the sampled value represents the marginal cumulative distribution. Because the marginal cumulative distribution is monotonically increasing, a binary search algorithm is used to obtain the predicted value. For the first copula conditional density, sampling is performed from the uniform distribution, and for the subsequent copula conditional densities, sampling is performed from the piecewise constant distribution. For each future data, the empirical quantile of its probability distribution is obtained by sampling multiple values.

[0041] In one or more embodiments, the training of the spatiotemporal feature extraction network uses the negative maximum likelihood of future weather data for each weather variable at each location as a loss function.

[0042] In the scheme described in this embodiment, the negative maximum likelihood of future weather data for each weather variable at each location is used as the loss function: (11) The model is trained until the maximum number of training times is reached, and the network parameters with the best performance on the validation set are saved.

[0043] In this way, the joint probability distribution of weather data at future moments is maximized through training loss, which is conducive to more accurate fitting of the joint distribution of weather data. Using log form to convert probability multiplication into addition avoids the problem of gradient vanishing caused by multiplying decimals and making the product smaller, which is conducive to gradient descent training.

[0044] In the specific implementation, each future data is visualized, specifically: For each future weather data, multiple prediction values ​​are obtained from the distribution to represent its probability distribution. By using a line chart to display the 5%-95%, 10%-90%, 27%-75%, and 50% quantiles of its distribution, the shape of the probability distribution can be intuitively seen, and possible weather conditions and abnormal conditions can be obtained. When the quantiles are relatively wide, it means that the probability of multiple weather conditions occurring is very high. When the quantiles suddenly become very wide, it means that abnormal conditions may occur. The weather conditions are intuitively provided to users to help them make decisions in advance.

[0045] The embodiment of the present invention further provides a weather probability prediction system for the above weather probability prediction method, including: A data acquisition unit, which is used to acquire historical weather data of different stations within a preset time period and future time information to be predicted; A spatiotemporal feature extraction unit, which is used to obtain spatiotemporal features based on the historical weather data obtained, using a pre-trained spatiotemporal feature extraction network based on deep learning; wherein the spatiotemporal feature extraction network performs the following processing: based on the historical weather data, obtaining the time features of the historical weather data; based on the time features, respectively obtaining the spatial features and weather variable features of different locations at different times; based on the fusion features of the obtained spatial features and weather variable features, obtaining the spatiotemporal features; A joint probability distribution construction unit, which is used to construct a joint probability distribution of future time weather data based on the spatiotemporal characteristics; The weather probability prediction unit is used to obtain the probability prediction result of the weather condition in the future by sampling based on the joint probability distribution.

[0046] In further embodiments, there is also provided: An electronic device includes a processor, wherein the processor is used to implement the weather probability prediction method when executing a computer program stored in a memory.

[0047] A non-transitory readable storage medium having a computer program stored thereon, wherein the computer program implements the weather probability prediction method when executed by a processor.

Claims

1. A weather probability prediction method, characterized in that: include: Obtain historical weather data for different sites within a preset time period and future time information to be predicted; Based on the historical weather data obtained, a pre-trained deep learning-based spatiotemporal feature extraction network is used to obtain spatiotemporal features; wherein the spatiotemporal feature extraction network performs the following processing: based on the historical weather data, the time features of the historical weather data are obtained; based on the time features, the spatial features and weather variable features of different locations at different times are obtained respectively; based on the fusion features of the obtained spatial features and weather variable features, the spatiotemporal features are obtained; Based on the spatiotemporal characteristics, construct a joint probability distribution of weather data at future times; Based on the joint probability distribution, a probability prediction result of the weather condition in the future is obtained through sampling.

2. A weather probability prediction method as claimed in claim 1, characterized in that: The spatiotemporal feature extraction network specifically performs the following processing: based on the historical weather data obtained, for the weather data at different times under each weather variable at different locations, the Transformer network is used to capture the temporal correlation between the weather data to obtain the temporal features; Based on the time characteristics, the spatial relationship of each weather variable at each time is obtained; based on the spatial relationship combined with the corresponding geographical location map, the graph convolution network is used to obtain the spatial characteristics of each location, and, based on the time characteristics, the weather variable relationship at each time at each location is obtained; based on the weather variable relationship, the graph convolution network is used to obtain the time variable characteristics of each location; based on the fusion characteristics of the obtained spatial characteristics and weather variable characteristics, the spatiotemporal characteristics are obtained.

3. A weather probability prediction method as claimed in claim 2, characterized in that: The acquisition of the spatial features is specifically expressed as follows: ; ; in, Indicates at time No. The characteristics of all locations under the weather variables, Indicates at time t No. j The spatial relationship between weather variables, A Represents a geographical location map, is the first parameter matrix and the second parameter matrix, which is used to convert Mapped to a higher-order space, K represents the order of capturing neighbor relations, , which is used to map spatial features to high-order space, express t Moment j The spatial characteristics of each location under each weather variable, N is the number of sites, C is the characteristic length.

4. A weather probability prediction method as claimed in claim 2, characterized in that: The acquisition of the weather variable characteristics is specifically expressed as follows: ; ; in, Indicates at time No. The characteristics of all weather variables at each location, Indicates at time No. The correlation between different weather variables at each station, is the first parameter matrix and the second parameter matrix, which is used to convert the parameter matrix Mapped to a higher-order space, K represents the order of capturing neighbor relations, It is used to map weather variable features to a high-order space. express Moment The characteristics of the weather variables at each station capture the correlation of weather variables. C is the characteristic length.

5. A weather probability prediction method as claimed in claim 1, characterized in that: Based on the spatiotemporal characteristics, the joint probability distribution of future weather data is constructed, and specifically the Copula method is used. The joint probability distribution of multiple weather variables is divided into a Copula density function and a marginal density distribution of each variable through the Copula method, and the joint probability distribution of future weather data is obtained by multiplying the copula density function with the marginal density distribution.

6. A weather probability prediction method as claimed in claim 1, characterized in that: The training of the spatiotemporal feature extraction network uses the negative maximum likelihood of future weather data of each weather variable at each location as the loss function.

7. A weather probability prediction method according to claim 1, characterized in that: The historical weather data includes: weather data collected by each weather detection station in the area to be predicted within a preset time period in the past, including the temperature, wind speed and PM2.5 value of each station at different times in the past.

8. A weather probability prediction system, characterized in that: include: A data acquisition unit, which is used to acquire historical weather data of different stations within a preset time period and future time information to be predicted; A spatiotemporal feature extraction unit, which is used to obtain spatiotemporal features based on the historical weather data obtained, using a pre-trained spatiotemporal feature extraction network based on deep learning; wherein the spatiotemporal feature extraction network performs the following processing: based on the historical weather data, obtaining the time features of the historical weather data; based on the time features, respectively obtaining the spatial features and weather variable features of different locations at different times; based on the fusion features of the obtained spatial features and weather variable features, obtaining the spatiotemporal features; A joint probability distribution construction unit, which is used to construct a joint probability distribution of future time weather data based on the spatiotemporal characteristics; The weather probability prediction unit is used to obtain the probability prediction result of the weather condition in the future by sampling based on the joint probability distribution.

9. An electronic device, comprising a processor, characterized in that: The processor is used to implement a weather probability forecasting method as described in any one of claims 1 to 7 when executing a computer program stored in the memory.

10. A non-transitory readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a weather probability forecasting method as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Short-term wind speed prediction method

    CN113312836A

  • Wind power prediction method and system based on asymmetric Laplace distribution

    CN113988359A

  • Weather parameter prediction model training method, weather parameter prediction method, electronic device and storage medium

    US20210341646A1