A method for constructing a lightning prediction model based on convolutional neural network
Through the lightning prediction model based on the convolutional neural network, historical lightning data and meteorological data are used to train the prediction model, which solves the problem that the traditional lightning warning method cannot predict the intensity of lightning activity, improves the forecast accuracy and lightning protection effect, and reduces Lightning strike disaster risk.
Patent Information
- Application Number
- CN202210976018.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-08-15
AI Technical Summary
Traditional lightning warning methods cannot effectively predict the intensity of lightning activity, resulting in insufficient application effects of lightning forecast results. There is a lack of prior measures to avoid or reduce the risk of lightning strikes, and full-process protection cannot be achieved.
The lightning prediction model based on the convolutional neural network extracts the number of lightning strikes and lightning current intensity information through the historical lightning location data and meteorological data of the target area, divides the classification intervals, and trains the convolutional neural network prediction model to use spatiotemporal variables and meteorological parameters. As input, predict the number of lightning strikes and the classification of lightning current intensity.
It improves the accuracy and practicality of lightning forecast, achieves effective prediction of the intensity of lightning activity, reduces lightning disaster losses, and improves the level of lightning protection in society.
Smart Images

Figure CN115456248B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lightning protection, and in particular to a method for constructing a lightning strike prediction model based on a convolutional neural network. Background Art
[0002] Lightning activity is listed as one of the top ten most serious natural disasters due to its high intensity and concentrated outbreaks. It has long affected the safe production of important energy industries such as power grids, wind power, petroleum and petrochemicals. In recent years, the global climate has warmed, extreme weather has occurred frequently, lightning activity has become increasingly frequent, and the number of disasters caused by lightning strikes has been increasing year by year. According to statistics, the tripping of important transmission lines and fires in large ground oil storage tanks caused by lightning strikes have exceeded 46% and 60% respectively. Traditional lightning protection measures such as installing lightning rods and reducing grounding resistance can only take effect after lightning strikes the target. There is still a lack of prior measures to avoid or reduce the risk of lightning disasters and achieve the purpose of protecting against lightning throughout the process.
[0003] As the basis of lightning protection, lightning warning and forecasting technology has been extensively researched by scholars at home and abroad. The conventional method is to use atmospheric instability parameters as forecasting factors to predict the probability of lightning occurrence. Its disadvantage is that the forecast content is insufficient and it is impossible to obtain information on the strength of lightning activities, resulting in a large room for improvement in the application effect of lightning forecast results. Summary of the invention
[0004] The purpose of the present invention is to provide a method for constructing a lightning strike prediction model based on a convolutional neural network. The present invention is based on the historical lightning location data and meteorological data of the target area. The number of lightning strikes and lightning current intensity information in the target area are extracted by statistical lightning data. The number of lightning strikes and lightning current intensity are classified based on the ratio of the two and the lightning protection requirements of the target area. Based on the lightning strike number category and the lightning current intensity category, lightning strike number category samples and lightning current intensity category samples are established respectively. Convolutional neural network prediction models with spatiotemporal variables and meteorological parameters as input and the probability of each category of lightning strike number or lightning current intensity as output are trained respectively, which can realize the classified prediction of lightning strike number and lightning current intensity.
[0005] To achieve this purpose, the method for constructing a lightning strike prediction model based on a convolutional neural network designed by the present invention is characterized in that it includes the following steps:
[0006] Step S1, according to the lightning protection requirements of the target area, specify the size and prediction time of the rectangular grid for predicting the number of lightning strikes and lightning current intensity;
[0007] Step S2, dividing the target area into multiple grids according to the size of the rectangular grid for predicting the number of lightning strikes and lightning current intensity, dividing the time span of the historical lightning data of the target area into multiple time periods according to the predicted duration of the number of lightning strikes and lightning current intensity, and counting the number of lightning ground flashes and the maximum value of the lightning current amplitude of each grid inside the target area in each time period included in the historical lightning data of the target area, which are respectively called the number of lightning strikes and lightning current intensity, and then deleting the number of lightning strikes and lightning current intensity with a value of 0;
[0008] Step S3, counting the proportions of different lightning strike frequencies, and dividing the lightning strike frequency into classification intervals based on this and in combination with the lightning protection requirements of the target area;
[0009] Step S4, processing each lightning strike number into a lightning strike number category according to the lightning strike number classification interval, and creating a lightning strike number category sample according to the lightning strike number category and its corresponding time, grid, and meteorological data of the grid and the surrounding area of the grid;
[0010] Step S5, performing one-hot encoding on the lightning strike number categories in the lightning strike number category samples to obtain new lightning strike number samples, and training a convolutional neural network prediction model with the time of the prediction, the location of the prediction grid, and the meteorological data of the area to which the location belongs at the time as input and the probability of each category of the lightning strike number as output according to the new lightning strike number category samples, to obtain a lightning strike number classification prediction convolutional neural network model;
[0011] Step S6, dividing the lightning current intensity intervals into equally spaced intervals between the lightning current intensity of 0 kA and the maximum lightning current intensity, counting the proportions of lightning current intensities appearing in different lightning current intensity intervals, and dividing the lightning current intensity classification intervals based on this and in combination with the lightning protection requirements of the target area;
[0012] Step S7, processing each lightning current intensity into a corresponding lightning current intensity category according to the lightning current intensity classification interval, and creating a lightning current intensity category sample according to the lightning current intensity category and the time, grid, and meteorological data of the grid and the surrounding area of the grid at the time;
[0013] Step S8, perform one-hot encoding on the lightning current intensity categories in the lightning current intensity category samples to obtain new lightning current intensity category samples, and based on the new lightning current intensity category samples, train a convolutional neural network prediction model with the time of prediction, the location of the prediction grid, and the meteorological data of the area to which the time and location belong as inputs and the probabilities of each category of lightning current intensity as outputs to obtain a lightning current intensity classification prediction convolutional neural network model.
[0014] The present invention is based on the historical lightning location data and meteorological data of the target area, extracts the number of lightning strikes and lightning current intensity information in the target area by statistical lightning data, divides the classification intervals of the number of lightning strikes and lightning current intensity based on the ratio of the two and the lightning protection requirements of the target area, establishes lightning strike number category samples and lightning current intensity category samples based on the lightning strike number category and lightning current intensity category, respectively trains convolutional neural network prediction models with spatiotemporal variables and meteorological parameters as inputs and the probability of each category of lightning strike number or lightning current intensity as output, and realizes the classification prediction of lightning strike number and lightning current intensity. The present method can be used to carry out active protection of lightning faults based on forecast information, which is of great significance to reducing the losses of lightning disasters and improving the level of social lightning protection.
[0015] Beneficial effects of the present invention:
[0016] The present invention trains convolutional neural networks respectively through meteorological parameters, spatiotemporal variables, and categories of lightning strike times and lightning current intensity, and obtains classification prediction models of lightning strike times and lightning current intensity respectively. The method proposed in the present invention divides the number of lightning strikes and lightning current intensity into multiple categories according to the lightning protection needs of the target area, ensuring the practicality of the prediction results in early warning of lightning damage risks. The method utilizes the advantages of convolutional neural networks in extracting local features to improve the accuracy of the classification prediction results of the number of lightning strikes and lightning current intensity. The method takes into account the meteorological conditions around the forecast grid and improves the overall effect of the classification prediction of the number of lightning strikes and lightning current intensity. The method can be used to carry out active protection against lightning faults based on forecast information, which is of great significance to reducing the losses caused by lightning disasters and improving the level of social lightning protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flowchart of the steps for implementing the present invention;
[0018] Figure 2 A flowchart of counting lightning data according to an embodiment of the present invention;
[0019] Figure 3 The scatter points and interpolation curves of the occurrence ratios of different lightning strike frequencies obtained by statistics according to the embodiment of the present invention are as follows;
[0020] Figure 4 It is a structural schematic diagram of a convolutional neural network model for classifying and predicting the number of lightning strikes and lightning current intensity according to an embodiment of the present invention;
[0021] Figure 5 The graph is a scatter plot and an interpolation curve of the proportion of lightning current intensities appearing in different lightning current intensity ranges obtained by statistics according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0023] like Figure 1 The method for constructing a lightning strike prediction model based on a convolutional neural network is characterized in that it includes the following steps:
[0024] Step S1, determine the grid size and duration, and specify the size and prediction duration of the rectangular grid for predicting the number of lightning strikes and lightning current intensity according to the lightning protection requirements of the target area. The target area is a larger spatial range, and the rectangular grid for predicting the number of lightning strikes and lightning current intensity refers to a smaller spatial range covered by each prediction result;
[0025] Step S2, counting lightning data, dividing the target area into multiple grids according to the size of the rectangular grids for predicting the number of lightning strikes and lightning current intensity, dividing the time span of the historical lightning data of the target area into multiple time periods according to the predicted duration of the number of lightning strikes and lightning current intensity, counting the number of lightning ground flashes and the maximum value of the lightning current amplitude of each grid inside the target area in each time period included in the historical lightning data of the target area, which are respectively called the number of lightning strikes and lightning current intensity, and then deleting the number of lightning strikes and lightning current intensity with a value of 0;
[0026] Step S3, dividing the lightning strike frequency into classification intervals, counting the proportions of different lightning strike frequencies, and dividing the lightning strike frequency into classification intervals based on this and in combination with the lightning protection requirements of the target area;
[0027] Step S4, creating a lightning strike frequency category sample, processing each lightning strike frequency into a lightning strike frequency category according to the lightning strike frequency classification interval, creating a lightning strike frequency category sample according to the lightning strike frequency category and its corresponding time, grid, and meteorological data of the grid at the time and the surrounding area of the grid. The meteorological data of a certain grid at a certain time and the surrounding area of the grid are the meteorological data of the grid itself at the time and the grids within a preset range around the grid (such as the grids within a 3×3 range around the grid);
[0028] Step S5, training a lightning strike number classification prediction model, performing one-hot encoding on the lightning strike number categories in the lightning strike number category samples to obtain new lightning strike number samples, and training a convolutional neural network prediction model with the time of the prediction, the location of the prediction grid, and the meteorological data of the area to which the location belongs at the time as input and the probability of each category of the lightning strike number as output according to the new lightning strike number category samples, to obtain a lightning strike number classification prediction convolutional neural network model;
[0029] Step S6, dividing the lightning current intensity into classification intervals, dividing the lightning current intensity intervals with equal spacing between the lightning current intensity of 0 kA and the maximum lightning current intensity, and counting the proportions of lightning current intensity appearing in different lightning current intensity intervals, and dividing the lightning current intensity classification intervals based on this and in combination with the lightning protection requirements of the target area, the lightning current intensity classification intervals are multiple intervals that can process the lightning current intensity into multiple categories;
[0030] Step S7, creating lightning current intensity category samples, processing each lightning current intensity into a corresponding lightning current intensity category according to the lightning current intensity classification interval, and creating lightning current intensity category samples according to the lightning current intensity category and the time, grid to which it belongs, and the meteorological data of the time, grid, and the surrounding area of the grid;
[0031] Step S8, training a lightning current intensity classification prediction model, performing one-hot encoding on the lightning current intensity categories in the lightning current intensity category samples, obtaining new lightning current intensity category samples, and training a convolutional neural network prediction model with the time of the prediction, the location of the prediction grid, and the meteorological data of the area to which the time and the location belong as inputs and the probability of each category of lightning current intensity as outputs according to the new lightning current intensity category samples, to obtain a lightning current intensity classification prediction convolutional neural network model;
[0032] Step S9, divide the target area into multiple grids, and predict the number of lightning strikes and lightning current intensity categories in each grid through the lightning strike number classification prediction convolutional neural network model and the lightning current intensity classification prediction convolutional neural network model respectively, traverse all grids to realize the classification prediction of the number of lightning strikes and lightning current intensity in the target area, and the output result of the lightning strike number classification prediction convolutional neural network model is the probability of each category of the input time and input grid lightning strike number; the output result of the lightning current intensity classification prediction convolutional neural network model is the probability of each category of the input time and input grid lightning current intensity.
[0033] The time span of the historical lightning data in step S2 of the above design scheme is the time period between the start time and the end time of the historical lightning data of the acquired target area.
[0034] In step S3 of the above design scheme, the classification intervals of the number of lightning strikes are multiple intervals that can process the number of lightning strikes into multiple categories.
[0035] The time and grid to which the lightning strike number category belongs in step S4 of the above design scheme are the time and grid where the specific lightning strike number occurs. When one lightning strike number category corresponds to multiple time and grid combinations, each time and grid combination is counted into the lightning strike number category sample.
[0036] In step S6 of the above design solution, the classification intervals of the lightning current intensity are multiple intervals that can process the lightning current intensity into multiple categories.
[0037] The time and grid to which the lightning current intensity category belongs in step S7 of the above design scheme are the time and grid at which the specific lightning current intensity occurs. When one lightning current intensity category corresponds to multiple time and grid combinations, each time and grid combination is included in the lightning current intensity category sample.
[0038] The above technical solution divides the target area into multiple grids, predicts the number of lightning strikes or lightning current intensity categories in one grid each time, and traverses all grids to achieve classification prediction of the number of lightning strikes or lightning current intensity in the target area.
[0039] In step S2 of the above technical solution, the position of each grid is represented by a coordinate pair (lat, lon) consisting of the latitude lat and longitude lon of its lower left vertex. For example, the grid at 25° to 26° north latitude and 110° to 112° east longitude is represented by (25°, 110°).
[0040] The time spanned by the historical lightning data in step S2 of the above technical solution refers to the time period between the start time and the end time of the historical lightning data of the target area obtained. Assuming that the earliest lightning in the historical lightning data occurred at 2:00 on January 1, 2020, and the last lightning occurred at 23:00 on March 15, 2021, the time spanned by the historical lightning data is 2:00 on January 1, 2020-23:00 on March 15, 2021.
[0041] The time of each time period in step S2 of the above technical solution is represented by its starting time. For example, the time period from 14:00 to 17:00 on July 1, 2020 is represented by 14:00 on July 1, 2020.
[0042] In step S2 of the above technical solution, the number of lightning strikes of 0 is equivalent to the lightning current intensity of 0, that is, the number of lightning strikes of a certain grid at a certain time is 0, which means that the lightning current intensity is also 0, and vice versa.
[0043] The ratio of the number of lightning strikes in step S3 of the above technical solution refers to the ratio of the number of occurrences of a specific number of lightning strikes to the number of lightning strikes. Assuming there are 10 lightning strikes, namely 4, 3, 1, 1, 3, 1, 2, 1, 2 and 2, the ratio of the number of lightning strikes 1 is 40%, and the ratio of the number of lightning strikes 2 is 30%. The number of occurrences of lightning strike 1 is 4, and the number of lightning strikes is 10.
[0044] The classification intervals of the number of lightning strikes in step S3 of the above technical solution refer to multiple intervals that can process the number of lightning strikes into multiple categories, such as [1,3), [3,6) and [6,+∞).
[0045] The process of processing each lightning strike number into a lightning strike number category according to the lightning strike number classification interval in step S4 of the above technical solution is exemplified as follows: assuming that the classification intervals of the lightning strike number are [1,3), [3,6) and [6,+∞), the corresponding lightning strike number categories are level 1, level 2 and level 3, that is, if a certain lightning strike number n≥1 and n<3, then the lightning strike number category of n is level 1, and so on; assuming that there are 10 lightning strike numbers, namely 4, 3, 1, 1, 3, 1, 2, 1, 2 and 8, then their lightning strike number categories are level 2, level 2, level 1, level 1, level 2, level 1, level 1, level 1, level 1 and level 3 respectively.
[0046] The time and grid to which the lightning strike number category belongs in step S4 of the above technical solution refers to the time and grid where the specific lightning strike number occurs. For example, the lightning strike number category at 14:00 on July 1, 2020 and the grid (25°, 110°) is level 2, and the time to which level 2 belongs is 14:00 on July 1, 2020 and the grid is (25°, 110°). A time and a grid combination can uniquely determine a lightning strike number category, but a lightning strike number category may appear in different time and grid combinations. For example, the lightning strike number category at 17:00 on July 3, 2020 and the grid (26°, 112°) is also level 2. When a lightning strike number category corresponds to multiple time and grid combinations, each time and grid combination is counted as a lightning strike number category sample.
[0047] The meteorological data in step S4 of the above technical solution refers to atmospheric parameters such as wind speed at 500hPa (hPa), temperature at 700hPa, and the like.
[0048] The meteorological data around a certain grid at a certain time in step S4 of the above technical solution refers to the meteorological data of the surrounding grids and the grid itself in the grid space at that time. Assuming that the size of the rectangular grid for predicting the number of lightning strikes and lightning current intensity is 1° in the latitude direction and 2° in the longitude direction, the meteorological data within the 3×3 range around the grid (26°, 112°) at 17:00 on July 3, 2020 includes the meteorological data of 9 grids at 17:00 on July 3, 2020, namely, (25°, 110°), (25°, 112°), (25°, 114°), (26°, 110°), (26°, 112°), (26°, 114°), (27°, 110°), (27°, 112°) and (27°, 114°). The 3×3 range means the square range centered on the grid (26°, 112°), with 3 grids in the latitude direction and 3 grids in the longitude direction.
[0049] In step S5 of the above technical solution, the one-hot encoding is also called one-bit effective encoding. For a number of lightning strikes, if it has m categories, it will become m binary categories after one-hot encoding. These categories are mutually exclusive and only one is activated at a time. Assuming that the number of lightning strikes has 3 categories, namely level 1, level 2 and level 3, the categories of the number of lightning strikes will become (1, 0, 0), (0, 1, 0) and (0, 0, 1) after one-hot encoding.
[0050] The output result of the convolutional neural network model for lightning strike classification prediction in step S5 of the above technical solution is the probability of each category of the input time and input grid lightning strike number. Assume that there are three categories of lightning strikes, namely level 1, level 2 and level 3. Input the time information (such as 7, 3, 17) and location information (such as 26, 112) of the grid (26°, 112°) at 17:00 on July 3, 2020, and the meteorological data within the 3×3 range around the grid (26°, 112°) at 17:00 on July 3, 2020. The output is 0.1, 0.7 and 0.2, which means: the probability of the lightning strike number category of level 1, level 2 and level 3 in the grid (26°, 112°) at 17:00 on July 3, 2020 is 0.1, 0.7 and 0.2 respectively.
[0051] The process of counting the proportions of lightning current intensities appearing in different lightning current intensity intervals in step S6 of the above technical solution is exemplified as follows: assuming that there are 10 lightning current intensities of 21kA, 33kA, 37kA, 25kA, 36kA, 59kA, 34kA, 29kA, 47kA and 52kA, and 4 intervals are divided starting from 20kA at intervals of 10kA, namely [20,30), [30,40), [40,50) and [50,60) respectively. Then, the proportions of lightning current intensities appearing in [20,30), [30,40), [40,50) and [50,60) are 0.3, 0.4, 0.1 and 0.2 respectively.
[0052] The classification intervals of lightning current intensity in step S6 of the above technical solution refer to multiple intervals that can process lightning current intensity into multiple categories, such as [0, 30kA), [30kA, 90kA), [90kA, 150kA) and [150kA, +∞).
[0053] The process of processing each lightning current intensity into a lightning current intensity category according to the lightning current intensity classification interval in step S7 of the above technical solution is exemplified as follows: assuming that the classification interval of lightning current intensity is [0, 30kA), [30kA, 90kA), [90kA, 150kA) and [150kA, +∞), the corresponding lightning current intensity categories are level 1, level 2, level 3 and level 4, that is, if a lightning current intensity c ≥ 30kA and c < 90A, then the lightning current intensity category of c is level 2, and so on; assuming that there are 10 lightning current intensities, namely 21kA, 93kA, 67kA, 25kA, 36kA, 59kA, 34kA, 29kA, 107kA and 152kA, then their lightning current intensity categories are level 1, level 3, level 2, level 1, level 2, level 2, level 2, level 1, level 3 and level 4, respectively.
[0054] The time and grid to which the lightning current intensity category belongs in step S7 of the above technical solution refers to the time and grid where the specific lightning current intensity occurs. For example, the lightning current intensity category of the grid (25°, 110°) at 14:00 on July 1, 2020 is level 3, and the time to which level 3 belongs is 14:00 on July 1, 2020, and the grid is (25°, 110°). A combination of a time and a grid can uniquely determine a lightning current intensity category, but a lightning current intensity category may appear in different combinations of time and grids. For example, the lightning current intensity category of the grid (26°, 112°) at 17:00 on July 3, 2020 is also level 3. When a lightning current intensity category corresponds to multiple combinations of time and grids, each combination of time and grid is counted into the lightning current intensity category sample.
[0055] The meaning of the meteorological data around a certain grid at a certain time in step S7 of the above technical solution is the same as that in step S4.
[0056] In step S8 of the above technical solution, it is assumed that there are four categories of lightning current intensity, namely level 1, level 2, level 3 and level 4. After one-hot encoding, the lightning current intensity categories become (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0) and (0, 0, 0, 1) respectively.
[0057] The output result of the lightning current intensity classification prediction convolutional neural network model in step S8 of the above technical solution is the probability of each category of lightning current intensity of the input time and input grid. Assume that there are 4 categories of lightning current intensity, namely level 1, level 2, level 3 and level 4. Input the time information (such as 7, 3, 17) and location information (such as 26, 112) of the grid (26°, 112°) at 17:00 on July 3, 2020, and the meteorological data within the 3×3 range around the grid (26°, 112°) at 17:00 on July 3, 2020, and the output is 0.1, 0.5, 0.2 and 0.2, which means: the probability of the lightning current intensity category of level 1, level 2, level 3 and level 4 in the grid (26°, 112°) at 17:00 on July 3, 2020 is 0.1, 0.5, 0.2 and 0.2 respectively.
[0058] The present invention is applicable to large areas where historical lightning data have been accumulated for a long period of time and rich meteorological data can be obtained.
[0059] This embodiment takes the central China region (24.3°-36.3°N, 108.2°-116.45°E) as an example, and adopts a classification prediction method for the number of lightning strikes and lightning current intensity based on a convolutional neural network to establish a classification prediction model for the number of lightning strikes and lightning current intensity. The specific steps include:
[0060] S1. Determine the grid size and duration
[0061] The target area is the central China region. The lightning protection demand is based mainly on the lightning protection requirements of the power grid. The size of the rectangular grid for predicting the number of lightning strikes and lightning current intensity is set to: 0.05° in the latitude direction and 0.05° in the longitude direction, that is, a square grid of 0.05°×0.05°. The prediction period is 3 hours. This is the most commonly used option for power grid lightning strike warning.
[0062] S2. Statistical lightning data
[0063] This example obtains lightning data in central China in 2020. The historical lightning data spans the period from 2:00 on January 1, 2020 to 23:00 on December 31, 2020. The specific method for calculating lightning data is as shown in the attached figure. Figure 2 As shown, the details are as follows:
[0064] A. Divide the period of lightning data into 2928 time periods at intervals of 3 hours to form a time sequence T, and each time period is represented by its starting time;
[0065] B. Divide the forecast area into 241×166=40006 square grids of 0.05°×0.05°. The spatial position of each grid is represented by the latitude of its lower left corner vertex lat i(1≤i≤241) and longitude lon j (1≤j≤166) composed of coordinate pairs (lat i ,lon j )express;
[0066] C. For each time t in T k (1≤k≤2928), obtain the lightning record L at that time k ;
[0067] D. In L k Statistics for each grid (lat i ,lon j ) at time t k The number of lightning ground flashes and the maximum value of the lightning current amplitude of all lightning ground flashes are called the number of lightning strikes and the lightning current intensity respectively;
[0068] E. Delete the number of lightning strikes and lightning current intensity with a value of 0.
[0069] Finally, the number of lightning strikes and lightning current intensity are both 5.11×10 5 indivual.
[0070] S3. Classification of lightning strike frequency
[0071] The scattered points and interpolation curves of the occurrence ratio of lightning strikes in Central China in 2020 are shown in the attached figure. Figure 3 As shown in the figure, the horizontal axis is the specific number of lightning strikes, and the vertical axis is the proportion of the corresponding number of lightning strikes. For example, the proportion of lightning strike number 1 is 40%, and the proportion of lightning strike number 2 is 14%. The lightning strike number 1 with the largest proportion is taken as a category, that is, the lightning strike number level 1; the lightning strike numbers 2 to 9 with a proportion greater than 1% are taken as a category, that is, the lightning strike number level 2; the lightning strike numbers with a proportion less than or equal to 1% are taken as a category, that is, the lightning strike number level 3. The lightning strike number classification intervals and the corresponding lightning strike number categories are shown in Table 1.
[0072] Table 1 Classification intervals of lightning strike frequency and corresponding lightning strike frequency categories
[0073]
[0074] S4. Create lightning strike frequency category samples
[0075] According to Table 1, 5.11×10 5 Each of the lightning strikes is converted into a lightning strike category according to the interval to which it belongs. A lightning strike category sample is created based on each lightning strike category and its corresponding time, grid, and the meteorological data of the 25×25 area around the grid. The total number of lightning strike category samples is 5.11×10 5Each lightning strike frequency category sample contains the following contents: lightning strike frequency category, time information (month, date, hour) of the time to which the lightning strike frequency category belongs, location information (latitude, longitude) of the grid to which the lightning strike frequency category belongs, and meteorological data of the 25×25 range around the grid at the time.
[0076] There are 17 types of meteorological data, namely 850hPa specific humidity, severe weather threat index, 850hPa temperature, 500hPa wind speed V component, energy curl EHI, 500hPa wind speed U component, 500hPa temperature, lifting index, convective effective potential energy, 500hPa specific humidity, zero-degree layer height, 850hPa wind speed V component, 700hPa temperature, 850hPa wind speed U component, maximum ascent speed, 925hPa temperature, and 700hPa specific humidity.
[0077] S5. Training of lightning strike classification prediction model
[0078] Perform unique-hot encoding on the lightning strike number category in each lightning strike number category sample to obtain a new lightning strike number sample. The new lightning strike number sample is randomly divided into two mutually exclusive parts, called the new lightning strike number training set and the new lightning strike number test set, with a number of 3.50×10 5 and 1.61×10 5 , where the new lightning strike number training set is used to train the lightning strike number classification prediction convolutional neural network model, and the new lightning strike number test set is used to test the performance of the lightning strike number classification prediction convolutional neural network model.
[0079] The structure of the convolutional neural network model for lightning strike classification prediction is shown in the attached figure. Figure 4 As shown in the figure, Conv2D is a 2D convolutional layer, MaxPooling2D is a 2D maximum pooling layer, Dense is a dense connection layer, concatenate is a merging layer, and y is the output result. Each 2D convolutional layer has 64 filters, the number of nodes in dense connection layers 1 to 3 (or 6 to 8) is 128, 128, and 64 respectively, the number of nodes in fully connected layers 4 and 5 is 128 and 64, and the number of nodes in dense connection layer 9 is 3. The activation functions ReLU and softmax are shown in equations (1) to (2) respectively.
[0080] ReLU(x)=max(0,x) (1)
[0081]
[0082] In the formula, m is the number of categories, z is iis the output value of the ith node in the output layer. For this embodiment, the number of categories is 3, x is the independent variable of the function, e is a natural constant, i and j are integers between 1 and m, representing the number of the output layer nodes, j represents the accumulated number in the denominator, i represents that this formula can calculate the softmax function value of the ith node, i can be changed, so all softmax values between 1 and m can be calculated.
[0083] In order to evaluate the performance of the convolutional neural network model for lightning strike classification prediction, a multi-classification index is introduced here, and its calculation basis is the multi-classification confusion matrix. For a multi-classification task with m categories, its confusion matrix is shown in Table 2.
[0084] Table 2 Multi-classification confusion matrix
[0085]
[0086] Table 2 F i P j represents the frequency of incorrectly predicting category i as category j, T i P i Represents the frequency of predicting category i as category i, where i,j = 1, 2, ..., m. The calculation of multi-classification indicators requires simplifying the multi-classification problem into multiple binary classification problems and calculating their respective classification indicators. Taking category i as an example, the frequency of correctly predicting category i is TP i =T i P i , the frequency FP of incorrectly predicting other categories as category i i
[0087]
[0088] The frequency of incorrectly predicting category i as other categories FN i
[0089]
[0090] Then the hit rate POD of category i is i 、Precision i and F1 value F 1i It can be calculated according to formula (5) to (7), F 1i Represents the F1 value of the i-th category.
[0091]
[0092]
[0093]
[0094] In order to evaluate the performance of the multi-classifier from the overall classification of all categories, it is necessary to average the classification indicators. Common methods include macro average, micro average and weighted average. Since the occurrence rate of strong lightning activities with a large number of lightning strikes and large lightning current amplitudes is relatively small but the harm to the power grid is greater, this embodiment adopts the weighted average that focuses on a small number of sample categories. This method averages the classification indicators with the proportion of samples in each category as the weight, and the weighted average hit rate POD, weighted average precision rate Pre and weighted average F1 value can be calculated by formulas (8) to (10).
[0095]
[0096]
[0097]
[0098] Where n is the number of samples, n i is the number of samples of category i in the sample.
[0099] Before testing the performance of the convolutional neural network model for lightning strike classification prediction, it is necessary to convert the lightning strike classification prediction results into lightning strike categories. The specific process is as follows: Assuming that the results of a sample in the new lightning strike test set after the lightning strike classification prediction convolutional neural network model operation are 0.1, 0.7 and 0.2, it means that the probability of the lightning strike category prediction result of the sample being level 2 is the largest (0.7), then the prediction result of the sample is regarded as level 2.
[0100] The classification indicators of the convolutional neural network model for lightning strike number classification prediction obtained in this embodiment on the new lightning strike number test set are shown in Table 3.
[0101] Table 3 Classification indicators of the convolutional neural network model for lightning strike classification prediction
[0102]
[0103] S6. Classification of lightning current intensity
[0104] The lightning current intensity intervals were divided into intervals of 1kA between 0 and the maximum value of 539kA, and the proportion of lightning current intensity appearing in these lightning current intensity intervals was counted. The results are shown in the attached figure. Figure 5As shown. The horizontal axis in the figure is the serial number of the lightning current intensity interval, 0 represents [0,1kA), 1 represents [1kA,2kA)... and so on, and the vertical axis is the proportion of lightning current intensity appearing in the corresponding lightning current intensity interval, for example, the proportion of lightning current intensity appearing in the interval [15kA,16kA) is 2.2%, and the proportion appearing in the interval [81kA,82kA) is 0.4%. The strike-back lightning resistance level of single-circuit lines with overhead ground wires specified in GB / T50064-2014 "Design Code for Overvoltage Protection and Insulation Coordination of AC Electrical Installations" is shown in Table 4, and the lightning current intensity classification intervals and corresponding lightning current intensity categories based on this are shown in Table 5.
[0105] Table 4 Required values of lightning strike resistance level for single-circuit lines with overhead ground wire
[0106]
[0107] Table 5 Lightning current intensity classification intervals and corresponding lightning current intensity categories
[0108]
[0109] S7. Create lightning current intensity category samples
[0110] According to Table 5, 5.11×10 5 Each lightning current intensity is converted into a lightning current intensity category according to its interval. A lightning current intensity category sample is created based on each lightning current intensity category and its corresponding time, grid, and meteorological data in the 25×25 range around the grid. The total number of lightning current intensity category samples is 5.11×10 5 Each lightning current intensity category sample contains the following contents: lightning current intensity category, time information (month, date, hour) of the time to which the lightning current intensity category belongs, location information (latitude, longitude) of the grid to which the lightning current intensity category belongs, and meteorological data of the 25×25 range around the grid at the time. The types of meteorological data are the same as those in step S4.
[0111] S8. Training lightning current intensity classification prediction model
[0112] Perform unique-hot encoding on the lightning current intensity category in each lightning current intensity category sample to obtain a new lightning current intensity sample. The new lightning current intensity sample is randomly divided into two mutually exclusive parts, called the new lightning current intensity training set and the new lightning current intensity test set, with a number of 3.50×10 5 and 1.61×10 5 , where the new lightning current intensity training set is used to train the lightning current intensity classification and prediction convolutional neural network model, and the new lightning current intensity test set is used to test the performance of the lightning current intensity classification and prediction convolutional neural network model.
[0113] The structure of the convolutional neural network model for lightning current intensity classification prediction is shown in the attached figure. Figure 4 As shown, the number of nodes in the densely connected layer 9 is 4, and the other parameters are the same as step 5. Before testing the performance of the lightning current intensity classification prediction convolutional neural network model, the lightning current intensity classification prediction result needs to be converted into a lightning current intensity category. The specific process is as follows: Assuming that the output of a sample in the new lightning current intensity test set after the lightning current intensity classification prediction convolutional neural network model is calculated as 0.1, 0.3, 0.4 and 0.2, it means that the probability of the lightning current intensity category prediction result of the sample being level 3 is the largest (0.4), and the prediction result of the sample is regarded as level 3.
[0114] The classification indicators of the lightning current intensity classification prediction convolutional neural network model obtained in this embodiment on the new lightning current intensity test set are shown in Table 6.
[0115] Table 6 Classification indicators of the convolutional neural network model for lightning current intensity classification prediction
[0116]
[0117] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
Claims
1. A method for constructing a lightning strike prediction model based on a convolutional neural network, characterized in that: It includes the following steps: Step S1, according to the lightning protection requirements of the target area, specify the size and prediction time of the rectangular grid for predicting the number of lightning strikes and lightning current intensity; Step S2, dividing the target area into multiple grids according to the size of the rectangular grid for predicting the number of lightning strikes and lightning current intensity, dividing the time span of the historical lightning data of the target area into multiple time periods according to the predicted duration of the number of lightning strikes and lightning current intensity, and counting the number of lightning ground flashes and the maximum value of the lightning current amplitude of each grid inside the target area in each time period included in the historical lightning data of the target area, which are respectively called the number of lightning strikes and lightning current intensity, and then deleting the number of lightning strikes and lightning current intensity with a value of 0; Step S3, counting the proportions of different lightning strike frequencies, and dividing the lightning strike frequency into classification intervals based on this and in combination with the lightning protection requirements of the target area; Step S4, processing each lightning strike number into a lightning strike number category according to the lightning strike number classification interval, and creating a lightning strike number category sample according to the lightning strike number category and its corresponding time, grid, and meteorological data of the grid and the surrounding area of the grid; Step S5, performing one-hot encoding on the number of lightning strikes in the number of lightning strikes category samples to obtain new number of lightning strikes category samples, and training a convolutional neural network prediction model with the time of the prediction, the location of the prediction grid, the meteorological data of the grid to which the location belongs at the time, and the meteorological data of the surrounding area of the grid as inputs and the probability of each category of the number of lightning strikes as outputs according to the new number of lightning strikes category samples, to obtain a convolutional neural network model for classification prediction of the number of lightning strikes; Step S6, dividing the lightning current intensity intervals into equally spaced intervals between the lightning current intensity of 0 kA and the maximum lightning current intensity, counting the proportions of lightning current intensities appearing in different lightning current intensity intervals, and dividing the lightning current intensity classification intervals based on this and in combination with the lightning protection requirements of the target area; Step S7, processing each lightning current intensity into a corresponding lightning current intensity category according to the lightning current intensity classification interval, and creating a lightning current intensity category sample according to the lightning current intensity category and the time, grid, and meteorological data of the grid and the surrounding area of the grid at the time; Step S8, perform one-hot encoding on the lightning current intensity categories in the lightning current intensity category samples to obtain new lightning current intensity category samples, and based on the new lightning current intensity category samples, train a convolutional neural network prediction model with the time of the prediction, the location of the prediction grid, the meteorological data of the grid to which the time and the location belong, and the meteorological data of the surrounding area of the grid as inputs and the probabilities of each category of lightning current intensity as outputs to obtain a convolutional neural network model for lightning current intensity classification prediction.
2. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The step S8 includes a step S9, which divides the target area into multiple grids, and predicts the number of lightning strikes and the lightning current intensity category in each grid through a lightning strike number classification prediction convolutional neural network model and a lightning current intensity classification prediction convolutional neural network model, and traverses all grids to achieve classification prediction of the number of lightning strikes and lightning current intensity in the target area.
3. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The time span of the historical lightning data in step S2 is the time period between the start time and the end time of the historical lightning data of the acquired target area.
4. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The ratio of the number of lightning strikes in step S3 is the ratio of the number of occurrences of a specific number of lightning strikes to the number of lightning strikes.
5. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The classification intervals of the number of lightning strikes in step S3 are multiple intervals that can process the number of lightning strikes into multiple categories.
6. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The time and grid to which the lightning strike number category belongs in step S4 are the time and grid where the specific lightning strike number occurs. When one lightning strike number category corresponds to multiple time and grid combinations, each time and grid combination is counted into the lightning strike number category sample.
7. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The meteorological data of a certain grid and its surrounding area at a certain time in step S4 are the meteorological data of the grid itself and the grids around the grid at that time.
8. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The classification intervals of the lightning current intensity in step S6 are multiple intervals that can process the lightning current intensity into multiple categories.
9. The method for constructing a lightning strike prediction model based on a convolutional neural network according to claim 1, characterized in that: The time and grid to which the lightning current intensity category belongs in step S7 are the time and grid where a specific lightning current intensity occurs. When one lightning current intensity category corresponds to multiple time and grid combinations, each time and grid combination is counted into the lightning current intensity category sample.
Citation Information
Patent Citations
Lightning early warning method, system, electronic device and storage medium
CN108427041A
Apron thunder and lightning security protection system and method
CN108761570A
Hill fire risk prediction method based on stacking algorithm
CN109447331A
Lightning prediction method
CN110796299A
Lightning prediction method and device, computer equipment and computer readable storage medium
CN111242374A
