Abnormal behavior recognition method and device, electronic equipment and storage medium
By obtaining the video and environmental information of the substation, extracting high-dimensional feature vectors and combining it with the self-attention mechanism, the accuracy problem of abnormal behavior identification in the substation in the existing technology is solved, the accuracy and effectiveness of the detection results are improved, and the equipment is ensured Security.
Patent Information
- Application Number
- CN202410694762.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
In the existing technology, it is difficult to accurately and timely detect abnormal behaviors in the substation through scene video recognition results alone, and cannot effectively ensure equipment safety.
By obtaining the video information and additional environmental information of the target substation in the time period to be predicted, the video feature vector is extracted and a high-dimensional feature vector is generated. Combined with the feature fusion model of the self-attention mechanism, the abnormal behavior detection results are determined, taking the video information and environmental information into consideration. full impact.
The accuracy and effectiveness of abnormal behavior detection results are improved, and the safety of substation equipment is enhanced.
Smart Images

Figure CN118587627A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of image recognition technology, and in particular, to an abnormal behavior recognition method, device, electronic device and storage medium. Background Art
[0002] Substations are a key part of the power system, and their safe and stable operation is crucial to ensuring the overall efficiency of the power grid. Substation scene abnormal behavior detection technology has also evolved accordingly, aiming to use advanced information technology to timely discover and respond to various potential threats, ensuring equipment safety and continuity of power supply.
[0003] In the prior art, abnormal behavior recognition is performed on the collected scene video of the substation to determine whether there is abnormal behavior in the substation. However, in the process of implementing the present invention, it is found that the prior art has at least the following technical problems: determining whether there is an abnormality in the substation only by the recognition result obtained from the scene video is prone to errors, which is not conducive to timely discovery of potential threats and cannot ensure the safety of equipment. Summary of the invention
[0004] The embodiments of the present invention provide an abnormal behavior recognition method, device, electronic device and storage medium to achieve the purpose of improving the accuracy and effectiveness of abnormal behavior detection results.
[0005] According to one aspect of the present invention, a method for identifying abnormal behavior is provided, comprising:
[0006] Obtaining target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information;
[0007] Extracting a video feature vector from the video information, and generating a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information;
[0008] Based on the high-dimensional feature vector, an abnormal behavior detection result corresponding to the target substation in the time period to be predicted is determined.
[0009] According to another aspect of the present invention, there is provided an abnormal behavior identification device, the device comprising:
[0010] The target substation information acquisition module is used to obtain the target substation information corresponding to the target substation in the predicted time period; wherein the target substation information includes video information and additional environmental information;
[0011] A feature vector extraction module, used to extract a video feature vector from the video information, and generate a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information;
[0012] The abnormal behavior detection result determination module is used to determine the abnormal behavior detection result corresponding to the target substation in the time period to be predicted based on the high-dimensional feature vector.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the abnormal behavior identification method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the abnormal behavior identification method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention is to obtain the target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information; extract the video feature vector in the video information, and generate a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information, so that the high-dimensional feature vector can simultaneously reflect the video information and the additional environmental information, and determine the abnormal behavior detection result corresponding to the target substation in the time period to be predicted based on the high-dimensional feature vector, so as to determine the abnormal behavior detection result while taking into account the influencing factors of both the video information and the additional environmental information. The influencing factors considered are more comprehensive, which is conducive to improving the accuracy and effectiveness of the abnormal behavior detection results, and is convenient for better ensuring the safety of equipment in the target substation.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of an abnormal behavior identification method provided according to an embodiment of the present invention;
[0022] Figure 2 is a flow chart of another abnormal behavior identification method provided according to an embodiment of the present invention;
[0023] Figure 3 is a structural schematic diagram of an abnormal behavior identification device provided according to an embodiment of the present invention;
[0024] Figure 4 It is a structural schematic diagram of an electronic device for implementing the abnormal behavior identification method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "etc." and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.
[0028] Figure 1This is a flow chart of an abnormal behavior identification method provided according to an embodiment of the present invention. This embodiment is applicable to the case of identifying abnormal behaviors occurring in a target substation. The method can be performed by an abnormal behavior identification device, which can be implemented in the form of hardware and / or software.
[0029] like Figure 1 As shown, the method of this embodiment may specifically include:
[0030] S110. Obtain target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information.
[0031] In this embodiment, the target substation is a substation that needs to be detected for abnormal behavior, and the time period to be predicted can be one hour, one day, one week, etc. It should be noted that a video acquisition device, such as a camera, can be pre-installed in the target substation; the video acquisition device can be used to obtain video information corresponding to the target substation in the time period to be predicted, and the video information can reflect at least one of the equipment layout, lighting conditions and background in the target substation. The additional environmental information can be the environmental information corresponding to the target substation and the adjacent areas of the target substation; for example, the additional environmental information includes at least one of the temperature, humidity, sound intensity and traffic flow in the target substation and the adjacent areas of the target substation.
[0032] In a specific implementation, a communication connection can be established with a video acquisition device to obtain video information corresponding to the target substation in the time period to be predicted. Furthermore, a temperature sensor, a humidity sensor, and a sound intensity sensor can be deployed in advance in the target substation and the adjacent area of the target substation. The temperature information is obtained through the temperature sensor, the humidity information is obtained through the humidity sensor, and the sound intensity information is obtained through the sound intensity sensor. Furthermore, a personnel counter and / or an infrared sensor can be pre-installed in the target substation and the adjacent area of the target substation to obtain the flow of people in the target substation and the adjacent area of the target substation.
[0033] S120, extracting a video feature vector from the video information, and generating a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information.
[0034] In this embodiment, a pre-trained machine learning model can be used to extract video feature vectors. Specifically, the method of extracting video feature vectors from video information may include: inputting video information into a pre-built visual language model to obtain video feature vectors from the video information; wherein the visual language model includes a cross-modal pre-trained model based on contrasting picture-text learning.
[0035] It should be noted that the CLIP (Contrastive Language-Image Pre-training) model conducts joint training on large-scale pairs of images and their text descriptions through contrastive learning. This enables the CLIP model to understand the content of the image and the language description associated with it at the same time, and establish a strong association between image features and text descriptions.
[0036] In a specific implementation, the video information can be directly input into the visual language model to obtain the video feature vector in the video information; the video information can also be subjected to frame extraction operation, that is, the key frames in the video information are extracted, and then the extracted key frames are input into the visual language model to extract the video feature vector, thereby reducing the workload of extracting the video feature vector.
[0037] This embodiment uses a cross-modal pre-training model based on contrasting picture-text learning as a visual language model, so as to have an in-depth understanding of the video information, so that the extracted video feature vector can more comprehensively reflect the characteristics of the video information.
[0038] Optionally, the implementation method of generating a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information includes: inputting the video feature vector and the additional environmental information into a pre-built feature fusion model to obtain a high-dimensional feature vector corresponding to the target substation.
[0039] Among them, the feature fusion model is at least one of a long short-term memory network combined with a self-attention mechanism, a gated recurrent unit model, and a multi-layer perceptron model.
[0040] It should be noted that in order to enable the feature fusion model to automatically learn more important key frames or features and achieve weighting of key frames or features, a self-attention mechanism can be introduced between the video feature vector and additional environmental information, so that the model can adjust its attention to video features according to the environmental context and enhance the ability to recognize abnormal behaviors in specific situations.
[0041] Specifically, the video feature vector and the additional environmental information can be input into the feature fusion model, and the additional environmental information can be encoded based on the weights corresponding to different target substation information determined in the feature fusion model. Exemplarily, the additional environmental information includes temperature information, humidity information, sound intensity information, and human flow information, and the temperature feature vector, humidity feature vector, sound intensity feature vector, and human flow feature vector are obtained after encoding. Based on the weights corresponding to the different information determined, the video feature vector, the temperature feature vector, the humidity feature vector, the sound intensity feature vector, and the human flow feature vector are weighted, and a high-dimensional feature vector is obtained based on the result of the weighted processing.
[0042] This embodiment uses a feature fusion model with a self-attention mechanism to obtain a high-dimensional feature vector, which helps the feature fusion model better understand and distinguish the boundaries between normal and abnormal behaviors. Through the feature fusion model, it is possible to more comprehensively and deeply understand the behaviors in the video information and the background environment in which they occur, so as to accurately identify abnormal behaviors in complex real-world scenarios, improve the accuracy of detection, and enhance the generalization ability of the feature fusion model and its adaptability to new and strange situations.
[0043] S130. Determine the abnormal behavior detection result corresponding to the target substation in the time period to be predicted based on the high-dimensional feature vector.
[0044] In this embodiment, by analyzing and classifying the high-dimensional feature vector, the target behavior category corresponding to the high-dimensional feature vector is identified, and the abnormal behavior detection result is generated based on the target behavior type. Exemplarily, the target behavior category includes a normal category and an abnormal category. The abnormal behavior information corresponding to the abnormal category includes at least one of not wearing a safety helmet, operating an incorrect action, appearing in a restricted area, and appearing in a restricted time period.
[0045] In a specific implementation, if the target behavior category determined is a normal category, a notification message indicating that the detection result is normal may be generated and sent to the user terminal. If the target behavior category determined is an abnormal category, abnormal behavior information corresponding to the target behavior category may be determined, and an abnormal behavior detection result may be generated based on the abnormal behavior information, and the abnormal behavior detection result may be sent to the user terminal.
[0046] The technical solution of the embodiment of the present invention is to obtain the target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information; extract the video feature vector in the video information, and generate a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information, so that the high-dimensional feature vector can simultaneously reflect the video information and the additional environmental information, and determine the abnormal behavior detection result corresponding to the target substation in the time period to be predicted based on the high-dimensional feature vector, so as to determine the abnormal behavior detection result while taking into account the influencing factors of both the video information and the additional environmental information. The influencing factors considered are more comprehensive, which is conducive to improving the accuracy and effectiveness of the abnormal behavior detection results, and is convenient for better ensuring the safety of equipment in the target substation.
[0047] Figure 2is a flowchart of another abnormal behavior identification method provided according to an embodiment of the present invention. Optionally, based on the high-dimensional feature vector, determining the abnormal behavior detection result corresponding to the target substation in the time period to be predicted, including: inputting the high-dimensional feature vector into a pre-built target abnormal behavior detection model to obtain the abnormal behavior detection result corresponding to the target substation in the time period to be predicted. Among them, the explanation of the terms that are the same or corresponding to the above embodiments will not be repeated here. Figure 2 As shown, the method includes:
[0048] S210. Obtain target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information.
[0049] Specifically, in order to improve the accuracy of abnormal behavior detection results, the target substation information may be preprocessed. Optionally, after obtaining the target substation information of the target substation, it also includes: preprocessing the target substation information corresponding to the target substation in the predicted time period; wherein the preprocessing operation includes a missing value filling operation and / or an abnormal value removal operation.
[0050] Specifically, it is detected whether there are missing values in the target substation information. If there are missing values, a supplementary value can be determined by setting it to zero or taking the average value, and the supplementary value is added to the position corresponding to the missing value. Furthermore, a standard value range corresponding to the target substation information can be pre-set, and it is detected whether there are values in the target substation information that exceed the standard value range. If so, the value that exceeds the standard value range is regarded as an abnormal value, and the abnormal value is removed.
[0051] Furthermore, the target substation information may be subjected to video frame decoding, scaling, cropping and smoothing processing to ensure that the data format of the target substation information matches the required format of the target abnormal behavior detection model.
[0052] This embodiment performs a preprocessing operation on the target substation information, thereby completing data cleaning of the target substation information, and determining the abnormal behavior detection result through the target substation information after data cleaning, which is beneficial to improving the effectiveness and accuracy of the abnormal behavior detection result.
[0053] S220, extracting a video feature vector from the video information, and generating a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information.
[0054] S230: Input the high-dimensional feature vector into a pre-built target abnormal behavior detection model to obtain an abnormal behavior detection result corresponding to the target substation in the time period to be predicted.
[0055] Among them, the target abnormal behavior detection model can be a decoder or a classifier.
[0056] In a specific implementation, the high-dimensional feature vector is input into a pre-built target abnormal behavior detection model, and the output result of the target abnormal behavior detection model is used as the abnormal behavior detection result. This embodiment can quickly and accurately determine the abnormal behavior of the target substation through the target abnormal behavior detection model.
[0057] In this embodiment, before the high-dimensional feature vector is input into a pre-built abnormal behavior detection model, it also includes: obtaining a reference abnormal behavior detection model corresponding to the reference substation and sample substation information of the target substation; based on meta-learning technology and sample substation information, the reference abnormal behavior detection model is trained to obtain a target abnormal behavior detection model; wherein the sample substation information includes at least one of equipment layout information, lighting condition information and background information in the target substation.
[0058] It should be noted that since substations are spread all over the place and are numerous, and different substations have different layouts and equipment, when detecting abnormal behaviors in different substations, it is necessary to train abnormal behavior detection models corresponding to different substations, which greatly increases the workload.
[0059] In this embodiment, in order to reduce the workload of training the model while ensuring the accuracy of the detection results, a meta-learning technique may be used to obtain a target abnormal behavior detection model. Specifically, a reference abnormal behavior detection model corresponding to a reference substation and sample substation information of a target substation may be obtained. Among them, the reference substation may be a historical substation for which abnormal behavior detection model training has been completed. The reference abnormal behavior detection model is an abnormal behavior detection model used when detecting abnormal behavior detection results of a reference substation. In order to quickly obtain a target abnormal behavior detection model, the reference abnormal behavior detection model may be trained based on the meta-learning technique and sample substation information to obtain a target abnormal behavior detection model.
[0060] It should be noted that meta-learning technology enables the model to quickly adapt to the specific environment and equipment layout of different substations, and can quickly adjust its strategy even when facing new substations. In the scenario of abnormal behavior detection in substations, the goal of applying meta-learning technology (such as model-independent meta-learning and Reptile meta-learning) is to enable the model to quickly understand and adapt to the specific environment and equipment layout of different substations, and to quickly adjust its detection strategy even when facing new substations that have never been seen. The core idea of meta-learning technology is to enable the model to learn quickly from a small number of examples by training on a series of related but different tasks.
[0061] In a specific implementation, training the reference abnormal behavior detection model may include a training phase and a testing phase. In the training phase, the environment and layout changes of each reference substation constitute a task, and the reference abnormal behavior detection model is trained based on different tasks. The reference abnormal behavior detection model learns an initial parameter by performing gradient updates on a small number of samples on each task. In the testing phase, facing a new target substation environment, the reference abnormal behavior detection model can use the initial parameters learned in the training phase to obtain target parameters that meet the preset training conditions through only a few gradient updates, and obtain the target abnormal behavior detection model based on the target parameters, thereby quickly adjusting its recognition strategy to adapt to the environment corresponding to the target substation.
[0062] In this embodiment, meta-learning helps the reference abnormal behavior detection model learn to quickly adapt to the changes brought about by different substations, reducing false positives or false negatives of abnormal behaviors caused by environmental changes. In practical applications, specific types of abnormal behaviors may be rare, and it is difficult to collect a large amount of labeled data. Meta-learning enables the model to quickly learn and identify new types of abnormal behaviors from a small number of examples, ensuring the safe operation of power facilities.
[0063] In this embodiment, the target abnormal behavior detection model is continuously optimized in consideration of its timeliness, and an incremental learning strategy can be used to update the target abnormal behavior detection model. The method also includes: obtaining the actual abnormal behavior results corresponding to the target substation in the time period to be predicted; adjusting the model parameters of the target abnormal behavior detection model based on the actual abnormal behavior results, the abnormal behavior detection results and the target substation information, and updating the target abnormal behavior detection model based on the adjusted model parameters.
[0064] In a specific implementation, the target abnormal behavior detection model can be updated based on the abnormal behavior detection results of the time period to be predicted. Specifically, the actual abnormal behavior results corresponding to the target substation in the time period to be predicted can be marked in a target manner. Exemplarily, the target method can be threshold setting, cluster analysis or manual review. The actual abnormal behavior results are obtained based on the marked content. The actual abnormal behavior results are compared with the abnormal behavior detection results, and based on the comparison results and the target substation information, the model parameters of the target abnormal behavior detection model are adjusted, and the model obtained after the model parameter adjustment is used as the target abnormal behavior detection model.
[0065] Furthermore, based on the actual abnormal behavior results and abnormal behavior detection results, key indicators such as the detection accuracy, recall rate, and F1 score of the target abnormal behavior detection model can be determined, and the computing resource consumption required to update the target abnormal behavior detection model can also be determined, thereby ensuring that the target abnormal behavior detection model is continuously optimized without sacrificing efficiency. Furthermore, a model drift monitoring mechanism can be implemented to ensure that online learning does not cause a significant decline in model performance or deviation from expectations, and roll back to the target abnormal behavior detection model before the update if necessary.
[0066] This embodiment adopts an incremental learning strategy to fine-tune the model parameters for the newly generated abnormal behavior detection results, rather than retraining the entire target abnormal behavior detection model, which can save computing resources and reduce the impact on the original knowledge of the target abnormal behavior detection model.
[0067] Figure 3 1 is a schematic diagram of the structure of an abnormal behavior recognition device provided according to an embodiment of the present invention, and the device is used to execute the abnormal behavior recognition method provided in any of the above embodiments. The device and the abnormal behavior recognition method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the abnormal behavior recognition device can refer to the embodiment of the above abnormal behavior recognition method. Figure 3 As shown, the device comprises:
[0068] The target substation information acquisition module 10 is used to acquire the target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information;
[0069] A feature vector extraction module 11 is used to extract a video feature vector from the video information, and generate a high-dimensional feature vector corresponding to the target substation based on the video feature vector and additional environmental information;
[0070] The abnormal behavior detection result determination module 12 is used to determine the abnormal behavior detection result corresponding to the target substation in the time period to be predicted based on the high-dimensional feature vector.
[0071] Based on any optional technical solution in the embodiment of the present invention, optionally, the feature vector extraction module 11 includes:
[0072] A first information input unit, used to input video information into a pre-built visual language model to obtain a video feature vector in the video information;
[0073] Among them, the visual language model includes a cross-modal pre-training model based on contrastive image-text learning.
[0074] Based on any optional technical solution in the embodiments of the present invention, optionally, the feature vector extraction module 11 includes:
[0075] A second information input unit is used to input the video feature vector and the additional environmental information into a pre-built feature fusion model to obtain a high-dimensional feature vector corresponding to the target substation;
[0076] Among them, the feature fusion model is at least one of a long short-term memory network combined with a self-attention mechanism, a gated recurrent unit model, and a multi-layer perceptron model.
[0077] Based on any optional technical solution in the embodiment of the present invention, optionally, the abnormal behavior detection result determination module 12 includes:
[0078] The vector input unit is used to input the high-dimensional feature vector into a pre-built target abnormal behavior detection model to obtain the abnormal behavior detection result corresponding to the target substation in the time period to be predicted.
[0079] Based on any optional technical solution in the embodiment of the present invention, optionally, the abnormal behavior detection result determination module 12 further includes:
[0080] An information acquisition unit, used for acquiring a reference abnormal behavior detection model corresponding to a reference substation and sample substation information of a target substation before inputting the high-dimensional feature vector into a pre-built abnormal behavior detection model;
[0081] A model training unit, used for training a reference abnormal behavior detection model based on a meta-learning technique and sample substation information to obtain a target abnormal behavior detection model;
[0082] The sample substation information includes at least one of equipment layout information, lighting condition information and background information in the target substation.
[0083] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:
[0084] The abnormal behavior real result acquisition module is used to obtain the abnormal behavior real result corresponding to the target substation in the time period to be predicted;
[0085] The model parameter adjustment module is used to adjust the model parameters of the target abnormal behavior detection model based on the actual abnormal behavior results, the abnormal behavior detection results and the target substation information, and update the target abnormal behavior detection model based on the adjusted model parameters.
[0086] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:
[0087] The preprocessing module is used to perform preprocessing operations on the target substation information corresponding to the target substation in the predicted time period after acquiring the target substation information of the target substation; wherein the preprocessing operation includes a missing value filling operation and / or an abnormal value removal operation.
[0088] The technical solution of the embodiment of the present invention is to obtain the target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information; extract the video feature vector in the video information, and generate the high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information, so that the high-dimensional feature vector can simultaneously reflect the video information and the additional environmental information, and determine the abnormal behavior detection result corresponding to the target substation in the time period to be predicted based on the high-dimensional feature vector, so as to determine the abnormal behavior detection result while taking into account the influencing factors of both video information and additional environmental information, and the influencing factors considered are more comprehensive, which is conducive to improving the accuracy and effectiveness of the abnormal behavior detection result, and is convenient for better ensuring the safety of the equipment in the target substation. It is worth noting that in the embodiment of the above-mentioned abnormal behavior identification device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction, and are not used to limit the protection scope of the present invention.
[0089] Figure 4 It is a structural diagram of an electronic device that implements the abnormal behavior identification method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0090] like Figure 4As shown, the electronic device 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In RAM23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, ROM22 and RAM23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.
[0091] A number of components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0092] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 21 executes the various methods and processes described above, such as the abnormal behavior recognition method.
[0093] In some embodiments, the abnormal behavior identification method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 28. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the abnormal behavior identification method described above may be performed. Alternatively, in other embodiments, the processor 21 may be configured to perform the abnormal behavior identification method in any other appropriate manner (e.g., by means of firmware).
[0094] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0095] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0096] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0097] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0098] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0099] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0100] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0101] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying abnormal behavior, characterized in that: include: Obtaining target substation information corresponding to the target substation in the time period to be predicted; wherein the target substation information includes video information and additional environmental information; Extracting a video feature vector from the video information, and generating a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information; Based on the high-dimensional feature vector, an abnormal behavior detection result corresponding to the target substation in the time period to be predicted is determined.
2. The method according to claim 1, characterized in that The extracting the video feature vector from the video information includes: Inputting the video information into a pre-built visual language model to obtain a video feature vector in the video information; The visual language model includes a cross-modal pre-training model based on contrastive picture-text learning.
3. The method according to claim 1, characterized in that The step of generating a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information includes: Inputting the video feature vector and the additional environmental information into a pre-built feature fusion model to obtain a high-dimensional feature vector corresponding to the target substation; Among them, the feature fusion model is at least one of a long short-term memory network combined with a self-attention mechanism, a gated recurrent unit model and a multi-layer perceptron model.
4. The method according to claim 1, characterized in that The determining, based on the high-dimensional feature vector, the abnormal behavior detection result corresponding to the target substation in the time period to be predicted includes: The high-dimensional feature vector is input into a pre-built target abnormal behavior detection model to obtain an abnormal behavior detection result corresponding to the target substation in the time period to be predicted.
5. The method according to claim 4, characterized in that Before inputting the high-dimensional feature vector into the pre-built abnormal behavior detection model, the method further includes: Acquire a reference abnormal behavior detection model corresponding to a reference substation and sample substation information of the target substation; Based on the meta-learning technology and the sample substation information, the reference abnormal behavior detection model is trained to obtain the target abnormal behavior detection model; The sample substation information includes at least one of equipment layout information, lighting condition information and background information in the target substation.
6. The method according to claim 4, characterized in that Also includes: Obtaining the actual abnormal behavior result of the target substation corresponding to the time period to be predicted; Based on the actual abnormal behavior result, the abnormal behavior detection result and the target substation information, the model parameters of the target abnormal behavior detection model are adjusted, and the target abnormal behavior detection model is updated based on the adjusted model parameters.
7. The method according to claim 1, characterized in that After the target substation information of the target substation is obtained, the method further includes: A preprocessing operation is performed on the target substation information corresponding to the target substation in the time period to be predicted; wherein the preprocessing operation includes a missing value filling operation and / or an abnormal value removal operation.
8. An abnormal behavior recognition device, characterized in that: include: The target substation information acquisition module is used to obtain the target substation information corresponding to the target substation in the predicted time period; wherein the target substation information includes video information and additional environmental information; A feature vector extraction module, used to extract a video feature vector from the video information, and generate a high-dimensional feature vector corresponding to the target substation based on the video feature vector and the additional environmental information; The abnormal behavior detection result determination module is used to determine the abnormal behavior detection result corresponding to the target substation in the time period to be predicted based on the high-dimensional feature vector.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the abnormal behavior identification method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the abnormal behavior identification method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Gas station safety identification system based on video analysis
CN110493566A
Automatic line patrol method and automatic line patrol unmanned aerial vehicle
CN112445240A
Video anomaly detection method and device, electronic equipment and storage medium
CN115802028A
Intelligent security system based on Internet of Things
CN117975637A
Cited By
Express anti-theft method and device, electronic equipment and storage medium
CN119441935A
Lightweight video anomaly detection method and system based on information gating compression
CN119904788A
