Intelligent detection method of high-voltage switchgear in outdoor environment based on feature selector

By designing a deep learning network framework based on feature selectors, the features of high-voltage switchgear are extracted, which solves the problem of difficulty in accurate detection in the existing technology, realizes real-time detection and classification of high-voltage switchgear, and improves the reliability of the automation system. and security.

CN117290766BActive Publication Date: 2024-10-22STATE GRID XINJIANG ELECTRIC POWER CO URUMQI ELECTRIC POWER SUPPLY CO +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310975284.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-04
Publication Date
2024-10-22
Estimated Expiration
2043-08-04

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve accurate opening and closing status detection of high-voltage switchgear, which affects the normal operation of the automation system. Moreover, traditional manual maintenance methods are dangerous and require high technical requirements.

Method used

Design a deep learning network framework based on feature selectors, including image feature extraction sub-network, feature selector sub-network, region generation sub-network and switch classification sub-network, and extract the characteristics of high-voltage switch equipment through the training data set to achieve real-time detection and classification.

Benefits of technology

It achieves precise position detection and status identification of high-voltage switchgear, improves the reliability and safety of the automation system, and reduces reliance on manual maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117290766B_ABST
    Figure CN117290766B_ABST
Patent Text Reader

Abstract

The present invention discloses an intelligent detection method for high-voltage switchgear in an outdoor environment based on a feature selector, the method comprising: shooting various images of high-voltage switchgear in an outdoor environment to obtain a training data set; constructing a network model; using an image feature extraction subnetwork in the network model to extract features from training data samples to obtain a deep feature map; using a feature selector subnetwork to perform feature screening on the deep feature map to obtain a target feature map after screening features; then using a region generation subnetwork to process the target feature map to generate a target candidate frame; finally using a switch classification subnetwork to perform high-voltage switch feature recognition on the target candidate frame to obtain a prediction result. The present invention can extract precise features of high-voltage switches in different outdoor environments, obtain accurate types and locations of high-voltage switches, and provide guiding opinions for the preparation process of intelligent substation equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning application technology, and in particular to an intelligent detection method for high-voltage switchgear in an outdoor environment based on a feature selector. Background Art

[0002] In order to protect the normal electricity rights of citizens, it is necessary to regularly inspect and maintain high-voltage equipment in the power system. The traditional manual inspection method has high technical requirements for the staff and is extremely dangerous. With the development of automation technology, more and more workstations use automated inspection systems to maintain high-voltage equipment. Among them, high-voltage switchgear is a control device for whether the power grid circuit is connected or not. Its opening and closing state affects the subsequent operation of the automation system. Therefore, how to achieve accurate opening and closing state detection of high-voltage switchgear has become an important issue in building substation automation systems.

[0003] In recent years, the field of artificial intelligence has been mentioned in the scope of national key construction. This indicates that the combination of artificial intelligence and manufacturing industry is an inevitable trend for my country to develop in the direction of intelligence, and it is of great significance to promote the development of the industry towards intelligence and automation. The most important thing in the field of artificial intelligence is to design corresponding deep learning network models for different industry tasks. With the improvement of computer computing power, the difficulty of network training has been greatly reduced, and the accuracy of network prediction has been continuously improved. For the state recognition problem of various high-voltage switch devices, the key is how to extract the characteristics of high-voltage switches to meet the needs of switch position detection and state recognition. At present, it is urgent to design a corresponding reasonable deep learning network framework for this problem, use high-performance computer processing power to train the network, and realize real-time detection and classification of various high-voltage switch devices. Summary of the invention

[0004] In order to solve the shortcomings of the above-mentioned prior art, the present invention provides an intelligent detection method for high-voltage switchgear in an outdoor environment based on a feature selector, designs a network model using a deep learning network framework, and then extracts features of various high-voltage switchgear in the outdoor environment, thereby realizing real-time detection and classification of various high-voltage switchgear.

[0005] The purpose of the present invention can be achieved by adopting the following technical solutions:

[0006] A method for intelligent detection of high-voltage switchgear in an outdoor environment based on a feature selector, characterized in that the method comprises:

[0007] S101: Acquire a training data set, where the training data set is a data set of various high-voltage switch samples in various outdoor scenes;

[0008] S102: Constructing a network model, the network model includes an image feature extraction subnetwork, a feature selector subnetwork, a region generation subnetwork and a switch classification subnetwork; wherein the image feature extraction subnetwork is used to extract features from the switch sample training data set to obtain deep sample features including environmental features; the feature selector subnetwork is used to perform feature screening on the deep sample features to obtain a target feature map after feature screening; the region generation subnetwork is used to process the target feature map to generate a switch target candidate frame set; the switch classification subnetwork is used to identify switch features in the target candidate frame set to obtain a prediction result of the network model;

[0009] S103: optimizing the loss function of the network model according to the prediction result and the manually labeled high-voltage switch information in the sample data set to obtain a trained network model;

[0010] S104: Inputting the outdoor image to be tested into the trained network model to complete the position detection and state recognition of the high-voltage switch.

[0011] Furthermore, the image feature extraction subnetwork is a classification network resnet101, which includes five main modules, and the deep sample feature is an output feature map of the resnet101 network, which includes the deep semantic features of the high-voltage switch and the deep semantic features of the environment in which it is located;

[0012] The feature selector includes four parts: a basic extractor, a candidate module, a selection switch, and a smoother; the basic extractor is used to extract the basic features of the deep feature map; the candidate module includes three candidate extractors with the same structure but different parameters, which are used to extract three different feature information; the selection switch is a selection mechanism, which is used to select features that are more suitable for subsequent propagation from the above three feature information; the smoother is a splicing module, which is used to splice and fuse the above basic features with the screening features; the working process of the feature selector includes:

[0013] The deep feature map containing environmental information is respectively input into the basic extractor, the candidate module, and the selection switch to generate a basic feature map, three candidate feature maps, and a three-dimensional one-hot vector in turn; the three-dimensional vector is multiplied by the three candidate feature maps to obtain a filtered feature map, and finally a smoother is used to splice the basic feature map and the filtered feature map to generate a target feature map after feature selection.

[0014] Furthermore, the region generation subnetwork includes a preprocessing layer, a priori box binary classification layer, and a priori box position adjustment layer;

[0015] The process of processing the target feature map by using the region generation subnetwork to generate a set of high-voltage switch target candidate frames includes:

[0016] The target feature map is input into the preprocessing layer, and the preprocessing layer generates a priori boxes of different sizes according to the target feature map, so as to detect the approximate position of the switch target;

[0017] Inputting the prior frame into the prior frame binary classification layer to generate the confidence of the prior frame;

[0018] Inputting the prior frame into the prior frame position adjustment layer to generate an offset of the prior frame;

[0019] According to the confidence, a priori frame with a higher confidence is selected; according to the offset, a position deviation is adjusted for the priori frame with a higher confidence, and a set of high-voltage switch target candidate frames is output.

[0020] Furthermore, the high-voltage switch classification subnetwork includes a switch feature processing module, a switch classification module and a candidate frame adjustment module;

[0021] The high-voltage switch classification subnetwork is used to identify the high-voltage switch features in the target candidate frame set to obtain the prediction result of the network model, including:

[0022] Mapping the target candidate frame in the high-voltage switch target candidate frame set onto the target feature map and performing a ROIPooling operation to obtain a switch feature map; inputting the switch feature map into the high-voltage switch feature processing module;

[0023] Inputting the output features of the high-voltage switch feature processing module into the switch classification module to classify the high-voltage switch target candidate frame to obtain the category of the high-voltage switch;

[0024] The output features of the switch feature processing module are input into the candidate frame adjustment module to generate an offset of the switch target candidate frame, which is used to adjust the position of the switch target candidate frame to obtain an optimized switch position.

[0025] Furthermore, according to the prediction results and the manually annotated high-voltage switch information in the switch sample data set, the loss function of the network model is optimized to obtain a trained network model, including:

[0026] The network is randomly initialized, and the parameters of three different candidate extractors of the feature selector are respectively initialized to three different parameter distributions. The network model is trained using the high-voltage switch training set, and the loss function of the network is optimized according to the prediction results and the switch state information, so as to achieve convergence of the network model and obtain a trained network model.

[0027] Furthermore, the prediction result includes the category and location of the high-voltage switch; the loss function of the region generation subnetwork is:

[0028]

[0029] Among them, p i is the confidence of the prior box i, is the label of the prior frame i, whose value is 1 or 0, and is obtained by calculating the intersection and union ratio of the prior frame i and the switch position in the switch information; if is 1, then t i is the offset of the prior box i, N is the offset between the prior frame i and the switch position in the switch information; rpn_cls is the total number of a priori boxes marked as 1 and 0 in the a priori box, N rpn_reg is the total number of prior boxes marked as 1 in the prior box, λ is the weight parameter; the classification loss L rpn_cls Using the cross entropy loss function, the regression loss L rpn_reg Use Smooth L1 Loss, that is:

[0030]

[0031] The loss function of the switch classification subnetwork is:

[0032]

[0033] Among them, p k is the category of the switch target candidate box k predicted by the network, is the switch category label corresponding to the switch target candidate box, t k is the offset of the switch target candidate box k predicted by the network, is the actual offset between the switch target candidate box and the switch position in the switch information; N is the total number of switch target candidate boxes; the classification loss L ide_cls Using the cross entropy loss function, the regression loss L ide_reg Use Smooth L1 Loss.

[0034] Furthermore, the obtaining of the training data set includes:

[0035] Capture real-time outdoor scenes with multiple high-voltage switches and their different states under any lighting and background;

[0036] Manually annotate switch information for each outdoor image with high-voltage switch features; wherein the switch information includes switch location and switch category; and construct a training data set and a test data set with a ratio of 9:1 for the switch sample data set.

[0037] The present invention has the following beneficial effects compared with the prior art:

[0038] The method provided by the present invention adopts the Resnet feature extraction network to extract the high-voltage switch features in the input image; adopts the feature selector network to perform feature screening on the above features; adopts the region generation subnetwork to generate the switch target candidate frame; adopts the switch classification subnetwork to perform type classification and position adjustment on the switch target candidate frame, and other technical means, thereby realizing the effective extraction and recognition of the high-voltage switch features, and then achieving the positioning and state recognition of the high-voltage switch in the outdoor environment, and providing guiding opinions for the preparation process of the intelligent substation equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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 the structures shown in these drawings without paying creative work.

[0040] Figure 1 This is a flow chart of an intelligent detection method for high-voltage switchgear based on a feature selector according to Embodiment 1 of the present invention.

[0041] Figure 2 This is a schematic diagram of the structure of the network model of Example 1 of the present invention.

[0042] Figure 3 This is a flow chart of processing captured images in a data set by a network model according to Embodiment 1 of the present invention.

[0043] Figure 4 Schematic diagram of the structure of the image feature extraction subnetwork of Example 1 of the present invention.

[0044] Figure 5 This is a schematic diagram of the structure of the feature selector subnetwork of Example 1 of the present invention.

[0045] Figure 6 This is a schematic diagram of the structure of a regional generation subnetwork according to Embodiment 1 of the present invention.

[0046] Figure 7 This is a schematic diagram of the structure of the switch classification subnetwork of Example 1 of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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. Based on the embodiments in 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. It should be understood that the specific embodiments described are only used to explain the present application and are not used to limit the present application.

[0048] Example:

[0049] This embodiment is implemented based on the Pytorch framework and the Pycharm development environment. The Pytorch framework is a development framework based on the Python language, which can easily and quickly build a reasonable deep learning network, and has good cross-platform interaction capabilities. It can provide many encapsulation functions in the deep learning architecture and interfaces for various image processing functions, including OpenCV-related image processing functions, and can use GPUs to train and verify models, improving computing efficiency.

[0050] The Pycharm development environment (IDE) on Windows or Linux is currently one of the top choices for deep learning network design and development. Pycharm provides customers with new templates, design tools, testing and debugging tools, and can also provide customers with an interface for directly calling remote servers.

[0051] like Figure 1 As shown, this embodiment provides an intelligent detection method for high-voltage switchgear in an outdoor environment based on a feature selector, comprising the following steps:

[0052] S101. Obtain a high-voltage switch data set, and divide it into a training data set and a test data set in a ratio of 9:1.

[0053] In this embodiment, a high-definition camera is used to capture 10,000 high-definition images of various high-voltage switch devices under various outdoor background conditions as a switch sample data set, and the positions of the high-voltage switches in the captured images and the specific categories to which the high-voltage switches belong are manually annotated.

[0054] S102: Input the captured images in the training data set into the network model to obtain prediction results.

[0055] like Figure 2 As shown in the figure, the constructed network model includes four sub-networks, namely, deep feature extraction sub-network, feature selector sub-network, region generation sub-network and switch classification sub-network.

[0056] Further, such as Figure 3 As shown, step S102 specifically includes:

[0057] (1) Use the image feature extraction subnetwork to extract features from training samples and obtain a deep feature map.

[0058] like Figure 4 As shown in the figure, the image feature extraction subnetwork model includes 5 modules, namely feature extraction layer 1, feature extraction layer 2, feature extraction layer 3, feature extraction layer 4 and feature extraction layer 5, and adopts the resnet101 network structure, in which the residual structure includes 3 convolution kernels, and the convolution kernel sizes are 1, 3, and 1 respectively, and the step size is 1 by default.

[0059] Feature extraction layer 1 includes 1 convolution layer and 1 maximum pooling layer. The convolution kernel size is 7 and the step size is 2. Finally, 64-channel image features are generated. The maximum pooling layer size is 3 and the step size is 2.

[0060] Feature extraction layer 2 includes three cascaded residual structures. The number of channels generated by the convolution kernel in the residual structure is 64, 64, and 256, respectively, and the step size is 1. Among them, the shortcut branch of the first residual module needs to pass through the convolution kernel with a size of 1, a step size of 1, and a channel number of 256 to ensure that the number of channels of the shortcut branch is the same as that of the main branch;

[0061] Feature extraction layer 3 includes four cascaded residual structures. The number of channels generated by the convolution kernel in the residual structure is 128, 128, and 512, respectively. The step size of the 3×3 convolution kernel of the first residual module is 2, and the step sizes of the remaining convolution kernels are all 1. The shortcut branch of the first residual module needs to pass through a convolution kernel with a size of 1, a step size of 1, and a channel number of 512 to ensure that the number of channels of the shortcut branch is the same as that of the main branch.

[0062] Feature extraction layer 4 includes 23 cascaded residual structures. The number of channels generated by the convolution kernel in the residual structure is 256, 256, and 1024, respectively. Among them, the step size of the 3×3 convolution kernel of the first residual module is 2, and the step sizes of the remaining convolution kernels are all 1. The shortcut branch of the first residual module needs to pass through a convolution kernel with a size of 1, a step size of 1, and a channel number of 1024 to ensure that the number of channels of the shortcut branch is the same as that of the main branch;

[0063] The feature extraction layer 5 includes three cascaded residual structures. The number of channels generated by the convolution kernel in the residual structure is 512, 512, and 2048, respectively. Among them, the step size of the 3×3 convolution kernel of the first residual module is 2, and the step sizes of the remaining convolution kernels are all 1. The shortcut branch of the first residual module needs to pass through a convolution kernel with a size of 1, a step size of 1, and a channel number of 2048 to ensure that the number of channels of the shortcut branch is the same as that of the main branch;

[0064] The sizes of the feature maps generated by feature extraction layers 2 to 5 are:

[0065]

[0066] Among them, h and w represent the height and width of the input image.

[0067] During the training process, the images in the training data set are input into this network in sequence, and the deep feature map generated by the feature extraction layer 5 is output.

[0068] (2) Use the feature selector subnetwork to filter the deep feature map and obtain the filtered target feature map.

[0069] like Figure 5 As shown, the feature selector subnetwork consists of four parts: basic extractor, candidate module, selection switch, and smoother.

[0070] The basic extractor consists of a 3×3 convolution kernel, a BN layer, and an activation function SiLU layer. The module consisting of the convolution layer, BN layer, and SiLU layer is called a complete CBS module. The step size of the convolution kernel is 1, and the number of channels generated is 1024. The size of the feature map generated by the basic extractor is:

[0071]

[0072] The candidate module includes three candidate extractors with the same structure but different parameters, which are used to extract three different deep features for selection by the selector switch. Each candidate extractor consists of a CBS module, a 3×3 convolution kernel with a step size of 1, and a generated channel number of 1024. The size of the candidate feature map generated by each candidate extractor is:

[0073]

[0074] The function of the selection switch is to select a key feature map from three candidate feature maps based on the relevant information of the deep feature map. Its nature is a single-pole three-throw switch, and its output is a three-dimensional one-hot vector.

[0075]

[0076] Among them, f swi represents the selection vector for selecting the switch output, represents the three candidate feature maps output by the above candidate extractor, Indicates that f swi The corresponding dimension in is factored with Multiply the corresponding feature maps in the graph and add the three products. keyRepresents the key feature graph after selection switch filtering.

[0077] The switch is composed of an average pooling layer GAP, a fully connected layer FC′1, an activation function layer Relu, a fully connected layer FC′2, and a nonlinear layer Gumbel Softmax. First, the deep feature map is subjected to global average pooling, that is, the deep feature map is stretched into a 2048-dimensional vector, and the control vector of the single-pole three-throw switch is obtained by passing through FC′1, Relu, and FC′2 in sequence, and finally the vector is input into the Gumbel Softmax layer for nonlinear transformation. The specific process is:

[0078] f swi =Gumbel Softmax(FC′2(Relu(FC′1(GAP(f tar )))))

[0079] The smoother consists of a CBS module, the purpose of which is to organize the concatenated results. The size of the convolution kernel is 3×3, the step size is 1, and the number of output channels is 2048. This process can be simply described as:

[0080] f tar =CBS smo (cat(f base ,f key ))

[0081] where f tar represents the target feature map output by the feature selector, f base represents the feature map output by the basic extractor, f key Represents the characteristic graph after selection switch screening, CBS smo (·) represents the smoother module, cat(·,·) represents the conversion of f base With f key Splicing is performed in the channel direction. The target feature map size output by the feature selector is:

[0082]

[0083] (3) Input the target feature map into the region generation subnetwork to generate a set of switch target candidate boxes.

[0084] like Figure 6 As shown in FIG. 1 , the region generation subnetwork includes a preprocessing layer, a priori box binary classification layer, and a priori box position adjustment layer. The preprocessing layer includes a preprocessing convolution kernel C P , preprocessing convolution kernel C PThe size is 3, the step size is 1, and the number of output channels is 512. It is used to preprocess the input feature map. At the same time, the preprocessing layer generates a priori boxes of different sizes suitable for the current feature map according to the scale of the input feature map, which is used to roughly estimate the position of the switch target; the priori box binary classification layer contains a binary classification convolution kernel C C , binary convolution kernel C C The size is 1, the step length is 1, and the number of output channels is a×2, which is used to generate the prior box annotation confidence for the preprocessing layer; the prior box position adjustment layer contains a regression convolution kernel C R , classification convolution kernel C R The size is 1, the step length is 1, and the number of output channels is a×4, which is used to adjust the position of the prior frame; where a is the number of prior frames of different sizes. The specific synthesis mechanism is:

[0085] f l =C P (f tar )

[0086] f c =C C (f l )

[0087] f R =C R (f l )

[0088] where f l Represents the target feature map f tar By preprocessing the convolution kernel C P The output feature after c f l Through the binary convolution kernel C C The output feature after R f l By regressing the convolution kernel C R The output features after .

[0089] Network according to f c Given the feature map f tar The confidence of each prior frame containing the switch feature is selected, and the prior frame with higher confidence is selected; according to f R The position deviation of the high-confidence prior frame selected above is adjusted, and a set of possible switch target candidate frames {ROI1, ROI2, ...} is output.

[0090] (4) The switch classification subnetwork is used to identify the switch features in the switch target candidate box set to obtain the prediction results of the network model, which include the category and location of the high-voltage switch and its state.

[0091] like Figure 7 As shown in the figure, the switch classification sub-network includes a switch feature processing module, a switch classification module and a candidate box adjustment module. i Corresponding to the feature map f obtained by the pyramid feature extraction sub-network tar The switch area feature map corresponding to the candidate box after ROIPooling operation is extracted The switch feature processing module contains two fully connected layers: fully connected layers 1 and 2, which are used to preprocess features. The switch classification module contains a fully connected layer 3, which is used to transform the candidate box ROI i The candidate box adjustment module contains a fully connected layer 4 for classifying the switches in the candidate box ROI. i The specific synthesis mechanism is:

[0092]

[0093]

[0094] O cls =FC cls (O pre )

[0095] O reg =FC reg (O pre )

[0096] Among them, ROI i represents the i-th candidate box proposed by the region generation subnetwork, F sep () indicates based on ROI i Separate f tar The local feature map is then ROIPooling, D ROIi Represents the ROI obtained after ROIPooling operation i The corresponding local feature map i; flat() is the operation of stretching the high-dimensional tensor into a vector, FC1 and FC2 represent the two fully connected layers of the switch feature processing module; FC cls Represents the fully connected layer of the switch classification module; FC reg represents the fully connected layer of the candidate box adjustment module; O cls , O reg They represent the switch classification results and candidate box regression results respectively.

[0097] Fully connected layers 1 and 2 are used to process switch features, and both have a length of 1024. Fully connected layer 3 has a length of x, where x is the number of high-voltage switch categories. Fully connected layer 4 has a length of 4, and is used to further adjust the position of the candidate box. S103: Based on the prediction results and the manually labeled high-voltage switch information, the loss function of the network model is optimized to achieve convergence of the network model and obtain a trained network model.

[0098] The specific training parameters of this process are designed as follows:

[0099] The Adam optimizer is used, and its parameters are set to 0.9 / 0.999; the number of epochs required for network model training is set to 100, and the initial value of the learning rate is set to 0.0001. In order to make the model reach the optimal value as much as possible during the training process and avoid reaching suboptimal values, the cosine annealing strategy is used to continuously reduce the learning rate as the epoch increases; the batch setting depends on the training data set and the GPU memory size. When the training data set samples are large and the GPU memory is large, the batch can be set to be relatively large, and vice versa.

[0100] Set the loss function of the region generation subnetwork as follows:

[0101]

[0102] Among them, p i is the confidence of the i-th prior box, is the label of the prior frame i, whose value is 1 or 0, and is obtained by calculating the intersection and union ratio of the prior frame i and the specific position of the switch in the annotation information; if is 1, then t i is the offset of the prior box i, N is the offset between the prior frame i and the switch position; rpn_cls is the total number of a priori boxes marked as 1 and 0 in the a priori box, N rpn_reg is the total number of prior boxes marked as 1 in the prior box, λ is the weight parameter; the classification loss L rpn_cls Using the cross entropy loss function, the regression loss L rpn_reg Use Smooth L1 Loss, that is:

[0103]

[0104] Set the loss function of the switch classification subnetwork as follows:

[0105]

[0106] Among them, p k is the category of the switch target candidate box k predicted by the network, is the switch category label corresponding to the target candidate box, t k is the offset of the target candidate box k predicted by the network, is the actual offset between the target candidate box and the switch position in the annotation information; N is the total number of target candidate boxes; the classification loss L ide_cls Using the cross entropy loss function, the regression loss L ide_reg Use Smooth L1 Loss.

[0107] By optimizing the above loss function, the convergence of the network model is achieved.

[0108] S104: Input the outdoor image to be tested into the trained network model to complete the real-time detection and classification of the high-voltage switch.

[0109] The real-time captured images are input into the trained network model; the position detection and state recognition of the high-voltage switch in the captured images are implemented according to the prediction results of the network model.

[0110] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0111] The above is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solution and inventive concept of the present invention within the scope disclosed by the present invention, which shall fall within the protection scope of the present invention.

Claims

1. Intelligent detection method of high-voltage switchgear in outdoor environment based on feature selector, It is characterized in that The method comprises: S101: Acquire a training data set, where the training data set is a data set of various high-voltage switch samples in various outdoor scenes; S102: Constructing a network model, the network model includes an image feature extraction subnetwork, a feature selector subnetwork, a region generation subnetwork and a switch classification subnetwork; wherein the image feature extraction subnetwork is used to extract features from the switch sample training data set to obtain deep sample features including environmental features; the feature selector subnetwork is used to perform feature screening on the deep sample features to obtain a target feature map after feature screening; the region generation subnetwork is used to process the target feature map to generate a switch target candidate frame set; the switch classification subnetwork is used to identify switch features in the target candidate frame set to obtain a prediction result of the network model; S103: optimizing the loss function of the network model according to the prediction result and the manually labeled high-voltage switch information in the sample data set to obtain a trained network model; S104: inputting the outdoor image to be tested into the trained network model to complete the position detection and state recognition of the high-voltage switch; The image feature extraction subnetwork is a classification network resnet101, which includes five main modules. The deep sample feature is the output feature map of the resnet101 network, which includes the deep semantic features of the high-voltage switch and the deep semantic features of the environment in which it is located; The feature selector includes four parts: a basic extractor, a candidate module, a selection switch, and a smoother; the basic extractor is used to extract the basic features of the deep feature map; the candidate module includes three candidate extractors with the same structure but different parameters, which are used to extract three different feature information; the selection switch is a selection mechanism, which is used to select features that are more suitable for subsequent propagation from the above three feature information; the smoother is a splicing module, which is used to splice and fuse the above basic features with the screening features; the working process of the feature selector includes: The deep sample features containing environmental features are respectively input into the basic extractor, the candidate module, and the selection switch to generate a basic feature map, three candidate feature maps, and a three-dimensional one-hot vector in turn; the three-dimensional vector is multiplied by the three candidate feature maps to obtain a filtered feature map, and finally a smoother is used to splice the basic feature map and the filtered feature map to generate a target feature map after feature selection.

2. The intelligent detection method for high-voltage switchgear according to claim 1, It is characterized in that The region generation subnetwork includes a preprocessing layer, a priori frame binary classification layer, and a priori frame position adjustment layer; The process of processing the target feature map by using the region generation subnetwork to generate a set of high-voltage switch target candidate frames includes: The target feature map is input into the preprocessing layer, and the preprocessing layer generates a priori boxes of different sizes according to the target feature map, so as to detect the approximate position of the switch target; Inputting the prior frame into the prior frame binary classification layer to generate the confidence of the prior frame; Inputting the prior frame into the prior frame position adjustment layer to generate an offset of the prior frame; According to the confidence, a priori frame with a higher confidence is selected; according to the offset, a position deviation is adjusted for the priori frame with a higher confidence, and a set of high-voltage switch target candidate frames is output.

3. The intelligent detection method for high-voltage switchgear according to claim 1, It is characterized in that The switch classification subnetwork includes a switch feature processing module, a switch classification module and a candidate frame adjustment module; The switch classification subnetwork is used to identify the high-voltage switch features in the target candidate frame set to obtain the prediction result of the network model, including: Mapping the target candidate frame in the high-voltage switch target candidate frame set onto the target feature map and performing a ROIPooling operation to obtain a switch feature map; inputting the switch feature map into the high-voltage switch feature processing module; Inputting the output features of the high-voltage switch feature processing module into the switch classification module to classify the high-voltage switch target candidate frame to obtain the category of the high-voltage switch; The output features of the switch feature processing module are input into the candidate frame adjustment module to generate an offset of the switch target candidate frame, which is used to adjust the position of the switch target candidate frame to obtain an optimized switch position.

4. The intelligent detection method for high-voltage switchgear according to claim 1, It is characterized in that According to the prediction results and the manually annotated high-voltage switch information in the switch sample data set, the loss function of the network model is optimized to obtain a trained network model, including: The network is randomly initialized, and for three different candidate extractors of the feature selector, the parameters are respectively initialized to three different parameter distributions; the network model is trained using the high-voltage switch training set, and the loss function of the network is optimized according to the prediction results and the switch state information, so as to achieve convergence of the network model and obtain a trained network model.

5. The intelligent detection method for high-voltage switchgear according to claim 1, It is characterized in that The prediction result includes the category and location of the high-voltage switch; the loss function of the region generation subnetwork is: Among them, p i is the confidence of the prior box i, is the label of the prior frame i, whose value is 1 or 0, and is obtained by calculating the intersection and union ratio of the prior frame i and the switch position in the switch information; if is 1, then t i is the offset of the prior box i, N is the offset between the prior frame i and the switch position in the switch information; rpn_cls is the total number of a priori boxes marked as 1 and 0 in the a priori box, N rpn_reg is the total number of prior boxes marked as 1 in the prior box, λ is the weight parameter; the classification loss L rpn_cls Using the cross entropy loss function, the regression loss L rpn_reg Use Smooth L1 Loss, that is: The loss function of the switch classification subnetwork is: Among them, p k is the category of the switch target candidate box k predicted by the network, is the switch category label corresponding to the switch target candidate box, t k is the offset of the switch target candidate box k predicted by the network, is the actual offset between the switch target candidate box and the switch position in the switch information; N is the total number of switch target candidate boxes; the classification loss L ide_cls Using the cross entropy loss function, the regression loss L ide_reg Use Smooth L1 Loss.

6. The intelligent detection method for high-voltage switchgear according to any one of claims 1 to 5, It is characterized in that The step of obtaining a training data set includes: Capture real-time outdoor scenes with multiple high-voltage switches and their different states under any lighting and background; Manually annotate each outdoor image with high-voltage switch features with switch information; wherein the switch information includes switch location and switch category; The switch sample data set is used to form a training data set and a test data set in a ratio of 9:1.

Citation Information

Patent Citations

  • State identification method for high-voltage disconnecting switch based on Hough forest

    CN106022345A

  • Switch cabinet image on / off state automatic recognition method based on deep learning

    CN108710913A

  • Convolutional neural network-based remote sensing image target detection method

    CN110084195A

  • Improved vehicle type identification method based on Faster RCNN deep learning network

    CN113205026A

  • Injection molding part defect detection method and device based on normal sample auxiliary feature extraction and medium

    CN115082386A