Rail transit line wind speed and rainfall prediction and risk warning method based on monitoring data mining
By arranging monitoring stations along the rail transit and using the attention mechanism GRU network and CNN-LSTM network to predict wind speed and rainfall, it solves the problem of low accuracy of wind speed and rainfall prediction in the existing technology and achieves low-cost, high-performance Precise meteorological risk management improves the safe operation and maintenance of rail transit.
Patent Information
- Application Number
- CN202410784852.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-22
AI Technical Summary
Existing technology is difficult to effectively predict and manage wind speed and rainfall along rail transit lines, resulting in insufficient meteorological risk warning capabilities. Moreover, traditional methods are costly and inaccurate, and cannot meet the needs of modern disaster prevention and safety systems.
Using a method based on monitoring data mining, we obtain wind and rain monitoring data by arranging monitoring sites, and build a short-term prediction model, including the GRU network and CNN-LSTM network that introduce the attention mechanism, to predict wind speed and rainfall, and output warnings according to the warning level. status, and establish an early warning system to achieve real-time risk warning.
It achieves low-cost, high-precision wind speed and rainfall forecasts, improves meteorological risk early warning capabilities, enables refined risk management without relying on satellite cloud images, and reduces operation and maintenance costs.
Smart Images

Figure CN118822291A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of rail transit, and in particular relates to a method for predicting wind speed and rainfall along a rail transit line and a risk warning method based on monitoring data mining. Background Art
[0002] As a long and long strip infrastructure, rail transit lines are easily affected by high-impact weather such as strong winds and heavy rainfall, which can reduce traffic capacity. In severe cases, it can even cause casualties and cause major economic losses. In order to deal with the meteorological risks brought by high-impact weather, rail transit operation managers often combine the grid-shaped meteorological services of the Meteorological Bureau or set up monitoring points to prevent weather factors that may cause risks. From the perspective of reducing operating costs and better matching the narrow and long strip characteristics of rail transit lines, operating departments are usually more willing to conduct autonomous monitoring of some meteorological risk factors (such as wind and rain) with low layout costs, high occurrence frequencies, and large impacts along the lines. For example, domestic railways and urban rail transit lines currently have a certain foundation for meteorological monitoring along the lines, and the system background has real-time alarm functions after the elements reach the threshold. With the increase in train speed and traffic density, a single alarm function can no longer meet the needs of rail transit operations for modern disaster prevention and safety systems. Meteorological risk management along rail transit lines has gradually evolved from passive and preventive to active and predictive. How to deeply mine the meteorological monitoring data such as wind volume and rainfall obtained along the line and apply it to corresponding risk warnings has become the key to active risk management.
[0003] Wind speed, rainfall and other factors are typical random non-stationary signals. The emergence of intelligent algorithms such as deep learning has brought new ideas to the prediction of such typical meteorological risk factors. At present, a small number of researchers have predicted wind volume, rainfall and other indicators through time series data in the fields of meteorology and wind power, but there are problems such as low accuracy and poor prediction of extreme values. The application threshold and cost of prediction methods based on meteorological cloud maps are relatively high, and they cannot meet the specific requirements of rail transit meteorological risk management. At present, the warning capabilities for rail transit meteorological risks are mostly limited to threshold-based graded alarms, and the line meteorological risk warning capabilities based on actual meteorological risk factor monitoring and prediction need to be further improved; at the same time, after integrating the macro regional meteorological forecast characteristics, micro real-time monitoring data and corresponding forecast data at the line scale, the meteorological warning status needs to be divided into more detailed levels to meet the needs of active management and early warning. In summary, there is an urgent need for a meteorological element prediction and risk warning method along the rail transit line based on monitoring data mining, which can make full use of the fine-grained meteorological monitoring data along the line, especially the typical wind and rain data, to ensure low-cost, high-precision active management of meteorological risks along the line. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies in the above-mentioned background technology and provide a method for wind speed and rainfall prediction and risk warning along the rail transit line based on monitoring data mining.
[0005] The technical solution of the present invention is:
[0006] A method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining comprises the following steps:
[0007] S1. Arrange monitoring sites and obtain wind and rain monitoring data;
[0008] S2. Build a short-term prediction model and train and verify it;
[0009] S3. Establish wind and rain warning levels;
[0010] S4. Build an early warning system, deploy a short-term prediction model, obtain real-time wind and rain monitoring data and input it into the short-term prediction model to obtain wind and rain prediction results, and then output the alert status through the wind and rain warning level.
[0011] In step S1, the wind and rain monitoring data includes instantaneous wind speed, cumulative rainfall per minute, cumulative rainfall per hour, cumulative rainfall per 24 hours, and timestamp; the wind and rain monitoring data is used to establish a data set, which is divided into a training set and a test set;
[0012] In step S2, the short-term prediction model includes a wind speed short-term prediction model and a rainfall short-term prediction model. The structure of the wind speed short-term prediction model is a GRU network that introduces an attention mechanism. The structure of the rainfall short-term prediction model includes first introducing a CNN network to extract spatial features, and then completing the prediction work through an LSTM network.
[0013] In step S2, before training and verifying the short-term prediction model, the outliers and missing values of the data set are processed.
[0014] In step S2:
[0015] The outlier processing of the data set includes: capturing, judging, and eliminating abnormally high values of wind and rain monitoring data that exceed the upper limit of the typhoon threshold, and wind and rain monitoring data that are significantly different from the data of adjacent monitoring sites and adjacent meteorological stations at the same time;
[0016] The missing value processing of the data set includes: filling in the abnormal missing values of the data set and aligning the timestamps, and making a first-order difference in the sampling time interval of the wind and rain monitoring data; if the first-order difference value is greater than the corresponding sampling time interval, the data is judged to be accurate; when the missing segment accounts for less than 5%, the missing value is filled by linear interpolation, and when the missing segment accounts for more than 5%, the missing segment is removed; the wind and rain monitoring data with uneven sampling time intervals are aligned by linear interpolation.
[0017] In step S2, the attention mechanism introduced into the short-term wind speed prediction model is to check whether there is similarity between the wind speed prediction result and the strong wind events of the historical wind and rain monitoring data through the memory network to better approximate the strong wind events, including:
[0018] A1. Introducing strong wind event labels through historical wind and rain monitoring data
[0019]
[0020] Where: μ is the strong wind threshold;
[0021] A2. The wind and rain monitoring data of strong wind events is input into the GRU network, and the historical strong wind vector c is output. j ;
[0022] A3. The real-time wind and rain monitoring data at the current time t is input into the GRU network to obtain the real-time wind speed vector g t , and continue to input it into the fully connected layer to output the predicted value o at the current time t t ;
[0023] A4. The real-time wind speed vector g t and historical strong wind vector c j The attention weight a is defined by the softmax function tj
[0024]
[0025] Where: the attention weight is the similarity weight between the current time series and the M historical window time series;
[0026] A5. Through attention weight a tj and strong wind time label h j , calculate the probability of strong wind event u t
[0027]
[0028] A6. Calculate the final wind speed forecast result y at the current time t t :
[0029] y t =o t +b*u t (4)
[0030] Where: b is the scale parameter.
[0031] The one-dimensional convolutional network consists of a one-dimensional convolutional layer Conv1D and a pooling layer MaxPooling1D. It locates the current monitoring site and its adjacent monitoring sites through a sliding spatial window, extracts neighborhood spatial features, inputs the neighborhood spatial features into the LSTM layer and the fully connected layer, and denormalizes the output results to restore the rainfall forecast results.
[0032] In step S3, sub-levels are established based on the real-time monitoring data of the monitoring site, the forecast data of the weather station, and the prediction results of the short-term prediction model, and a complete wind and rain warning level is constructed based on the warning level and threshold of the meteorological department;
[0033] Alert levels include blue, yellow, and orange;
[0034] The sub-levels include: Level I alarm, which means that the state where meteorological elements exceed the current level threshold will continue, and there is a high probability that the warning level will be upgraded; Level II alarm, which means that the current high-impact weather has reached the threshold at the current level, and generally requires human intervention to interfere with the operating status in the short term, but this state will not last for a long time in the local monitoring area; Level III warning, which means that the current local monitoring data has not reached the threshold of the current level, but may reach the threshold in the future, and it should be paid attention to.
[0035] In step S4, the early warning system includes a database, a back-end console, a back-end algorithm module, and a front-end information push and display module.
[0036] In step S4, the early warning step of the early warning system includes:
[0037] B1. The front-end information push and display module sends a prediction request to the back-end console;
[0038] B2. The backend console parses the prediction request, reads the wind and rain monitoring data from the database and returns it to the backend algorithm module;
[0039] B3. The backend algorithm module performs data prediction and returns the prediction results to the backend console;
[0040] B4. The back-end console will substitute the forecast results into the wind and rain warning level, obtain the alert status, and return it to the front-end information push and display module.
[0041] In step B3, the error of the wind speed prediction result is corrected, including:
[0042] B31. When one of the following conditions is met, the forecast result correction is enabled:
[0043] B311. Real-time wind and rain monitoring data has exceeded the threshold of the lowest warning level, and the forecast result has not reached the threshold;
[0044] B312. The real-time wind and rain monitoring data does not reach the minimum warning level threshold, but the historical wind and rain monitoring data in the past three consecutive timestamps are higher than the predicted results, and the average exceedance percentage P e >50%:
[0045]
[0046] B32. Calculate the error correction term using the exceedance percentage:
[0047] Take all points where the real-time wind and rain monitoring data within the three historical time steps are higher than the predicted results, and calculate the average of the exceedance percentages of the two The error correction term is the mean of the exceedance percentage multiplied by the forecast result of the current time step.
[0048]
[0049] Where: is the mean of the exceedance percentages for the three historical time steps, The corrected prediction result at time t+1 is replaced by the model output directly. value;
[0050] B33. Determine the exit amendment conditions;
[0051] When the real-time wind and rain monitoring data within the three historical time steps does not exceed the forecast result, the forecast result correction will be automatically exited;
[0052] When the forecast result correction is entered through condition B11, the forecast result correction will be automatically exited when the warning is exited.
[0053] In step B2, the background algorithm module first pre-processes the monitoring data, then performs prediction and returns the prediction result to the back-end console; the pre-processing is to perform sliding average processing on the instantaneous wind speed, and take the average value every five minutes to obtain a new time series.
[0054] The beneficial effects of the present invention are:
[0055] In terms of early warning function, the prediction and risk warning method proposed in the present invention can make full use of the advantages of low-cost meteorological monitoring along the line. It can make advance predictions of meteorological elements only through meteorological data obtained by small monitoring stations deployed along the line, solve the problems of difficulty in obtaining meteorological cloud maps and high application thresholds, and reduce the cost of line safety operation and maintenance;
[0056] In terms of prediction effect, the present invention proposes an attention mechanism with strong wind events as the core in wind speed prediction, which simplifies the calculation process and improves the prediction effect of the baseline model on the high wind speed alarm section. In rainfall prediction, the concept of neighborhood spatiotemporal feature stacking is proposed, and the rainfall characteristics of neighboring stations are considered in the prediction process, which improves the prediction accuracy and model versatility. At the same time, the added correction method also further improves the model's adaptability.
[0057] In terms of warning level management, a warning management system that integrates real-time data, forecast data and forecast services is proposed. It can grasp the regional macro-situation while conducting refined warning management of meteorological risks in line sections. The introduction of predicted values also solves the problem that traditional meteorological risk monitoring can only provide threshold alarms rather than early warning of risks.
[0058] In summary, the method proposed in the present invention can be used for short-term prediction and early warning of wind and rain-related risks along rail transit lines. It allows operating personnel to perceive the future development trend of meteorological risks faced by the line at a low cost without relying on high-value meteorological resources such as satellite cloud images, and to conduct graded and classified assessments of risks to achieve refined proactive risk management. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a flow chart of the present invention.
[0060] Figure 2 Schematic diagram of the division of the wind speed data set in Example 2 of the present invention.
[0061] Figure 3 It is a schematic diagram of the overall structure of the short-term wind speed prediction model of Example 2 of the present invention.
[0062] Figure 4 This is the process of marking strong wind event labels in the short-term wind speed prediction model of Example 2 of the present invention.
[0063] Figure 5 This is a prediction effect diagram of the short-term wind speed prediction model of Example 2 of the present invention when the time granularity is 10 minutes.
[0064] Figure 6 It is a schematic diagram of the division of the rainfall data set in Example 3 of the present invention.
[0065] Figure 7 This is a schematic diagram of the overall structure of the short-term rainfall prediction model in Example 4 of the present invention.
[0066] Figure 8 This is a prediction effect diagram of the short-term rainfall prediction model of Example 5 of the present invention.
[0067] Fig. 9 It is the interaction process framework between the modules of the early warning system of the present invention.
[0068] Fig.10 It is a schematic diagram of error correction of the early warning system of the present invention.
[0069] Fig.11 This is the preprocessing intention of the early warning system in Example 5. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0071] In the embodiment of the present invention, the monitoring data used comes from 8 elevated line meteorological stations of a certain urban railway that was relied upon during the development of the present invention, involving typical wind and rain elements such as wind volume, wind speed, and rainfall. The data records contain 5.3 million timestamps, and the annual monitoring records can reach 170 million data items.
[0072] Example 1
[0073] First, the present invention will be generally described in this embodiment.
[0074] like Figure 1 As shown, a method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining includes the following steps:
[0075] S1. Set up monitoring stations along the rail transit line to obtain wind and rain monitoring data;
[0076] Monitoring stations are arranged along the rail transit lines; monitoring stations are used to obtain wind and rain monitoring data;
[0077] Wind and rain monitoring data include instantaneous wind speed, accumulated rainfall per minute, accumulated rainfall per hour, accumulated rainfall per 24 hours, and timestamp;
[0078] The wind and rain monitoring data is used to establish a data set and divided into a training set and a test set;
[0079] S2. Build a short-term prediction model, train the short-term prediction model using the training set, and verify the accuracy of the short-term prediction model using the test set;
[0080] Before training and verifying the short-term prediction model, the outliers and missing values of the data set are processed:
[0081] 1. The outlier processing of the data set includes: capturing, judging, and eliminating abnormally high values of wind and rain monitoring data that exceed the upper limit of the typhoon threshold, as well as wind and rain monitoring data that are significantly different from the data of adjacent monitoring stations and adjacent meteorological stations at the same time.
[0082] For example, if it rains at one monitoring station but not at another adjacent monitoring station, this indicates that there is a significant difference in the data.
[0083] 2. The missing value processing of the data set includes: filling in the abnormal missing values of the data set caused by transmission problems and aligning the timestamps; making a first-order difference in the sampling time interval of the wind and rain monitoring data; if the first-order difference value is greater than the corresponding sampling time interval, the data is judged to be accurate; when the missing segment accounts for less than 5%, the missing value is filled by linear interpolation, and when the missing segment accounts for more than 5%, the missing segment is removed; the wind and rain monitoring data with uneven sampling time intervals are aligned by linear interpolation.
[0084] The short-term prediction models include wind speed short-term prediction model and rainfall short-term prediction model.
[0085] The structure of the short-term wind speed prediction model is a GRU network (Gated Recurrent Unit Network) that introduces an attention mechanism.
[0086] The structure of the short-term rainfall prediction model includes first introducing a CNN network (convolutional neural network) to extract spatial features, and then completing the prediction through an LSTM network (long short-term memory network).
[0087] 1. Wind speed short-term prediction model
[0088] The attention mechanism introduced in the short-term wind speed prediction model is to better approximate strong wind events by checking whether there are similarities between the prediction results and the strong wind events in the historical wind and rain monitoring data through the memory network, including:
[0089] A1. Introduce strong wind event labels through historical wind and rain monitoring data (instantaneous wind speed), the specific form is:
[0090]
[0091] Where: μ is the strong wind threshold, μ is a constant and μ>0;
[0092] For historical time T, if the wind speed V T ≥μ, the output H is defined as a strong wind event, and the strong wind event label h j =1; if V T <μ, the output H is defined as a normal event, and the strong wind event label h j =0; j is the jth strong wind event sequence;
[0093] A2. Wind and rain monitoring data of strong wind events (instantaneous wind speed, h j =1) Input GRU network, output historical strong wind vector c j ;
[0094] A3. The real-time wind and rain monitoring data (instantaneous wind speed) at the current time t is input into the GRU network to obtain the real-time wind speed vector g t , and continue to input it into the fully connected layer to output the predicted value o at the current time t t ;
[0095] A4. The real-time wind speed vector g t and historical strong wind vector c j Define the attention weight α through the softmax function tj
[0096]
[0097] Where: the attention weight is the similarity weight between the current time series and the M historical window time series;
[0098] A5. Through attention weight α tj and high wind event tags j , calculate the probability of strong wind event u t
[0099]
[0100] A6. Set the probability of strong wind event to u t and scale parameter b introduced into the initial prediction value o of the GRU network output t In the process, possible strong wind events are corrected and the final wind speed force prediction result y at the current time t is output. t :
[0101] y t =o t +b*u t (4)
[0102] 2. Short-term rainfall prediction model
[0103] Considering the spatiotemporal correlation within the rainfall impact range, the short-term rainfall forecast model structure adopts a neighborhood spatiotemporal stacking forecast structure. The short-term rainfall forecast model structure includes an input layer, a one-dimensional convolutional network, an LSTM layer, a fully connected layer, and an output layer.
[0104] The one-dimensional convolutional network consists of a one-dimensional convolutional layer Conv1D and a pooling layer MaxPooling1D. It locates the current monitoring site and its adjacent monitoring sites through a sliding spatial window, extracts neighborhood spatial features, inputs the neighborhood spatial features into the LSTM layer and the fully connected layer, and denormalizes the output results to restore the rainfall forecast results.
[0105] S3. Establish wind and rain warning levels;
[0106] Based on the real-time monitoring data of monitoring sites, forecast data of meteorological stations, and the prediction results of short-term prediction models, sub-levels are established, thresholds are set, and a complete wind and rain warning level is constructed based on the alert level and threshold of the meteorological department;
[0107] The warning levels include blue, yellow, and orange. Among them: blue warning RGB (0, 0, 255), yellow warning RGB (255, 255, 0), and orange warning RGB (255, 128, 0) correspond to different thresholds. For example, level 7 wind is a blue gale warning, level 8 wind is yellow, and level 9 wind is orange.
[0108] Sub-levels include:
[0109] Level I alarm means that the state where meteorological elements exceed the current level threshold will continue, and there is a high probability that the alert level will be upgraded, such as the blue level turning into the yellow level;
[0110] Level II alarm means that the current high-impact weather has reached the threshold at the current level, and generally requires human intervention to intervene in the operation status in the short term (such as speed limit, station information release, etc.), but this status will not last for a long time in the local monitoring area;
[0111] Level III warning means that the current local monitoring data has not reached the threshold of the current level, but may reach the threshold in the future, which requires attention.
[0112] The sub-levels are created as follows:
[0113] 1. When you can obtain real-time weather services in the weather station area
[0114] ① Level I: The three data exceed the current level threshold, the current level alarm is triggered and a high probability warning level upgrade is prompted;
[0115] ②Level II: The measured data or forecast data exceeds the current threshold, but the forecast result does not exceed the current level threshold, and the current level alarm occurs;
[0116] ③Level III: The measured data does not exceed the current level threshold, and the forecast data or prediction results exceed the current level threshold, and the current level is warned;
[0117] ④ Exit the alert state: All three data are below the blue level threshold, exit the alert state;
[0118] 2. When the real-time weather service of the weather station area cannot be obtained
[0119] ① Level I: If two data exceed the current level threshold, the current level alarm will be triggered and a high probability warning level upgrade will be prompted;
[0120] ②Level II: The measured data exceeds the current level threshold, but the predicted result does not exceed the current level threshold, and the current level alarm is triggered;
[0121] ③Level III: The measured data does not exceed the current level threshold, but the predicted result exceeds the current level threshold, and the current level is warned;
[0122] ④ Exit alert status: When both data are below the blue level threshold, exit alert status.
[0123] S4. Build an early warning system, deploy the trained short-term prediction model in the background of the early warning system, obtain real-time wind and rain monitoring data and input it into the short-term prediction model to obtain the prediction results, and then output the alert status through the wind and rain warning level.
[0124] The early warning system includes a database, a back-end console, a background algorithm module, and a front-end information push and display module; the back-end database should include a monitoring database and an independent prediction data cache database.
[0125] The early warning steps of the early warning system include:
[0126] B1. The front-end information push and display module sends a forecast request for wind speed and rainfall to the back-end console;
[0127] B2. The backend console parses the prediction request, reads the real-time wind and rain monitoring data from the database, and returns the read wind and rain monitoring data to the backend algorithm module;
[0128] B3. The backend algorithm module pre-processes the wind and rain monitoring data, then makes predictions and returns the prediction results to the backend console;
[0129] Preprocessing includes: performing sliding average processing on the instantaneous wind speed, taking the average value every five minutes to obtain a new time series; rainfall data (accumulated rainfall per minute, accumulated rainfall per hour, accumulated rainfall every 24 hours) does not need to be preprocessed.
[0130] The forecast results include wind speed forecast results and rainfall forecast results.
[0131] For sudden and unpredictable extreme wind speeds, error correction based on wind speed forecast results is required, including:
[0132] B31. When one of the following conditions is met, the forecast result correction is enabled:
[0133] B311. The real-time wind and rain monitoring data (instantaneous wind speed) has exceeded the threshold of the lowest warning level, while the forecast results (historical wind speed forecast results, forecast results of the previous step) have not reached the threshold;
[0134] B312. The real-time wind and rain monitoring data (instantaneous wind speed) does not reach the threshold of the minimum warning level, but the historical wind and rain monitoring data in the past three consecutive timestamps are higher than the predicted results, and the average exceedance percentage P e >50%:
[0135]
[0136] B32. Calculate the error correction term using the exceedance percentage:
[0137] Take all points where the real-time wind and rain monitoring data within the three historical time steps are higher than the predicted results, and calculate the average of the exceedance percentages of the two (As shown in Formula 6), finally, the mean of the exceedance percentage is multiplied by the prediction result of the current time step as the error correction term (as shown in Formula 7)
[0138]
[0139] Where: is the mean of the exceedance percentages for the three historical time steps, The corrected prediction result at time t+1 (wind speed prediction result) is replaced by the model directly output value.
[0140] B33. Determine the exit amendment conditions;
[0141] When the real-time wind and rain monitoring data (instantaneous wind speed) within the three historical time steps does not exceed the forecast result (wind speed forecast result), the forecast result correction will be automatically exited;
[0142] When the forecast result correction is entered through condition B11, the forecast result correction will be automatically exited when the warning is exited.
[0143] B4. The back-end console will input the forecast data into the wind and rain warning level, obtain the alert status, and return it to the front-end information push and display module.
[0144] Example 2
[0145] In this embodiment, the part of the present invention involving the short-term wind speed prediction model is explained.
[0146] To predict wind speed, this example selects wind speed data from a monitoring station from September 1 to October 1, 2022, for one month, with a data collection interval of 1 minute. The missing values are processed and the data is divided into a training set, a validation set, and a test set. The number of training samples is 30,000, the number of training samples is 5,000, and the number of test samples is 8,200. The sample data set and its division are shown in Figure 1. Figure 2 shown.
[0147] The structure of the short-term wind speed prediction model is a GRU network (Gated Recurrent Unit Network) with an attention mechanism. The specific approach of introducing the attention mechanism is to use the memory network to check whether there is a similarity between the wind speed prediction results and the strong wind events in the historical wind and rain monitoring data to better approximate the strong wind events. The specific model structure is as follows Figure 3 shown.
[0148] exist Figure 3 In the process of modeling, it is necessary to introduce strong wind event labels through historical wind and rain monitoring data, and continuously mark and output strong wind event labels h j The specific marking process is as follows: Figure 4 As shown, in the input m sets of historical data sequence W 1 ~W m For a certain historical moment T, if the wind speed V T ≥ threshold μ, the output H is defined as a strong wind event, and the strong wind label h j =1. If V T <μ, defined as a normal event, in which case the strong wind label h j = 0, j represents the jth strong wind event sequence. Figure 4 Middle W 6 and W 7 The sequences are labeled with strong wind event labels, such as Figure 4 As shown in the triangle box.
[0149] After obtaining the strong wind event label, the historical strong wind data and the wind and rain monitoring data (instantaneous wind speed) at the current time t are input into the GRU network to obtain the historical strong wind vector c j and real-time wind speed vector g t , g t Continue to input the fully connected layer and output the predicted value o at the current time t t .
[0150] The current real-time wind speed vector g t and historical strong wind vector c j Define the attention weight α through the softmax function tj , substitute it into the strong wind event label h j , calculate the probability of strong wind event u t Finally, the probability of strong wind events u t And scale parameter b is introduced into the initial prediction value of the GRU network output o t To correct the possible strong wind events and output the final wind speed forecast result y at the current moment t .
[0151] In this embodiment, the input step size of the short-term wind speed prediction model is 4, the output is 1, the number of neurons in the GRU layer is 128, the number of neurons in the Dense layer is 64, the Batch Size is 64, the Dropout rate is 0.1, the optimization algorithm uses Adam, the Epoch is 30, and the model is built with Google open source deep learning framework Tensorflow2.3.1 as the backend, Keras2.0.0 as the high-level API, and the programming language is python3.6.5.
[0152] Will Figure 2 The training set in the example is input with a time granularity of 10 minutes. Figure 3 After training, Figure 2 The validation set in the training model is input for prediction to obtain the predicted data. The prediction effect is as follows Figure 5 shown.
[0153] In order to further verify the advancedness of the short-term wind speed prediction model featuring Attention+GRU in the present invention, its prediction effect is compared with other models, and MAE, RMSE and MAPE are used as evaluation indicators. The comparison results are shown in Table 1.
[0154] Table 1 Comparison of prediction effects of different wind speed prediction models
[0155]
[0156] It can be seen from Table 2 that the short-term wind speed prediction model proposed in the present invention has better prediction performance when predicting small-grained wind speed, which can verify that the proposed method has good accuracy and robustness for wind speed prediction.
[0157] Example 3
[0158] In this embodiment, the part of the present invention involving the short-term rainfall prediction model is explained.
[0159] To predict rainfall, this example selects the hourly cumulative rainfall data of a monitoring station for two consecutive months from July 1, 2022 to August 31, 2022. The data set is divided into a training set and a test set in a ratio of 7:3. The training set data volume is 60,000 and the test set data volume is 26,400. Figure 6 shown.
[0160] The structure of the rainfall short-term prediction model includes input layer, one-dimensional convolutional network, LSTM layer, fully connected layer and output layer, such as Figure 7 As shown. Among them,
[0161] The one-dimensional convolutional network consists of a one-dimensional convolutional layer Conv1D and a pooling layer MaxPooling1D. It locates the current monitoring site and its adjacent monitoring sites through a sliding spatial window, extracts neighborhood spatial features, inputs the neighborhood spatial features into the LSTM layer and the fully connected layer, and denormalizes the output results to restore the rainfall forecast results.
[0162] Since a one-dimensional convolutional network is introduced to extract spatial features of input data, the spatial correlation of rainfall trends at various monitoring stations along the rail transit line can be better considered, thus improving the accuracy of rainfall prediction.
[0163] Will Figure 6 The training set data input in Figure 7 After training, the data of the validation set is input into the short-term rainfall prediction model to obtain the validation prediction effect. The prediction effect of rainfall is shown in Figure 8 shown.
[0164] Since a one-dimensional convolutional network is added before the LSTM time series prediction to extract spatial features of the rainfall data of surrounding monitoring stations, from the perspective of rainfall prediction effect, when heavy rainfall is predicted, the predicted rainfall value will be greater than the actual rainfall value, and the prediction result tends to be safe and conservative.
[0165] Example 4
[0166] Embodiments 2 and 3 illustrate the short-term prediction model involved in the present invention. This embodiment mainly illustrates the wind and rain warning level proposed in the short-term prediction model in the present invention.
[0167] Thresholds are set based on the real-time monitoring data of the monitoring sites, the forecast data of the meteorological stations, and the prediction results of the short-term prediction model, and the wind and rain warning levels are established according to the alert levels (blue, yellow, orange) of the meteorological department, as shown in Table 2:
[0168] Table 2 Wind and rain warning levels
[0169]
[0170] This embodiment takes the warning rules of the urban rail as an example. Based on the principles (wind and rain warning levels) shown in Table 2, combined with the definition of each warning state in the abnormal weather emergency plan for rail transit lines, the risk warning level classification for strong winds (as shown in Table 3) and the risk warning level classification for heavy rainfall (as shown in Table 4) are obtained.
[0171] Table 3 Classification of windy weather alert status
[0172]
[0173]
[0174] Table 4 Classification of rainstorm weather alert status
[0175]
[0176]
[0177] Example 5
[0178] After the short-term prediction models and wind and rain warning levels in Example 2, Example 3, and Example 4 are established, it is necessary to establish an early warning system so that the method of this patent can be successfully used in engineering operation practice.
[0179] The database should include a wind and rain monitoring database and a forecast data cache database. The wind and rain monitoring database is used to store historical wind and rain monitoring data and real-time wind and rain monitoring data. The forecast data cache database is used to store forecast results (wind speed forecast results, rainfall forecast results).
[0180] The method for correcting the error of the early warning system in the present invention is described as follows: Fig.10 shown. Fig.10 In Example 1, the actual measured data at the current moment reaches 15, which is greater than the minimum warning threshold of 13.9, but the predicted data at this moment does not reach the threshold, satisfying the condition of step B311 and requiring correction. Going back two timestamps from the current moment, the actual measured data are 2 and 7, and the predicted data are 2 and 5, respectively. The calculated exceedance percentages for the three historical time steps are 0, 0.4, and 1.5. At this time, the average exceedance percentage probability is (0.4+1.5) / 2=0.95 (historical timestamps that have not been exceeded are not included in the average calculation). At this time, the prediction result of the next timestamp needs to be multiplied by 1.95. Fig.10 In Example 2, the measured data at the current moment reaches 11, and the measured data for the previous two steps are 5 and 9. The predicted data at the current moment is 5, and the predicted data for the previous two steps is 4. Although 11 does not reach the minimum warning threshold of 13.9 at this time, the measured data for three consecutive timestamps are higher than the predicted data, and the average exceedance percentage probability reaches 0.75, so the B312 condition is met for correction, and the prediction result of the next timestamp needs to be multiplied by 1.75.
[0181] When the early warning system performs preprocessing: the instantaneous wind speed at the monitoring site is preprocessed, and the acquired wind speed data is processed by sliding average, such as Fig.11 As shown, the average value is taken every ten minutes to obtain a new time series; in this embodiment, there are 10 timestamps, that is, Fig.11 The data from t to t-9 above the mean (average operation) are averaged as the first prediction input data, and the second and third ones are deduced in the same way; no additional preprocessing is required for the rainfall data.
[0182] The preferred embodiments of the present invention are shown in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described in this specification. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
Claims
1. A method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining, comprising the following steps: S1. Arrange monitoring sites and obtain wind and rain monitoring data; S2. Build a short-term prediction model and train and verify it; S3. Establish wind and rain warning levels; S4. Build an early warning system, deploy a short-term prediction model, obtain real-time wind and rain monitoring data and input it into the short-term prediction model to obtain wind and rain prediction results, and then output the alert status through the wind and rain warning level.
2. According to claim 1, a method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining is characterized in that: In step S1, the wind and rain monitoring data includes instantaneous wind speed, cumulative rainfall per minute, cumulative rainfall per hour, cumulative rainfall per 24 hours, and timestamp; the wind and rain monitoring data is used to establish a data set, which is divided into a training set and a test set; In step S2, the short-term prediction model includes a wind speed short-term prediction model and a rainfall short-term prediction model. The structure of the wind speed short-term prediction model is a GRU network that introduces an attention mechanism. The structure of the rainfall short-term prediction model includes first introducing a CNN network to extract spatial features, and then completing the prediction work through an LSTM network. In step S2, before training and verifying the short-term prediction model, the outliers and missing values of the data set are processed.
3. The method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining according to claim 2 is characterized in that: In step S2: The outlier processing of the data set includes: capturing, judging, and eliminating abnormally high values of wind and rain monitoring data that exceed the upper limit of the typhoon threshold, and wind and rain monitoring data that are significantly different from the data of adjacent monitoring sites and adjacent meteorological stations at the same time; The missing value processing of the data set includes: filling in the abnormal missing values of the data set and aligning the timestamps, and making a first-order difference in the sampling time interval of the wind and rain monitoring data; if the first-order difference value is greater than the corresponding sampling time interval, the data is judged to be accurate; when the missing segment accounts for less than 5%, the missing value is filled by linear interpolation, and when the missing segment accounts for more than 5%, the missing segment is removed; the wind and rain monitoring data with uneven sampling time intervals are aligned by linear interpolation.
4. The method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining according to claim 2 is characterized in that: In step S2, the attention mechanism introduced into the short-term wind speed prediction model is to check whether there is similarity between the wind speed prediction result and the strong wind events of the historical wind and rain monitoring data through the memory network to better approximate the strong wind events, including: A1. Introducing strong wind event labels through historical wind and rain monitoring data Where: μ is the strong wind threshold; A2. The wind and rain monitoring data of strong wind events is input into the GRU network, and the historical strong wind vector c is output. j ; A3. The real-time wind and rain monitoring data at the current time t is input into the GRU network to obtain the real-time wind speed vector g t , and continue to input it into the fully connected layer to output the predicted value o at the current time t t ; A4. The real-time wind speed vector g t and historical strong wind vector c j Define the attention weight α through the softmax function tj Where: the attention weight is the similarity weight between the current time series and the M historical window time series; A5. Through attention weight α tj and strong wind time label h j , calculate the probability of strong wind event u t A6. Calculate the final wind speed forecast result y at the current time t t : y t =o t +b*u t (4) Where: b is the scale parameter.
5. The method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining according to claim 2 is characterized in that: In step S2, the short-term rainfall prediction model structure includes an input layer, a one-dimensional convolutional network, an LSTM layer, a fully connected layer and an output layer; The one-dimensional convolutional network consists of a one-dimensional convolutional layer Conv1D and a pooling layer MaxPooling1D. It locates the current monitoring site and its adjacent monitoring sites through a sliding spatial window, extracts neighborhood spatial features, inputs the neighborhood spatial features into the LSTM layer and the fully connected layer, and denormalizes the output results to restore the rainfall forecast results.
6. The method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining according to claim 1 is characterized in that: In step S3, sub-levels are established based on the real-time monitoring data of the monitoring site, the forecast data of the weather station, and the prediction results of the short-term prediction model, and a complete wind and rain warning level is constructed based on the warning level and threshold of the meteorological department; Alert levels include blue, yellow, and orange; Sub-levels include: Level I alarm, which means that the state where meteorological elements exceed the current level threshold will continue, and there is a high probability that the alert level will be upgraded; A Level II alarm means that the current high-impact weather has reached the threshold at the current level, and generally human intervention is required to interfere with the operating status in the short term, but this status will not last for a long time in the local monitoring area; a Level III warning means that the current local monitoring data has not reached the threshold of the current level, but may reach the threshold in the future, and it should be paid attention to.
7. The method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining according to claim 1 is characterized in that: In step S4, the early warning system includes a database, a back-end console, a back-end algorithm module, and a front-end information push and display module.
8. The method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining according to claim 7 is characterized in that: In step S4, the early warning step of the early warning system includes: B1. The front-end information push and display module sends a prediction request to the back-end console; B2. The backend console parses the prediction request, reads the wind and rain monitoring data from the database and returns it to the backend algorithm module; B3. The backend algorithm module performs data prediction and returns the prediction results to the backend console; B4. The back-end console will substitute the forecast results into the wind and rain warning level, obtain the alert status, and return it to the front-end information push and display module.
9. The method for predicting wind speed and rainfall along a rail transit line and risk warning based on monitoring data mining according to claim 8 is characterized in that: In step B3, the error of the wind speed prediction result is corrected, including: B31. When one of the following conditions is met, the forecast result correction is enabled: B311. Real-time wind and rain monitoring data has exceeded the threshold of the lowest warning level, and the forecast result has not reached the threshold; B312. The real-time wind and rain monitoring data does not reach the minimum warning level threshold, but the historical wind and rain monitoring data in the past three consecutive timestamps are higher than the predicted results, and the average exceedance percentage P e >50%: B32. Calculate the error correction term using the exceedance percentage: Take all points where the real-time wind and rain monitoring data within the three historical time steps are higher than the predicted results, and calculate the average of the exceedance percentages of the two The error correction term is the mean of the exceedance percentage multiplied by the forecast result of the current time step. Where: is the mean of the exceedance percentages for the three historical time steps, The corrected prediction result at time t+1 is replaced by the model output directly. value; B33. Determine the exit amendment conditions; When the real-time wind and rain monitoring data within the three historical time steps does not exceed the forecast result, the forecast result correction will be automatically exited; When the forecast result correction is entered through condition B11, the forecast result correction will be automatically exited when the warning is exited.
10. The method for predicting wind speed and rainfall along the rail transit line and risk warning based on monitoring data mining according to claim 8, characterized in that: In step B2, the background algorithm module first pre-processes the monitoring data, then performs prediction and returns the prediction result to the back-end console; the pre-processing is to perform sliding average processing on the instantaneous wind speed, and take the average value every five minutes to obtain a new time series.
