Convolutional neural network-based substation sensor identification and classification system and method
Through the identification and classification method based on the convolutional neural network, combined with the dense connection network structure and the attention mechanism model, the problem of inaccurate identification and classification of substation sensors is solved, more accurate feature extraction and identification are achieved, and the reliability of sensor testing is improved. sex and efficiency.
Patent Information
- Application Number
- CN202410849629.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-11
AI Technical Summary
Existing substation sensor identification and classification methods are not accurate enough, resulting in errors in subsequent test parameter settings and affecting the reliability of sensor testing.
The identification and classification method based on the convolutional neural network is adopted, and a feature extraction model is constructed by combining the dense connection network structure and the attention mechanism model to perform preprocessing, identification and classification of sensor image data.
It improves the accuracy of sensor identification and classification, reduces the risk of parameter errors, and improves the efficiency and reliability of substation sensor testing.
Smart Images

Figure CN118762223A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of sensor identification and classification, and in particular relates to an identification and classification system and method for substation sensors based on a convolutional neural network. Background Art
[0002] How to improve the reliability of substation sensors is a very important research topic. As the application field and scope of power sensors are further expanded, the environmental stress they face is more severe. This includes long-term high temperature environment, large-scale pressure fatigue, and multiple comprehensive environmental stress coupling effects. For example, high-power power electronic conversion technology has become a basic technology for national strategic emerging industries such as new energy vehicles, offshore wind power grid connection and industrial variable frequency drive with its high power density, fast dynamic response and strong active controllability. However, with the increase of voltage and power levels, the high failure rate of power electronic devices, especially internal sensors, has become a key factor restricting the overall reliability of the application system. Under actual working conditions, the operation of the sensor is affected by the dual effects of external ambient temperature and internal alternating loss, resulting in its actual operating temperature alternating. This alternating operating temperature causes the interface of multi-layer materials to have alternating normal stress and shear stress for a long time, which gradually accumulates and may cause cracks and delamination of the sensor.
[0003] Therefore, the sensor will be affected and influenced by multiple physical fields such as electromagnetic, hot and cold, humidity, and mechanical force during operation. Considering the coupling of multiple physical fields is crucial to improving the rationality of sensor performance analysis. However, the sensor is actually affected by the synergistic effect of multiple physical fields during operation, and there is energy exchange between the various physical fields, which makes the existing analysis method of two physical field coupling unable to fully reflect the actual working conditions of the sensor. The main problem at present is that different physical fields need to be applied to sensors in different substations. The existing classification method for sensors requires manual intervention or some simple judgment rules to judge and set the physical field parameters required for the sensor to be tested. However, the identification and classification of sensors to be tested in different substations are not accurate enough, which may cause errors in the subsequent setting of test parameters, affecting the reliability of sensor testing. Summary of the invention
[0004] The purpose of the present invention is to provide a system and method for identifying and classifying substation sensors based on convolutional neural networks, so as to solve the problem that the current identification and classification of substation sensors are not accurate enough, which may lead to errors in setting test parameters in the future and affect the reliability of sensor testing.
[0005] In order to achieve the above object, the present invention adopts the following technical scheme:
[0006] The present invention provides a method for identifying and classifying substation sensors based on a convolutional neural network, which specifically comprises the following steps:
[0007] S1. Collect sensor image data of the substation, preprocess the sensor image data, and mark the preprocessed sensor image data as a test data set and a training data set;
[0008] S2. Based on the convolutional neural network, a feature extraction model is constructed by combining the densely connected network structure and the attention mechanism model;
[0009] S3, inputting the training data set into the feature extraction model, training the feature extraction model, and obtaining a trained feature extraction model;
[0010] S4. Input the test data set into the trained feature extraction model, and identify and classify the sensors based on the output data of the feature extraction model.
[0011] In some implementations, in S1 , preprocessing the sensor image data specifically includes: preprocessing the sensor image data by denoising, resizing, and normalizing.
[0012] Furthermore, in S1, preprocessing the sensor image data further includes: after denoising, resizing, and normalization, using an edge detection algorithm and an adaptive threshold technology to process the sensor image data.
[0013] In some embodiments, S2 specifically includes: optimizing the convolutional neural network by adopting a densely connected network structure and an attention mechanism model to form a feature extraction model.
[0014] In some embodiments, in S2, the convolutional neural network includes an input layer, a convolutional layer, a pooling layer, and a fully connected layer: wherein:
[0015] The input layer is used to input sensor image data;
[0016] The convolution layer is used to perform convolution operations on the input sensor image data using multiple convolution kernels to extract local features of the sensor image data;
[0017] The pooling layer uses maximum pooling or average pooling to reduce the size of the sensor image data and retain the high-dimensional feature map;
[0018] The fully connected layer is used to expand the high-dimensional feature map for recognition and classification.
[0019] Furthermore, in S2, the densely connected network structure includes three dense blocks, which are respectively located between the input layer, the convolutional layer, the pooling layer and the fully connected layer, and the three dense blocks form a transition layer.
[0020] Furthermore, in S2, the attention mechanism model is specifically:
[0021] Channels are formed between each layer in the convolutional neural network;
[0022] The attention mechanism model compresses the feature map of each channel into a numerical value through global average pooling;
[0023] Based on multiple numerical values, an activation function is used on the fully connected layer to generate the weight of each channel, and the generated weight is applied to the preprocessed sensor image data to readjust the parameters of each channel.
[0024] The present invention also provides a recognition and classification system for substation sensors based on convolutional neural networks, comprising a data preprocessing module, a model building module and a classification output module; wherein:
[0025] The data preprocessing module is used to preprocess the sensor image data; the model building module is used to build a feature extraction model based on a convolutional neural network, a densely connected network structure, and an attention mechanism model; the classification output module is used to identify and classify sensors based on the feature extraction model;
[0026] The identification and classification system of substation sensors based on convolutional neural networks is used to implement the above-mentioned identification and classification method of substation sensors based on convolutional neural networks.
[0027] A computer device comprises a memory, a processor and a computer program stored and running on the memory, wherein when the processor executes the computer program, the steps of the above-mentioned identification and classification method of substation sensors based on convolutional neural network are implemented.
[0028] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned identification and classification method for substation sensors based on a convolutional neural network.
[0029] Compared with the prior art, the identification and classification system and method of substation sensors based on convolutional neural network of the present invention have the following beneficial technical effects.
[0030] The present invention provides a method for identifying and classifying substation sensors based on a convolutional neural network, which specifically includes the following steps: S1, collecting sensor image data of the substation, preprocessing the sensor image data, and marking the preprocessed sensor image data as a test data set and a training data set; S2, on the basis of the convolutional neural network, by combining a densely connected network structure and an attention mechanism model, a feature extraction model is constructed; S3, the training data set is input into the feature extraction model, the feature extraction model is trained, and the trained feature extraction model is obtained; S4, the test data set is input into the trained feature extraction model, and the sensor is identified and classified based on the output data of the feature extraction model. Based on the above, the present invention can be used for the identification and classification of substation sensors. This method can automatically classify sensors, thereby providing technical support for subsequent sensor reliability tests. Compared with existing classification methods, the present invention improves and optimizes the convolutional neural network through a densely connected network structure and an attention mechanism model to form a feature extraction model. The automation method of this model can avoid the occurrence of parameter errors due to, for example, manual participation or ordinary network structure judgment, which improves the accuracy of sensor identification and classification to a certain extent, reduces the risk of sensor damage, and greatly improves the efficiency of substation sensor testing.
[0031] The identification and classification method of the present invention can test substation sensors more quickly and accurately, provide reliable technical support for the construction of digital power grids, and is expected to improve the overall stability of substations. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings in the specification are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0033] Figure 1 The present invention is a flow chart of a method in a system and method for identifying and classifying substation sensors based on a convolutional neural network. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, 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 described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0035] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.
[0036] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0037] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0038] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0039] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0040] How to effectively identify and classify substation sensors, and then provide technical support for their subsequent tests, so that they can accurately set the required parameters before the test. Then, substation sensors can be tested more quickly and accurately, reducing the risk of sensor damage and improving the efficiency of substation sensor testing.
[0041] Based on this, the present invention provides a method for identifying and classifying substation sensors based on a convolutional neural network, which specifically includes the following steps:
[0042] S1. Collect sensor image data of the substation, preprocess the sensor image data, and mark the preprocessed sensor image data as a test data set and a training data set;
[0043] S2. Based on the convolutional neural network, a feature extraction model is constructed by combining the densely connected network structure and the attention mechanism model;
[0044] S3, inputting the training data set into the feature extraction model, training the feature extraction model, and obtaining a trained feature extraction model;
[0045] S4. Input the test data set into the trained feature extraction model, and identify and classify the sensors based on the output data of the feature extraction model.
[0046] Based on the fact that existing substation sensor tests cannot accurately identify sensors before testing, which may cause problems in subsequent tests, the present invention constructs a feature extraction model by combining convolutional neural networks, densely connected network structures and attention mechanism models to identify and classify substation sensors. The method of the present invention can more accurately extract the features of sensor image data, thereby significantly improving the accuracy of identification and classification of substation sensors, and providing a technical basis for subsequent test settings. On this basis, the present invention can reduce the risk of setting errors when setting test parameters in the subsequent test due to the improved accuracy of identification and classification, thereby improving the reliability of sensor testing.
[0047] The following is a further detailed description of a substation sensor identification and classification system based on a convolutional neural network according to the present invention in conjunction with the accompanying drawings and specific implementation methods.
[0048] like Figure 1 As shown, the present invention first performs data collection and preprocessing;
[0049] In some embodiments, the present invention uses some existing professional equipment or sensors to capture sensor image data from the substation. These data may include the appearance, working status, etc. of various sensors.
[0050] Then, based on the image data of the above sensors, the present invention preprocesses these data:
[0051] 1) The present invention can use a denoising algorithm, such as Gaussian filtering, median filtering and the like, to remove noise from the image data of the sensor, thereby improving the image quality of the image data of the sensor.
[0052] 2) The present invention adjusts all images to a uniform size for subsequent model processing.
[0053] 3) The present invention scales the pixel values of the image to a standard range (such as 0-1 or -1 to 1) to accelerate model training and improve accuracy.
[0054] As a preferred embodiment, the present invention can use edge detection algorithm (such as Canny edge detection) and adaptive threshold technology to further highlight key features in the image and remove unnecessary background information based on the above.
[0055] The present invention can further improve the image quality by denoising, resizing, normalizing and processing the sensor image data using an edge detection algorithm and an adaptive threshold technology, thereby providing a more favorable data basis for subsequent feature extraction and recognition classification.
[0056] Based on the preprocessed sensor image data, the present invention divides the preprocessed sensor image data into a training data set and a test data set. The training data set is used to train the model, while the test data set is used to identify and classify the sensor and evaluate the performance of the model. This provides an effective guarantee for the reliability of practical applications.
[0057] The present invention realizes the identification and classification of sensors by constructing a feature extraction model, specifically:
[0058] The present invention selects convolutional neural network (CNN) as the basic model. Since CNN performs well in image processing tasks, it can automatically learn features in images.
[0059] Based on the convolutional neural network, the present invention combines a densely connected network structure (DenseNet). Dense blocks of the densely connected network structure: Dense connections are established between each layer of the CNN to ensure that information flows between layers and reduce the gradient vanishing problem.
[0060] The present invention adds a transition layer between dense blocks and reduces the size and number of channels of the feature map through 1x1 convolution and pooling operations.
[0061] As a further preferred embodiment, the present invention combines an attention mechanism model on the basis of the above. The attention mechanism model compresses the feature map of each channel into a value through global average pooling, and then uses a fully connected layer and an activation function to generate a weight for each channel. Among them, the activation function can be used, such as Sigmoid.
[0062] The attention mechanism model applies the generated weights to the preprocessed image data, thereby re-adjusting the feature parameters of each channel, highlighting important features and suppressing irrelevant features.
[0063] Based on the convolutional neural network, the present invention combines DenseNet and the attention mechanism model to construct a complete feature extraction model. The model can automatically extract useful features from sensor images. The present invention adopts a densely connected network structure, which can strengthen the information transfer between model layers, help alleviate the gradient vanishing problem, and improve the generalization ability of the model. The attention mechanism model can automatically learn and assign different weights to different feature maps, so that the model can focus more on key features, thereby improving the efficiency of feature extraction.
[0064] The present invention uses the aforementioned training data set to perform model training on the feature extraction model:
[0065] Set initial values for the weights and biases of the feature extraction model. You can use random initialization or pre-trained model weights. Input the image data in the training dataset into the feature extraction model and calculate the output of the feature extraction model. Calculate the loss value, such as cross entropy loss, based on the output of the feature extraction model and the true label. Calculate the gradient based on the loss value and use the optimization algorithm to update the weights and biases of the model. Repeat the process of forward propagation, loss calculation, and back propagation until the performance of the model on the validation set reaches the preset standard or the maximum number of iterations is reached.
[0066] After the training is completed, the feature extraction model is used to identify and classify the sensor. The present invention inputs the image data in the test data set into the trained feature extraction model.
[0067] The feature extraction model automatically extracts key features from the image data in the test dataset.
[0068] Based on the extracted key features, the feature extraction model assigns a class label to each image; this label can be thought of as the type of sensor.
[0069] The present invention provides a recognition and classification system for substation sensors based on a convolutional neural network for the above-mentioned recognition and classification method, and the system includes a data preprocessing module, a model building module and a classification output module. The data preprocessing module is responsible for processing the original image data; the model building module is responsible for building and training the feature extraction model; and the classification output module is responsible for using the trained model to identify and classify the sensor. The entire system has a high degree of automation and can quickly and accurately complete the recognition and classification tasks of substation sensors. The system of the present invention can automatically complete the preprocessing, feature extraction and recognition and classification of sensor image data, which improves the work efficiency of sensor testing to a certain extent. The system adopts a modular design, and the user only needs to input the sensor image data into the system to obtain the recognition and classification results, and can provide accurate and reliable recognition and classification results. The system of the present invention is easy to operate, can adapt to substation sensors of different types and specifications, and has strong adaptability and flexibility.
[0070] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any ordinary technician in the industry can smoothly implement the present invention as shown in the specification and described above. However, any equivalent changes, modifications and evolutions made by technicians familiar with the profession without departing from the scope of the technical solution of the present invention using the technical content disclosed above are all equivalent embodiments of the present invention. At the same time, any equivalent changes, modifications and evolutions made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the technical solution of the present invention.
Claims
1. A method for identifying and classifying substation sensors based on convolutional neural networks, characterized in that: The specific steps include: S1. Collect sensor image data of the substation, preprocess the sensor image data, and mark the preprocessed sensor image data as a test data set and a training data set; S2. Based on the convolutional neural network, a feature extraction model is constructed by combining the densely connected network structure and the attention mechanism model; S3, inputting the training data set into the feature extraction model, training the feature extraction model, and obtaining a trained feature extraction model; S4. Input the test data set into the trained feature extraction model, and identify and classify the sensors based on the output data of the feature extraction model.
2. The identification and classification method of substation sensors based on convolutional neural network according to claim 1 is characterized in that: In S1, preprocessing the sensor image data specifically includes: Preprocess the sensor image data by denoising, resizing, and normalizing.
3. The identification and classification method of substation sensors based on convolutional neural network according to claim 2 is characterized in that: In S1, preprocessing the sensor image data further includes: After denoising, resizing and normalization, the sensor image data is processed using edge detection algorithms and adaptive thresholding techniques.
4. The identification and classification method of substation sensors based on convolutional neural network according to claim 1 is characterized in that: Specifically, S2 is as follows: the convolutional neural network is optimized by adopting a densely connected network structure and an attention mechanism model to form a feature extraction model.
5. The identification and classification method of substation sensors based on convolutional neural network according to claim 1 is characterized in that: In S2, the convolutional neural network includes an input layer, a convolutional layer, a pooling layer, and a fully connected layer, wherein: The input layer is used to input sensor image data; The convolution layer is used to perform convolution operations on the input sensor image data using multiple convolution kernels to extract local features of the sensor image data; The pooling layer uses maximum pooling or average pooling to reduce the size of the sensor image data and retain the high-dimensional feature map; The fully connected layer is used to expand the high-dimensional feature map for recognition and classification.
6. The identification and classification method of substation sensors based on convolutional neural network according to claim 5 is characterized in that: In S2, the densely connected network structure includes three dense blocks, which are respectively located between the input layer, the convolutional layer, the pooling layer and the fully connected layer, and the three dense blocks form a transition layer.
7. The identification and classification method of substation sensors based on convolutional neural network according to claim 5 is characterized in that: In S2, the attention mechanism model is specifically: Channels are formed between each layer in the convolutional neural network; The attention mechanism model compresses the feature map of each channel into a numerical value through global average pooling; Based on multiple numerical values, an activation function is used on the fully connected layer to generate the weight of each channel, and the generated weight is applied to the preprocessed sensor image data to readjust the parameters of each channel.
8. A recognition and classification system for substation sensors based on convolutional neural networks, characterized in that: It includes data preprocessing module, model building module and classification output module; among them: The data preprocessing module is used to preprocess the sensor image data; The model building module is used to build a feature extraction model based on convolutional neural networks, densely connected network structures, and attention mechanism models; The classification output module is used to identify and classify sensors based on the feature extraction model; The identification and classification system of substation sensors based on convolutional neural networks is used to implement the identification and classification method of substation sensors based on convolutional neural networks as claimed in any one of claims 1 to 7.
9. A computer device comprising a memory, a processor and a computer program stored and executed on the memory, characterized in that: When the processor executes the computer program, the steps of the identification and classification method of substation sensors based on convolutional neural network as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the identification and classification method of substation sensors based on a convolutional neural network as claimed in any one of claims 1 to 7 are implemented.
