A thunderstorm forecasting method and a lightning location method

Through the improved ResNet50 network and multi-layer perceptron network, combined with deep learning algorithms, the electric field intensity data of multiple sites are preprocessed and labeled, and a weather sample database is constructed, which solves the problem of the accuracy and limited observation range of existing lightning warning methods. solve the problem, achieve efficient thunderstorm forecasting and lightning location, and reduce the losses caused by lightning.

CN114545098BActive Publication Date: 2024-09-03HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210272982.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-09-03
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

The existing lightning early warning methods based on atmospheric electric fields have low warning accuracy, and the observation range of a single station is limited, which is prone to misjudgment. It is difficult to effectively use joint predictions from multiple stations to improve lightning early warning capabilities.

Method used

Using the improved ResNet50 network and multi-layer perceptron network, by preprocessing and labeling the electric field intensity data of multiple sites, a weather sample database is constructed, using deep learning algorithms for thunderstorm forecasting and lightning location, and improving the residual block of the ResNet50 network Structure and max-pooling layers, combined with multi-layer perceptron networks for lightning location prediction.

Benefits of technology

It improves the accuracy and feasibility of lightning warning, reduces the rate of false alarms and false alarms, and can quickly obtain ideal results with a limited amount of data. The positioning error is within an acceptable range, and the property losses and casualties caused by lightning are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114545098B
    Figure CN114545098B
Patent Text Reader

Abstract

The invention discloses a thunderstorm forecasting method and a lightning positioning method, which belong to the technical field of lightning approaching warning; the thunderstorm forecasting method includes preprocessing the electric field strength data measured by multiple sites; labeling the electric field strength data measured by multiple sites with thunderstorm samples and non-thunderstorm samples using lightning positioning data to obtain a weather sample database; converting the electric field strength data measured by multiple sites into pictures; training an improved ResNet50 network using the weather sample database; wherein the downsampling link of the trunk branch of the residual block in the improved ResNet50 network is moved down, and a maximum pooling layer is provided at the shortcut branch; after converting the electric field strength data of multiple sites in the area to be measured into pictures, the trained improved ResNet50 network model is input to obtain the prediction result of thunderstorm weather or non-thunderstorm weather. The method involved in the invention is feasible and effective for thunderstorm forecasting, and the prediction result has good consistency with the actual situation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of lightning approach warning, and more specifically, relates to a thunderstorm forecasting method and a lightning positioning method. Background Art

[0002] Lightning is an extreme and severe weather phenomenon that occurs in nature, accompanied by the appearance of sound and light. During the development of a thunderstorm, water vapor and various particles in the cloud layer are constantly electrified by friction, causing the charge to accumulate continuously. When the electric field strength at a certain point exceeds the threshold of air breakdown, discharges will occur between clouds (cloud-to-cloud flashes) and between clouds and the ground (cloud-to-ground flashes). Due to its high discharge voltage and large current amplitude, accompanied by a dramatic change in the electromagnetic field and scorching temperature, it poses a great threat to power equipment, communication facilities, high-rise buildings, forestry protection and other fields. Therefore, it is necessary to have an in-depth understanding of the laws of lightning activity, fully grasp the laws of development of lightning activity, and effectively improve the level of lightning protection.

[0003] At present, the conventional equipment for detecting lightning mainly includes atmospheric electric field meters, weather radars and lightning locators. As atmospheric electric field meters are inexpensive and easy to install, they are favored by meteorological workers as detection equipment that can reflect the most fundamental causes of thunderstorms. If the abnormalities of the measured electric field data can be recorded and analyzed in time, and the connection between the electric field time series data and the occurrence of thunderstorms can be established, it can be used to warn of lightning and then take relevant measures to reduce or eliminate the property safety losses caused by lightning.

[0004] Most of the existing methods for lightning warning based on atmospheric electric fields are based on the surface characteristics of the electric field, such as setting the electric field strength threshold, the electric field strength difference threshold, and analyzing its fast-changing jitter characteristics. Most of these methods have the problem of low applicability and low warning accuracy. In practical applications, the electric field measurement value is not only affected by the formation of thunderstorm clouds, but also closely related to the changes in the surrounding electromagnetic environment, which brings certain challenges to lightning warning. At the same time, most studies rely only on the measurement data of a single station, but the observation range is limited and it is easy to misjudge. How to use multiple stations for joint prediction, establish corresponding models based on certain theories according to the characteristics of the data, and find the intrinsic connection between it and the occurrence of lightning is of great significance to improving the lightning warning capability and reducing the property safety losses caused by lightning. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a thunderstorm forecasting method and a lightning location method, the purpose of which is to improve the lightning warning capability.

[0006] To achieve the above object, according to one aspect of the present invention, a thunderstorm forecasting method is provided, comprising:

[0007] S1. Preprocessing the electric field strength data measured at multiple sites;

[0008] S2. Using lightning location data to label the electric field intensity data measured at multiple stations with thunderstorm samples and non-thunderstorm samples to obtain a weather sample database;

[0009] S3. Convert the electric field strength data measured at multiple sites into images;

[0010] S4. Use the weather sample database to train the improved ResNet50 network; wherein, the downsampling link of the residual block trunk branch in the improved ResNet50 network is moved down, and a maximum pooling layer is set at the shortcut branch;

[0011] S5. After converting the electric field strength data of multiple stations in the test area into images, the trained improved ResNet50 network model is input to obtain the prediction results of thunderstorm weather or non-thunderstorm weather.

[0012] Preferably, step S1 specifically includes filling missing values ​​with the Lagrangian method and deleting duplicate values.

[0013] Preferably, step S2 comprises,

[0014] 01. Determine the area to be tested, and plan the longitude and latitude of each electric field measurement site, and evenly arrange multiple electric field measurement sites in the area to be tested as much as possible; the detection range of the lightning locator should cover the area to be tested, and screen and obtain lightning location data in the area to be tested;

[0015] 02. Cluster the lightning location data and divide the thunderstorm weather samples and non-thunderstorm weather samples according to the clustering results:

[0016] If lightning is detected within the set time interval, the electric field measurement data for the past hour is taken out and classified as a thunderstorm weather sample; if the electric field measurement data for one hour is randomly taken out and no lightning is detected in the half hour before and after, it is classified as non-thunderstorm weather.

[0017] Preferably, step S3 comprises,

[0018] Normalize the electric field strength data;

[0019] Using the formula C = E s ×255 will normalize the electric field value E s Mapped to the (0-255) interval, a grayscale image is obtained, where C represents the pixel value.

[0020] Preferably, the downsampling link of the main branch is moved down to the 3×3 convolution kernel.

[0021] Preferably, a 2×2 maximum pooling layer is provided at the shortcut branch.

[0022] According to another aspect of the present invention, a lightning location method based on the above-mentioned thunderstorm forecasting method is provided, comprising:

[0023] When the ResNet50 network model determines that lightning will occur in the future, a multi-layer perceptron network is used to predict the location of the lightning. The multi-layer perceptron network includes multiple groups of Dense layers and Dropout layers connected in sequence, and finally a fully connected layer is used as the output. The Dense layer is used to extract the association between features and compress the dimension of the features. The Dropout layer is used to discard the values ​​of some neurons to prevent the network from overfitting.

[0024] In general, compared with the prior art, the above technical solution conceived by the present invention can achieve the following beneficial effects.

[0025] 1. The existing technical means do not fully mine the characteristics of electric field data, and cannot make good use of multiple sites for joint prediction. There are problems such as false alarms and false reports. The present invention uses an improved ResNet50 network to identify and classify them. Specifically, the residual block structure in the network is improved to make it suitable for electric field data processing and identification in the field of lightning warning. At the same time, with the advantage of transfer learning, ideal results can be quickly obtained on a pre-trained model when the amount of data is limited. The method involved in the present invention is feasible and effective for thunderstorm forecasting, and the prediction results are consistent with the actual situation.

[0026] 2. The present invention constructs a weather sample database based on electric field measurement data and lightning location data, providing a solution for multi-site joint prediction. In particular, it defines a method for determining thunderstorm weather and non-thunderstorm weather, providing a new idea for studying thunderstorm disasters based on atmospheric electric field meters and lightning location meters.

[0027] 3. The present invention constructs a multi-layer perceptron network model, and predicts the approximate area where lightning will occur when the improved Resnet50 network determines that lightning will occur next. The experimental results show that the positioning error is within an acceptable range, and active lightning protection measures (such as blocking lightning current channels, artificial lightning induction, etc.) can be taken later to further reduce property losses and casualties caused by lightning. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 The distribution of electric field meters in Guangzhou and their measurement range;

[0029] Figure 2 It is the lightning location data for the whole year of 2021;

[0030] Figure 3 It is the result of lightning clustering according to ten minutes;

[0031] Figure 4 It is to build a weather sample database;

[0032] Figure 5 This is an example of visualizing electric field time series data;

[0033] Figure 6 It is the basic network structure of ResNet50;

[0034] Figure 7 It is an improved residual block structure;

[0035] Figure 8 is the maximum pooling operation;

[0036] Fig. 9 It is the change of accuracy and loss function during the training of training set and validation set;

[0037] Fig.10 It is the basic structure of a multi-layer perceptron;

[0038] Fig.11 It is a multi-layer perceptron network designed by the present invention;

[0039] Fig.12 It is the change of MAE and MSE during model training;

[0040] Fig.13 It is the result of lightning spatial positioning. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions 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 intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0042] Step 1: Preprocess the electric field time series.

[0043] Since the atmospheric electric field instrument will reduce the sampling frequency when measuring a low electric field amplitude, and may become unstable during operation, it needs to be preprocessed. There are mainly the following situations:

[0044] 1.1 The missing values ​​of the measured values ​​in some time periods are filled by Lagrange interpolation method. For a polynomial function, it is known that there are given n+1 value points: (x0, y0), ..., (x n ,y n), where x n Corresponding to the position of the independent variable, y n The value of the corresponding function at this point. Then the Lagrange interpolation polynomial is:

[0045]

[0046] Among them, the Lagrange interpolation basis function l k (x) is expressed as:

[0047]

[0048] 1.2 In the measured data, there are multiple electric field values ​​corresponding to a certain moment. In this case, only one value is retained and the other duplicate values ​​are deleted.

[0049] Step 2: Data acquisition and database establishment

[0050] 2.1 Data calibration of atmospheric electric field instrument and lightning locator

[0051] The data involved in this invention comes from 30 electric field measurement sites and hundreds of lightning locators distributed in Guangzhou. Figure 1 The distribution of electric field meters is shown. Each circle represents the measurement range of a single station, which almost covers Huadu District, Baiyun District and Conghua District of Guangzhou City. These three areas are selected as the warning range. The lightning location data records the time, longitude and latitude of each lightning, lightning current amplitude and lightning return strike information. Figure 2 The distribution of lightning location data for the whole year of 2021 is shown. In order to make the lightning location data correspond to the measurement range of the electric field meter, the lightning location data to the upper left of the black dotted line in the figure is filtered out.

[0052] 2.2 Establishment of weather sample database

[0053] like Figure 3 The figure shows the clustering result of lightning that occurred throughout 2021 every ten minutes. It can be seen from the figure that for most of the time, the number of lightning occurrences is close to 0. In the summer when thunderstorms are more frequent, the number of lightning occurrences can reach hundreds within ten minutes. If a weather sample database is constructed based on each lightning location data, data redundancy will occur. Therefore, in the present invention, a total of 52,267 data samples are clustered every 10 minutes. Figure 4 As shown, the database is as follows:

[0054] ①Thunderstorm weather sample: If lightning is detected within a ten-minute time interval, the electric field measurement data for the past hour are retrieved.

[0055] ② Non-thunderstorm weather samples: Randomly take out one hour of electric field measurement data. If no lightning is detected in the half hour before and after, it is classified as non-thunderstorm weather.

[0056] In specific implementation, the length of the electric field time series can be determined according to the computing power of the computer and the characteristics of thunderstorm weather in the area.

[0057] Step 3: Visualization of electric field data

[0058] Deep learning has a wide range of applications in computer vision. Images are two-dimensional data, while the ground electric field strength measured by the atmospheric electric field instrument is a typical one-dimensional time series. If the one-dimensional time series data measured by multiple stations are combined into one image, the electric field feature expression within the warning range can be obtained. Furthermore, it can be identified based on the deep learning algorithm to determine whether thunderstorm weather will occur next. The specific steps are as follows:

[0059] The sampling frequency of the atmospheric electric field instrument is 1 Hz, so 1800 data can be collected in one hour. First, the maximum value of the electric field measurement data per minute is taken out and its feature dimension is reduced.

[0060] Next, the electric field data is normalized, and the specific formula is as follows:

[0061]

[0062] Among them, E min and E max Represent the maximum and minimum values ​​of the electric field measurement, E s represents the normalized value, and E represents the original value before normalization. Then E is converted into s Mapping to the (0-255) interval, we can get a 30×60 grayscale image. One of the weather samples is Figure 5 As shown in the figure, the horizontal axis represents time and the vertical axis represents the site number.

[0063] C=E s ×255

[0064] Furthermore, in order to facilitate the model to extract features, the grayscale image is evenly filled with blanks above and below so that the electric field feature is located in the center of the image. The final image size is 60×60.

[0065] Step 4: After the weather sample database is built, thunderstorm weather and non-thunderstorm weather can be distinguished by improving the ResNet50 network. Through preliminary experiments, the ResNet50 network is selected with full consideration of the calculation accuracy and time consumption. Its basic structure is as follows: Figure 6 shown.

[0066] The core of ResNet50 lies in its residual structure, which can deepen the network structure while avoiding network degradation, thereby extracting deeper features of the image. Figure 7 As shown in the left half, a 1×1 convolution kernel with a step size of 2 is used. Since the step size is larger than the length and width of the convolution kernel, a lot of information will be lost during the movement of the convolution kernel, and some detailed features cannot be well grasped. Therefore, it is considered to be improved. Figure 7 As shown in the right half, the present invention moves the downsampling link of the residual block down to the 3×3 convolution kernel, which allows the residual block to traverse all the information of the weather sample at the beginning, and can better extract the features in the electric field image; at the same time, considering that the atmospheric electric field measurement value on a sunny day is usually a few hundred volts per meter, and in thunderstorm weather it can reach several thousand volts per meter or even tens of thousands of volts per meter, there is a large difference between the two. When lightning occurs in the observation area, some stations will detect a larger electric field intensity. When all the information in the image features has a certain contribution, average pooling is generally used, but in order to better screen out such features, it is preferably added at the shortcut branch. A 2×2 maximum pooling layer, such as Figure 8 As shown in Figure 1, the maximum pooling operation can extract the maximum value within the pooling window, thereby better distinguishing thunderstorm weather samples from non-thunderstorm weather samples.

[0067] Preferably, placing the downsampling link of the trunk branch at the 3×3 convolution kernel instead of the bottom 1×1 convolution kernel can reduce the amount of data processed by the model to a certain extent and improve the computing speed.

[0068] According to the database established in step 2, there are 10093 weather samples, of which 4665 are thunderstorm weather and 5428 are non-thunderstorm weather. The training set and the validation set are divided into a ratio of 9:1. Fig. 9 The figure shows the results of distinguishing weather samples based on the improved ResNet50 network. After about 150 rounds of training, the accuracy of the training set and the validation set stabilized at about 92% and 87% respectively, and the difference between the two was not large, indicating that the model did not have serious overfitting and had good recognition capabilities for thunderstorm samples and non-thunderstorm samples. The loss function of the validation set reached stability at about 140 rounds of training. In summary, the model performed well in the binary classification task of weather samples and had good performance.

[0069] Step 5: If the method used in step 4 determines that lightning will occur next, the approximate location of the lightning will be predicted based on the multi-layer perceptron network.

[0070] In the initial exploration of lightning location data, it was found that a thunderstorm is often accompanied by multiple lightning strikes, and the lightning that occurs within a few minutes has obvious spatial correlation characteristics. When a thunderstorm cloud forms at a certain location, it will produce large-scale discharge phenomena in the area. Given a finite set of points x1, x2, ..., x k ∈R n , their geometric center C is defined as:

[0071]

[0072] In step 2.2, a database of weather samples is established. For thunderstorm weather, multiple lightning strikes may occur in the next ten minutes. The above formula is used to calculate the equivalent longitude and latitude of lightning strikes within ten minutes, which facilitates the construction of the connection between the center position of the thunderstorm cloud and the electric field measurement data.

[0073] Multilayer perceptron (MLP) is a common machine learning method in the 1980s. It has been widely used in speech recognition, image classification, machine translation and other related fields. Since 1990, MLP has been strongly competed by support vector machines (SVM). In recent years, due to the great breakthroughs in deep learning, MLP has regained attention. Fig.10 The basic network structure of MLP includes an input layer, a hidden layer and an output layer. Theoretically, the nonlinear mapping relationship can be approximated with arbitrary precision by adding hidden layers and neuron nodes. According to Coulomb's law, the electric field at a point in space is related to the position and amount of charge. In order to explore the correlation between the lightning occurrence position and the electric field measurement value, the present invention designs the following Fig.11 The model shown and the related parameters are shown in the figure.

[0074] In particular, the 30×60 electric field data in step 3 is compressed into one dimension, that is, a single weather sample is converted into a 1×1800 vector.

[0075] The data is first sent to a fully connected layer with 256 units. The purpose is to transform the features of the original electric field data through the nonlinear transformation of the Dense layer, extract the association between the features, and compress the dimension of the features.

[0076] Furthermore, in order to prevent the model from overfitting, a Dropout layer is added in the middle of the network to randomly discard the values ​​of some neurons, thereby preventing the network from being overly dependent on certain local features and enhancing the generalization performance of the model.

[0077] The design ideas of the remaining Dense layers and Dropout layers in the network are the same as above.

[0078] At the end of the model, a fully connected layer with 2 units is added as output, corresponding to the longitude and latitude of the geometric center C, which serve as the target values ​​for model fitting.

[0079] The MSE (Mean Square Error) mean square error and MAE (Mean Absolute Error) mean absolute error are used as loss functions to train the model. The formula is as follows:

[0080]

[0081]

[0082] Relu is used as the nonlinear activation function of the middle layer, and the network is trained using the back propagation algorithm. The training process is shown in the formula.

[0083]

[0084]

[0085]

[0086] w hj =w hj +△w hj (4)

[0087] b h =b h +△b h (5)

[0088] For the kth training sample (x k ,y k ), Formula 1 represents the MSE between the true value and the label value, α is the learning rate, and after the gradients of weights and offsets are calculated according to Formulas 2 and 3, the parameters of the corresponding neurons can be updated according to Formulas 4 and 5, so that the parameters of the entire model change in the direction of smaller MSE.

[0089] like Fig.12 The figure shows the changes in MSE and MAE during the model training process. It can be seen from the figure that with the continuous iterative training, the MAE and MSE of the network continue to decrease. The model can better build the relationship between the electric field measurement value and the longitude and latitude. The MAE and MSE of the validation set finally stabilized at 0.1107 and 0.0264. Fig.13This is a joint graph of the actual longitude and latitude of the model and the predicted longitude and latitude for the thunderstorm weather samples in the validation set. Each point represents the difference between the predicted longitude and latitude of a given sample and the actual value. The closer to the origin (0,0), the smaller the error and the more accurate the lightning location. It can be clearly seen that for most thunderstorm samples, the model performs well in locating the center of lightning, with the longitude error controlled within ±0.25 and the latitude error controlled within ±0.15 (within the gray ellipse).

[0090] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A thunderstorm forecasting method, characterized in that: include: S1. Preprocessing the electric field strength data measured at multiple sites; S2. Using lightning location data to label the electric field intensity data measured at multiple stations with thunderstorm samples and non-thunderstorm samples to obtain a weather sample database; S3. Convert the electric field strength data measured at multiple sites into images; S4. Use the weather sample database to train the improved ResNet50 network; wherein, the downsampling link of the trunk branch of the residual block in the improved ResNet50 network is moved down, the downsampling link of the trunk branch is moved down to the 3×3 convolution kernel, a maximum pooling layer is set at the shortcut branch, and a 2×2 maximum pooling layer is set at the shortcut branch; S5. After converting the electric field strength data of multiple stations in the test area into images, the trained improved ResNet50 network model is input to obtain the prediction results of thunderstorm weather or non-thunderstorm weather.

2. A thunderstorm forecasting method according to claim 1, characterized in that: Step S1 specifically includes filling missing values ​​with the Lagrange interpolation method and deleting duplicate values.

3. A thunderstorm forecasting method according to claim 2, characterized in that: Step S2 comprises, (1) Determine the area to be measured and plan the longitude and latitude of each electric field measurement site. Arrange multiple electric field measurement sites evenly in the area to be measured as much as possible. The detection range of the lightning locator should cover the area to be measured, and filter and obtain lightning location data in the area to be measured. (2) Cluster the lightning location data and divide the thunderstorm weather samples and non-thunderstorm weather samples according to the clustering results: If lightning is detected within the set time interval, the electric field measurement data for the past hour is taken out and classified as a thunderstorm weather sample; if the electric field measurement data for one hour is randomly taken out and no lightning is detected in the half hour before and after, it is classified as non-thunderstorm weather.

4. A thunderstorm forecasting method according to claim 3, characterized in that: Step S3 comprises, Normalize the electric field strength data; Using the formula C = E s ×255 will normalize the electric field value E s Mapped to the (0-255) interval, a grayscale image is obtained, where C represents the pixel value.

5. A thunderstorm forecasting system, characterized in that: include: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the thunderstorm forecasting method according to any one of claims 1 to 4.

6. A lightning location method based on the thunderstorm forecasting method according to any one of claims 1 to 4, characterized in that: include: When the improved ResNet50 network model determines that lightning will occur in the future, the multi-layer perceptron network is used to predict the location of lightning. The multi-layer perceptron network includes multiple groups of sequentially connected Dense layers and Dropout layers, and finally a fully connected layer as the output; the Dense layer is used to extract the association between features and compress the dimension of the features; the Dropout layer is used to discard the values ​​of some neurons to prevent the network from overfitting.

7. A lightning location system, characterized in that: include: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium to execute the lightning location method according to claim 6.