Method and device for identifying indoor state of transformer substation
By building a cross-modal adaptive neural network model and using image and text feature fusion, the problem of difficulty in obtaining substation status identification data is solved, high-accuracy equipment status monitoring and early warning is achieved, and safety and stability are improved.
Patent Information
- Application Number
- CN202410632384.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-27
AI Technical Summary
Due to the difficulty in data acquisition and high labeling costs, the existing substation status identification methods have poor identification results, and manual inspections pose safety risks.
Use image encoder and text encoder to build a cross-modal adaptive neural network model, generate training data through real-time image data, and use a cross-modal adaptive algorithm to fuse image features and text features to build the first neural network model to achieve Real-time monitoring and early warning of substation equipment status.
It improves the accuracy of substation equipment status identification, reduces the need for training data, enhances the safety and stability of equipment monitoring, and avoids the danger of manual inspections.
Smart Images

Figure CN118552894A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of substation status identification, and in particular to a method and device for identifying indoor status of a substation. Background Art
[0002] At present, with the development of social economy, various industries have higher and higher requirements for power supply. The stable operation of substations plays a vital role in providing stable and reliable power supply. In order to complete the monitoring of equipment in substations, it is necessary to conduct regular inspection and maintenance of substation equipment. The inspection and maintenance method is usually manual inspection, which has low reliability and efficiency, resulting in failure of substation equipment to be discovered in time, causing chain accidents. At the same time, since there are many high-voltage equipment in substations, manual inspections are very dangerous. Using intelligent image recognition technology of video surveillance systems to replace manual inspections will become the development trend of substation inspections.
[0003] The existing substation status recognition method uses the traditional convolutional neural network method to identify the target status of substation equipment. However, due to the complexity of the current substation environment, the diversity of existing equipment and various interference factors, the accuracy of the image processing algorithm is low and the status recognition accuracy is not high. In order to achieve better recognition results, more training data is often required, while the real indoor data of the substation is very difficult to obtain and the labeling cost is high. Summary of the invention
[0004] The present invention provides a method and device for identifying the indoor state of a substation, so as to solve the technical problems that the existing substation state identification sample data is difficult to obtain and the state identification effect is poor.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for identifying indoor status of a substation, comprising:
[0006] Collecting real-time image data of the substation, and generating training data based on the real-time image data;
[0007] Constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the cross-modal adaptive algorithm and the training data;
[0008] The trained first neural network model is used to monitor the operating status of equipment in the substation room in real time, and to issue early warnings for equipment with abnormal status.
[0009] The present invention uses image encoder and text encoder to respectively extract the image information of the substation equipment in the coding room and the equipment name and status information corresponding to the equipment image, and adopts a cross-modal adaptive algorithm to fuse the image features with the text features, thereby constructing a first neural network model, so that for each newly added state type, a small sample is used for training, that is, the recognition accuracy of the first neural network model is improved, thereby avoiding the poor model state recognition effect due to the difficulty in obtaining substation data. And the model realizes real-time monitoring of the equipment cabinet in the substation room, improving safety and stability.
[0010] Furthermore, the first neural network model is constructed according to the image encoder and the text encoder, and the first neural network model is trained according to the cross-modal adaptive algorithm and the training data, specifically:
[0011] Constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the training data;
[0012] In each iteration process, feature information of the training data is extracted according to the image encoder and the text encoder, and the feature information is fused according to a cross-modal adaptive algorithm to optimize the first neural network model;
[0013] When the preset conditions are met, the iteration stops and the trained first neural network model is output.
[0014] Furthermore, the extracting the feature information of the training data according to the image encoder and the text encoder is specifically:
[0015] constructing an image encoder according to the self-attention mechanism and the transformer architecture, and extracting and encoding image features of the training data according to the image encoder;
[0016] A text encoder is constructed according to a self-attention mechanism and a multi-head attention mechanism, and text features of the training data are extracted and encoded according to the text encoder; the text features include device names and status information.
[0017] Furthermore, the feature information is fused according to the cross-modal adaptive algorithm to optimize the first neural network model, specifically:
[0018] Performing feature fusion on the image features and text features according to a cross-modal loss function;
[0019] The soft maximum function in the first neural network model is updated in batches according to the image features and the text features.
[0020] Further, the real-time image data of the substation is collected and generated according to the real-time image data, specifically:
[0021] The indoor robot photographs the equipment cabinets in the substation room to collect real-time image data of the equipment cabinets in the substation room;
[0022] The collected real-time image data is annotated and preprocessed, wherein the preprocessing operation includes scaling, normalization and enhancement operations to generate training data; the training data includes image data and corresponding label information.
[0023] In a second aspect, the present invention further provides a device for identifying indoor status of a substation, comprising: a data acquisition module, a model building module, and an identification module;
[0024] The data acquisition module is used to collect real-time image data of the substation and generate training data according to the real-time image data;
[0025] The model building module is used to build a first neural network model according to the image encoder and the text encoder, and iteratively train the first neural network model according to the cross-modal adaptive algorithm and the training data;
[0026] The identification module is used to monitor the operating status of equipment in the substation room in real time according to the trained first neural network model, and to issue early warnings for equipment with abnormal status.
[0027] Furthermore, the model building module is specifically used to:
[0028] Constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the training data;
[0029] In each iteration process, feature information of the training data is extracted according to the image encoder and the text encoder, and the feature information is fused according to a cross-modal adaptive algorithm to optimize the first neural network model;
[0030] When the preset conditions are met, the iteration stops and the trained first neural network model is output.
[0031] Furthermore, the model building module is also used to:
[0032] constructing an image encoder according to the self-attention mechanism and the transformer architecture, and extracting and encoding image features of the training data according to the image encoder;
[0033] A text encoder is constructed according to a self-attention mechanism and a multi-head attention mechanism, and text features of the training data are extracted and encoded according to the text encoder; the text features include device names and status information.
[0034] Furthermore, the model building module is also used to:
[0035] Performing feature fusion on the image features and text features according to a cross-modal loss function;
[0036] The soft maximum function in the first neural network model is updated in batches according to the image features and the text features.
[0037] Furthermore, the data acquisition module is specifically used for:
[0038] The indoor robot photographs the equipment cabinets in the substation room to collect real-time image data of the equipment cabinets in the substation room;
[0039] The collected real-time image data is annotated and preprocessed, wherein the preprocessing operation includes scaling, normalization and enhancement operations to generate training data; the training data includes image data and corresponding label information. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of a flow chart of a method for identifying indoor status of a substation provided by an embodiment of the present invention;
[0041] Figure 2 A structural schematic diagram of an image encoder of a method for identifying indoor status of a substation provided by an embodiment of the present invention;
[0042] Figure 3 A structural schematic diagram of a text encoder for a method for identifying indoor status of a substation provided by an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of a structure of a substation indoor status identification device provided by an embodiment of the present invention;
[0044] Figure 5 Another flow chart of the method for identifying the indoor state of a substation in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Embodiment 1
[0047] Please refer to Figure 1 , Figure 1 A schematic flow chart of a method for identifying a substation indoor state provided by an embodiment of the present invention includes steps 101 to 103, which are specifically as follows:
[0048] Step 101: collecting real-time image data of the substation, and generating training data according to the real-time image data;
[0049] In this embodiment, the real-time image data of the substation is collected and generated according to the real-time image data, specifically:
[0050] The indoor robot photographs the equipment cabinets in the substation room to collect real-time image data of the equipment cabinets in the substation room;
[0051] The collected real-time image data is annotated and preprocessed, wherein the preprocessing operation includes scaling, normalization and enhancement operations to generate training data; the training data includes image data and corresponding label information.
[0052] In this embodiment, the indoor robot takes pictures of the equipment cabinet and collects real-time image data of the equipment cabinet. The real-time image data includes common equipment in the substation room, such as high-voltage live indicators, switches, hard pressure plates, buttons, isolating switches, white dial ammeters, voltmeters, long switch panels, circuit breakers, knife switches, digital thermometers and hygrometers, box-type hard pressure plates, digital ammeters, round hole circuit breakers, long switch panels, round panel switches, round hole circuit breakers and short switch panels, and the corresponding status of each component.
[0053] In this embodiment, after acquiring the real-time image data of the equipment cabinets in the substation room, the components and their states in the real-time image data are annotated to generate label information corresponding to each component. Specifically, the corresponding status of each device includes: high-voltage live indicator light off, small switch rotated 45 degrees to the left, hard pressure plate withdrawn, hard pressure plate standby, light off, hard pressure plate put into use, light on, digital thermometer and hygrometer, short switch panel upward, short switch panel rotated 45 degrees to the right, small switch rotated 45 degrees to the right, button, isolation knife switch module, white dial ammeter, voltmeter, long switch panel upward, long switch panel rotated 90 degrees to the left, circuit breaker has stored energy, circuit breaker disconnected, circuit breaker has not stored energy, circuit breaker closed, knife switch status green light on, knife switch status red light on, cassette hard pressure plate put into use, cassette hard pressure plate withdrawn, digital ammeter, round hole circuit breaker closing indication, round hole circuit breaker counting indication, long switch panel rotated 45 degrees to the left, round panel switch upward, round panel switch rotated 45 degrees to the left, round hole circuit breaker opening indication, short switch panel rotated 90 degrees to the left, etc.
[0054] In this embodiment, image data is collected by a robot in the substation room. The robot in the substation room has stable motion performance to prevent image blur or shaking; is equipped with high-resolution camera equipment to capture clear image details; has long battery life to allow more data collection tasks; and has reliable data transmission capabilities to ensure that the collected images can be transmitted to subsequent processing links in a timely manner.
[0055] In this embodiment, after acquiring the real-time image data of the equipment cabinets in the substation room, the acquired images are preprocessed, including operations such as scaling, normalization, and enhancement.
[0056] In this embodiment, a scaling operation is used to adjust the image collected by the indoor power substation robot to a consistent resolution, thereby reducing the computational complexity and memory usage while maintaining the image quality. The scaled image is intercepted to obtain an image of the component to be identified.
[0057] In this embodiment, the resize function of the OpenCV library is used to scale the original image to a fixed resolution, such as 512x512 pixels. And according to the template information set in the substation ledger, the image of the component to be identified is intercepted in the real-time image data.
[0058] In this embodiment, the pixel values are scaled to the range of 0-1 by image normalization to accelerate the training process of the neural network model. Specifically, each pixel value in the image is divided by 255 (the maximum pixel value of an 8-bit image) to ensure that all pixel values are between 0 and 1.
[0059] In this embodiment, the image is enhanced by using methods such as histogram equalization and gamma correction, thereby improving the contrast and clarity of the image and improving the performance of the neural network model.
[0060] In this embodiment, the histogram equalization is implemented by redistributing pixel values to enhance the image contrast through the equalizeHist function of the OpenCV library. Gamma correction is usually implemented by applying a power function, such as a pow function, to adjust the brightness and contrast of an image.
[0061] In this embodiment, data augmentation aims to increase the generalization ability of the model by introducing diversity to cope with different input conditions, including random rotation, flipping, cropping and other operations.
[0062] Step 102: constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the cross-modal adaptive algorithm and the training data;
[0063] In this embodiment, a CLIP (Constrastive Language-Image Pre-training) feature extractor trained on ImageNet is used as a basis to construct a first neural network model, which includes an image encoder and a text encoder, so as to identify the status of indoor substation equipment.
[0064] In this embodiment, the feature information of the training data is extracted according to the image encoder and the text encoder, specifically:
[0065] constructing an image encoder according to the self-attention mechanism and the transformer architecture, and extracting and encoding image features of the training data according to the image encoder;
[0066] A text encoder is constructed according to a self-attention mechanism and a multi-head attention mechanism, and text features of the training data are extracted and encoded according to the text encoder; the text features include device names and status information.
[0067] Please refer to Figure 2 , Figure 2 A structural schematic diagram of an image encoder for a method for identifying indoor status of a substation provided by an embodiment of the present invention.
[0068] In this embodiment, an image encoder (VisionTransformer, ViT) is constructed according to the self-attention mechanism and the transformer architecture, and the image encoder includes an input layer, an embedding layer, a position encoding layer and a self-attention module.
[0069] In this embodiment, in the input layer, ViT receives a substation image as input, divides the image into a set of small non-overlapping blocks or patches. Each patch represents a key area in the substation, such as a high-voltage live indicator light, a hard pressure plate, etc., and flattens these patches into vector form.
[0070] In this embodiment, each patch vector in the embedding layer is linearly transformed through an embedding layer to map it to a higher-dimensional feature vector, so that ViT can learn rich information about each patch, including features related to various objects in the substation indoor equipment.
[0071] In this embodiment, in order to process the location information in the image of the substation indoor equipment, ViT introduces a position encoding layer, in which there is usually a set of learnable or fixed vectors to represent the position of the patch in the image, thereby ensuring that the model understands the relative positions of different objects in the image.
[0072] In this example, the self-attention module is the core component of ViT, which allows the model to assign different weights to each patch based on the information of other patches when processing it. This helps the model capture the global contextual information of different parts of the image, such as the association between the state of a circuit breaker, the on and off of a light, etc.
[0073] In this embodiment, ViT includes a stack of multiple self-attention modules to increase the depth and representation ability of the model. This enables the model to better understand the complex object relationships and features in the substation indoor equipment images, such as the distinction between different switch states and ammeters and voltmeters. The multi-head self-attention mechanism further allows the model to learn information of different scales and relationships, making it more adaptable to the diversity of substation images.
[0074] In this embodiment, the image encoder is an innovative deep learning architecture designed for image processing tasks, which can play an important role in the identification of equipment in substation rooms. ViT uses a self-attention mechanism and a transformer architecture to capture the global relationship and contextual information of the image without relying on convolutional layers to process local features. This makes ViT suitable for various image analysis tasks and can better process the global information of the image, thereby identifying various objects in the substation.
[0075] Please refer to Figure 3 , Figure 3 A structural schematic diagram of a text encoder for a method for identifying indoor status of a substation provided by an embodiment of the present invention.
[0076] In this embodiment, the text encoder includes an input embedding layer, a self-attention mechanism, a multi-head attention mechanism, a feed-forward neural network, a residual connection layer and a positional encoding module.
[0077] In this embodiment, the input embedding layer is used to map the words or symbols in the input sequence to a high-dimensional vector space. The input embedding layer includes word embeddings and position encoding modules so that the model understands the semantic content of each word and its position in the sequence.
[0078] In this embodiment, the self-attention mechanism is used to enable the model to assign different weights to each word based on the information of other words when processing each word, so that the model can capture the global dependencies between different parts of the sequence without using recursion or convolution.
[0079] In this embodiment, a multi-head attention mechanism is used to enable the model to focus on different parts of the input sequence in different ways, so as to better handle complex dependencies.
[0080] In this embodiment, each attention sub-layer is connected to a feed-forward neural network, which performs nonlinear transformation on the feature vector of each position to capture richer information.
[0081] In this embodiment, there are residual connections after each sub-layer, so that the model learns its own residuals, making it easier to train deep networks.
[0082] In this embodiment, since the self-attention mechanism does not include information about the position of the vocabulary in the sequence, the Transformer needs to add positional encoding to represent the order of words.
[0083] In this embodiment, the text encoder uses a Text Transformer model, and the text encoder includes a self-attention mechanism and a multi-head attention mechanism. The text encoder divides the text sequence into a series of position-encoded word embeddings (Word Embeddings), and the word embedding vectors include rich semantic information. Then, these word embedding vectors are processed by the self-attention mechanism, so that the model can capture the global dependencies in the text, thereby better understanding the context. And through the multi-head attention mechanism, the model pays attention to different parts of the input sequence in multiple ways, further improving the performance of the model. In addition, the position encoding layer is used to provide the model with information about the position of the vocabulary in the sequence, which makes up for the shortcomings of the self-attention mechanism.
[0084] In this embodiment, the feature information is fused according to the cross-modal adaptive algorithm to optimize the first neural network model, specifically:
[0085] Performing feature fusion on the image features and text features according to a cross-modal loss function;
[0086] The soft maximum function in the first neural network model is updated in batches according to the image features and the text features.
[0087] In this embodiment, based on the small sample learning algorithm of CLIP, it is assumed that CLIP can map samples of different modalities to the same feature space (with the same feature space as the classifier feature w y Same length N), specifically:
[0088] w y ,φ m (·)∈R N (1)
[0089] Among them, φ is the feature extractor, w yis the classifier feature, and N is the sample field length.
[0090] In this embodiment, a cross-modal loss function is constructed according to a cross-modal adaptation method. In the cross-modal adaptation method, the text labels of each class are regarded as additional "one-shot" training samples and added to the loss function. The loss function is specifically:
[0091]
[0092]
[0093] Among them, H is a commonly used linear classifier based on W = [w1,....,w y ] is the cross entropy loss function, X i is the image sample, y i is the corresponding image label.
[0094] In this embodiment, it is assumed that we have M modes (for example, M = (image, text)), and the same linear classifier is used for different modes. For samples of different modes, they only need to pass through the feature extractors of their respective modes to make classifications. For a given input x, the class y' that x is most likely to belong to is predicted by calculating the dot product of x and the weight vector Wy' of each class. The maximum position function argmax is used to select the class with the largest dot product as the prediction result ^y. For example, if x belongs to mode m, then its classification result ^y is:
[0095]
[0096]
[0097] In this embodiment, the image information of the indoor substation equipment is extracted and encoded according to the image encoder, and the equipment name and status information corresponding to the image of the indoor substation equipment is encoded according to the text encoder. A cross-modal adaptive algorithm is used to fuse the image features with the text features, and the forward propagation is performed through the input data to calculate the predicted value of the model; the cross-modal information is added to the loss function to calculate the error between the predicted value of the model and the actual label; the gradient of the loss function to the model parameters is calculated through the back propagation algorithm. Use an optimization algorithm (such as gradient descent or its variants) to update the parameters of the model to reduce the loss function. Repeat forward propagation, loss calculation, back propagation and parameter update until the loss function reaches a predetermined number of training iterations, stop iteration, and input the trained first neural network model.
[0098] Step 103: Monitor the operating status of equipment in the substation room in real time according to the trained first neural network model, and issue early warnings for equipment in abnormal status.
[0099] In this embodiment, the equipment operating status in the substation room is monitored in real time according to the trained first neural network model, the various parameters and status inside the equipment cabinet are continuously monitored, and the parameters and status of each component are visualized. At the same time, it is determined whether the operating status of each device is abnormal according to the preset parameter standards, and abnormal equipment is warned, generating alarm and warning information.
[0100] In this embodiment, the visual interface can quickly detect abnormalities or potential problems, such as the opening and closing status of the knife switch, the on and off of the indicator light, the button status, and other sudden problems in the operation status of the equipment. By generating alarms and early warning information in real time, it ensures that the substation operators can take quick action when problems occur, minimizing potential damage and safety risks. It not only provides a comprehensive understanding of the internal status of the equipment cabinet, but also provides timely decision support for equipment maintenance and safety management, further improving the reliability and operation efficiency of the substation.
[0101] Please refer to Figure 4 , Figure 4 A schematic diagram of a structure of a substation indoor state identification device provided by an embodiment of the present invention includes: a data acquisition module 401, a model building module 402, and an identification module 403;
[0102] The data acquisition module 401 is used to collect real-time image data of the substation and generate training data according to the real-time image data;
[0103] The model building module 402 is used to build a first neural network model according to the image encoder and the text encoder, and iteratively train the first neural network model according to the cross-modal adaptive algorithm and the training data;
[0104] The identification module 403 is used to monitor the operating status of the equipment in the substation room in real time according to the trained first neural network model, and to issue early warnings for equipment with abnormal status.
[0105] In this embodiment, the model building module is specifically used to:
[0106] Constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the training data;
[0107] In each iteration process, feature information of the training data is extracted according to the image encoder and the text encoder, and the feature information is fused according to a cross-modal adaptive algorithm to optimize the first neural network model;
[0108] When the preset conditions are met, the iteration stops and the trained first neural network model is output.
[0109] In this embodiment, the model building module is also used to:
[0110] constructing an image encoder according to the self-attention mechanism and the transformer architecture, and extracting and encoding image features of the training data according to the image encoder;
[0111] A text encoder is constructed according to a self-attention mechanism and a multi-head attention mechanism, and text features of the training data are extracted and encoded according to the text encoder; the text features include device names and status information.
[0112] In this embodiment, the model building module is also used to:
[0113] Performing feature fusion on the image features and text features according to a cross-modal loss function;
[0114] The soft maximum function in the first neural network model is updated in batches according to the image features and the text features.
[0115] In this embodiment, the data acquisition module is specifically used for:
[0116] The indoor robot photographs the equipment cabinets in the substation room to collect real-time image data of the equipment cabinets in the substation room;
[0117] The collected real-time image data is annotated and preprocessed, wherein the preprocessing operation includes scaling, normalization and enhancement operations to generate training data; the training data includes image data and corresponding label information.
[0118] In this embodiment, the image information of the substation equipment in the coding room and the equipment name and status information corresponding to the equipment image are extracted and encoded respectively by the image encoder and the text encoder, and the image features and text features are integrated by the cross-modal adaptive algorithm to construct the first neural network model, so that for each new state type, a small sample is used for training, that is, the recognition accuracy of the first neural network model is improved, thereby avoiding the poor model state recognition effect due to the difficulty in obtaining substation data. The model is used to realize real-time monitoring of the equipment cabinet in the substation room, thereby improving safety and stability.
[0119] Please refer to Figure 5 , Figure 5Another schematic diagram of the flow of the method for identifying the indoor status of a substation in an embodiment of the present invention.
[0120] In this embodiment, by constructing label data corresponding to the device status description text and label data corresponding to the device status description picture; and after loading the feature extractor weights pre-trained on ImageNet, the label data corresponding to the device status description text is input into the text encoder, and the label data corresponding to the device status description picture is input into the image encoder; the text encoder and the image encoder are batch updated together with the soft maximum function in a 1:1 ratio, so as to train the recognition model to recognize the indoor status of the substation.
[0121] In this embodiment, in the data preparation stage, the image data of the substation indoor equipment is collected and sorted, and the corresponding status labels are given. Through data preprocessing, the data is normalized, standardized, and image enhanced to ensure data quality.
[0122] In this embodiment, an image encoder is used to extract and encode the image information of indoor substation equipment, and a text encoder is used to encode the equipment name and status information corresponding to the image of the indoor substation equipment. A cross-modal adaptive module is used to fuse image features with text features. The parameters of the model are initialized. Specifically, the weights and biases are loaded using the feature extractor of the CLIP model pre-trained by ImageNet. The cross-entropy loss is selected to measure the gap between the model output and the target.
[0123] In this embodiment, during the model training process, forward propagation is performed through the input data to calculate the predicted value of the model; the error between the predicted value of the model and the actual label is calculated using the loss function; the gradient of the loss function with respect to the model parameters is calculated through the back propagation algorithm; an optimization algorithm (such as gradient descent or its variants) is used to update the parameters of the model to reduce the loss function; forward propagation, loss calculation, back propagation and parameter update are repeated until the loss function converges to a predetermined number of training iterations.
[0124] In this embodiment, a validation set or cross validation is used to evaluate the model performance. Based on the validation performance, the model is tuned, including adjusting the learning rate, network structure, etc., so that the final performance of the model is evaluated using the test data set.
[0125] In this embodiment, the trained model is deployed in the substation indoor monitoring application to perform prediction and inference to identify the indoor status of the substation.
[0126] In this embodiment, the data collection of the small sample algorithm is simple, the training speed is fast, and the development efficiency is high. An image encoder is used to extract and encode the image information of the indoor substation equipment, and a text encoder is used to encode the equipment name and status information corresponding to the indoor substation equipment image. A cross-modal adaptive module is used to fuse image features with text features. The model uses the CLIP feature extractor trained on ImageNet as the basis. For each new state type, only a small amount of training data is needed to ensure the recognition accuracy of the model.
[0127] In this embodiment, for the newly added equipment type status, it is only necessary to fine-tune the classifier based on the original model using the new data, without retraining the feature extractor. This enables the model to quickly adapt to image data in different scenarios and has strong adaptive capabilities. At the same time, the real-time monitoring of the equipment cabinets in the substation can be achieved based on the output results of the model, thereby improving safety and stability.
[0128] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for identifying the indoor status of a substation, characterized in that: include: Collecting real-time image data of the substation, and generating training data based on the real-time image data; Constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the cross-modal adaptive algorithm and the training data; The trained first neural network model is used to monitor the operating status of equipment in the substation room in real time, and to issue early warnings for equipment with abnormal status.
2. The method for identifying the indoor status of a substation according to claim 1, characterized in that: The step of constructing a first neural network model according to the image encoder and the text encoder, and training the first neural network model according to the cross-modal adaptive algorithm and the training data is specifically as follows: Constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the training data; In each iteration process, feature information of the training data is extracted according to the image encoder and the text encoder, and the feature information is fused according to a cross-modal adaptive algorithm to optimize the first neural network model; When the preset conditions are met, the iteration stops and the trained first neural network model is output.
3. The method for identifying the indoor status of a substation according to claim 2, characterized in that: The extracting the feature information of the training data according to the image encoder and the text encoder is specifically: constructing an image encoder according to the self-attention mechanism and the transformer architecture, and extracting and encoding image features of the training data according to the image encoder; A text encoder is constructed according to a self-attention mechanism and a multi-head attention mechanism, and text features of the training data are extracted and encoded according to the text encoder; the text features include device names and status information.
4. The method for identifying the indoor state of a substation according to claim 3, characterized in that: The step of fusing the feature information according to the cross-modal adaptive algorithm and optimizing the first neural network model is specifically as follows: Performing feature fusion on the image features and text features according to a cross-modal loss function; The soft maximum function in the first neural network model is updated in batches according to the image features and the text features.
5. The method for identifying the indoor status of a substation according to claim 1, characterized in that: The collecting of real-time image data of the substation and generating according to the real-time image data are specifically: The indoor robot photographs the equipment cabinets in the substation room to collect real-time image data of the equipment cabinets in the substation room; Annotating and preprocessing the collected real-time image data, wherein the preprocessing operations include scaling, normalization and enhancement operations, to generate training data; The training data includes image data and corresponding label information.
6. A device for identifying the status of a substation room, characterized in that: include: Data acquisition module, model building module, and recognition module; The data acquisition module is used to collect real-time image data of the substation and generate training data according to the real-time image data; The model building module is used to build a first neural network model according to the image encoder and the text encoder, and iteratively train the first neural network model according to the cross-modal adaptive algorithm and the training data; The identification module is used to monitor the operating status of equipment in the substation room in real time according to the trained first neural network model, and to issue early warnings for equipment with abnormal status.
7. The indoor state identification device of a substation according to claim 6, characterized in that: The model building module is specifically used for: Constructing a first neural network model according to the image encoder and the text encoder, and iteratively training the first neural network model according to the training data; In each iteration process, feature information of the training data is extracted according to the image encoder and the text encoder, and the feature information is fused according to a cross-modal adaptive algorithm to optimize the first neural network model; When the preset conditions are met, the iteration stops and the trained first neural network model is output.
8. The indoor state identification device of a substation according to claim 7, characterized in that: The model building module is also used to: constructing an image encoder according to the self-attention mechanism and the transformer architecture, and extracting and encoding image features of the training data according to the image encoder; A text encoder is constructed according to a self-attention mechanism and a multi-head attention mechanism, and text features of the training data are extracted and encoded according to the text encoder; the text features include device names and status information.
9. The indoor state identification device of a substation according to claim 8, characterized in that: The model building module is also used to: Performing feature fusion on the image features and text features according to a cross-modal loss function; The soft maximum function in the first neural network model is updated in batches according to the image features and the text features.
10. The indoor state identification device of a substation according to claim 6, characterized in that: Data acquisition module, specifically used for: The indoor robot photographs the equipment cabinets in the substation room to collect real-time image data of the equipment cabinets in the substation room; Annotating and preprocessing the collected real-time image data, wherein the preprocessing operations include scaling, normalization and enhancement operations, to generate training data; The training data includes image data and corresponding label information.
Citation Information
Patent Citations
Power construction video monitoring alarm method and system based on image recognition
CN112183265A
Transformer substation inspection method and system based on image recognition
CN116824481A
Disconnecting link state abnormity identification method and device
CN117218565A
Cited By
Method and device for determining operation state of ultra-high voltage isolation switch and storage medium
CN119089400A
Safety monitoring method and device based on artificial intelligence, storage medium and electronic equipment
CN119131696A
