Lightning electric field waveform classification method, system, equipment and medium

Through the feature extraction and classification detection of the target electric field waveform classification model, the problem of lightning electric field waveform classification that is difficult to achieve with the deep learning algorithm on the mobile terminal is solved, and fast and efficient classification is achieved, which is suitable for mobile terminal applications.

CN118537639APending Publication Date: 2024-08-23MAINTENANCE & TEST CENTRE CSG EHV POWER TRANSMISSION CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410623805.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, the high computing power required for deep learning algorithms to classify lightning electric field waveforms is difficult to implement on the mobile terminal, resulting in slow response speed and reduced classification efficiency.

Method used

The target electric field waveform classification model is adopted. This model includes a feature extraction network and a classification network. Through feature extraction and classification detection, the waveform data to be classified is quickly classified. The model converges quickly when dealing with complex classification problems, requires little computing power, and is suitable for Installed on mobile terminal.

Benefits of technology

While ensuring the recognition accuracy, the rapid classification of lightning electric field waveforms is achieved and the classification efficiency is improved. The identification module of lightning electric field waveforms is implemented on the mobile terminal, which improves the classification efficiency of lightning electric field waveforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537639A
    Figure CN118537639A
Patent Text Reader

Abstract

The invention discloses a lightning electric field waveform classification method, system, equipment and medium, and relates to the technical field of lightning electric field waveform classification. Training electric field waveform data is acquired, data preprocessing is performed on the training electric field waveform data, and an electric field waveform feature set is generated; a preset electric field waveform classification model is trained through the electric field waveform feature set, a target electric field waveform classification model is generated, the target electric field waveform classification model comprises a feature extraction network and a classification network, when to-be-classified waveform data is received, a to-be-classified waveform image is constructed according to the to-be-classified waveform data, and the to-be-classified waveform image is obtained. And performing feature extraction on the to-be-classified waveform image through the feature extraction network to generate a waveform feature graph, and performing classification detection on the waveform feature graph by adopting the classification network to obtain a classification result. The technical problems that the thunder and lightning electric field waveform is identified and classified through a deep learning algorithm in the prior art, but the deep learning algorithm has a high requirement for system computing power and is slow in response speed are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lightning electric field waveform classification, and in particular to a lightning electric field waveform classification method, system, equipment and medium. Background Art

[0002] Lightning is a large-scale atmospheric discharge phenomenon that poses a great threat to human production and life. Therefore, the research and protection of lightning are becoming increasingly important. The electromagnetic waves generated during lightning discharge are the main objects of lightning detection. Among them, by collecting the very low frequency / low frequency (VLF / Low Frequency) signals of lightning discharge, different types of lightning activities can be distinguished, and further lightning location and lightning current and other lightning characteristic parameters can be inverted. However, the similar electric field waveforms of different lightning processes have brought huge challenges to the classification of lightning waveforms and the subsequent lightning location and lightning characteristic parameter inversion. Therefore, it is very necessary to classify the waveforms of lightning discharge processes.

[0003] At present, lightning electric field waveform classification is mainly carried out through deep learning algorithms to identify and classify lightning electric field waveforms. However, deep learning algorithms have high requirements on system computing power and cannot be installed on mobile terminals. The response speed is slow, which reduces the classification efficiency of lightning electric field waveforms. Summary of the invention

[0004] The present invention provides a lightning electric field waveform classification method, system, device and medium, which solves the technical problem that the current lightning electric field waveform classification is mainly carried out through deep learning algorithm to identify and classify lightning electric field waveforms, but the deep learning algorithm has high requirements on system computing power, cannot be installed on the mobile terminal, has slow response speed, and reduces the classification efficiency of lightning electric field waveforms.

[0005] A first aspect of the present invention provides a method for classifying lightning electric field waveforms, comprising:

[0006] Acquiring training electric field waveform data, performing data preprocessing on the training electric field waveform data, and generating an electric field waveform feature set;

[0007] The electric field waveform feature set is used to train a preset electric field waveform classification model to generate a target electric field waveform classification model, wherein the target electric field waveform classification model includes a feature extraction network and a classification network;

[0008] When the waveform data to be classified is received, a waveform image to be classified is constructed according to the waveform data to be classified;

[0009] Extracting features of the waveform image to be classified through the feature extraction network to generate a waveform feature graph;

[0010] The classification network is used to perform classification detection on the waveform feature graph to obtain a classification result.

[0011] Optionally, the step of constructing a waveform image to be classified according to the waveform data to be classified comprises:

[0012] Performing a windowing operation on the waveform data to be classified based on a preset noise reduction window to obtain windowed waveform data;

[0013] Filtering the window waveform data to obtain intermediate waveform data;

[0014] The intermediate waveform data is used to construct a waveform image to be classified.

[0015] Optionally, the feature extraction network includes a 3×3 standard convolution layer, a first convolution module, a 2×2 maximum pooling layer, a first convolution module, and a second convolution module connected in sequence, and the step of extracting features of the waveform image to be classified through the feature extraction network to generate a waveform feature map includes:

[0016] Using a 3×3 standard convolutional layer to extract features of the waveform image to be classified to generate a first feature map;

[0017] Performing feature extraction on the first feature map through a first convolution module to generate a second feature map, wherein the first convolution module includes a 3×3 standard convolution layer, a batch normalization layer, and a Leaky-ReLU activation layer connected in sequence;

[0018] Pooling the second feature map through a 2×2 maximum pooling layer to generate a third feature map;

[0019] Using the first convolution module to perform feature extraction on the third feature map to generate a fourth feature map;

[0020] The second convolution module is used to perform feature extraction on the fourth feature map to generate a waveform feature map, wherein the second convolution module includes a first extraction branch, a second extraction branch, a third extraction branch and a feature fusion layer.

[0021] Optionally, the step of extracting features from the fourth feature map by the second convolution module to generate a waveform feature map includes:

[0022] Using the first extraction branch to perform feature extraction on the fourth feature map to generate a fifth feature map, wherein the first extraction branch includes sixty-four 1×1 standard convolutional layers connected in sequence;

[0023] Performing feature extraction on the fourth feature map through the second extraction branch to generate a sixth feature map, wherein the second extraction branch includes sixty-four 1×1 standard convolutional layers and thirty-two 3×3 standard convolutional layers connected in sequence;

[0024] Performing feature extraction on the fourth feature map through the third extraction branch to generate a seventh feature map, wherein the third extraction branch includes sixty-four 1×1 standard convolutional layers and sixty-four 3×3 standard convolutional layers;

[0025] A feature fusion layer is used to perform feature fusion on the fourth feature map, the fifth feature map, the sixth feature map and the seventh feature map to generate a waveform feature map.

[0026] Optionally, the classification network includes a first convolution module, a third convolution module and a Soflmax layer connected in sequence, and the step of using the classification network to classify and detect the waveform feature map to obtain a classification result includes:

[0027] Extracting features from the waveform feature map through a first convolution module to generate an eighth feature map;

[0028] Using the third convolution module to extract features from the eighth feature map to generate a classification score map, wherein the third convolution module includes a 2×2 maximum pooling layer, a tiling layer, and a fully connected layer connected in sequence;

[0029] The Soflmax layer is used to classify the classification score map to obtain a classification result.

[0030] Optionally, the step of using the third convolution module to extract features from the eighth feature map to generate a classification score map includes:

[0031] Pooling the eighth feature map through a 2×2 maximum pooling layer to generate a ninth feature map;

[0032] Performing a vector conversion operation on the ninth feature map by using a tiling layer to obtain a classification feature vector;

[0033] The classification feature vector is nonlinearly transformed through a fully connected layer to obtain a classification score map.

[0034] Optionally, the electric field waveform feature set includes training sample data and the step of using the electric field waveform feature set to train a preset electric field waveform classification model to generate a target electric field waveform classification model includes:

[0035] Using the electric field waveform feature set to input a preset electric field waveform classification model for training, and outputting training classification data;

[0036] Calculating the training loss function value of the electric field waveform feature set according to the training classification data;

[0037] When the training loss function value is greater than or equal to a preset loss threshold, a gradient descent method is used to adjust the network parameters of the electric field waveform classification model until the training loss function value is less than the loss threshold;

[0038] When the training loss function value is less than the loss threshold, a target electric field waveform classification model is generated.

[0039] A second aspect of the present invention provides a lightning electric field waveform classification system, comprising:

[0040] A preprocessing module, used to obtain training electric field waveform data, perform data preprocessing on the training electric field waveform data, and generate an electric field waveform feature set;

[0041] A training module, used to train a preset electric field waveform classification model using the electric field waveform feature set to generate a target electric field waveform classification model, wherein the target electric field waveform classification model includes a feature extraction network and a classification network;

[0042] A response module, configured to construct a waveform image to be classified according to the waveform data to be classified when the waveform data to be classified is received;

[0043] An extraction module, used for performing feature extraction on the waveform image to be classified through the feature extraction network to generate a waveform feature graph;

[0044] The classification module is used to use the classification network to classify and detect the waveform feature graph to obtain a classification result.

[0045] A third aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for classifying lightning electric field waveforms as described in any one of the above items.

[0046] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the lightning electric field waveform classification method as described in any one of the above items.

[0047] It can be seen from the above technical solutions that the present invention has the following advantages:

[0048] The present invention classifies the waveform data to be classified based on the target electric field waveform classification model, and realizes the rapid classification of the waveform data to be classified while ensuring the recognition accuracy. The target electric field waveform classification model shows excellent performance in processing complex classification problems, especially in problems involving waveform classification. The model converges quickly when performing waveform classification and requires small computing power. It can be built on a mobile terminal as a lightning electric field waveform recognition module, which helps to improve the classification efficiency of lightning electric field waveforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0050] Figure 1 A flowchart of a method for classifying lightning electric field waveforms provided in Embodiment 1 of the present invention;

[0051] Figure 2 A flow chart of the steps of a lightning electric field waveform classification method provided in the second embodiment of the present invention

[0052] Figure 3 A schematic diagram of the structure of a target electric field waveform classification model provided in the second embodiment of the present invention;

[0053] Figure 4 A ReLU activation function diagram provided in Embodiment 2 of the present invention;

[0054] Figure 5 The Leaky-ReLU activation function diagram provided in the second embodiment of the present invention;

[0055] Figure 6 A structural block diagram of a lightning electric field waveform classification system provided in Embodiment 3 of the present invention;

[0056] Figure 7 This is a structural block diagram of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0057] The embodiments of the present invention provide a lightning electric field waveform classification method, system, device and medium, which are used to solve the technical problem that the current lightning electric field waveform classification is mainly carried out through deep learning algorithms to identify and classify lightning electric field waveforms, but the deep learning algorithm has high requirements on system computing power, cannot be installed on a mobile terminal, has a slow response speed, and reduces the classification efficiency of the lightning electric field waveform.

[0058] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] See also Figure 1 , Figure 1 A flowchart of the steps of a method for classifying lightning electric field waveforms provided in Embodiment 1 of the present invention.

[0060] The present invention provides a lightning electric field waveform classification method, comprising:

[0061] Step 101: acquiring training electric field waveform data, performing data preprocessing on the training electric field waveform data, and generating an electric field waveform feature set;

[0062] The training electric field waveform data refers to the historical lightning waveform data.

[0063] In an embodiment of the present invention, training electric field waveform data is obtained, the training electric field waveform data is filtered through a preset high-energy window to obtain intermediate electric field waveform data, the intermediate electric field waveform data is filtered to obtain intermediate training data, and then the intermediate training data is labeled to generate an electric field waveform feature set.

[0064] Step 102: training a preset electric field waveform classification model using an electric field waveform feature set to generate a target electric field waveform classification model, wherein the target electric field waveform classification model includes a feature extraction network and a classification network;

[0065] In an embodiment of the present invention, an electric field waveform feature set is used to train a preset electric field waveform classification model to generate training classification data, and a loss function value of the electric field waveform feature set is calculated based on the training classification data. When the loss function value is less than a preset loss threshold, a target electric field waveform classification model is generated. When the loss function value is greater than or equal to the preset loss threshold, the gradient descent method is used to adjust the network parameters of the electric field waveform classification model, and the step of training the preset electric field waveform classification model using the electric field waveform feature set to generate training classification data is executed until the loss function value is less than the preset loss threshold.

[0066] It should be noted that the standard electric field waveform classification model is an improved LeNet model.

[0067] Step 103: when the waveform data to be classified is received, a waveform image to be classified is constructed according to the waveform data to be classified;

[0068] In the embodiment of the present invention, when waveform data to be classified is received, data preprocessing is performed on the waveform data to obtain intermediate waveform data, and the waveform image to be classified is constructed using the intermediate waveform data.

[0069] Step 104, extracting features from the waveform image to be classified through a feature extraction network to generate a waveform feature graph;

[0070] In an embodiment of the present invention, a feature extraction network is used to extract features from a waveform image to be classified to generate a waveform feature map, wherein the feature extraction network includes a 3×3 standard convolution layer, a first convolution module, a 2×2 maximum pooling layer, a first convolution module, and a second convolution module connected in sequence.

[0071] Step 105: Use a classification network to classify and detect the waveform feature graph to obtain a classification result.

[0072] In an embodiment of the present invention, the waveform feature graph is classified and detected through a classification network to obtain a classification result, wherein the classification network includes a first convolution module, a third convolution module and a Soflmax layer connected in sequence.

[0073] It should be noted that the classification results can be that the waveform data to be classified is a pre-breakdown (PB) waveform, the waveform data to be classified is a narrow bipolar pulse (NBE) waveform, the waveform data to be classified is a positive ground lightning return stroke (+RS) waveform, the negative ground lightning return stroke (-RS) waveform, or the waveform data to be classified is a cloud flash (IC) waveform.

[0074] In an embodiment of the present invention, training electric field waveform data is obtained, data preprocessing is performed on the training electric field waveform data, an electric field waveform feature set is generated, the electric field waveform feature set is used to train a preset electric field waveform classification model, and a target electric field waveform classification model is generated, wherein the target electric field waveform classification model includes a feature extraction network and a classification network. When waveform data to be classified is received, a waveform image to be classified is constructed according to the waveform data to be classified, and features are extracted from the waveform image to be classified through the feature extraction network to generate a waveform feature map, and the waveform feature map is classified and detected using the classification network to obtain a classification result. This solves the existing technical problem of identifying and classifying lightning electric field waveforms through deep learning algorithms, but the deep learning algorithm has high requirements on system computing power, cannot be installed on mobile terminals, and has slow response speed. The present invention classifies the waveform data to be classified based on the target electric field waveform classification model, and realizes the rapid classification of the waveform data to be classified while ensuring the recognition accuracy. The target electric field waveform classification model shows excellent performance in processing complex classification problems, especially in problems involving waveform classification. The model converges quickly when performing waveform classification and requires small computing power. It can be built on a mobile terminal as a lightning electric field waveform recognition module, which helps to improve the classification efficiency of lightning electric field waveforms.

[0075] See also Figure 2 , Figure 2 A flowchart of the steps of a method for classifying lightning electric field waveforms provided in Embodiment 2 of the present invention.

[0076] Step 201: Acquire training electric field waveform data, perform data preprocessing on the training electric field waveform data, and generate an electric field waveform feature set;

[0077] In an embodiment of the present invention, training electric field waveform data is obtained, the training electric field waveform data is filtered to obtain filtered training electric field waveform data, multiple training electric field waveform images are constructed using the filtered training electric field waveform data, the training electric field waveform images are annotated according to the lightning electric field waveform, multiple intermediate training waveform images are obtained, the multiple intermediate training waveform images are normalized and grayscale image processed, and an electric field waveform feature set is generated. The electric field waveform feature set is divided into a training set and a test set according to an 8:2 ratio.

[0078] It should be noted that the lightning electric field waveform includes the pre-breakdown (PB) waveform, the narrow bipolar pulse (NBE) waveform, the positive ground-to-ground return stroke (+RS) waveform, the negative ground-to-ground return stroke (-RS) waveform and the cloud-to-cloud (IC) waveform.

[0079] Step 202: training a preset electric field waveform classification model using an electric field waveform feature set to generate a target electric field waveform classification model, wherein the target electric field waveform classification model includes a feature extraction network and a classification network;

[0080] Further, step 202 includes the following sub-steps:

[0081] S11, using the electric field waveform feature set to input a preset electric field waveform classification model for training, and outputting training classification data;

[0082] In the embodiment of the present invention, the electric field waveform feature set is used to train the preset electric field waveform classification model, and the training classification data is output.

[0083] S12, calculating the training loss function value of the electric field waveform feature set according to the training classification data;

[0084] In an embodiment of the present invention, verification classification data corresponding to the training classification data is screened out from the electric field waveform feature set, the difference value between the verification classification data and the training classification data is calculated and the difference value is used as the training loss function value.

[0085] It should be noted that the training classification data includes multiple training classification results. By comparing each training classification result with the verification classification result of the verification classification data one by one, the difference value between the verification classification data and the training classification data can be obtained.

[0086] S13, when the training loss function value is greater than or equal to a preset loss threshold, the network parameters of the electric field waveform classification model are adjusted using a gradient descent method until the training loss function value is less than the loss threshold;

[0087] In an embodiment of the present invention, when the training loss function value is greater than or equal to a preset loss threshold, the network parameters of the electric field waveform classification model are adjusted using the gradient descent method based on a preset learning rate until the training loss function value is less than the loss threshold.

[0088] It should be noted that when using the gradient descent method to adjust the network parameters of the electric field waveform classification model, it is necessary to observe the classification accuracy and classification decline during the model training process, and adjust the learning rate according to the situation until the model is stable.

[0089] S14. When the training loss function value is less than the loss threshold, a target electric field waveform classification model is generated.

[0090] In an embodiment of the present invention, when the training loss function value is less than the loss threshold, a target electric field waveform classification model is generated.

[0091] Step 203: when the waveform data to be classified is received, a windowing operation is performed on the waveform data to be classified based on a preset noise reduction window to obtain windowed waveform data;

[0092] In an embodiment of the present invention, when waveform data to be classified is received, a preset noise reduction window is used to perform a windowing operation on the waveform data to be classified to obtain windowed waveform data, wherein the window length is set to 1000 μs and the step length is 200 μs.

[0093] The high energy function within the noise reduction window is specifically:

[0094]

[0095] Where E is the window energy, x i is the amplitude of the i-th sample in the window, N is the number of samples in the window, and i is the sample number.

[0096] It is worth mentioning that the denoising window can remove invalid noise windows whose energy is less than the threshold.

[0097] Step 204, filtering the window waveform data to obtain intermediate waveform data;

[0098] In an embodiment of the present invention, a recursive least squares (RLS) adaptive filter is used to filter the window waveform data, and then a symmetrical filter is used based on a zero-phase filtering method to perform secondary filtering on the filtered window waveform data to obtain intermediate waveform data.

[0099] It should be noted that after adaptive filtering, the signal may be phase distorted due to the phase response of the filter. The zero-phase filtering method can ensure that the phase of the window waveform data signal after filtering remains unchanged.

[0100] It is worth mentioning that the recursive least squares (RLS) adaptive filter mainly achieves optimization and filtering by updating the filter coefficients by minimizing the weighted square error of the input signal. The weight update formula is as follows:

[0101] w(n+1)=w(n)+k(n)·e(n)

[0102]

[0103]

[0104] Among them, λ is the forgetting factor, e(n) is the calculation error, w(n) is the weight vector, k(n) is the gain vector, x(n) is the input vector, P(n) is the error covariance matrix, and n is the number of iterations.

[0105] Step 205: construct a waveform image to be classified using the intermediate waveform data.

[0106] In the embodiment of the present invention, the waveform image to be classified is constructed by using the intermediate waveform data, wherein the waveform image to be classified is a 512*512*3 RGB image.

[0107] It is worth mentioning that the current existing technology can also achieve efficient filtering, but it cannot cope with complex background noise conditions. At the same time, the original waveform characteristic parameters may be changed during the filtering process, affecting the subsequent application of the data. Compared with the existing adaptive filtering algorithm and zero-phase filtering algorithm, it can achieve efficient filtering while retaining the original characteristics of the waveform, and can automatically adjust according to changes in background noise, thereby improving the accuracy of subsequent classification.

[0108] Step 206, extracting features from the waveform image to be classified through a feature extraction network to generate a waveform feature graph;

[0109] Further, the feature extraction network includes a 3×3 standard convolution layer, a first convolution module, a 2×2 maximum pooling layer, a first convolution module, and a second convolution module connected in sequence, and step 206 includes the following sub-steps:

[0110] S21, using a 3×3 standard convolutional layer to extract features of the waveform image to be classified to generate a first feature map;

[0111] In the embodiment of the present invention, a 3×3 standard convolution layer (the number of convolution kernels is 32, the step size is 2, and the padding is 1) is used to extract features of the waveform image to be classified and generate a 32*256*256 first feature map.

[0112] S22, extracting features from the first feature map through a first convolution module (CBL1 module) to generate a second feature map, wherein the first convolution module includes a 3×3 standard convolution layer, a batch normalization layer, and a Leaky-ReLU activation layer connected in sequence;

[0113] In an embodiment of the present invention, a first convolution module is used to perform feature extraction on the first feature map to generate a 64*128*128 second feature map, wherein the first convolution module includes a 3×3 standard convolution layer (the number of convolution kernels is 64, the step size is 2, and the padding is 1), a batch normalization layer, and a Leaky-ReLU activation layer connected in sequence.

[0114] It should be noted that, see Figure 3-5 The first convolution module (CBL module) consists of a convolution layer, a batch normalization layer, and a leaky-ReLU activation function. It is designed to enhance the ability of feature extraction while reducing the number of parameters in the model. The core is the convolution layer. After the convolution and padding operations in the CBL module, the output feature map size can be made 1 / 2 of the input, effectively controlling the receptive field of the neural network. The batch normalization layer is used to normalize the output of the convolution layer. The normalization operation helps to improve the stability and convergence speed of the neural network model and enhance the representation ability of the features. The gradient of the ReLU activation function can only take two values: 0 or 1. When the input is less than 0, the gradient is 0; when the input is greater than 0, the gradient is 1. This is computationally efficient and can effectively solve the gradient vanishing problem, but it may hinder the training process. Usually, the input value of the activation function has a bias. Assuming that the bias is too small, so that the value of the input activation function is always negative, then the gradient of the back propagation process passing through this point is always 0, and the corresponding weight and bias parameters cannot be updated this time. If the input of the activation function is negative for all sample inputs, the neuron can no longer learn, which is called the neuron "death" problem. The use of Leaky-ReLU is to avoid the problem of neuron "death". Leaky-ReLU is very similar to ReLU, and the only difference is the part where the input is less than 0. The value of the part where the ReLU input is less than 0 is 0, while the value of the part where the LeakyReLU input is less than 0 is negative and has a small gradient.

[0115] S23, pooling the second feature map through a 2×2 maximum pooling layer to generate a third feature map;

[0116] In this embodiment of the present invention, the second feature map is pooled through a 2×2 maximum pooling layer (with a step size of 2) to generate a 64*64*64 third feature map.

[0117] S24, using the first convolution module to perform feature extraction on the third feature map to generate a fourth feature map;

[0118] In the embodiment of the present invention, the first convolution module (CBL2 module) is used to extract features from the third feature map to generate a 128*32*32 fourth feature map. The first convolution module (CBL2 module) has a 3×3 standard convolution layer (the number of convolution kernels is 128, the step size is 2, and the padding is 1).

[0119] S25. Perform feature extraction on the fourth feature map through a second convolution module to generate a waveform feature map, wherein the second convolution module includes a first extraction branch, a second extraction branch, a third extraction branch and a feature fusion layer.

[0120] Further, S25 includes the following sub-steps:

[0121] S251, using the first extraction branch to perform feature extraction on the fourth feature map to generate a fifth feature map, wherein the first extraction branch includes sixty-four 1×1 standard convolutional layers connected in sequence;

[0122] In the embodiment of the present invention, the first extraction branch is used to perform feature extraction on the fourth feature map to generate a 64*32*32 fifth feature map, wherein the first extraction branch includes sixty-four 1×1 standard convolutional layers connected in sequence.

[0123] S252, extracting features from the fourth feature map through a second extraction branch to generate a sixth feature map, wherein the second extraction branch includes sixty-four 1×1 standard convolutional layers and thirty-two 3×3 standard convolutional layers connected in sequence;

[0124] In an embodiment of the present invention, feature extraction is performed on the fourth feature map through the second extraction branch to generate a 32*32*32 sixth feature map, wherein the second extraction branch includes sixty-four 1×1 standard convolutional layers and thirty-two 3×3 standard convolutional layers connected in sequence.

[0125] It should be noted that the second extraction branch is two cascaded convolution modules.

[0126] S253, performing feature extraction on the fourth feature map through the third extraction branch to generate a seventh feature map, wherein the third extraction branch includes sixty-four 1×1 standard convolutional layers and sixty-four 3×3 standard convolutional layers;

[0127] In an embodiment of the present invention, feature extraction is performed on the fourth feature map through the third extraction branch to generate a 32*32*32 seventh feature map, wherein the third extraction branch includes sixty-four 1×1 standard convolutional layers and sixty-four 3×3 standard convolutional layers.

[0128] It should be noted that the third extraction branch uses three cascaded convolution modules, namely sixty-four 1×1 standard convolution layers, thirty-two 3×3 standard convolution layers, and thirty-two 3×3 standard convolution layers.

[0129] S254, using a feature fusion layer to perform feature fusion on the fourth feature map, the fifth feature map, the sixth feature map and the seventh feature map to generate a waveform feature map.

[0130] In the embodiment of the present invention, the fourth feature map, the fifth feature map, the sixth feature map and the seventh feature map are feature fused through the feature fusion layer to generate a 128*32*32 waveform feature map.

[0131] It should be noted that, see Figure 3 As shown in the figure, the second convolution module (Res-Inception module) replaces the traditional convolution module and first considers the use of residual structure to effectively avoid overfitting of the network during training. The Inception structure uses multiple convolution kernels of different sizes in parallel to capture features at different levels, and then splices feature maps of different levels together. This parallel processing and merging method enables the network to extract features at different levels of abstraction, thereby better capturing details and global information in the image, so as to obtain classification results more efficiently. Among them, Branch3 continuously cascades two convolution layers with a kernel size of 3*3, replacing a single layer of 5*5 convolution, which can reduce the number of network parameters while ensuring that the receptive field remains unchanged, which is conducive to model convergence training.

[0132] Step 207: Use a classification network to classify and detect the waveform feature graph to obtain a classification result.

[0133] Further, the classification network includes sequentially connecting the first convolution module, the third convolution module and the Soflmax layer, and step 207 includes the following sub-steps:

[0134] S31, extracting features from the waveform feature map through the first convolution module to generate an eighth feature map;

[0135] In the embodiment of the present invention, the waveform feature map is feature extracted by the first convolution module (CBL3 module) to generate a 256*16*16 eighth feature map. Among them, the first convolution module (CBL3 module) has a 3×3 standard convolution layer (the number of convolution kernels is 256, the step size is 2, and the padding is 1).

[0136] S32, using a third convolution module to extract features from the eighth feature map to generate a classification score map, wherein the third convolution module includes a 2×2 maximum pooling layer, a tiling layer, and a fully connected layer connected in sequence;

[0137] Further, S32 includes the following sub-steps:

[0138] S321, pooling the eighth feature map through a 2×2 maximum pooling layer to generate a ninth feature map;

[0139] In this embodiment of the present invention, the eighth feature map is pooled through a 2×2 maximum pooling layer (with a step size of 2) to generate a 256*8*8 ninth feature map.

[0140] S322, using a tiling layer to perform a vector conversion operation on the ninth feature map to obtain a classification feature vector;

[0141] In the embodiment of the present invention, the ninth feature map is converted into a 1*1*16384 classification feature vector through a flattening layer.

[0142] S323. Perform nonlinear transformation on the classification feature vector through a fully connected layer to obtain a classification score map.

[0143] In the embodiment of the present invention, the classification feature vector is linearly and nonlinearly transformed through the fully connected layer FC (the number of fully connected layers is 4096, 512, and 4 respectively), the feature is converted into a score, and a classification score map is obtained.

[0144] It should be noted that the fully connected layer FC includes the fully connected layer FC1 and the fully connected layer FC2, and the dropout technology is used in the process of nonlinear transformation. Dropout is a regularization technology used to reduce the overfitting of the neural network. It randomly discards some units in the network to prevent the network from over-relying on certain specific input features.

[0145] S33. Use the Soflmax layer to classify the classification score map to obtain the classification result.

[0146] In the embodiment of the present invention, the classification score map is classified through the Soflmax layer to obtain a classification result.

[0147] It should be noted that the Soflmax layer converts the category scores of the fully connected layer into probability distribution, provides the probability of each category, and performs the classification task.

[0148] In an embodiment of the present invention, training electric field waveform data is obtained, data preprocessing is performed on the training electric field waveform data, an electric field waveform feature set is generated, the electric field waveform feature set is used to train a preset electric field waveform classification model, and a target electric field waveform classification model is generated, wherein the target electric field waveform classification model includes a feature extraction network and a classification network. When waveform data to be classified is received, a waveform image to be classified is constructed according to the waveform data to be classified, and features are extracted from the waveform image to be classified through the feature extraction network to generate a waveform feature map, and the waveform feature map is classified and detected using the classification network to obtain a classification result. This solves the existing technical problem of identifying and classifying lightning electric field waveforms through deep learning algorithms, but the deep learning algorithm has high requirements on system computing power, cannot be installed on mobile terminals, and has slow response speed. The present invention classifies the waveform data to be classified based on the target electric field waveform classification model, and realizes the rapid classification of the waveform data to be classified while ensuring the recognition accuracy. The target electric field waveform classification model shows excellent performance in processing complex classification problems, especially in problems involving waveform classification. The model converges quickly when performing waveform classification and requires small computing power. It can be built on a mobile terminal as a lightning electric field waveform recognition module, which helps to improve the classification efficiency of lightning electric field waveforms.

[0149] See also Figure 6 , Figure 6 This is a structural block diagram of a lightning electric field waveform classification system provided in Embodiment 3 of the present invention.

[0150] The present invention provides a lightning electric field waveform classification system, comprising:

[0151] A preprocessing module 301 is used to obtain training electric field waveform data, perform data preprocessing on the training electric field waveform data, and generate an electric field waveform feature set;

[0152] A training module 302 is used to train a preset electric field waveform classification model using an electric field waveform feature set to generate a target electric field waveform classification model, wherein the target electric field waveform classification model includes a feature extraction network and a classification network;

[0153] A response module 303 is used to construct a waveform image to be classified according to the waveform data to be classified when the waveform data to be classified is received;

[0154] An extraction module 304 is used to extract features from the waveform image to be classified through a feature extraction network to generate a waveform feature map;

[0155] The classification module 305 is used to classify and detect the waveform feature graph using a classification network to obtain a classification result.

[0156] Furthermore, the training module 302 includes:

[0157] A training submodule, used to use an electric field waveform feature set to input a preset electric field waveform classification model for training, and output training classification data;

[0158] A loss submodule, used to calculate the training loss function value of the electric field waveform feature set based on the training classification data;

[0159] The first analysis submodule is used to adjust the network parameters of the electric field waveform classification model by using a gradient descent method when the training loss function value is greater than or equal to a preset loss threshold until the training loss function value is less than the loss threshold;

[0160] When the training loss function value is less than the loss threshold, a target electric field waveform classification model is generated.

[0161] Furthermore, the response module 303 includes:

[0162] A window submodule, used for performing a windowing operation on the waveform data to be classified based on a preset noise reduction window to obtain windowed waveform data;

[0163] A filtering submodule is used to filter the window waveform data to obtain intermediate waveform data;

[0164] A submodule is constructed to construct a waveform image to be classified using intermediate waveform data.

[0165] Furthermore, the feature extraction network includes a 3×3 standard convolution layer, a first convolution module, a 2×2 maximum pooling layer, a first convolution module, and a second convolution module connected in sequence, and the extraction module 304 includes:

[0166] A first feature submodule, used for extracting features of the waveform image to be classified by using a 3×3 standard convolution layer to generate a first feature map;

[0167] A second feature submodule, used for extracting features from the first feature map through the first convolution module to generate a second feature map, wherein the first convolution module includes a 3×3 standard convolution layer, a batch normalization layer, and a Leaky-ReLU activation layer connected in sequence;

[0168] A third feature submodule, used to pool the second feature map through a 2×2 maximum pooling layer to generate a third feature map;

[0169] A third feature submodule, used for extracting features from the third feature map using the first convolution module to generate a fourth feature map;

[0170] The fourth feature submodule is used to extract features from the fourth feature map through the second convolution module to generate a waveform feature map, wherein the second convolution module includes a first extraction branch, a second extraction branch, a third extraction branch and a feature fusion layer.

[0171] Furthermore, the fourth characteristic submodule includes:

[0172] A first extraction unit, configured to perform feature extraction on the fourth feature map by using the first extraction branch to generate a fifth feature map, wherein the first extraction branch includes sixty-four 1×1 standard convolutional layers connected in sequence;

[0173] A second extraction unit is used to extract features from the fourth feature map through a second extraction branch to generate a sixth feature map, wherein the second extraction branch includes sixty-four 1×1 standard convolutional layers and thirty-two 3×3 standard convolutional layers connected in sequence;

[0174] a third extraction unit, configured to perform feature extraction on the fourth feature map through a third extraction branch to generate a seventh feature map, wherein the third extraction branch includes sixty-four 1×1 standard convolutional layers and sixty-four 3×3 standard convolutional layers;

[0175] The fusion unit is used to use a feature fusion layer to perform feature fusion on the fourth feature map, the fifth feature map, the sixth feature map and the seventh feature map to generate a waveform feature map.

[0176] Furthermore, the classification module 305 includes:

[0177] a fifth feature extraction submodule, configured to extract features from the waveform feature graph through the first convolution module to generate an eighth feature graph;

[0178] A detection submodule, used for extracting features from the eighth feature map using a third convolution module to generate a classification score map, wherein the third convolution module includes a 2×2 maximum pooling layer, a tiling layer, and a fully connected layer connected in sequence;

[0179] The classification submodule is used to classify the classification score map using the Soflmax layer to obtain the classification result.

[0180] Furthermore, the detection submodule includes:

[0181] A pooling unit, used for pooling the eighth feature map through a 2×2 maximum pooling layer to generate a ninth feature map;

[0182] A conversion unit, used for performing a vector conversion operation on the ninth feature map by using a tiling layer to obtain a classification feature vector;

[0183] The nonlinear transformation unit is used to perform nonlinear transformation on the classification feature vector through the fully connected layer to obtain the classification score map.

[0184] See also Figure 7 , Figure 7 This is a structural block diagram of a computer device provided in Embodiment 4 of the present invention.

[0185] An electronic device according to an embodiment of the present invention includes: a memory 401 and a processor 402, wherein the memory 402 stores a computer program; when the computer program is executed by the processor 402, the processor 402 executes a lightning electric field waveform classification method according to any of the above embodiments.

[0186] The memory 401 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 401 has a storage space 403 for a program code 413 for executing any method step in the above method. For example, the storage space 403 for the program code can include individual program codes 413 for implementing the various steps in the above method respectively. These program codes can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. The program code can be compressed, for example, in an appropriate form. These codes, when run by a computing and processing device, cause the computing and processing device to perform the various steps in the method described above. These program codes can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. The program code can be compressed, for example, in an appropriate form. When these codes are executed by a computing and processing device, the computing and processing device is caused to execute each step of the above-described lightning electric field waveform classification method.

[0187] Embodiment 5 of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for classifying lightning electric field waveforms as described in any of the above embodiments is implemented.

[0188] Embodiment 6 of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, wherein when the program instructions are executed by a computer, the computer executes a method for classifying lightning electric field waveforms as described in any of the above embodiments.

[0189] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0190] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0191] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0192] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0193] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0194] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A lightning electric field waveform classification method, characterized in that: include: Acquiring training electric field waveform data, performing data preprocessing on the training electric field waveform data, and generating an electric field waveform feature set; The electric field waveform feature set is used to train a preset electric field waveform classification model to generate a target electric field waveform classification model, wherein the target electric field waveform classification model includes a feature extraction network and a classification network; When the waveform data to be classified is received, a waveform image to be classified is constructed according to the waveform data to be classified; Extracting features of the waveform image to be classified through the feature extraction network to generate a waveform feature graph; The classification network is used to perform classification detection on the waveform feature graph to obtain a classification result.

2. The lightning electric field waveform classification method according to claim 1, characterized in that: The step of constructing a waveform image to be classified according to the waveform data to be classified comprises: Performing a windowing operation on the waveform data to be classified based on a preset noise reduction window to obtain windowed waveform data; Filtering the window waveform data to obtain intermediate waveform data; The intermediate waveform data is used to construct a waveform image to be classified.

3. The lightning electric field waveform classification method according to claim 1, characterized in that: The feature extraction network includes a 3×3 standard convolution layer, a first convolution module, a 2×2 maximum pooling layer, a first convolution module, and a second convolution module connected in sequence. The step of extracting features of the waveform image to be classified through the feature extraction network to generate a waveform feature map includes: Using a 3×3 standard convolutional layer to extract features of the waveform image to be classified to generate a first feature map; Performing feature extraction on the first feature map through a first convolution module to generate a second feature map, wherein the first convolution module includes a 3×3 standard convolution layer, a batch normalization layer, and a Leaky-ReLU activation layer connected in sequence; Pooling the second feature map through a 2×2 maximum pooling layer to generate a third feature map; Using the first convolution module to perform feature extraction on the third feature map to generate a fourth feature map; The fourth feature map is subjected to feature extraction through the second convolution module to generate a waveform feature map, wherein the second convolution module includes a first extraction branch, a second extraction branch, a third extraction branch and a feature fusion layer.

4. The method for classifying lightning electric field waveforms according to claim 3, characterized in that: The step of extracting features from the fourth feature map by the second convolution module to generate a waveform feature map comprises: Using the first extraction branch to perform feature extraction on the fourth feature map to generate a fifth feature map, wherein the first extraction branch includes sixty-four 1×1 standard convolutional layers connected in sequence; Performing feature extraction on the fourth feature map through the second extraction branch to generate a sixth feature map, wherein the second extraction branch includes sixty-four 1×1 standard convolutional layers and thirty-two 3×3 standard convolutional layers connected in sequence; Performing feature extraction on the fourth feature map through the third extraction branch to generate a seventh feature map, wherein the third extraction branch includes sixty-four 1×1 standard convolutional layers and sixty-four 3×3 standard convolutional layers; A feature fusion layer is used to perform feature fusion on the fourth feature map, the fifth feature map, the sixth feature map and the seventh feature map to generate a waveform feature map.

5. The lightning electric field waveform classification method according to claim 1, characterized in that: The classification network includes a first convolution module, a third convolution module and a Soflmax layer connected in sequence, and the step of using the classification network to classify and detect the waveform feature graph to obtain a classification result includes: Extracting features from the waveform feature map through a first convolution module to generate an eighth feature map; Using the third convolution module to extract features from the eighth feature map to generate a classification score map, wherein the third convolution module includes a 2×2 maximum pooling layer, a tiling layer, and a fully connected layer connected in sequence; The Soflmax layer is used to classify the classification score map to obtain a classification result.

6. The lightning electric field waveform classification method according to claim 5, characterized in that: The step of using the third convolution module to extract features from the eighth feature map to generate a classification score map includes: Pooling the eighth feature map through a 2×2 maximum pooling layer to generate a ninth feature map; Performing a vector conversion operation on the ninth feature map by using a tiling layer to obtain a classification feature vector; The classification feature vector is nonlinearly transformed through a fully connected layer to obtain a classification score map.

7. The lightning electric field waveform classification method according to claim 1, characterized in that: The electric field waveform feature set includes training sample data and the step of using the electric field waveform feature set to train a preset electric field waveform classification model to generate a target electric field waveform classification model includes: Using the electric field waveform feature set to input a preset electric field waveform classification model for training, and outputting training classification data; Calculating the training loss function value of the electric field waveform feature set according to the training classification data; When the training loss function value is greater than or equal to a preset loss threshold, a gradient descent method is used to adjust the network parameters of the electric field waveform classification model until the training loss function value is less than the loss threshold; When the training loss function value is less than the loss threshold, a target electric field waveform classification model is generated.

8. A classification system for lightning electric field waveforms, characterized in that: include: A preprocessing module, used to obtain training electric field waveform data, perform data preprocessing on the training electric field waveform data, and generate an electric field waveform feature set; A training module, used to train a preset electric field waveform classification model using the electric field waveform feature set to generate a target electric field waveform classification model, wherein the target electric field waveform classification model includes a feature extraction network and a classification network; A response module, configured to construct a waveform image to be classified according to the waveform data to be classified when the waveform data to be classified is received; An extraction module, used for performing feature extraction on the waveform image to be classified through the feature extraction network to generate a waveform feature graph; The classification module is used to use the classification network to classify and detect the waveform feature graph to obtain a classification result.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the method for classifying lightning electric field waveforms according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the method for classifying lightning electric field waveforms according to any one of claims 1 to 7 is implemented.