Isolation switch one-key sequence control video double-confirmation method and device, electronic equipment and storage medium

By constructing a change detection model and a motion trend prediction algorithm, the opening or closing status of the substation isolating switch is identified, which solves the problem of insufficient recognition accuracy in the existing technology and achieves stable identification and safety improvement of the action status of the isolating switch. .

CN118570725APending Publication Date: 2024-08-30SHANDONG ZHIYANG ELECTRIC
View PDF 0 Cites 2 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, the identification accuracy of the one-key sequence control video double confirmation of the substation isolating switch is insufficient, resulting in a high risk of misoperation and missed operation.

Method used

A video double confirmation method for one-key sequential control of the isolating switch is designed. By obtaining video samples of the substation isolating switch opening and closing process, sampling and annotating frames, constructing an image frame data set, training a change detection model, and using twin networks and feature extraction The algorithm identifies the status of the isolating switch, determines whether the opening or closing is in place, and predicts the movement trend to achieve stable identification of the action state.

Benefits of technology

It improves the accuracy of identifying the action state of the isolation switch, reduces the risk of misoperation and missed operation, and improves the safety of operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570725A
    Figure CN118570725A
Patent Text Reader

Abstract

The invention belongs to the technical field of intelligent detection of transformer substations, and particularly relates to an isolating switch one-key sequential control video double-confirmation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring video samples for switching on and switching off the isolating switch of the transformer substation to construct an image frame data set, and selecting a key frame image from the image frame data set; training a change detection model by using the image frame data set to obtain a change detection target model; an end frame image is extracted from the to-be-identified disconnecting switch opening / closing process action video, the state of the disconnecting switch is identified by using the change detection target model, and if the disconnecting switch is opened / closed in place, normal opening / closing is directly output; and otherwise, extracting a process frame image, extracting feature vectors of the process frame image and the key frame image by using a feature extraction algorithm, and calculating the similarity between the two feature vectors by using a similarity evaluation algorithm so as to predict the motion trend of the disconnecting switch. According to the method, the video double-confirmation identification problem in one-key sequential control of the isolating switch of the transformer substation is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent detection of substations, and more specifically, relates to a one-key sequential control video double confirmation method, device, electronic equipment and storage medium for an isolating switch. Background Art

[0002] One-click sequential control video double confirmation is a technology applied to substations to improve operational efficiency and safety. It combines automatic control technology, Internet of Things technology and image intelligent analysis technology to transform traditional manual single-step operations into computer-automated batch operations.

[0003] In specific operations, the one-button sequential control function compiles common substation operations into operation module buttons on the monitoring background of the substation according to the five-defense logic. Operators only need to call the corresponding operation ticket according to the name of the operation task to complete the desired operation without having to compile complicated operation tickets. The video double confirmation adds a special camera to collect the video image of the disconnector connecting rod. After identification by the video analysis algorithm, the action status of the disconnector is given, including four states: normal opening, normal closing, abnormal opening, and abnormal closing. The identification result is then returned to the main equipment monitoring system for double confirmation and comparison, and finally the double confirmation function of the equipment position is realized. The one-button sequential control combined with a stable video double confirmation algorithm can not only shorten the operation time and improve the operation efficiency, but also reduce the risk of misoperation and missed operation, and improve the safety of operation.

[0004] Chinese patent document CN111614913A discloses a one-button sequential control double confirmation system and method based on intelligent identification of the position of the isolating switch. The sequential control monitoring host confirms the isolating switch that needs to be sequentially controlled, and sends the number and the opening and closing state of the isolating switch to be operated to the video monitoring host. The video monitoring host retrieves the corresponding preset position of the camera according to the isolating switch number, and then obtains the real-time video and sends it to the intelligent analysis host for analysis. The analysis result is written into an e-format file, and the judgment result file is transmitted to the sequential control monitoring host through the reverse isolation device. The sequential control monitoring host parses the result file to obtain the isolating switch position and the remote signal for double confirmation. One-button sequential control requires the sequential control operation to obtain double confirmation of non-homologous signals, and uses video image recognition as the second criterion. It has the advantages of accurate judgment, completely independent installation without power outage, convenient maintenance, safety and reliability.

[0005] Chinese patent document CN117710892A discloses a method and device for monitoring the status of a high-voltage disconnecting switch knife switch, which belongs to the field of primary equipment intelligent sensing technology. The method for monitoring the status of a high-voltage disconnecting switch knife switch determines the opening and closing state of the knife switch through knife switch image data, determines the opening and closing speed state of the knife switch through knife switch speed data, and determines the operating state of the knife switch operating mechanism through noise data; the final opening and closing state of the disconnecting switch knife switch is determined based on at least two state data of the opening and closing state of the knife switch, the opening and closing speed state, and the operating state of the operating mechanism. Compared with the prior art, the types of judgment data for judging the status of the disconnecting switch knife switch are increased, and the reliability of the judgment result is improved. The problem of low judgment reliability when judging the status of the knife switch only by whether the opening and closing of the switch is in place is solved.

[0006] In view of this, the present invention designs a one-key sequential control video double confirmation method for a transformer substation isolating switch to solve the recognition problem of video double confirmation in one-key sequential control. Summary of the invention

[0007] The present invention aims to overcome at least one defect of the above-mentioned prior art and provide a method for one-key sequential control and video double confirmation of an isolating switch to solve the problem of identifying double confirmation of video in one-key sequential control.

[0008] The invention also discloses a device loaded with a one-key sequential control video double confirmation method for an isolating switch.

[0009] The detailed technical scheme of the present invention is as follows:

[0010] A one-key sequential control video double confirmation method for an isolating switch, the method comprising:

[0011] S1. Obtain video samples of the disconnection and closing process of the substation disconnector, sample and annotate the frames, construct an image frame data set, and select key frame images of the disconnector from the closed state to the open state from the image frame data set to construct motion trend template data;

[0012] S2, constructing a change detection model, and using the image frame data set to train the change detection model to obtain a change detection target model;

[0013] S3, extracting the end frame image from the action video of the disconnecting and closing process of the substation disconnector to be identified, and using the change detection target model to identify the state of the disconnector in the end frame image to determine whether the disconnector is opened or closed. If so, the corresponding output is normal for opening or closing, otherwise, executing step S4;

[0014] S4. Extract a process frame image from the action video of the disconnecting and closing process of the substation disconnecting switch to be identified, use a feature extraction algorithm to extract the feature vector of the process frame image and the feature vector of the key frame image in the motion trend template data, and use a similarity evaluation algorithm to calculate the similarity between the feature vector of the process frame image and the feature vector of the key frame image, and predict the motion trend of the disconnecting switch according to the maximum similarity.

[0015] Preferably, in step S1, obtaining a video sample of the opening and closing process of the substation disconnector, sampling and marking the video sample frame by frame, specifically includes:

[0016] The image samples obtained by frame extraction are paired in pairs, and the labelme annotation tool is used to mark the difference parts of the two paired image samples in the form of polygon annotation to generate a mask label of the changed area. The label is a binary image, in which the changed area is white and the unchanged area is black. The label is used to train the subsequent change detection model.

[0017] Preferably, according to the present invention, in step S2, constructing the change detection model specifically includes: taking UNet as the network basis, and injecting holes into its standard convolutional layer.

[0018] Preferably, in the step S2, the change detection model is constructed, and further comprises: adding a CBAM attention mechanism, wherein the CBAM attention mechanism includes a channel attention map M c (F) and the spatial attention map M s (F), where the channel attention map M c (F) is:

[0019] M c (F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F))) (1);

[0020] In formula (1), σ(·) represents the sigmoid function, MLP represents a multi-layer perceptron, AvgPool(F) and MaxPool(F) represent the average pooling feature and the maximum pooling feature respectively; and formula (1) indicates that AvgPool(F) and MaxPool(F) are forwarded to a shared network composed of a multi-layer perceptron MLP, and the channel attention map M is generated after the sigmoid function σ c (F).

[0021] The spatial attention map M s (F) is:

[0022] M s (F) = σ(f 7×7([AvgPool(F));MaxPool(F)])) (2);

[0023] In formula (2): f 7×7 represents a convolution operation with a filter size of 7×7; and in formula (2), AvgPool(F) and MaxPool(F) are aggregated to generate two 2D graphs, and the spatial attention graph M is generated by the sigmoid function σ s (F).

[0024] Preferably, in step S2, the building of the change detection model further includes: designing a hybrid network loss function:

[0025] Loss = FL + DL (3);

[0026] In formula (3), FL represents the Focal Loss loss function, and DL represents the Dice Loss loss function.

[0027] Preferably, according to the present invention, the FL loss function is:

[0028] FL(p t )=-α t (1-p t ) γ log(p t ) (4);

[0029]

[0030] In formula (4) and formula (5), p is the probability of the model predicting a change, ranging from 0 to 1, y is the annotated label, and y = 1 indicates a positive sample with a label of change. Here, p is used to represent the probability of a positive sample with a label of change, and 1-p is used to represent the probability of a negative sample with a label of no change. The calculation is unified with p t Function representation, α t is a hyperparameter used to suppress the imbalance in the number of positive and negative samples, and γ is a focusing parameter used to control the imbalance in the number of simple or difficult to distinguish samples.

[0031] Preferably, according to the present invention, the DL loss function is:

[0032]

[0033] In formula (6), X is the prediction map, which is inferred by the change detection model, and Y is the label map, which is obtained by annotation. |X∩Y| represents the intersection between X and Y, |X| and |Y| represent the number of elements of X and Y respectively, and the coefficient of the numerator is 2.

[0034] In another aspect of the present invention, a device for implementing a one-key sequential control video double confirmation method for an isolation switch is provided, the device comprising:

[0035] A sample data acquisition module is used to acquire video samples of the disconnection and closing process of the substation disconnector, sample and annotate the frames, construct an image frame data set, and select key frame images of the disconnector from the closed state to the open state from the image frame data set to construct motion trend template data;

[0036] A model building module is used to build a change detection model and train the change detection model using the image frame data set to obtain a change detection target model;

[0037] The disconnector state detection module is used to extract the end frame image from the action video of the disconnector opening and closing process of the substation to be identified, and use the change detection target model to identify the state of the disconnector in the end frame image to determine whether the disconnector is opened or closed;

[0038] The disconnector movement trend prediction module is used to extract a process frame image from the substation disconnector opening and closing process action video to be identified, use a feature extraction algorithm to extract the feature vector of the process frame image and the feature vector of the key frame image in the movement trend template data, and use a similarity evaluation algorithm to calculate the similarity between the feature vector of the process frame image and the feature vector of the key frame image, and predict the movement trend of the disconnector according to the maximum similarity.

[0039] In another aspect of the present invention, there is also provided an electronic device, comprising:

[0040] at least one processor; and

[0041] A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the isolation switch one-key sequential control video double confirmation method as described above.

[0042] In another aspect of the present invention, a machine-readable storage medium is provided, which stores executable instructions, and when the instructions are executed, the machine executes the isolation switch one-key sequential control video double confirmation method as described above.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] (1) The present invention provides a one-key sequential control video double confirmation method for an isolating switch. The method uses deep learning technology to design a twin network change detection model to detect whether the isolating switch is in place. At the same time, an isolating switch movement trend prediction algorithm is designed. If it is detected that the isolating switch is not in place, the isolating switch movement trend prediction algorithm is called to predict the movement trend of the isolating switch, thereby achieving a stable state recognition capability for the action state of the substation isolating switch.

[0045] (2) The present invention adopts the judgment logic of combining the final state with trend prediction, which can not only identify whether the disconnector has been fully actuated, but also further analyze whether it is a closing process or an opening process, thereby further reducing the risk of misoperation and missed operation and improving the safety of operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is an execution flow chart of the one-key sequential control video double confirmation method of the isolation switch described in the present invention.

[0047] Figure 2 It is a network structure diagram of the change detection model in Example 1 of the present invention.

[0048] Figure 3 It is a network structure diagram of the CBAM attention mechanism in Example 1 of the present invention.

[0049] Figure 4 It is a schematic diagram of the principle of judging the end state of the isolating switch in Example 1 of the present invention.

[0050] Figure 5 It is a schematic diagram of the principle of predicting the movement trend of the isolating switch in Example 1 of the present invention. DETAILED DESCRIPTION

[0051] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0052] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0053] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0054] In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other.

[0055] In order to solve the existing problem of double confirmation recognition of one-key sequential control video of substation disconnecting switches, the present invention provides a one-key sequential control video double confirmation method for disconnecting switches. The method mainly includes four stages: data set production, change detection model construction and training, trend prediction related algorithm design and model combination application.

[0056] During the dataset preparation stage, a special camera for disconnectors in the substation is used to shoot a complete video of the disconnector operation process, and image frames are obtained by video frame extraction. The obtained image frames are used for data annotation for subsequent change detection model training, and for key frame screening as template data for subsequent trend prediction and model combination application stages.

[0057] In the change detection model training stage, the acquired image frames are used as training samples, UNet is used as the network basis of the change detection model, and hollow convolution is used to increase the receptive field to solve the problem that downsampling in the semantic segmentation problem will reduce image resolution and lose information; at the same time, CBAM is added to the attention mechanism in the channel and spatial dimensions, and the Dice Loss+Focal Loss mixed loss method is used to adjust the twin network weights through error back propagation for model training.

[0058] In the trend prediction algorithm design stage, a feature extractor and a feature vector similarity evaluation scheme are designed to compare the similarities between the previous and next key frames in the video to be identified and the template image in turn, and the movement trend of the isolating switch is predicted based on the changing trend of the similarity.

[0059] In the model combination application stage, the trained change detection model is used to identify the state of the end frame of the disconnector video to determine whether the disconnector is in place. If so, the output is directly that the disconnector is normal; if so, the output is directly that the disconnector is normal. The motion trend prediction model is used to handle the situation where neither the disconnection nor the disconnection is in place, and the motion trend of whether it is open or closed is identified to determine whether the state of the disconnector is abnormal opening or closing.

[0060] The following is a further description of the isolating switch one-key sequential control video double confirmation method and device of the present invention in conjunction with specific embodiments.

[0061] Embodiment 1,

[0062] Ginseng Figure 1 This embodiment provides a one-key sequential control video double confirmation method for an isolation switch, the method comprising:

[0063] S1. Obtain video samples of the closing and opening process of the substation disconnector, sample and annotate the frames, construct an image frame data set, and select key frame images of the disconnector from the closed state to the open state from the image frame data set to construct motion trend template data.

[0064] Specifically, a dedicated camera for disconnectors in a substation can be used to capture a complete video of the disconnector opening and closing process as a video sample, and then the video sample can be extracted to obtain a number of image frames, which are then constructed into an image frame dataset.

[0065] Among them, the acquired image frames are labeled for data on the one hand, which is used for the subsequent training of the change detection model. Specifically, the image samples obtained by frame extraction are paired with each other, and the labelme annotation tool is used to mark the difference between the two paired image samples in the form of polygon annotation to generate the change area mask label. The label is a binary image, in which the change area is white and the unchanged area is black. On the other hand, key frames are screened as motion trend template data for the subsequent disconnector motion trend prediction and model combination application stage.

[0066] Furthermore, in this embodiment, the selected key frames include the complete process of the disconnector from closing to opening. In order to facilitate the subsequent judgment of the movement trend of the disconnector, the extracted key frames can be numbered 1, 2, 3...n from the closing state to the opening state. If the numbering sequence increases, it indicates that the disconnector is in a state of change from closing to opening; conversely, if the numbering sequence decreases, it indicates that the disconnector is in a state of change from opening to closing, so that the movement trend of the disconnector can be identified and used to judge whether the state of the disconnector is abnormal opening or closing.

[0067] It should be understood that, in theory, the denser the key frames are selected, the more accurate the prediction result of the motion trend of the disconnector will be, and the corresponding calculation time will also increase.

[0068] S2. Construct a change detection model, and use the image frame data set to train the change detection model to obtain a change detection target model.

[0069] In this embodiment, a twin network structure is designed to detect changes in the state of the isolation switch. Figure 2, using the image frame dataset as the training sample set, UNet as the network basis of the change detection model, and using the hole convolution to increase the receptive field to solve the problem that downsampling in the semantic segmentation problem will reduce the image resolution and lose information; at the same time, CBAM is used to add the attention mechanism in the channel and spatial dimensions, and the Dice Loss and Focal Loss mixed loss method is used to adjust the twin network weights through error back propagation to complete the training of the change detection model, and finally obtain the trained change detection target model.

[0070] Specifically, the construction of the change detection model includes:

[0071] S21. Using UNet as the network basis, holes are injected into its standard convolutional layer.

[0072] In this embodiment, the change detection model constructed is based on UNet, uses dilated convolution, and introduces a new parameter "expansion rate", which defines the spacing between values ​​when the convolution kernel processes data. Under the same computing conditions, dilated convolution can provide a larger receptive field and solve the problem that downsampling in semantic segmentation will reduce image resolution and lose information.

[0073] S22, adding CBAM attention mechanism, the CBAM attention mechanism includes channel attention map M c (F) and the spatial attention map M s (F) where:

[0074] M c (F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F))) (1);

[0075] M s (F) = σ(f 7×7 ([AvgPool(F));MaxPool(F)])) (2);

[0076] In formula (1) and formula (2), σ(·) represents the sigmoid function, MLP represents a multi-layer perceptron, AvgPool(F) and MaxPool(F) represent the average pooling feature and the maximum pooling feature, respectively, and f 7×7 represents a convolution operation with a filter size of 7×7; and in formula (1), AvgPool(F) and MaxPool(F) are forwarded to a shared network composed of a multi-layer perceptron MLP, and the channel attention map M is generated after the sigmoid function σ c (F); Formula (2) indicates that AvgPool(F) and MaxPool(F) are aggregated to generate two 2D graphs, and the spatial attention graph M is generated by the sigmoid function σs (F).

[0077] Specific reference Figure 3 ,CBAM attention mechanism is a plug-and-play module that can be directly inserted into the change detection model, which combines the input feature map F with the channel attention map M c (F) and the spatial attention map M s (F) element-wise multiplication operation can obtain a new output feature map F′, and the new output feature map F′ has a stronger feature representation capability. It can be regarded as extracting spatial dimension and channel dimension features respectively between the original two feature layers. The newly obtained output layer has a stronger feature representation capability than the original output layer. Therefore, by adding the CBAM attention mechanism, the overall recognition rate of the model can be significantly improved.

[0078] S23. Design hybrid network loss function:

[0079] Loss = FL + DL (3);

[0080] In formula (3), FL represents the Focal Loss function, and:

[0081] FL(p t )=-α t (1-p t ) γ log (p t ) (4);

[0082]

[0083] In formula (4) and formula (5), p is the probability of the model predicting a change, ranging from 0 to 1, y is the annotated label, and y = 1 indicates a positive sample with a label of change. Here, p is used to represent the probability of a positive sample with a label of change, and 1-p is used to represent the probability of a negative sample with a label of no change. The calculation is unified with p t Function representation, α t is a hyperparameter used to suppress the imbalance in the number of positive and negative samples, and γ is a focusing parameter used to control the imbalance in the number of simple or difficult to distinguish samples;

[0084] DL represents the Dice Loss loss function, and:

[0085]

[0086] In formula (6), X is the prediction map, which is inferred by the change detection model, and Y is the label map, which is obtained by annotation. |X∩Y| represents the intersection between X and Y, |X| and |Y| represent the number of elements of X and Y respectively, and the coefficient of the numerator is 2.

[0087] Based on the above process, a change detection model is constructed, and the image frame dataset is used as a training sample set for training, and finally a change detection target model is obtained. The image frame dataset contains the disconnector opening and closing images as template images, so the trained change detection target model can accurately identify whether the disconnector is in place and output the corresponding recognition results.

[0088] S3. Extract the end frame image from the action video of the disconnecting and closing process of the substation disconnecting switch to be identified, and use the change detection target model to identify the state of the disconnecting switch in the end frame image to determine whether the disconnecting switch is opened or closed. If so, the corresponding output opening is normal or closing is normal. Otherwise, execute step S4.

[0089] This step is to apply the change detection target model constructed in the above steps to identify whether the disconnector in the video to be identified is closed / opened.

[0090] Specific reference Figure 4 First, read the action video of the disconnection and closing process of the substation disconnector to be identified, sample the video frames at equal intervals according to the video playback, and extract the end frame image from it. Then input the extracted end frame image into the trained change detection target model. The change detection target model compares the state of the disconnector in the end frame image with the opening and closing images to determine whether the disconnector is in place.

[0091] If there is no difference between the state of the disconnector in the end frame image and the template image in the open position, it means that the disconnector is in the open position, and the change detection target model directly outputs that the disconnector is in the open position; if there is no difference between the state of the disconnector in the end frame image and the template image in the closed position, it means that the disconnector is in the closed position, and the change detection target model directly outputs that the closed position is normal.

[0092] If the state of the isolating switch in the end frame image is different from the template image in the open position and the template image in the closed position, it indicates that the isolating switch is not in the open or closed position, and an abnormal result is output. Execute step S4.

[0093] S4. Extract a process frame image from the action video of the disconnecting and closing process of the substation disconnecting switch to be identified, use a feature extraction algorithm to extract the feature vector of the process frame image and the feature vector of the key frame image in the motion trend template data, and use a similarity evaluation algorithm to calculate the similarity between the feature vector of the process frame image and the feature vector of the key frame image, and predict the motion trend of the disconnecting switch according to the maximum similarity.

[0094] In this embodiment, an isolating switch movement trend prediction algorithm is designed for the change detection target model to identify the abnormal opening and closing of the isolating switch. The algorithm mainly adopts a feature extraction algorithm and a similarity evaluation algorithm. The process frames of the action video of the substation isolating switch opening and closing process to be identified are analyzed to predict the movement trend of the isolating switch, whether it is currently in the state of opening or closing, so as to determine whether the state of the isolating switch is abnormal opening or closing.

[0095] Among them, the feature extraction algorithm can be CNN, SIFT, SURF, HOG, LBP and other algorithms; the similarity evaluation algorithm can be cosine similarity, Euclidean distance, Pearson correlation coefficient, Manhattan distance and other similarity algorithms, which are not specifically limited here.

[0096] Ginseng Figure 5 In the specific implementation of this step, first read the action video of the disconnecting and closing process of the substation disconnector to be identified, sample the video frames at equal intervals according to the video playback, and extract the process frame image from it. Then use the feature extraction algorithm to extract the feature vector of the process frame image, and at the same time extract the feature vector of the key frame image from the motion trend template data constructed in step S1; then use the similarity evaluation algorithm to calculate the similarity between the feature vector of the process frame image and the feature vector of the key frame image, record the key frame image number corresponding to the maximum similarity, and finally predict the motion trend of the disconnector in the current state of opening or closing according to the recorded key frame image number.

[0097] Exemplarily, as described in step S1, it is known that the key frame images are numbered 1, 2, 3...n in sequence from the closed state to the open state; if the numbering sequence increases in sequence, it indicates that the disconnector is in a state of change from closed to open; if the numbering sequence decreases in sequence, it indicates that the disconnector is in a state of change from open to closed.

[0098] Then, assuming that the key frame images from the closed state to the open state are h, i, j, k, l, and are numbered 1, 2, 3, 4, and 5; the extracted process frame images are a, b, c, d, and e. The similarity evaluation algorithm calculates that: image a has the greatest similarity with image l, image b has the greatest similarity with image k, image c has the greatest similarity with image j, image d has the greatest similarity with image i, and image e has the greatest similarity with image h. At this time, the key frame image numbers recorded are 5, 4, 3, 2, and 1, and the numbering order decreases in sequence, indicating that the disconnector is in a state of change from open to closed, and the closing is abnormal.

[0099] In summary, the one-key sequential control video double confirmation method for the isolating switch of the present invention utilizes deep learning technology to design a twin network change detection model to detect whether the isolating switch is in place for opening / closing; at the same time, an isolating switch movement trend prediction related algorithm is designed. If it is detected that the isolating switch is not in place for opening / closing, the isolating switch movement trend prediction related algorithm will be called to predict the movement trend of the isolating switch, thereby achieving a stable state recognition capability for the action state of the substation isolating switch.

[0100] Embodiment 2,

[0101] This embodiment provides a device for implementing a method for one-key sequential control of an isolating switch and a video double confirmation method, the device comprising:

[0102] A sample data acquisition module is used to acquire video samples of the disconnection and closing process of the substation disconnector, sample and annotate the frames, construct an image frame data set, and select key frame images of the disconnector from the closed state to the open state from the image frame data set to construct motion trend template data;

[0103] A model building module is used to build a change detection model and train the change detection model using the image frame data set to obtain a change detection target model;

[0104] The disconnector state detection module is used to extract the end frame image from the action video of the disconnector opening and closing process of the substation to be identified, and use the change detection target model to identify the state of the disconnector in the end frame image to determine whether the disconnector is opened or closed;

[0105] The disconnector movement trend prediction module is used to extract a process frame image from the substation disconnector opening and closing process action video to be identified, use a feature extraction algorithm to extract the feature vector of the process frame image and the feature vector of the key frame image in the movement trend template data, and use a similarity evaluation algorithm to calculate the similarity between the feature vector of the process frame image and the feature vector of the key frame image, and predict the movement trend of the disconnector according to the maximum similarity.

[0106] Embodiment 3,

[0107] This embodiment also provides an electronic device, including:

[0108] at least one processor; and

[0109] A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the isolation switch one-key sequential control video double confirmation method as described above.

[0110] In this embodiment, the electronic device may include, but is not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, tablet computers, cellular phones, personal digital assistants (PDAs), handheld devices, messaging devices, wearable computing devices, consumer electronic devices, and the like.

[0111] Embodiment 4,

[0112] This embodiment also provides a machine-readable storage medium storing executable instructions, which, when executed, enable the machine to execute the isolation switch one-key sequential control video double confirmation method as described above.

[0113] Specifically, a system or device equipped with a readable storage medium can be provided, on which software program codes that implement the functions of any of the above-mentioned embodiments are stored, and a computer or processor of the system or device can read and execute instructions stored in the readable storage medium.

[0114] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute part of this specification.

[0115] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.

[0116] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0117] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0118] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0119] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0120] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A one-button sequential control video double confirmation method for an isolating switch, It is characterized in that The method comprises: S1. Obtain video samples of the disconnection and closing process of the substation disconnector, sample and annotate the frames, construct an image frame data set, and select key frame images of the disconnector from the closed state to the open state from the image frame data set to construct motion trend template data; S2, constructing a change detection model, and using the image frame data set to train the change detection model to obtain a change detection target model; S3, extracting the end frame image from the action video of the disconnecting and closing process of the substation disconnector to be identified, and using the change detection target model to identify the state of the disconnector in the end frame image to determine whether the disconnector is opened or closed. If so, the corresponding output is normal for opening or closing, otherwise, executing step S4; S4. Extract a process frame image from the action video of the disconnecting and closing process of the substation disconnecting switch to be identified, use a feature extraction algorithm to extract the feature vector of the process frame image and the feature vector of the key frame image in the motion trend template data, and use a similarity evaluation algorithm to calculate the similarity between the feature vector of the process frame image and the feature vector of the key frame image, and predict the motion trend of the disconnecting switch according to the maximum similarity.

2. According to claim 1, the isolating switch one-key sequential control video double confirmation method, It is characterized in that In the step S1, a video sample of the opening and closing process of the substation disconnector is obtained, and frame sampling and labeling are performed, specifically including: The image samples obtained by frame extraction are paired in pairs, and the labelme annotation tool is used to mark the difference parts of the two paired image samples in the form of polygon annotation to generate a mask label of the changed area. The label is a binary image, in which the changed area is white and the unchanged area is black.

3. The one-key sequential control video double confirmation method for the isolating switch according to claim 1, It is characterized in that In the step S2, the construction of the change detection model specifically includes: taking UNet as the network basis, and injecting holes into its standard convolutional layer.

4. The one-key sequential control video double confirmation method for the isolating switch according to claim 1, It is characterized in that In step S2, the change detection model is constructed, specifically including: adding a CBAM attention mechanism, the CBAM attention mechanism includes a channel attention map M c (F) and the spatial attention map M s (F), where the channel attention map M c (F) is: M c (F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F))) (1); In formula (1), σ(·) represents the sigmoid function, MLP represents a multi-layer perceptron, AvgPool(F) and MaxPool(F) represent the average pooling feature and the maximum pooling feature respectively; and formula (1) indicates that AvgPool(F) and MaxPool(F) are forwarded to a shared network composed of a multi-layer perceptron MLP, and the channel attention map M is generated after the sigmoid function σ c (F); The spatial attention map M s (F) is: M s (F)=σ(f 7×7 ([AvgPool(F));MaxPool(F)])) (2); In formula (2): f 7×7 represents a convolution operation with a filter size of 7×7; and in formula (2), AvgPool(F) and MaxPool(F) are aggregated to generate two 2D graphs, and the spatial attention graph M is generated by the sigmoid function σ s (F).

5. The one-key sequential control video double confirmation method for the isolating switch according to claim 1, It is characterized in that In step S2, the construction of the change detection model specifically includes: designing a hybrid network loss function, namely: Loss = FL + DL (3); In formula (3), FL represents the Focal Loss loss function, and DL represents the Dice Loss loss function.

6. The one-key sequential control video double confirmation method for the isolating switch according to claim 5, It is characterized in that The FL loss function is: FL(p t )=-a t (1-p t ) γ log(p t ) (4); In formula (4) and formula (5), p is the probability of the model predicting a change, ranging from 0 to 1, y is the annotated label, and y = 1 indicates a positive sample with a label of change. Here, p is used to represent the probability of a positive sample with a label of change, and 1-p is used to represent the probability of a negative sample with a label of no change. The calculation is unified with p t Function representation, α t is a hyperparameter used to suppress the imbalance in the number of positive and negative samples, and γ is a focusing parameter used to control the imbalance in the number of simple or difficult to distinguish samples.

7. The one-key sequential control video double confirmation method for the isolating switch according to claim 5, It is characterized in that The DL loss function is: In formula (6), X is the prediction map, which is inferred by the change detection model, and Y is the label map, which is obtained by annotation. |X∩Y| represents the intersection between X and Y, |X| and |Y| represent the number of elements of X and Y respectively, and the coefficient of the numerator is 2.

8. A device for realizing a one-key sequential control video double confirmation method for an isolating switch, It is characterized in that The device comprises: A sample data acquisition module is used to acquire video samples of the disconnection and closing process of the substation disconnector, sample and annotate the frames, construct an image frame data set, and select key frame images of the disconnector from the closed state to the open state from the image frame data set to construct motion trend template data; A model building module is used to build a change detection model and train the change detection model using the image frame data set to obtain a change detection target model; The disconnector state detection module is used to extract the end frame image from the action video of the disconnector opening and closing process of the substation to be identified, and use the change detection target model to identify the state of the disconnector in the end frame image to determine whether the disconnector is opened or closed; The disconnector movement trend prediction module is used to extract a process frame image from the substation disconnector opening and closing process action video to be identified, use a feature extraction algorithm to extract the feature vector of the process frame image and the feature vector of the key frame image in the movement trend template data, and use a similarity evaluation algorithm to calculate the similarity between the feature vector of the process frame image and the feature vector of the key frame image, and predict the movement trend of the disconnector according to the maximum similarity.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the one-key sequential control video double confirmation method for an isolating switch as described in any one of claims 1 to 7.

10. A machine-readable storage medium, It is characterized in that The machine-readable storage medium stores executable instructions, which, when executed, enable the machine to execute the one-key sequential control video double confirmation method for an isolating switch according to any one of claims 1 to 7.

Citation Information

Cited By

  • Method and device for determining operation state of ultra-high voltage isolation switch and storage medium

    CN119089400A

  • Isolation switch opening and closing state detection method

    CN119625402A