Rapid prediction method, device, equipment and medium for rainstorm intensity formula parameters
By introducing a shallow neural network model into the traditional rainstorm intensity formula and using the climate, geography and environmental factors of the target area for rapid prediction, the problem of cumbersome calculations and data dependence of traditional methods is solved, and the prediction efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202410896246.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-05
AI Technical Summary
The calculation process of the traditional rainstorm intensity formula is cumbersome and requires a large amount of rainfall data, resulting in a long data update cycle and affecting real-time performance and accuracy.
By obtaining the climatic, geographical and environmental factors of the target area and inputting them into the prediction model, the shallow neural network model is used for training based on historical data to quickly predict the formula parameters of heavy rainfall intensity and reduce reliance on past data.
It achieves fast and accurate prediction of heavy rain intensity formula parameters, improves prediction efficiency and universality, and reduces manpower and time costs.
Smart Images

Figure CN118428247B
Abstract
Description
Technical Field
[0001] The present application relates to the field of municipal engineering technology, and in particular to a method, device, equipment and medium for quickly predicting rainstorm intensity formula parameters. Background Art
[0002] Flood control and drainage facilities are important tools for dealing with urban flood disasters. According to the "Outdoor Drainage Design Standard", the design flow of the rainwater drainage system is related to the design rainstorm intensity, so the traditional rainstorm intensity formula needs to be used: Calculate the design flow of the rainwater system, where i represents the rainfall intensity, P represents the rainfall return period, t is the rainfall duration, and A 1 is the rainfall parameter, C is the rainfall variation parameter, b is the rainfall duration correction parameter, n is the rainfall attenuation index, A 1 , C, b, and n can all be called parameters of the rainstorm intensity formula.
[0003] The traditional rainstorm intensity formula is mainly calculated with reference to the "Technical Guidelines for the Preparation of Urban Rainstorm Intensity Formulas and Design of Rainstorm Types". When the annual maximum value method is used, at least 30 years of continuous rainfall data is required, and the rainstorm intensity formula parameters are solved through frequency calculation and distribution curve fitting to describe the intensity level of the rainstorm.
[0004] Because this method requires a large amount of information, the calculation process is cumbersome, the third-party bidding cost is high, and the early data are mostly paper records, which take a long time to compile, resulting in a long data update cycle. As a result, the parameters of the rainstorm intensity formula in the target area cannot be updated in time, which in turn affects the real-time and accuracy of the rainstorm intensity formula parameters. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment and medium for quickly predicting rainstorm intensity formula parameters, so as to reduce the dependence on the integrity of past data and improve the prediction efficiency, accuracy and universality of the rainstorm intensity formula parameter prediction model for predicting rainstorm intensity formula parameters.
[0006] In a first aspect, an embodiment of the present application provides a method for quickly predicting rainstorm intensity formula parameters, including:
[0007] Obtaining the first climate factor, the first geographical factor and the first environmental factor of the target area;
[0008] The first climate factor, the first geographical factor and the first environmental factor are input into the rainstorm intensity formula parameter prediction model to obtain the rainstorm intensity formula parameters corresponding to the target area. The rainstorm intensity formula parameter prediction model is trained based on historical data in a rainstorm intensity formula database. The rainstorm intensity formula database includes: historical statistical indicators corresponding to multiple first regions and historical rainstorm intensity formula parameters.
[0009] In a possible implementation, before obtaining the first climate factor, the first geographical factor, and the first environmental element factor of the target area, the method further includes:
[0010] Acquire historical statistical indicators and historical rainstorm intensity formula parameters of multiple first regions from a rainstorm intensity formula database, wherein the historical statistical indicators include: historical climate factors, historical geographical factors, and historical environmental factor factors;
[0011] According to the historical climate factors, historical geographical factors, historical environmental factor factors and historical rainstorm intensity formula parameters of multiple first regions, the shallow neural network model is trained to obtain a trained rainstorm intensity formula parameter prediction model.
[0012] In a possible implementation, a shallow neural network model is trained based on multiple historical climate factors, historical geographical factors, historical environmental factor factors, and historical rainstorm intensity formula parameters of the first region to obtain a trained rainstorm intensity formula parameter prediction model, including:
[0013] Standardize the historical climate factors, historical geographical factors and historical environmental factor factors of multiple first regions respectively to obtain standardized data;
[0014] According to the standardized data and historical rainstorm intensity formula parameters, the training set, validation set and test set are determined, and the shallow neural network model is trained using the training set, validation set and test set to obtain the rainstorm intensity formula parameter prediction model.
[0015] In a possible implementation, the historical climate factors, historical geographical factors, and historical environmental factor factors of a plurality of first regions are respectively standardized to obtain standardized data, including:
[0016] For any first region among the plurality of first regions, performing missing check on historical climate factors, historical geographical factors, and historical environmental element factors of the first region to obtain missing data;
[0017] Determining the supplementary data corresponding to the missing data from the second region, and completing the missing data according to the supplementary data, the second region being the region physically closest to the first region;
[0018] Determine the means and standard deviations of the historical climate factors, historical geographical factors, and historical environmental element factors of multiple first regions respectively;
[0019] According to the mean and standard deviation, the historical climate factors, historical geographical factors and historical environmental factors are standardized to obtain standardized data.
[0020] In a possible implementation, a shallow neural network model is trained using a training set, a validation set, and a test set to obtain a rainstorm intensity formula parameter prediction model, including:
[0021] The shallow neural network model is trained using the training set to obtain a first shallow neural network model;
[0022] Obtaining a learning state of the first shallow neural network model, and monitoring the first shallow neural network model using a validation set according to the learning state;
[0023] The test set was used to test the first shallow neural network model after monitoring, and the rainstorm intensity formula parameter prediction model was obtained.
[0024] In a possible implementation manner, before obtaining a plurality of historical statistical indicators and historical rainstorm intensity formula parameters of the first region from the rainstorm intensity formula database, the method further includes:
[0025] Obtain historical statistical indicators of multiple first regions and historical rainstorm intensity formula parameters corresponding to each first region;
[0026] For any first region among the plurality of first regions, establishing a correlation relationship between a historical statistical indicator of the first region and a parameter of a historical rainstorm intensity formula;
[0027] A rainstorm intensity formula database is constructed based on historical statistical indicators of multiple first regions, historical rainstorm intensity formula parameters and correlation relationships.
[0028] In a possible implementation, after the first climate factor, the first geographical factor, and the first environmental factor are input into the rainstorm intensity formula parameter prediction model to obtain the rainstorm intensity formula parameter corresponding to the target area, the method further includes:
[0029] Detect the status information of the rainstorm intensity formula database;
[0030] When the status information is in the update status, the rainstorm intensity formula parameter prediction model is updated according to the data in the updated rainstorm intensity formula database, and the update status includes: any one of the data insertion status, data deletion status and data modification status.
[0031] In a second aspect, an embodiment of the present application provides a device for quickly predicting rainstorm intensity formula parameters, the device comprising:
[0032] An acquisition module, used for acquiring a first climate factor, a first geographical factor and a first environmental element factor of a target area;
[0033] The processing module is used to input the first climate factor, the first geographical factor and the first environmental element factor into the rainstorm intensity formula parameter prediction model to obtain the rainstorm intensity formula parameters corresponding to the target area. The rainstorm intensity formula parameter prediction model is trained based on the historical data in the rainstorm intensity formula database. The rainstorm intensity formula database includes: multiple historical statistical indicators corresponding to the first area and historical rainstorm intensity formula parameters.
[0034] In a possible implementation, the acquisition module is further used to:
[0035] Acquire historical statistical indicators and historical rainstorm intensity formula parameters of multiple first regions from a rainstorm intensity formula database, wherein the historical statistical indicators include: historical climate factors, historical geographical factors, and historical environmental factor factors;
[0036] According to the historical climate factors, historical geographical factors, historical environmental factor factors and historical rainstorm intensity formula parameters of multiple first regions, the shallow neural network model is trained to obtain a trained rainstorm intensity formula parameter prediction model.
[0037] In a possible implementation, the acquisition module is further used to:
[0038] Standardize the historical climate factors, historical geographical factors and historical environmental factor factors of multiple first regions respectively to obtain standardized data;
[0039] According to the standardized data and historical rainstorm intensity formula parameters, the training set, validation set and test set are determined, and the shallow neural network model is trained using the training set, validation set and test set to obtain the rainstorm intensity formula parameter prediction model.
[0040] In a possible implementation, the acquisition module is further used to:
[0041] For any first region among the plurality of first regions, performing missing check on historical climate factors, historical geographical factors, and historical environmental element factors of the first region to obtain missing data;
[0042] Determining the supplementary data corresponding to the missing data from the second region, and completing the missing data according to the supplementary data, the second region being the region physically closest to the first region;
[0043] Determine the means and standard deviations of the historical climate factors, historical geographical factors, and historical environmental element factors of multiple first regions respectively;
[0044] According to the mean and standard deviation, the historical climate factors, historical geographical factors and historical environmental factors are standardized to obtain standardized data.
[0045] In a possible implementation, the acquisition module is further used to:
[0046] The shallow neural network model is trained using the training set to obtain a first shallow neural network model;
[0047] Obtaining a learning state of the first shallow neural network model, and monitoring the first shallow neural network model using a validation set according to the learning state;
[0048] The test set was used to test the first shallow neural network model after monitoring, and the rainstorm intensity formula parameter prediction model was obtained.
[0049] In a possible implementation, the acquisition module is further used to:
[0050] Obtain historical statistical indicators of multiple first regions and historical rainstorm intensity formula parameters corresponding to each first region;
[0051] For any first region among the plurality of first regions, establishing a correlation relationship between a historical statistical indicator of the first region and a parameter of a historical rainstorm intensity formula;
[0052] A rainstorm intensity formula database is constructed based on historical statistical indicators of multiple first regions, historical rainstorm intensity formula parameters and correlation relationships.
[0053] In a possible implementation manner, the processing module is further configured to:
[0054] Detect the status information of the rainstorm intensity formula database;
[0055] When the status information is in the update status, the rainstorm intensity formula parameter prediction model is updated according to the data in the updated rainstorm intensity formula database, and the update status includes: any one of the data insertion status, data deletion status and data modification status.
[0056] In a third aspect, an embodiment of the present application provides a rapid prediction device for rainstorm intensity formula parameters, including: a memory, a processor;
[0057] Memory stores computer-executable instructions;
[0058] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0060] The rapid prediction method, device, equipment and medium of the rainstorm intensity formula parameters provided in the embodiments of the present application can quickly predict the rainstorm intensity formula parameters corresponding to the target area by inputting the first climate factor, the first geographical factor and the first environmental factor of the target area into the rainstorm intensity formula parameter prediction model. Since the rainstorm intensity formula parameter prediction model can adapt to the characteristics of different regions, it has a certain universality. By using the rainstorm intensity formula parameter prediction model established by using historical data and combining it with the real-time data of the target area, the rainstorm intensity parameters can be predicted more accurately and quickly, thereby improving the efficiency and universality of the rainstorm intensity formula parameter prediction model and reducing the dependence on the integrity of past data. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0062] Figure 1 Schematic diagram of the rapid prediction method of rainstorm intensity formula parameters provided in this application Figure 1 ;
[0063] Figure 2 Schematic diagram of the rapid prediction method of rainstorm intensity formula parameters provided in this application Figure 2 ;
[0064] Figure 3 A schematic diagram of the network structure of the shallow neural network model provided for this application;
[0065] Figure 4 Schematic diagram of the rapid prediction method of rainstorm intensity formula parameters provided in this application Figure 3 ;
[0066] Figure 5 A schematic diagram of the structure of a rapid prediction device for rainstorm intensity formula parameters provided in this application;
[0067] Figure 6 A schematic diagram of the structure of a rapid prediction device for rainstorm intensity formula parameters provided in this application.
[0068] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0069] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0070] With the acceleration of urbanization and the increasing impact of climate change, frequent urban floods have become a serious problem. In order to effectively avoid and reduce the losses caused by urban floods, flood control and drainage facilities have become an indispensable tool. According to the "Outdoor Drainage Design Standard", the design of rainwater drainage systems needs to consider the design of rainstorm intensity, and the traditional rainstorm intensity formula is formulated according to the "Technical Guidelines for the Preparation of Urban Rainstorm Intensity Formulas and the Determination of Design Rainstorm Types".
[0071] However, the formulation of these traditional rainstorm intensity formulas requires a large amount of rainfall data, and the formulation and revision process is relatively cumbersome and time-consuming. At the same time, the process of calculating the parameters of the rainstorm intensity formula using the traditional rainstorm intensity formula is relatively complicated. Therefore, the practicality and flexibility of the traditional rainstorm intensity formula are challenged.
[0072] The rapid prediction method, device and storage medium of the rainstorm intensity formula parameters provided by the present application can quickly predict the rainstorm intensity formula parameters corresponding to the target area by inputting the first climate factor, the first geographical factor and the first environmental factor of the target area into the rainstorm intensity formula parameter prediction model. The method can quickly predict the rainstorm intensity formula parameters of the target area based on a small amount of data, reduce the dependence on the integrity of past data, save manpower and time costs, and achieve the technical effect of improving the prediction efficiency, accuracy and universality of the rainstorm intensity formula parameter prediction model.
[0073] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0074] Figure 1Schematic diagram of the rapid prediction method of rainstorm intensity formula parameters provided in this application Figure 1 ,like Figure 1 As shown, the method includes:
[0075] S101, obtaining a first climate factor, a first geographical factor, and a first environmental element factor of a target area.
[0076] In this embodiment, the first climate factor, the first geographical factor, and the first environmental element factor of the target area are obtained according to the statistical yearbook published in the target area.
[0077] Among them, the first climate factor, the first geographical factor and the first environmental element factor of the target area specifically include: the average temperature in the first year, the average humidity in the first year, the average wind speed in the first year, the cumulative sunshine in the first year, the cumulative precipitation in the first year, the first longitude, the first latitude, the first total water resources, the first normalized vegetation index and other information.
[0078] S102, inputting the first climate factor, the first geographical factor and the first environmental element factor into a rainstorm intensity formula parameter prediction model to obtain the rainstorm intensity formula parameters corresponding to the target area.
[0079] In this embodiment, the first climate factor, the first geographical factor and the first environmental factor are input into the rainstorm intensity formula parameter prediction model, and the output is the rainstorm intensity formula parameter corresponding to the target area.
[0080] The rainstorm intensity formula parameter prediction model is trained based on historical data in a rainstorm intensity formula database, and the rainstorm intensity formula database includes: historical statistical indicators corresponding to multiple first regions and historical rainstorm intensity formula parameters.
[0081] The rapid prediction method of the rainstorm intensity formula parameters provided in the embodiment of the present application obtains the first climatic factor, the first geographical factor and the first environmental factor of the target area, and inputs the first climatic factor, the first geographical factor and the first environmental factor into the rainstorm intensity formula parameter prediction model. The rainstorm intensity formula parameter prediction model can quickly predict the rainstorm intensity formula parameters corresponding to the target area, so that the rainstorm intensity formula parameters can be quickly predicted when using a small amount of data, reducing the dependence on the integrity of past data, and improving the efficiency, accuracy and scope of application of the rainstorm intensity formula parameter prediction model in predicting the rainstorm intensity formula parameters.
[0082] Figure 2 Schematic diagram of the rapid prediction method of rainstorm intensity formula parameters provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment Figure 1Based on the embodiment, a method for quickly predicting rainstorm intensity formula parameters is described in detail, and the method includes:
[0083] S201. Obtain historical statistical indicators of multiple first regions and historical rainstorm intensity formula parameters corresponding to each first region.
[0084] In this embodiment, historical statistical indicators of multiple first regions are obtained based on statistical yearbooks published by multiple first regions, and historical rainstorm intensity formula parameters corresponding to each first region are obtained by consulting existing data.
[0085] It should be noted that historical statistical indicators include: historical climate factors, historical geographical factors, and historical environmental factors. Specifically, they include: historical annual average temperature, historical annual average humidity, historical annual average wind speed, historical annual cumulative sunshine, historical annual cumulative precipitation, historical longitude, historical latitude, historical total water resources, historical normalized difference vegetation index and other information.
[0086] S202: For any first region among the plurality of first regions, establish a correlation relationship between the historical statistical indicators of the first region and the parameters of the historical rainstorm intensity formula.
[0087] In this embodiment, for any first region among multiple first regions, the correlation between the historical statistical indicators of the first region and the historical rainstorm intensity formula parameters is explored through statistical analysis methods such as correlation analysis, regression analysis, etc., and the degree of influence of each indicator on the rainstorm intensity can be found.
[0088] S203: construct a rainstorm intensity formula database based on historical statistical indicators, historical rainstorm intensity formula parameters and correlation relationships of multiple first regions.
[0089] In this embodiment, a rainstorm intensity formula database is constructed by using historical statistical indicators, historical rainstorm intensity formula parameters and association relationships of multiple first regions. The structure of the rainstorm intensity formula database includes: data tables, fields, association relationships, and the like.
[0090] Table 1 is a schematic diagram of the rainstorm intensity formula database shown in this embodiment. As shown in Table 1, the historical rainstorm intensity formula parameter A 1 Taking the value as an example, some fields and contents of the rainstorm intensity formula database are as follows:
[0091] Table 1 Schematic diagram of the rainstorm intensity formula database
[0092]
[0093] As shown in Table 1, taking City A as an example, the historical annual average temperature of City A refers to the average of the temperature data of each month in City A throughout the year. The historical annual average humidity of City A refers to the average of the humidity data of each month in City A throughout the year. The historical annual average wind speed of City A refers to the average of the wind speed data of each month in City A throughout the year.
[0094] S204. According to the historical climate factors, historical geographical factors, historical environmental factor factors and historical rainstorm intensity formula parameters of the first regions, a shallow neural network model is trained to obtain a trained rainstorm intensity formula parameter prediction model.
[0095] In this embodiment, the historical rainstorm intensity formula parameter A 1 The historical climate factors, historical geographical factors, historical environmental factor factors and historical rainstorm intensity formula parameters of multiple first regions are standardized to ensure that the data is suitable for neural network training. First, a suitable neural network structure is selected, and the input layer, hidden layer and output layer are designed according to the data characteristics. Since this application adopts a shallow neural network model, the network design of the shallow neural network model is divided into an input layer, a hidden layer and an output layer.
[0096] Figure 3 This is a schematic diagram of the network structure of the shallow neural network model provided in this application. The network of the shallow neural network model includes an input layer, multiple hidden layers and an output layer. Here, two hidden layers (hidden layer 1 and hidden layer 2) are taken as an example. Figure 3 As shown in the figure, the number of nodes in the input layer is equal to the number of historical statistical indicators input. The historical statistical indicators include historical climate factors, historical geographical factors, and historical environmental factor factors, including: historical annual average temperature, historical annual average humidity, historical annual average wind speed, historical annual cumulative sunshine, historical annual cumulative precipitation, historical longitude, historical latitude, historical total water resources, historical normalized vegetation index, etc. The number of nodes in the two hidden layers is determined by the hyperparameter optimization method. The number of output layer nodes is 1.
[0097] Among them, the hyperparameter optimization method refers to the process of optimizing the parameters (i.e., hyperparameters) in the model that cannot be obtained through training in machine learning and deep learning. Common hyperparameters include learning rate, batch size, number of hidden layers, number of hidden layer nodes, regularization coefficient, etc. The goal of hyperparameter optimization is to find the optimal hyperparameter combination to improve the performance and generalization ability of the model.
[0098] It should be noted that in this application, it is necessary to train the shallow neural network model according to the historical climate factors, historical geographical factors, historical environmental factors and historical rainstorm intensity formula parameters of multiple first regions, and finally build four rainstorm intensity formula parameter prediction models, which respectively realize the prediction of A1 , C, b, n values. Among them, A 1 represents the rainfall parameter, C represents the rainfall change parameter, b represents the rainfall duration correction parameter, n represents the rainfall attenuation index, A 1 , C, b, and n values are collectively referred to as rainstorm intensity formula parameters in this application.
[0099] S205: Obtain a first climate factor, a first geographical factor, and a first environmental element factor of the target area.
[0100] Step S205 is similar to the above step S101 and will not be described again.
[0101] S206: Input the first climate factor, the first geographical factor and the first environmental factor into a rainstorm intensity formula parameter prediction model to obtain rainstorm intensity formula parameters corresponding to the target area.
[0102] In this embodiment, the first climate factor, the first geographical factor and the first environmental factor are input into the rainstorm intensity formula parameter prediction model, and the corresponding rainstorm intensity formula parameter (A 1 , C, b, n values) to make a quick prediction and get the prediction results of the rainstorm intensity formula parameters corresponding to the target area.
[0103] Table 2 is a schematic diagram of the prediction results shown in this embodiment. As shown in Table 2, the prediction results of the rainstorm intensity formula parameters corresponding to the target area are as follows:
[0104] Table 2 Schematic diagram of prediction results
[0105]
[0106] As shown in Table 2, the first-year average temperature of the target area refers to the average of the temperature data of each month in the target area in a whole year. The historical annual average humidity of the target area refers to the average of the humidity data of each month in the target area in a whole year. The historical annual average wind speed of the target area refers to the average of the wind speed data of each month in the target area in a whole year. The corresponding prediction obtains the rainfall parameter A of the target area 1 , rainfall intensity variation parameter C, rainfall duration correction parameter b, rainfall attenuation index n.
[0107] S207, detecting the status information of the rainstorm intensity formula database, and when the status information is in an updated state, updating the rainstorm intensity formula parameter prediction model according to the data in the updated rainstorm intensity formula database.
[0108] In this embodiment, the status information of the database is determined by querying the metadata of the rainstorm intensity formula database or recording the most recent update time. Generally speaking, if the most recent update time is the latest, the rainstorm intensity formula database is in an update state, wherein the update state also includes any one of a data insertion state, a data deletion state, and a data modification state. Once it is determined that the rainstorm intensity formula database is in an update state, the rainstorm intensity formula parameter prediction model is updated according to the method of the above steps S201-S206 based on the data in the updated rainstorm intensity formula database.
[0109] The rapid prediction method of the rainstorm intensity formula parameters provided in the embodiment of the present application constructs a rainstorm intensity formula database by collecting historical statistical indicators, historical rainstorm intensity formula parameters and correlation relationships of multiple first regions, and comprehensively considers multiple first regions to more comprehensively cover various influencing factors, so that the trained rainstorm intensity formula parameter prediction model has more universality and generalization ability, and can be applied to a wider range of regions. According to the historical statistical indicators and historical rainstorm intensity formula parameters of multiple first regions, the shallow neural network model is trained and processed, and the shallow neural network model can be optimized and adjusted to improve the fitting ability and prediction performance of the shallow neural network model. By constructing a rainstorm intensity formula parameter prediction model and applying the rainstorm intensity formula parameter prediction model to the target area, the rainstorm intensity formula parameters corresponding to the target area can be quickly obtained, thereby improving the efficiency of the rainstorm intensity formula parameter prediction model in predicting the rainstorm intensity formula parameters. By detecting the status information of the rainstorm intensity formula database and updating the rainstorm intensity formula parameter prediction model, the accuracy and practicality of the rainstorm intensity formula parameter prediction model are improved.
[0110] Figure 4 Schematic diagram of the rapid prediction method of rainstorm intensity formula parameters provided in this application Figure 3 ,like Figure 4 As shown, in this embodiment Figure 2 On the basis of the embodiment, according to the historical climate factors, historical geographical factors, historical environmental factor factors and historical rainstorm intensity formula parameters of multiple first regions, a shallow neural network model is trained to obtain a trained rainstorm intensity formula parameter prediction model, and the method includes:
[0111] S401. For any first region among a plurality of first regions, perform missing check on historical climate factors, historical geographical factors, and historical environmental element factors of the first region to obtain missing data.
[0112] In this embodiment, for any first region among multiple first regions, the historical climate factors, historical geographical factors and historical environmental element factors of the first region are preprocessed, and it is first checked whether there is a number of missing values in the first region that is less than a preset value. If so, the missing data corresponding to the first region is obtained.
[0113] The number of missing values refers to the situation that some data is sometimes missing during the data collection process, that is, some indicator data is not recorded or collected. The preset value refers to the threshold or standard set in advance during the data processing or data analysis process to judge the integrity of the data.
[0114] S402: Determine complementary data corresponding to the missing data from a second region, and complete the missing data according to the complementary data, wherein the second region is the region closest to the first region in physical distance.
[0115] In this embodiment, the missing data is supplemented to make the data complete. The supplementation method is: select the area closest to the first area as the second area from the rainstorm intensity formula database, select the supplementary data corresponding to the missing data from the second area, and supplement the missing data.
[0116] It should be noted that the selection of regional distance is based on the straight-line distance of longitude and latitude, and the distance calculation formula is:
[0117] (1)
[0118] in, dis e,f represents the straight-line distance between the first region e and the second region f, lon e , lat e are respectively represented as the longitude and latitude of the first region e, lon f , lat f They are respectively represented as the longitude and latitude of the second region f.
[0119] S403, respectively determining the means and standard deviations of the historical climate factors, historical geographical factors, and historical environmental element factors of the first regions.
[0120] In this embodiment, when obtaining the historical climate factors, historical geographical factors and historical environmental factor factors of the multiple first regions, the dimensions of the historical statistical indicators are different. In order to avoid the differences caused by the different dimensions of the historical statistical indicators, the means and standard deviations of the historical climate factors, historical geographical factors and historical environmental factor factors of the multiple first regions are determined respectively. Among them, the historical climate factors, historical geographical factors and historical environmental factor factors are collectively referred to as historical statistical indicators.
[0121] The specific method is: Calculate the mean value according to formula (2):
[0122] (2)
[0123] in, x i,j represents the i-th data of the j-th historical statistical indicator, n represents the number of samples, Represents the mean of all sample data of the j-th historical statistical indicator.
[0124] The standard deviation is calculated according to formula (3):
[0125] (3)
[0126] in, Expressed as the standard deviation of all data of the j-th historical statistical indicator.
[0127] It should be noted that the historical climate factors, historical geographical factors and historical environmental factor factors here are all completed data.
[0128] S404. Standardize the historical climate factors, historical geographical factors and historical environmental factor factors according to the mean and standard deviation to obtain standardized data.
[0129] In this embodiment, the historical statistical indicators are standardized according to the mean and standard deviation according to formula (4):
[0130] (4)
[0131] in, Represents the standardized value of the i-th data in the j-th historical statistical indicator.
[0132] The data after standardization is sorted to obtain standardized data.
[0133] S405. Determine a training set, a validation set, and a test set based on the standardized data and historical rainstorm intensity formula parameters.
[0134] In this embodiment, according to the standardized data and the parameters of the historical rainstorm intensity formula, the data is divided into a training set, a validation set, and a test set according to a preset ratio. Among them, the training set will be used for shallow neural network model training, the validation set is used to monitor the model learning status during the training process, and the test set is used for shallow neural network model testing. At the same time, in order to avoid the random errors caused by the selection of training sets as much as possible, 5 different training sets, validation sets, and test sets are selected using the 5-fold cross-validation method for model construction.
[0135] S406: Use the training set to train the shallow neural network model to obtain a first shallow neural network model.
[0136] In this embodiment, five different training sets are used to train the shallow neural network model, and the standardized data in the training set is used as input, and the rainstorm intensity formula parameters are used as output to train the shallow neural network model. During the training process, the mean square error (MSE) is selected as the loss function:
[0137] (5)
[0138] in, y j represents the prediction results of the rainstorm intensity formula parameters, Represents the true value of the parameter of the historical rainstorm intensity formula.
[0139] To further prevent the model from overfitting, the EarlyStop strategy and Dropout strategy are set during the training process. The EarlyStop strategy is: during the training process, record the lowest MSE value. When three consecutive MSE values are higher than the lowest MSE value recorded, the model stops training and saves the network parameters corresponding to the lowest MSE value, thus obtaining the first shallow neural network model. The Dropout strategy is: during model training, in the forward propagation process, let the activation value of a neuron stop working with a preset probability p.
[0140] S407. Obtain the learning state of the first shallow neural network model, and monitor the first shallow neural network model using a validation set according to the learning state.
[0141] In this embodiment, in order to test the generalization ability of the first shallow neural network model and avoid overfitting, the validation set is used as an independent data set to monitor the first shallow neural network model. During the training process, the validation set is regularly used to test the performance of the model on the validation set to observe the changes in the loss function and accuracy.
[0142] S408. Using the test set to test the first shallow neural network model after monitoring, a rainstorm intensity formula parameter prediction model is obtained.
[0143] In this embodiment, Table 3 is a schematic table of the prediction results of part of the test set shown in this embodiment. As shown in Table 3, the parameter A of the rainstorm intensity prediction formula is 1 Taking the value as an example, the test set is used to predict the first shallow neural network model after monitoring, and the prediction results are as follows:
[0144] Table 3 Schematic diagram of some prediction results of the test set
[0145]
[0146] As shown in Table 3, the historical annual average temperature, historical annual average humidity, historical annual average wind speed, etc. corresponding to the test set are input into the first shallow neural network model, and the first shallow neural network model is tested to obtain the rainstorm intensity formula parameter A corresponding to the test set. 1 The predicted results of the value.
[0147] According to the prediction results and the true values, five groups of MES values corresponding to the first shallow neural network model are obtained. Table 4 is a schematic table of MES values corresponding to the first shallow neural network model shown in this embodiment. As shown in Table 4, the MES values corresponding to the first shallow neural network model are as follows:
[0148] Table 4 Schematic table of MES values corresponding to the first shallow neural network model
[0149]
[0150] It can be seen from Table 4 that by comparing the MES values, the first shallow neural network model corresponding to the lowest MES value is selected as the rainstorm intensity formula parameter prediction model.
[0151] It should be noted that the implementation process of the rainstorm intensity formula parameter prediction model corresponding to the other three rainstorm intensity formula parameters C, b, and n values can be achieved by the above steps and will not be repeated here.
[0152] The rapid prediction method of the rainstorm intensity formula parameters provided in the embodiment of the present application improves the integrity and quality of the data in the rainstorm intensity formula database by verifying and completing the missing data of historical climate factors, historical geographical factors and historical environmental factors, and ensures the accuracy of shallow neural network model training. Standardization is performed according to the mean and standard deviation of historical climate factors, historical geographical factors and historical environmental factors, eliminating the dimensional differences between different variables, making different factors comparable, and improving the training effect of the shallow neural network model. Dividing the training set, validation set and test set according to the standardized data and the parameters of the historical rainstorm intensity formula helps to test the generalization ability of the model, avoid overfitting and improve the performance of the model. By training the training set with a shallow neural network and monitoring the model learning state on the validation set, it helps to adjust the shallow neural network model parameters in time and improve the generalization ability and accuracy of the model. Finally, the test set is used to test the monitored model to obtain a rainstorm intensity formula parameter prediction model, and the accuracy and reliability of the prediction are improved by testing the performance of the shallow neural network model and performing necessary optimization.
[0153] Figure 5 The schematic diagram of the structure of the rapid prediction device of the rainstorm intensity formula parameters provided in this application is as follows: Figure 5 As shown, the device of this embodiment can be in the form of software and / or hardware. The embodiment of the present application provides a rapid prediction device 500 for rainstorm intensity formula parameters, which includes: an acquisition module 501 and a processing module 502.
[0154] An acquisition module 501 is used to acquire a first climate factor, a first geographical factor and a first environmental factor of a target area;
[0155] Processing module 502 is used to input the first climate factor, the first geographical factor and the first environmental element factor into the rainstorm intensity formula parameter prediction model to obtain the rainstorm intensity formula parameters corresponding to the target area. The rainstorm intensity formula parameter prediction model is trained based on the historical data in the rainstorm intensity formula database. The rainstorm intensity formula database includes: multiple historical statistical indicators corresponding to the first area and historical rainstorm intensity formula parameters.
[0156] In a possible implementation, the acquisition module 501 is further used to:
[0157] Acquire historical statistical indicators and historical rainstorm intensity formula parameters of multiple first regions from a rainstorm intensity formula database, wherein the historical statistical indicators include: historical climate factors, historical geographical factors, and historical environmental factor factors;
[0158] According to the historical climate factors, historical geographical factors, historical environmental factor factors and historical rainstorm intensity formula parameters of multiple first regions, the shallow neural network model is trained to obtain a trained rainstorm intensity formula parameter prediction model.
[0159] In a possible implementation, the acquisition module 501 is further used to:
[0160] Standardize the historical climate factors, historical geographical factors and historical environmental factor factors of multiple first regions respectively to obtain standardized data;
[0161] According to the standardized data and historical rainstorm intensity formula parameters, the training set, validation set and test set are determined, and the shallow neural network model is trained using the training set, validation set and test set to obtain the rainstorm intensity formula parameter prediction model.
[0162] In a possible implementation, the acquisition module 501 is further used to:
[0163] For any first region among the plurality of first regions, performing missing check on historical climate factors, historical geographical factors, and historical environmental element factors of the first region to obtain missing data;
[0164] Determining the supplementary data corresponding to the missing data from the second region, and completing the missing data according to the supplementary data, the second region being the region physically closest to the first region;
[0165] Determine the means and standard deviations of the historical climate factors, historical geographical factors, and historical environmental element factors of multiple first regions respectively;
[0166] According to the mean and standard deviation, the historical climate factors, historical geographical factors and historical environmental factors are standardized to obtain standardized data.
[0167] In a possible implementation, the acquisition module 501 is further used to:
[0168] The shallow neural network model is trained using the training set to obtain a first shallow neural network model;
[0169] Obtaining a learning state of the first shallow neural network model, and monitoring the first shallow neural network model using a validation set according to the learning state;
[0170] The test set was used to test the first shallow neural network model after monitoring, and the rainstorm intensity formula parameter prediction model was obtained.
[0171] In a possible implementation, the acquisition module 501 is further used to:
[0172] Obtain historical statistical indicators of multiple first regions and historical rainstorm intensity formula parameters corresponding to each first region;
[0173] For any first region among the plurality of first regions, establishing a correlation relationship between a historical statistical indicator of the first region and a parameter of a historical rainstorm intensity formula;
[0174] A rainstorm intensity formula database is constructed based on historical statistical indicators of multiple first regions, historical rainstorm intensity formula parameters and correlation relationships.
[0175] In a possible implementation, the processing module 502 is further configured to:
[0176] Detect the status information of the rainstorm intensity formula database;
[0177] When the status information is in the update status, the rainstorm intensity formula parameter prediction model is updated according to the data in the updated rainstorm intensity formula database, and the update status includes: any one of the data insertion status, data deletion status and data modification status.
[0178] Figure 6 This is a schematic diagram of the structure of the rapid prediction device for the rainstorm intensity formula parameters provided in this application. Figure 6 As shown, the rapid prediction device 600 of the rainstorm intensity formula parameters includes:
[0179] Processor 601 and memory 602;
[0180] Memory stores computer-executable instructions;
[0181] The processor executes the computer-executable instructions stored in the memory 602, so that the rapid prediction device for the rainstorm intensity formula parameters executes the rapid prediction method for the rainstorm intensity formula parameters as described above.
[0182] It should be understood that the processor 601 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASIC). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The memory 602 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk, or an optical disk.
[0183] The embodiment of the present application also provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement a method for quickly predicting parameters of a rainstorm intensity formula.
[0184] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, but not necessarily to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, products or devices.
[0185] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0186] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0187] It should be understood that the above device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0188] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0189] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0190] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0191] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A rapid prediction method for rainstorm intensity formula parameters, characterized in that: include: Obtaining the first climate factor, the first geographical factor and the first environmental factor of the target area; Inputting the first climate factor, the first geographical factor and the first environmental factor into a rainstorm intensity formula parameter prediction model to obtain rainstorm intensity formula parameters corresponding to the target area, wherein the rainstorm intensity formula parameter prediction model is obtained by training based on historical data in a rainstorm intensity formula database, wherein the rainstorm intensity formula database includes: a plurality of historical statistical indicators corresponding to the first area and historical rainstorm intensity formula parameters; The rainstorm intensity formula is: ; i represents rainfall intensity, P represents rainfall return period, t represents rainfall duration, A1 represents rainfall parameter, C represents rainfall variation parameter, b represents rainfall duration correction parameter, and n represents rainfall attenuation index; The rainstorm intensity formula parameters corresponding to the target area include A1, C, b, and n; Before obtaining the first climate factor, the first geographical factor and the first environmental factor of the target area, the method further includes: Acquire a plurality of historical statistical indicators and historical rainstorm intensity formula parameters of the first region from the rainstorm intensity formula database, wherein the historical statistical indicators include: historical climate factors, historical geographical factors, and historical environmental factor factors; According to the historical climate factors, historical geographical factors, historical environmental element factors and historical rainstorm intensity formula parameters of the multiple first regions, the shallow neural network model is trained to obtain the trained rainstorm intensity formula parameter prediction model.
2. The method according to claim 1, characterized in that The shallow neural network model is trained based on the historical climate factors, historical geographical factors, historical environmental factor factors and historical rainstorm intensity formula parameters of the plurality of first regions to obtain the trained rainstorm intensity formula parameter prediction model, including: Standardizing the historical climate factors, historical geographical factors, and historical environmental factor factors of the plurality of first regions respectively to obtain standardized data; According to the standardized data and the historical rainstorm intensity formula parameters, a training set, a validation set and a test set are determined, and the training set, the validation set and the test set are used to train the shallow neural network model to obtain the rainstorm intensity formula parameter prediction model.
3. The method according to claim 2, characterized in that The step of respectively standardizing the historical climate factors, historical geographical factors, and historical environmental factor factors of the plurality of first regions to obtain standardized data includes: For any one of the plurality of first regions, performing missing check on historical climate factors, historical geographical factors, and historical environmental element factors of the first region to obtain missing data; Determining supplementary data corresponding to the missing data from a second region, and performing supplementary processing on the missing data according to the supplementary data, wherein the second region is a region physically closest to the first region; Determine the means and standard deviations of the historical climate factors, historical geographical factors, and historical environmental element factors of the plurality of first regions respectively; The historical climate factors, historical geographical factors and historical environmental element factors are standardized according to the mean and standard deviation to obtain standardized data.
4. The method according to claim 2, characterized in that: The shallow neural network model is trained using the training set, the validation set and the test set to obtain the rainstorm intensity formula parameter prediction model, including: Using the training set to train the shallow neural network model to obtain a first shallow neural network model; Acquire a learning state of the first shallow neural network model, and monitor the first shallow neural network model using the validation set according to the learning state; The test set is used to test the first shallow neural network model after monitoring to obtain the rainstorm intensity formula parameter prediction model.
5. The method according to claim 1, characterized in that Before obtaining a plurality of historical statistical indicators and historical rainstorm intensity formula parameters of the first region from the rainstorm intensity formula database, the method further includes: Obtain historical statistical indicators of multiple first regions and historical rainstorm intensity formula parameters corresponding to each first region; For any one of the plurality of first regions, establishing a correlation relationship between the historical statistical indicators of the first region and the parameters of the historical rainstorm intensity formula; The rainstorm intensity formula database is constructed based on the historical statistical indicators of the multiple first regions, the historical rainstorm intensity formula parameters and the association relationship.
6. The method according to claim 1, characterized in that After inputting the first climate factor, the first geographical factor and the first environmental factor into the rainstorm intensity formula parameter prediction model to obtain the rainstorm intensity formula parameter corresponding to the target area, the method further includes: Detecting status information of the rainstorm intensity formula database; When the state information is in an update state, the rainstorm intensity formula parameter prediction model is updated according to the data in the updated rainstorm intensity formula database, and the update state includes: any one of a data insertion state, a data deletion state and a data modification state.
7. A rapid prediction device for rainstorm intensity formula parameters, characterized in that: The device comprises: An acquisition module, used for acquiring a first climate factor, a first geographical factor and a first environmental factor of a target area; A processing module, used for inputting the first climate factor, the first geographical factor and the first environmental factor into a rainstorm intensity formula parameter prediction model to obtain rainstorm intensity formula parameters corresponding to the target area, wherein the rainstorm intensity formula parameter prediction model is obtained by training based on historical data in a rainstorm intensity formula database, wherein the rainstorm intensity formula database includes: a plurality of historical statistical indicators corresponding to the first area and historical rainstorm intensity formula parameters; The rainstorm intensity formula is: ; i represents rainfall intensity, P represents rainfall return period, t represents rainfall duration, A1 represents rainfall parameter, C represents rainfall variation parameter, b represents rainfall duration correction parameter, and n represents rainfall attenuation index; The rainstorm intensity formula parameters corresponding to the target area include A1, C, b, and n; The Get module is also used to: Acquire a plurality of historical statistical indicators and historical rainstorm intensity formula parameters of the first region from the rainstorm intensity formula database, wherein the historical statistical indicators include: historical climate factors, historical geographical factors, and historical environmental factor factors; According to the historical climate factors, historical geographical factors, historical environmental element factors and historical rainstorm intensity formula parameters of the multiple first regions, the shallow neural network model is trained to obtain the trained rainstorm intensity formula parameter prediction model.
8. A rapid prediction device for rainstorm intensity formula parameters, characterized in that: The device comprises: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the rapid prediction device for the rainstorm intensity formula parameters executes the rapid prediction method for the rainstorm intensity formula parameters as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method for quickly predicting the parameters of the rainstorm intensity formula as described in any one of claims 1 to 6.
