Smart power plant video analysis method based on forgetting learning
Through the smart power plant video analysis method based on forgetful learning, the problems of safety hazards and data privacy leakage in smart power plants are solved, efficient video analysis and real-time warning are achieved, computing costs are reduced, and system security and identification accuracy are improved.
Patent Information
- Application Number
- CN202410588830.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-09-24
AI Technical Summary
There are security risks and risks of data privacy leakage in smart power plants. The existing video analysis system is not ideal when processing high-resolution images and images with large changes, and the construction and maintenance costs are high. It cannot meet the needs of big data, and traditional algorithms cannot be effective. Identify anomalies in smart power plant scenarios.
The smart power plant video analysis method based on forgetful learning is used to extract and preprocess the collected videos, train the convolutional neural network model, and use the trained model to extract the risk characteristics of the video images and generate warning information to achieve real-time warning. . This method includes preprocessing steps such as grayscale, geometric transformation, and Fourier transform, as well as incremental training and model aggregation to reduce computing costs and resource waste.
It achieves rational utilization of resources, reduces the impact of data deletion on the system, provides protection for user privacy, improves model security and identification accuracy, can detect potential dangers in a timely manner, reduces computing costs, and improves system efficiency. and performance.
Smart Images

Figure CN118692018A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of AI privacy protection and computer image vision technology, and in particular relates to a smart power plant video analysis method based on forgetting learning. Background Art
[0002] At present, smart power plants have used 5G private networks, video technology, AI intelligent analysis and other technical means to build an intelligent management and control platform for unsafe behaviors. By using video surveillance and AI intelligent detection, deep learning technology is applied to image recognition, and unsafe operations and behaviors of personnel during operations, as well as abnormal conditions such as equipment / environment in the production area, real-time monitoring of illegal intrusions of personnel during production (key areas), and intelligent recognition capabilities are given to traditional video surveillance equipment. The image recognition function of image recognition systems on the market uses deep learning training models at the bottom. However, while using richer data sets to train models with excellent recognition effects, the models may encounter attacks such as poisoning and member reasoning. Once the image training data is poisoned, the image recognition system is at risk of encountering backdoor attacks, such as misidentification of "fire source" as "stone". If the attacker uses member reasoning attacks to extract the data of the training model, the user's data privacy is at risk of leakage. In order to resist these attacks, the most primitive solution is to retrain the model with the remaining data. This method requires a lot of time and computing resources, and the impact is unpredictable.
[0003] Convolutional neural networks are constructed by simulating the visual perception mechanism of organisms. They can be supervised or unsupervised. The convolution kernel parameters in the hidden layer are shared, and the connections between layers are sparse, which enables the convolutional neural network to characterize the grid at a lower computational cost. This method is suitable for learning pixel data points, has good stability, and does not require additional data features.
[0004] The data input to the convolutional neural network is extracted through the convolution layer to extract the underlying features, and nonlinear factors are introduced through the activation function. Then, the pooling layer is used to prevent overfitting and reduce the data dimension. The convolution activation pooling steps are repeated continuously, and finally the extracted underlying features are summarized through the fully connected layer, and the results are finally output.
[0005] At present, there are still potential safety hazards and risks in smart power plants, including the physical environment, equipment and facilities, and personnel flow of power plants. Negligence of internal employees on safety issues may also lead to accidents. Therefore, the development of smart security systems for power plants is particularly important for achieving the inherent safety of power plants. In recent years, the application of safety protection systems in thermal power plants has gradually increased. The application of systems has played a positive role in improving the comprehensive management of power plants and the safety of personnel and equipment. However, in the design process of domestic power plant security systems, there is a lack of overall solutions, and the comprehensive processing of information needs to be improved.
[0006] The learning forms of machine learning can be divided into supervised learning and unsupervised learning. Taking the violation of regulations by personnel in smart power plants as an example, identifying a known violation from the monitoring system of the smart power plant is essentially a classification task, that is, inputting unknown data and outputting classification results. The classification task requires the system to analyze the input unknown pattern based on known classification knowledge to determine whether the category of the input pattern is a violation or what type of violation it is. The corresponding learning goal is to learn the criteria for classification. Deep neural networks are developing rapidly, and traditional target detection algorithms such as HOG and SVM can no longer compete with them in terms of recognition accuracy.
[0007] Although video surveillance can display the collected information intuitively and improve the convenience of information processing, the method of using a large number of human resources for secondary monitoring of video surveillance is very unscientific and unreasonable, which not only wastes manpower but also causes frequent omissions. In the system storage, the video data is very large. If the entire data system is screened according to one feature and manual work is used, not only a large number of personnel are required, but also with the continuous increase in workload, manual visual fatigue will occur, resulting in a sharp drop in the accuracy of the work, and the probability of missed detection will also increase significantly, and the effectiveness of the video surveillance system cannot be brought into play.
[0008] The existing video storage modes include DVR / NVR front-end local storage and centralized storage. The DVR / NVR front-end local storage mode cannot meet the needs of big data due to its relatively small storage capacity and low performance. The information island phenomenon is serious. Its related video analysis functions can only be viewed in its management interface, and the recognition results are not output in a unified and standardized manner, and it does not have smart power plant equipment scene algorithms. Compared with the DVR / NVR mode, the centralized storage mode has a greatly increased capacity and realizes centralized storage of data. However, with the advent of big data, the subsequent project expansion requires manual configuration of equipment load balancing. The GPU video analysis server for smart power plants is generally used in its hardware. The CPU and GPU general architecture has low computing efficiency for deep learning neural networks and cannot meet the application of smart power plant scene recognition. In addition, there are safety risks in the non-localization of chips. Some provinces and cities also refer to the road traffic video capture system with the mode of "video intelligent analysis assistance + manual confirmation", but there is not much research on abnormal recognition of smart power plant scenes. The biggest constraint is its high construction and maintenance costs, and it is difficult to promote it comprehensively.
[0009] The traditional scene recognition method based on image features can be simply summarized into two steps: ① Input image with feature representation; ② Search for the best matching image in a large-scale image set (feature representation). For image feature representation, the images in the image database in traditional scene recognition use local feature representation similar to SIFT, and then use the BOW (BagofWords) model, VLAD or Fisher vector for feature encoding. On the basis of these feature representations, three-dimensional information such as camera posture can be introduced for further data enhancement, thereby realizing image retrieval and scene recognition. At present, the latest feature-based method in scene recognition is to use RootSIFT local feature representation, use the VLAD algorithm for feature encoding, and finally use the whitening method to compress the feature vector. The traditional classical feature description method meets the image feature representation requirements in traditional scene recognition, and the traditional scene recognition algorithm has become mature. However, when such algorithms process some high-resolution images or images whose degree of change is greatly affected by illumination and time, the effect of feature-based methods is not ideal.
[0010] Scene recognition tasks based on deep learning can be roughly divided into the following two categories: ① Using deep learning technology to carry out some auxiliary tasks, such as learning some special local image features; ② Using a large number of training sets of manually annotated image descriptors for learning. Such manually labeled features belong to shallow features (directly annotated on the image), and the models generated according to this process are often unable to fine-tune features for different target tasks. The above two methods for scene recognition are very different from the core ideas of deep learning to handle various recognition tasks.
[0011] Therefore, it is necessary to design a safe and efficient machine learning algorithm to optimize the video analysis model in smart power plants to solve the above technical problems. Summary of the invention
[0012] The purpose of the present invention is to overcome the problems existing in the prior art and to propose a smart power plant video analysis method based on forgetting learning.
[0013] The present invention adopts the following technical solution: a smart power plant video analysis method based on forgetting learning, comprising: S1: Extract images from the collected video; S2: preprocess the extracted images; S3: Train the neural network model to obtain an image recognition model; S4: Extract risk features of video images using the trained image recognition model; S5: Generate warning information based on the identification results to warn of risks in a timely manner.
[0014] In some embodiments, step S2 includes: Grayscale color images; The acquired images are processed through geometric transformation, and then the nearest neighbor interpolation algorithm is used to scale the images; Perform two-dimensional Fourier transform signal enhancement to enhance the useful information in the image.
[0015] In some embodiments, step S3 includes: S31: Build a neural network model according to the detection object; S32: Perform model training on the neural network model to obtain a target model; S33: Training the target model based on forgetting learning.
[0016] In some embodiments, in step S31, the neural network model includes a convolutional neural network.
[0017] In some embodiments, the training process of step S32 is: Forward propagation: input the training data into the convolutional neural network, obtain the model's predicted output through forward propagation calculation, calculate the value of the loss function, and measure the difference between the model's predicted output and the true label; Back propagation: According to the value of the loss function, the gradient is calculated through the back propagation algorithm, and the network parameters are updated to reduce the value of the loss function; Parameter optimization: Through multiple iterative training, i.e. forward propagation + back propagation, the network parameters are continuously optimized.
[0018] In some embodiments, the specific steps of model training in step S33 are as follows: Divide the original dataset into multiple disjoint dataset segments; Each dataset segment is sliced and split for incremental training, and the training parameters of each generation of models are incrementally trained and stored; Each generation of models obtained using independent data sets are aggregated and the output result is finally obtained.
[0019] In some embodiments, step S4 includes: S41: Find relevant targets in the infrastructure image through target detection algorithm; S42: Analyze and identify the danger source in the current image through the trained image recognition model to obtain the risk feature; S43: dynamically calculating the video frame extraction rate according to the time consumed in the last analysis of a single image, and extracting the next frame of video for analysis according to the rate.
[0020] A system comprising: Video acquisition module, used for acquiring video; A storage module, used for storing the collected videos; The processor module processes the stored videos using a smart power plant video analysis method based on forgetting learning; The communication module is used to send the generated warning information to the alarm module for alarm.
[0021] Compared with the prior art, the present invention has the following beneficial effects: 1. The present invention introduces a method for training the model based on the SISA forgetting learning algorithm, which eliminates the influence of some data on the model and achieves results similar to retraining with less consumption. It realizes the rational use of resources on the basis of model optimization and avoids waste of resources.
[0022] 2. While satisfying the image recognition function, the present invention reduces the impact of data deletion on the system's prediction ability, providing strong protection for user privacy protection and system model security; 3. The present invention proposes a three-step video stream intelligent analysis framework of "target detection, static analysis, and dynamic analysis" to promptly discover potential dangers. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a hardware structure diagram of the method of the present invention; Figure 2 This is the CNN network model diagram we built; Figure 3 This is a diagram of the training process of the SISA algorithm model based on forgetting learning; Figure 4Flow chart of the whole process of video analysis based on forgetting learning. DETAILED DESCRIPTION
[0024] The present invention is described in detail below through specific embodiments in conjunction with the accompanying drawings, but does not constitute a limitation of the present invention.
[0025] This embodiment provides an example of a smart power plant video analysis system using the method of the present invention.
[0026] In this embodiment, the video analysis system is divided into a video acquisition module, a storage module, a processor module, a communication module and an alarm module. Figure 1 The video acquisition module shown is the basis of all modules, because other modules must process the data collected by this module. The video acquisition module uses intelligent video analysis technology and video parsing chip as the basis to collect the monitoring video data of the smart power plant. In terms of hardware configuration, the TVP5150AMIPBS video acquisition interface chip is selected as the decoding chip. This chip can convert video signals in NTSC, PAL, and SECAM formats into digital color difference signals in YUV422 format, which is conducive to the transmission of information in the operation and maintenance system. The chip uses a 32-pin TQFP package, and the video input interface part is an RCA interface. The collected video signal is connected to the video entry port through a voltage divider analog circuit and a filter. The collected video format is as follows: 1 Video input interface: 1 video input, 1.0Vp-p, RCA interface; 2 Video format: NTSC standard analog video format; 3 frame rates, 30 fps for NTSC and 25 fps for PAL.
[0027] The collected video data should be stored in the module to facilitate further processing by other modules. The storage module in the operation and maintenance system consists of two parts: one is the DDR2SDRAM memory that stores data and programs such as images and videos of the smart power plant. The other is the external NANDFlash memory.
[0028] The processor converts the video file format into a digital mode that is easy to transmit. The processor module uses the DM6446 chip in hardware design. The chip package structure is BGA, and the total number of pins is 361. The processor access method is completed through the central switching network, which includes the SCR direct access mode, that is, access through the SCR function of the EDMA transmission controller. When multiple master devices access the slave device at the same time, the order of device requests is first judged through the SCR, and the master device priority is adjusted to achieve the best performance of the system. The data converted by the processing module can be output.
[0029] In the design of communication modules, sub-modules such as RS232, RS485, Ethernet and USB are designed: the main function of the RS232 interface is to increase the communication distance when the system uses low-speed serial communication (because its level range is different from the controller interface in DM6446, the MAX3221CPWR chip is used as the level conversion chip;) the RS485 interface is mainly used to control the pan-tilt head or communicate with other devices; the Ethernet module is the main communication channel between the host and the video analysis system.
[0030] A smart power plant video analysis method based on forgetting learning, comprising: S1: Extract images from the video collected by the streaming media server. The camera used is a Hikvision gun camera with a resolution of 4k, a height of 3m, a horizontal downward angle of 30, and a focal length of 6m.
[0031] S2: Preprocess the extracted images.
[0032] The main steps of preprocessing are as follows: Grayscale the color image using the average method; The collected images are processed through geometric transformations such as translation, transposition, mirroring, rotation, and scaling, and then the nearest neighbor interpolation algorithm is used to scale the images; Use the frequency domain method to enhance the useful information in the image, regard the image as a two-dimensional signal, and perform signal enhancement based on two-dimensional Fourier transform. Filter out the high-frequency components representing the edge, noise or steep changes of the image, leaving only the low-frequency components with gentle changes.
[0033] S3: Train the neural network model to obtain an image recognition model.
[0034] S31: Build a neural network model according to the detection object; the neural network model adopts the current mainstream CNN network model.
[0035] It consists of 2 convolutional layers, 2 pooling layers, 2 fully connected layers, 1 RELU layer (activation layer) and 1 Softmax layer (network layer). According to the detection object recognition effect and algorithm efficiency, the number of convolution kernels in the two convolutional layers is determined to be 20 and 50, the number of convolution steps is 1, the convolution kernel size is 24×24 and 8×8, the pooling layer uses 12×12 maximum pooling, the stride is 2, and the fully connected layer uses 500 neurons.
[0036] S32: Perform model training on the neural network model to obtain a target model; Forward propagation: input the training data into the convolutional neural network, obtain the model's predicted output through forward propagation calculation, calculate the value of the loss function, and measure the difference between the model's predicted output and the true label; Back propagation: According to the value of the loss function, the gradient is calculated through the back propagation algorithm, and the network parameters are updated to reduce the value of the loss function; Parameter optimization: Through multiple iterative training, i.e. forward propagation + back propagation, the network parameters are continuously optimized.
[0037] The training of convolutional neural networks is to build the entire network architecture first, and then start from the initialized network parameters through iterative loop alternating operations, gradually adjust the parameters of the entire network, so that the error of the final network result is less than the threshold. The training process is: regard the defined and built CNN network as a "black box", the image features are automatically extracted by the CNN network and the weights are trained, and the image data sets with defined categories (i.e., heads wearing helmets, heads not wearing helmets) are input into the "black box" for iterative loop training, and finally the network model file and weight file required for the case are obtained. The model training process is as follows: Figure 2 As shown in the figure. The defined and constructed CNN network is regarded as a "black box", and the CNN network automatically extracts image features and performs weight training. The image dataset with defined categories is input into the "black box" for iterative cycle training, and finally the network model file and weight file required for the case are obtained.
[0038] S33: Training the target model based on forgetting learning.
[0039] The forgetting learning strategy - SISA, divides the training set into slices, trains the model through incremental learning, records each intermediate model, and finally outputs the model through a joint voting mechanism of the model of each slice. In this way, when deleting data, since each intermediate model is recorded, there is no need to use the complete data set for training again. This is an idea of trading space efficiency for time efficiency. Figure 3 As shown in the figure, the specific steps of model training are as follows: 1. Divide the original data set D into multiple disjoint data set segments D1, D2...Ds; 2. Slice each data set segment, perform incremental training, and incrementally train and store the training parameters of each generation of the model. Divide Di (i=1,2,...,S) into Di,1, Di,2...Di,R slices, first train with Di,1 under the pre-entered random initial parameters, record this as the e1 period, and obtain the model Mi,1; then train Mi,1 with the Di,1 ∪ Di,2 data set, record this as the e2 period, and obtain the model Mi,2. Assuming there are R slices in Di, in the eR period, use all slices of D to train the Mi,R-1 model, then the final model Mi,R=Mi; 3. Aggregate the models M1, M2...Ms obtained using independent data sets and finally get the output result. When aggregating prediction classification, the aggregated value of the prediction from each shard model can be used to infer the final prediction value using a voting strategy; When there is a request to delete data, we only need to determine which shard (Di) the data belongs to, and then determine which slice (Di, r) the data belongs to. Then, we retrieve the previous model parameter file saved at the slice location, and continue training from that location, thus avoiding retraining all the data and effectively eliminating the impact of the deleted data on the model.
[0040] The second training uses the SISA algorithm, which can 1. Improve the adaptability of the model: Through forgetting learning, the model can dynamically adjust its own parameters according to the new data, so as to better adapt to the changes in data and improve the accuracy and generalization ability of the model. 2. Realize incremental learning: The SISA algorithm can realize incremental learning, that is, update the parameters of the model through forgetting learning without retraining the entire model, thereby improving efficiency when processing data streams. 3. Improve the robustness of the model: Through regular forgetting learning, outdated information and noise data can be eliminated, thereby improving the robustness and stability of the model and reducing the overfitting and generalization error of the model. 4. Reduce computational costs: Forgetting learning can help reduce the number of model parameters and computational complexity, thereby reducing the computational cost of the model and improving the efficiency and performance of the system.
[0041] S4: Use the trained image recognition model to extract risk features of video images. The convolutional layer in the convolutional neural network can extract features of the input image based on the safety status assessment indicators of smart power plant equipment, the security environment indicators of smart power plants, and the indicators for determining dangerous behaviors of station personnel. The main steps are as follows: S41: Use target detection algorithms to find relevant targets in the infrastructure image, such as fire sources, personnel, machinery, tools, terrain, weather, etc.
[0042] S42: Analyze and identify through the trained image recognition model to obtain the danger sources in the current image as risk features; such as: improper clothing of personnel, fire sources, smoking, potholes without safety signs and fences, etc.
[0043] S43: Dynamically calculate the video frame extraction rate based on the time consumed by the last analysis of a single image, and extract the next frame of video for analysis based on this rate. Performing time-series video analysis and logical reasoning can timely discover potential dangers (dynamic analysis). For example: vehicle speeding, people running, jumping, climbing, falling, people breaking through the safety line, people staying in prohibited areas or dangerous areas, etc.
[0044] Intelligent video analysis technology is used to describe the moving target in advance. The video sequence is mainly composed of a series of images, so the video sequence image is represented as: Among them, W and H represent the image width and image height respectively, and m represents the number of image frames. Represents the image coordinate point, i, j, n are constants. On this basis, the digital morphology method is used to simplify the image data while ensuring that the image feature structure remains unchanged.
[0045] The convolutional neural network in AI technology is used to extract risk features from the video images of smart power plant monitoring. The convolutional layer in the convolutional neural network can extract features from the input image. The features are based on the safety status assessment indicators of smart power plant equipment, the security environment indicators of smart power plants, and the dangerous behavior judgment indicators of smart power plant personnel. Suppose the picture that meets the above risk characteristics is The kth feature map in the same convolutional layer It is expressed as: Among them, f represents the nonlinear activation function, x is the input image, Represents the convolution filter of the kth feature map. On this basis, the pooling layer is used to extract The more abstract features in the convolution layer are sampled, that is, the output results of the above convolution layer are sampled, and the calculation formula is expressed as: in, represents the maximum pooling input of the k-th feature image, Represents the element size on (p, q) in the pooling area R. According to the above process, the risk feature value of the video image of the smart power plant can be output, providing a basis for subsequent work.
[0046] Intelligent video analysis technology is used to track moving targets in smart power plant monitoring videos, mainly for the determination of dangerous behaviors of personnel in the station. The target model is expressed as: in, Represents pixel The dangerous behavior eigenvalue at , u represents the eigenvalue index parameter, K represents the kernel function, and C represents the standard normalization constant coefficient. On this basis, the candidate model is described, which mainly describes the probability of the eigenvalue appearing in the key area of the smart power plant. The probability density estimate is expressed as: Where h represents the kernel function bandwidth, Represents the standard normalization constant coefficient. Finally, the similarity measurement is performed, and the calculation formula is expressed as: Among them, p and q represent probability density estimation functions, y represents the convergence function, and ρ represents the similarity measurement parameter.
[0047] S5: Generate warning information based on the identification results to warn of risks in a timely manner.
[0048] Based on the above process, not only can the risk behaviors of smart power plant personnel be identified, but also other risk feature images of smart power plants can be identified, and the situation of smart power plants can be obtained in real time. Once an image with risk features in the monitoring video is identified, it is immediately combined with the alarm module in the hardware design to give a real-time alarm. The motion target tracking technology combined with the video acquisition module in the hardware module can realize the acquisition function in the operation and maintenance system, and then the intelligent video analysis technology is loaded into the processor module of the hardware module in the software design to realize the processing of the video; the image feature extraction technology based on AI technology assists the alarm module in the hardware design, so as to realize the overall operation of the hardware and software of the safe operation and maintenance system of the smart power plant.
Claims
1. A smart power plant video analysis method based on forgetting learning, characterized in that: include: S1: Extract images from the collected video; S2: preprocess the extracted images; S3: Train the neural network model to obtain an image recognition model; S4: Extract risk features of video images using the trained image recognition model; S5: Generate warning information based on the identification results to warn of risks in a timely manner.
2. The smart power plant video analysis method based on forgetting learning according to claim 1 is characterized in that: The step S2 comprises: Grayscale color images; The acquired images are processed through geometric transformation, and then the nearest neighbor interpolation algorithm is used to scale the images; Perform two-dimensional Fourier transform signal enhancement to enhance the useful information in the image.
3. The smart power plant video analysis method based on forgetting learning according to claim 1 is characterized in that: The step S3 comprises: S31: Build a neural network model according to the detection object; S32: Perform model training on the neural network model to obtain a target model; S33: Training the target model based on forgetting learning.
4. The smart power plant video analysis method based on forgetting learning according to claim 3 is characterized in that: In step S31, the neural network model includes a convolutional neural network.
5. The smart power plant video analysis method based on forgetting learning according to claim 4 is characterized in that: The training process of step S32 is: Forward propagation: input the training data into the convolutional neural network, obtain the model's predicted output through forward propagation calculation, calculate the value of the loss function, and measure the difference between the model's predicted output and the true label; Back propagation: According to the value of the loss function, the gradient is calculated through the back propagation algorithm, and the network parameters are updated to reduce the value of the loss function; Parameter optimization: Through multiple iterative training, i.e. forward propagation + back propagation, the network parameters are continuously optimized.
6. The method for smart power plant video analysis based on forgetting learning according to claim 3 is characterized in that: The specific steps of model training in step S33 are as follows: Divide the original dataset into multiple disjoint dataset segments; Each dataset segment is sliced and split for incremental training, and the training parameters of each generation of models are incrementally trained and stored; Each generation of models obtained using independent data sets are aggregated and the output result is finally obtained.
7. The smart power plant video analysis method based on forgetting learning according to claim 1 is characterized in that: The step S4 comprises: S41: Find relevant targets in the infrastructure image through target detection algorithm; S42: Analyze and identify the danger source in the current image through the trained image recognition model to obtain the risk feature; S43: dynamically calculating the video frame extraction rate according to the time consumed in the last analysis of a single image, and extracting the next frame of video for analysis according to the rate.
8. A system, characterized in that: include: Video acquisition module, used for acquiring video; A storage module, used for storing the collected videos; A processor module, processing the stored video by the smart power plant video analysis method based on forgetting learning as described in any one of claims 1 to 7; The communication module is used to send the generated warning information to the alarm module for alarm.
Citation Information
Patent Citations
Urban rail transit panoramic monitoring video fault detection method based on depth learning
CN106709511A
Frame rate adjusting method and device
CN112506653A
Petrochemical plant monitoring video risk identification method and system, electronic equipment and storage medium
CN116310922A
Method and system for intelligent envelope detection and warning in prostate surgery
WO2020133636A1
Deep-learning-based pedestrian detection method, system and apparatus, and storage medium
WO2020164270A1
