A method and device for hydropower plant image visual recognition artificial intelligence alarm

By adopting the image visual recognition artificial intelligence alarm method in hydropower plants and using deep neural networks for image recognition and target detection, the problem of insufficient monitoring automation recognition capabilities in the existing technology has been solved, and efficient automated supervision of on-site operations and all-weather monitoring have been achieved. .

CN113903081BActive Publication Date: 2024-10-18BEIJING XJ ELECTRIC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111150992.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2024-10-18
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

The existing monitoring field relies on manual visual remote monitoring through cameras, resulting in unsatisfactory monitoring results. Especially in the data processing of power systems, there is a problem of insufficient automatic identification capabilities.

Method used

Using the artificial intelligence alarm method of hydropower plant image visual recognition, through data set production, model training and scene application steps, automatic annotation tools, detectors and visualization components are constructed, and deep neural networks are used for image recognition and target detection to achieve semi-automatic annotation and Real-time monitoring.

Benefits of technology

It improves the automation level of hydropower plant monitoring, improves the safety and monitoring effect of on-site operations, realizes 360-degree all-weather monitoring without blind spots, and reduces the investment of inspection personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113903081B_ABST
    Figure CN113903081B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides an artificial intelligence alarm method and device for visual recognition of images in a hydropower plant. The method is used to construct an automatic annotation tool in the process of data annotation; the method includes: a data set preparation step, a model training step, and a scenario application step; the data set preparation step is used to construct a classifier in the process of preparing a standard data set; so as to enable the automatic annotation tool to annotate offline sample data, complete the work of initializing manual annotation, and prepare a standard data set; the model training step is used to construct a detector in the process of model training; in the model training step, the training set generated by the data set preparation step is trained on the algorithm and the test set generated by the classifier is evaluated for the model and a target detection model is further formed; the scenario application step constructs a visualization component in the process of constructing a typical scenario application display; the scenario application step is used to promote the application of typical scenarios of hydropower plant image visual recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to an artificial intelligence alarm method and device for image visual recognition in a hydropower plant. Background Art

[0002] With the development of social informatization, various electronic devices are widely used in more and more fields, especially in various monitoring and surveillance fields, which can greatly improve the real-time monitoring. However, in the existing monitoring field, more manual visual remote monitoring is performed through cameras, resulting in unsatisfactory monitoring effects. Summary of the invention

[0003] In view of the problems existing in the prior art in data processing of power systems, the purpose of the embodiments of the present invention is to provide an artificial intelligence alarm method and device for hydropower plant image visual recognition.

[0004] In order to solve the above problems, an embodiment of the present invention provides a hydropower plant image visual recognition artificial intelligence alarm recognition method, which is used to build an automatic annotation tool in the process of data annotation; the method includes: a data set preparation step, a model training step, and a scenario application step;

[0005] The data set preparation step is used to construct a classifier in the process of preparing a standard data set, so as to enable the automatic annotation tool to annotate offline sample data, complete the initialization of manual annotation, and prepare a standard data set;

[0006] The model training step is used to construct a detector during the model training process; in the model training step, the training set generated in the data set preparation step is used for algorithm training and the test set generated by the classifier is used for model evaluation and further forms a target detection model;

[0007] Among them, the scenario application step constructs a visualization component in the process of constructing a typical scenario application display; the scenario application step is used to promote the application of typical scenarios of hydropower plant image visual recognition.

[0008] The data set preparation step includes:

[0009] Using manual annotation as guidance information, the required foreground or object area is selected according to the needs of manual annotation, and flexible annotation results are obtained through multiple interactions, providing a semi-automatic annotation strategy for image annotation. Compared with semantic segmentation, interactive segmentation not only requires the input of images and labels, but also requires the input of interactive information for recognition to form an annotated sample data set.

[0010] Initialize all standard sample data samples with the same weights, train a weak classifier under this sample distribution, increase the corresponding weights of the misclassified samples, and reduce the weights of the correctly classified samples, so that the samples that were misclassified in the previous step are highlighted, and obtain a new sample distribution. Under the new sample distribution, train the samples again and obtain another classifier; cycle in sequence to obtain multiple classifiers, and combine these classifiers according to certain weights and weighted voting mechanisms to obtain the final strong classifier;

[0011] Combined with the sample optimization mechanism, the labeled sample data is scaled to different sizes for training, doubling the learning frequency of rare targets to achieve the reinforcement purpose of dividing into training sample sets, thereby achieving the high-standard requirements of improving the training sample sets.

[0012] In the data set preparation step, data annotation uses a high-performance interactive segmentation automatic annotation tool, that is, first use the pre-trained model to pre-annotate the image sample data obtained offline, and then use a series of positive green points and negative red points to accurately adjust the edge of the target object for inaccurate or erroneous annotations, so as to achieve refined annotation and form a standard data set with alternating positive and negative samples; the data annotation process includes the following steps:

[0013] (1) Prepare the labeled images and the unlabeled images that need to be automatically labeled, and divide the labeled images into two parts for training the classification network and the discriminant network respectively;

[0014] (2) Build a dual deep neural network model including a classification network and a discriminant network;

[0015] (3) Use the labeled images to train the dual deep neural network model;

[0016] (4) Use the trained dual deep neural network model to predict the category of unlabeled images;

[0017] (5) Process the prediction results of the unlabeled images and choose to start the next iteration or end automatic labeling;

[0018] The classifier is an iterative process used to adaptively change the distribution of the sample data set so that the base classifier focuses on those samples that are difficult to classify; the classifier is used to realize the division of the training data set and the test data set. According to the existing fixed data classification attribute label set, for the input image, a classification attribute label is found from the classification attribute label set, and finally the classification attribute label is assigned to the input image. For the input image whose classification attribute label is the training set, sample optimization is performed; the classification process includes the following steps:

[0019] (1) Sample data set: Given training samples (x1, y1), ..., (xi, yi), ..., (xn, yn), where xi represents the i-th sample, yi = 0 represents a negative sample, and yi = 1 represents a positive sample. n is the total number of training samples.

[0020] (2) Initialization weights: Initialize the weights of the sample data set

[0021] (3) Iteration process: In the first iteration, first train a weak classifier and calculate the error rate of the weak classifier; select a suitable threshold to minimize the error; and update the sample weights.

[0022] (4) Generating a strong classifier: After T cycles, T weak classifiers are obtained. They are weighted and superimposed according to the weight of evaluating the importance of each weak classifier, and finally a strong classifier is obtained.

[0023] Wherein, the model training includes:

[0024] Combined with online difficult sample mining, the training set that has been divided by the classifier and sample optimized is used to learn the areas with poor model prediction results and perform algorithm training;

[0025] Combined with softened non-maximum suppression, the test set divided by the classifier is evaluated by reducing the difficulty of selecting the windows with the highest scores in the neighborhood and suppressing those with low scores;

[0026] Through algorithm training, the target detection model is constructed; through model evaluation, the target detection model is continuously optimized to achieve continuous detection of the connected video stream. By integrating the output data of the prediction layer, a series of target frames are obtained, and the target frames with low confidence scores are filtered out by setting thresholds. Finally, the retained target frames are greatly suppressed, duplicate frames are removed, and the target frames with the highest probability of the target category are selected, and their specific coordinates are output.

[0027] The detector in the model training step uses a camera to obtain real-time monitoring video image data, performs image resolution scaling, and performs image sharpening processing to detect targets in the video in real time; the detection process includes:

[0028] (1) Input video stream: read surveillance video, initialize operation, read parameter file, parse model, load model weights, and perform image data preprocessing;

[0029] (2) Obtaining the target detected by the target detection network: The preprocessed image data enters the network layer for processing, and the convolution layer and pooling layer are processed; since the size of the convolution kernel in each layer is not fixed, the value of the convolution layer is different, and the current frame image is alternately processed by convolution and mean pooling, and the feature map with convolution is output to obtain the feature value data; in order to facilitate the operation of the subsequent prediction layer, the feature data range is normalized to between 0 and 1 through the activation layer, and the stability is also enhanced;

[0030] (3) Determine the detected target: After obtaining the detected target, on the one hand, match the key points of the target position in the previous frame with the target position predicted by the Kalman filter in the current frame; if the matching pair is greater than the previously set threshold, the position of the target in the current frame is obtained; if the matching pair is less than the previously set threshold, the target is detected using the target detection network by moving down the frame and a recursive judgment is performed; on the other hand, the similarity between the position of the target predicted by the Kalman filter in the current frame and the detected position of the target in the current frame is calculated; if the similarity is greater than the previously set threshold, the position of the target in the current frame is obtained; if the similarity is less than the previously set threshold, the target is detected using the target detection network by moving down the frame and a recursive judgment is performed;

[0031] (4) Determine the video stream: In each subsequent frame, the detection is still carried out by cyclically matching pairs and similarities to determine whether the detection target still exists; if the detection target is not detected, the disappearance of the detection target is counted; if the disappearance time of the detection target is greater than the previously set threshold, the detection target is determined to have disappeared, and the target coordinates corresponding to the detection target are cleared at the same time;

[0032] (5) Output to video surveillance: The prediction layer uses the predicted target category and coordinates. The prediction and target confidence are matched for each grid point in the feature map to obtain the target category probability and target box position. At the same time, the illegal target coordinates are drawn in real time to the corresponding position on the video surveillance image and marked in red.

[0033] The scenario application step includes:

[0034] Under the premise of fully considering the image visual recognition area of ​​the hydropower plant, the visualization is constructed according to the application of typical scenarios. The application is mainly applied to the electronic fence function of the upper reservoir periphery, personnel climbing over the railing intrusion; personnel safety helmet and work clothes inspection at the generator level; smoke and fire identification of the communication power panel room and battery room, fire / explosion smoke alarm; instrument identification of the switch status monitoring in the distribution panel room; leakage inspection of the turbine level and volute level; and independent and complex scenes of high-altitude operation inspection in the GIS room.

[0035] At the same time, the embodiment of the present invention also proposes an artificial intelligence alarm device for hydropower plant image visual recognition, including:

[0036] The automatic labeling module is used to label the sample data obtained offline to form a standard data set;

[0037] The classifier module is used to optimize the labeled sample data again to form high-quality training sets and test sets;

[0038] The detector module is used to perform algorithm training on the training set generated by the classifier and to perform model evaluation on the test set generated by the classifier and to further form a target detection model;

[0039] The visualization application module is used to visualize typical scenarios of image visual recognition in hydropower plants.

[0040] Wherein, the automatic marking module includes:

[0041] Fast annotation unit, used for fast generation of image and video annotation areas;

[0042] Generate corner point units to mark the construction of the overall outline of the region;

[0043] Corner point correction unit, used to adjust the overall contour anchor point;

[0044] Format export unit for handover of annotated samples.

[0045] The classifier module includes: a weak classifier for preliminarily determining the category of the standard sample; a voter for voting the scores of the weak classifiers; and a strong classifier for comparing the weighted sum of the voting scores with the average voting result to obtain the final result.

[0046] Among them, the detector module includes: an acquisition unit, which is used to collect image data to form an image video stream; a convolution unit, which is used to filter various areas of the image to extract the approximate features of the image; a pooling unit, which is used to "reduce the dimension" of the image and only retain the most critical features in the image; a fully connected unit, which is used for data mining and analysis to obtain corresponding analysis results.

[0047] Among them, the visualization application modules include: electronic fence function, personnel clothing detection, smoke and fireworks recognition, instrument recognition, leakage detection, and high-altitude operation detection.

[0048] The beneficial effects of the present invention are:

[0049] The technical solution of the present invention belongs to the field of artificial intelligence. It combines artificial intelligence technology, adopts neural network deep learning, strengthens the classifier of manually labeled offline sample data, and provides a good data basis for the training of algorithm models. The proposed algorithm training and model evaluation can effectively consolidate the target detection model and provide solid technical capabilities for typical scenario applications. Its advantages are: (1) Optimizing the means of automated supervision and control of on-site operations at the plant and station end; (2) Improving the artificial intelligence analysis capabilities of on-site safety and dangerous behaviors; (3) Reducing the input of plant and station inspection personnel and liberating productivity; (4) Realizing all-weather, 360-degree monitoring of the plant and station end without dead angles or blind spots. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of the hydropower plant image visual recognition method of the present invention;

[0051] Figure 2 It is a schematic diagram of the principle of automatic labeling of hydropower plant images by visual recognition according to the present invention;

[0052] Figure 3 It is a schematic diagram of the principle of the hydropower plant image visual recognition classifier of the present invention;

[0053] Figure 4 It is a schematic diagram of the principle of the hydropower plant image visual recognition detector of the present invention;

[0054] Figure 5 It is a schematic diagram of the components of the hydropower plant image visual recognition automatic annotation tool module of the present invention;

[0055] Figure 6 It is a schematic diagram of the composition of the hydropower plant image visual recognition classifier module of the present invention;

[0056] Figure 7 It is a schematic diagram of the composition of the hydropower plant image visual recognition detector module of the present invention;

[0057] Figure 8 It is a schematic diagram of the composition of the hydropower plant image visual recognition visualization application module of the present invention. Specific embodiments

[0058] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0059] The method of the embodiment of the present invention is further described below with reference to the accompanying drawings.

[0060] like Figure 1-Figure 8As shown, the embodiment of the present invention proposes an artificial intelligence alarm method and device for safe production in a hydropower plant. With the popularization and widespread use of network surveillance cameras, artificial intelligence image visual recognition technology has become an important branch of intelligent video surveillance in the field of safety prevention in hydropower plants. It is an interdisciplinary technology spanning multiple disciplines such as image processing, pattern recognition, and machine learning. Relying on the capabilities of artificial intelligence image visual recognition technology, a wealth of business skills are preset for video surveillance scenarios in hydropower plants, including electronic fences, helmet wearing detection, fireworks detection, stranger detection, off-duty / sleeping detection, height climbing detection, vehicle illegal parking analysis, and crowd overcrowding warning. These capabilities are applied in typical scenarios of safe production business to improve the technical means for safe production in hydropower plants.

[0061] The purpose of the present invention is to provide an artificial intelligence method and device for hydropower plant image vision, which can automatically capture violations at the site of hydropower plant safety production operations, realize full process control of various production operations on the site of the company, and realize automatic analysis and judgment of common violations, automatic alarm and stop, and generate violation records. Its goals are: (1) to provide a solution for rapid data annotation, construct an automatic annotation tool, and realize high-performance interactive segmentation automation of data annotation; (2) to provide a solution for data set production, establish a classifier, and fully improve the effectiveness of test data sets and training data sets; (3) to provide a model training solution, construct a detector, and effectively enhance the detection capability of the output model preparation identification; (4) to provide a scenario application solution to solve the problem of facing diversified typical scenario applications and realize the free combination of artificial intelligence skills.

[0062] The present invention combines artificial intelligence technologies such as rapid pre-screening and processing algorithms, deep learning neural network learning, and video stream intelligent image recognition and analysis to conduct artificial intelligence analysis of high-risk safety and hazardous behaviors on site, identify and judge various violations such as safety helmets, work clothes, fireworks, and electronic fences, and stop them remotely and in a timely manner, realizing the transformation from traditional defense to technological defense.

[0063] In order to achieve the above-mentioned purpose, in combination with the technical solution proposed in this application, a method and device for artificial intelligence alarm recognition of hydropower plant image visual recognition is provided.

[0064] According to the hydropower plant image visual recognition artificial intelligence alarm recognition method of the present application, it includes: data set production; model training; scene application. In the process of realizing data labeling, an automatic labeling tool is constructed; in the process of making a standard data set, a classifier is constructed; in the process of model training, a detector is constructed; in the process of building a typical scene application display, a visualization component is constructed. In the process of realizing data labeling, the data set production includes: using the automatic labeling tool to label offline sample data, completing the work of initializing manual labeling, and producing a standard data set. In the process of model training, the model training includes: using the training set generated by the classifier to perform algorithm training and using the test set generated by the classifier to perform model evaluation and further form a target detection model. In the process of scene application, the scene application includes: promoting and applying typical scenes of hydropower plant image visual recognition. In the process of sample optimization, the sample optimization includes: scaling the manually labeled offline sample data to different sizes for training, and doubling the learning frequency of rare targets. In the process of training, the online difficult sample mining includes: using the area with poor model prediction results for learning, and performing algorithm training. In the process of training, the softened non-maximum suppression includes: reducing the difficulty of selecting those windows with the highest scores in the neighborhood and suppressing those windows with low scores.

[0065] The present invention also proposes an artificial intelligence alarm device for image visual recognition of a hydropower plant, including: an automatic annotation module, which is used to annotate sample data acquired offline to form a standard data set; a classifier module, which is used to optimize the labeled sample data again to form a high-quality training set and test set; a detector module, which is used to perform algorithm training on the training set generated by the classifier and model evaluation on the test set generated by the classifier and further form a target detection model; a visualization application module, which is used to visualize the typical scene application of hydropower plant image visual recognition. Among them, the automatic annotation module includes: a fast annotation unit, which is used for the fast generation of image video annotation areas; a corner point generation unit, which is used to construct the overall contour of the annotation area; a corner point correction unit, which is used to adjust the overall contour anchor point; a format export unit, which is used to transfer the annotation samples. Among them, the classifier module includes: a weak classifier, which is used to preliminarily determine the category of the standard sample; a voter, which is used to vote for the score of the weak classifier; a strong classifier, which is used to compare the result of the weighted sum of the voting scores with the average voting result to obtain the final result. The detector module includes: a convolution unit, which is used to filter various areas of the image to extract the approximate features of the image; a pooling unit, which is used to "reduce the dimension" of the image and retain only the most critical features in the image; and a fully connected unit, which is used for data mining and analysis to obtain corresponding analysis results. The visualization application module includes: electronic fence function, personnel clothing detection, smoke and fireworks recognition, instrument recognition, leakage detection, high-altitude operation detection and other typical or complex scene applications.

[0066] The method specifically includes:

[0067] (1) Dataset creation

[0068] Using manual annotation as guidance information, the required foreground or object area is selected according to the needs of manual annotation, and flexible annotation results are obtained through multiple interactions, providing a semi-automatic annotation strategy for image annotation. Compared with semantic segmentation, interactive segmentation not only requires the input of images and labels, but also requires the input of interactive information for recognition to form an annotated sample data set.

[0069] Initialize all standard sample data samples with the same weights, train a weak classifier under this sample distribution, increase the corresponding weights for the misclassified samples, and reduce the weights of the correctly classified samples, so that the samples that were misclassified in the previous step are highlighted, and obtain a new sample distribution. Under the new sample distribution, train the samples again and obtain another classifier. Repeat this cycle to obtain multiple classifiers, and combine these classifiers according to certain weights and weighted voting mechanisms to obtain the final strong classifier.

[0070] Combined with the sample optimization mechanism, the labeled sample data is scaled to different sizes for training, doubling the learning frequency of rare targets to achieve the reinforcement purpose of dividing into training sample sets, thereby achieving the high-standard requirements of improving the training sample sets.

[0071] (2) Model training

[0072] Combined with online difficult sample mining, the training set that has been divided by the classifier and sample optimized is used to learn the areas with poor model prediction results and perform algorithm training.

[0073] Combined with softened non-maximum suppression, the test set divided by the classifier is evaluated by reducing the difficulty of selecting windows with the highest scores in the neighborhood and suppressing windows with low scores.

[0074] Through algorithm training, the target detection model is constructed; through model evaluation, the target detection model is continuously optimized to achieve continuous detection of the connected video stream. By integrating the output data of the prediction layer, a series of target frames are obtained, and the target frames with low confidence scores are filtered out by setting thresholds. Finally, the retained target frames are greatly suppressed, duplicate frames are removed, and the target frames with the highest probability of the target category are selected, and their specific coordinates are output.

[0075] (3) Scenario Application

[0076] Under the premise of fully considering the image visual recognition area of ​​the hydropower plant, the visualization is constructed according to the application of typical scenarios. The application is mainly applied to the electronic fence function of the upper reservoir periphery, personnel climbing over the railing intrusion; personnel safety helmet and work clothes inspection at the generator level; smoke and fire identification of the communication power panel room and battery room, fire / explosion smoke alarm; instrument identification of the switch status monitoring in the distribution panel room; leakage inspection of the turbine level and volute level; and independent and complex scenes of high-altitude operation inspection in the GIS room.

[0077] Among them, data annotation uses a high-performance interactive segmentation automatic annotation tool, that is, first use the pre-trained model to pre-annotate the image sample data obtained offline, and then use a series of green points (positive points) and red points (negative points) to accurately adjust the edge of the target object for inaccurate annotation and erroneous places, so as to achieve refined annotation and form a standard data set with alternating positive and negative samples, such as Figure 2 As shown, the data annotation process includes the following steps:

[0078] (1) Prepare the labeled images and the unlabeled images that need to be automatically labeled, and divide the labeled images into two parts for training the classification network and the discriminant network respectively;

[0079] (2) Build a dual deep neural network model including a classification network and a discriminant network;

[0080] (3) Use the labeled images to train the dual deep neural network model;

[0081] (4) Use the trained dual deep neural network model to predict the category of unlabeled images;

[0082] (5) Process the prediction results of the unlabeled images and choose to start the next iteration or end automatic labeling.

[0083] Among them, the classifier is an iterative process used to adaptively change the distribution of the sample data set so that the base classifier focuses on those samples that are difficult to classify. The classifier mentioned in this application is used to realize the division of the training data set and the test data set. According to the existing fixed data classification attribute label set, for the input image, a classification attribute label is found from the classification attribute label set, and finally the classification attribute label is assigned to the input image. For the input image whose classification attribute label is the training set, sample optimization is performed. Figure 3 As shown, the classification process includes the following steps:

[0084] (1) Sample data set: Given training samples (x1, y1), ..., (xi, yi), ..., (xn, yn), where xi represents the i-th sample, yi = 0 represents a negative sample, and yi = 1 represents a positive sample. n is the total number of training samples.

[0085] (2) Initialization weights: Initialize the weights of the sample data set

[0086] (3) Iteration process: In the first iteration, first train a weak classifier and calculate the error rate of the weak classifier; select a suitable threshold to minimize the error; and update the sample weights.

[0087] (4) Generate a strong classifier: After T cycles, T weak classifiers are obtained. They are weighted and superimposed according to the weight of evaluating the importance of each weak classifier, and finally a strong classifier is obtained.

[0088] Among them, the detector uses the camera to obtain real-time monitoring video image data, performs image resolution scaling operations, and performs image sharpening processing to detect the targets in the video in real time. Figure 4 As shown, the detection process includes:

[0089] (1) Input video stream: read surveillance video, initialize operations, read parameter files, parse the model, load model weights, and perform image data preprocessing.

[0090] (2) Obtaining the target detected using the target detection network: The preprocessed image data enters the network layer for processing, and the convolution layer and pooling layer are processed. Since the size of the convolution kernel in each layer is not fixed, the value of the convolution layer is different. The current frame image is processed alternately by convolution and mean pooling, and the feature map with convolution is output to obtain the feature value data. In order to facilitate the operation of the subsequent prediction layer, the feature data range is normalized to between 0 and 1 through the activation layer, which also enhances stability.

[0091] (3) Determine the detected target: After obtaining the detected target, on the one hand, match the key points of the target position in the previous frame with the target position predicted by the Kalman filter in the current frame. If the matching pair is greater than the previously set threshold, the position of the target in the current frame is obtained; if the matching pair is less than the previously set threshold, the target is detected using the target detection network by moving down the frame, and a recursive judgment is performed. On the other hand, calculate the similarity between the position of the target predicted by the Kalman filter in the current frame and the detected position of the target in the current frame. If the similarity is greater than the previously set threshold, the position of the target in the current frame is obtained; if the similarity is less than the previously set threshold, the target is detected using the target detection network by moving down the frame, and a recursive judgment is performed.

[0092] (4) Determine the video stream: In each subsequent frame, the detection is still carried out by looping the matching pair and similarity method to determine whether the detection target still exists. If the detection target is not detected, the disappearance of the detection target is counted. If the disappearance time of the detection target is greater than the previously set threshold, the detection target is determined to have disappeared, and the target coordinates corresponding to the detection target are cleared at the same time.

[0093] (5) Output to video surveillance: The prediction layer uses the predicted target category and coordinates. For each grid point prediction of the feature map, the target confidence is matched to obtain the target category probability and target box position. At the same time, the illegal target coordinates are drawn in real time to the corresponding position on the video surveillance image and marked in red.

[0094] According to an embodiment of the present invention, there is also provided an artificial intelligence alarm device for image visual recognition in a hydropower plant; comprising:

[0095] The automatic labeling module is used to label the sample data obtained offline to form a standard data set;

[0096] The classifier module is used to optimize the labeled sample data again to form high-quality training sets and test sets;

[0097] The detector module is used to perform algorithm training on the training set generated by the classifier and to perform model evaluation on the test set generated by the classifier and to further form a target detection model;

[0098] The visualization application module is used to visualize typical scenarios of image visual recognition in hydropower plants.

[0099] Among them, Figure 5 As shown, the automatic annotation module includes: a fast annotation unit for quickly generating image and video annotation areas; a corner point generation unit for constructing the overall contour of the annotation area; a corner point correction unit for adjusting the overall contour anchor point; and a format export unit for transferring the annotation samples.

[0100] Among them, Figure 6 As shown, the classifier module includes: a weak classifier, which is used to preliminarily determine the category of the standard sample; a voter, which is used to vote the scores of the weak classifiers; and a strong classifier, which is used to compare the result of the weighted sum of the voting scores with the average voting result to obtain the final result.

[0101] Among them, Figure 7As shown, the detector module includes: an acquisition unit, which is used to acquire image data to form an image video stream; a convolution unit, which is used to filter various areas of the image to extract the approximate features of the image; a pooling unit, which is used to "reduce the dimension" of the image and only retain the most critical features in the image; and a fully connected unit, which is used for data mining and analysis to obtain corresponding analysis results.

[0102] Among them, Figure 8 As shown, the visualization application modules include: electronic fence function, personnel clothing detection, smoke and fireworks recognition, instrument recognition, leakage detection, and height operation detection.

[0103] The advantages of the present invention are: (1) optimizing the means of automated supervision and control of on-site operations at the plant and station end; (2) improving the artificial intelligence analysis capabilities of on-site safety and hazardous behaviors; (3) reducing the input of plant and station inspection personnel and liberating productivity; (4) achieving all-weather, 360-degree monitoring of the plant and station end without dead angles or blind spots.

[0104] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A hydropower plant image visual recognition artificial intelligence alarm method, characterized in that: Used to construct an automatic annotation tool in the process of data annotation; the method includes: a data set preparation step, a model training step, and a scenario application step; The data set preparation step is used to construct a classifier in the process of preparing a standard data set, so as to enable the automatic annotation tool to annotate offline sample data, complete the initialization of manual annotation, and prepare a standard data set; The model training step is used to construct a detector during the model training process; in the model training step, the training set generated in the data set preparation step is used for algorithm training and the test set generated by the classifier is used for model evaluation and further forms a target detection model; Among them, the scene application step constructs a visualization component in the process of constructing a typical scene application display; the scene application step is used for the promotion and application of typical scenes of hydropower plant image visual recognition; The data set preparation step includes: Using manual annotation as guidance information, the required foreground or object area is selected according to the needs of manual annotation, and flexible annotation results are obtained through multiple interactions, providing a semi-automatic annotation strategy for image annotation. Compared with semantic segmentation, interactive segmentation not only requires the input of images and labels, but also requires the input of interactive information for recognition to form an annotated sample data set. Initialize all standard sample data samples with the same weights, train a weak classifier under this sample distribution, increase the corresponding weights of the misclassified samples, and reduce the weights of the correctly classified samples, so that the samples that were misclassified in the previous step are highlighted, and obtain a new sample distribution. Under the new sample distribution, train the samples again and obtain another classifier; cycle in sequence to obtain multiple classifiers, and combine these classifiers according to certain weights and weighted voting mechanisms to obtain the final strong classifier; Combined with the sample optimization mechanism, the labeled sample data is scaled to different sizes for training, doubling the learning frequency of rare targets to achieve the reinforcement purpose of dividing into training sample sets, thereby achieving the high-standard requirements of improving the training sample sets.

2. The hydropower plant image visual recognition artificial intelligence alarm method according to claim 1 is characterized in that: in, In the data set preparation step, data annotation uses a high-performance interactive segmentation automatic annotation tool, that is, first use the pre-trained model to pre-annotate the image sample data obtained offline, and then use a series of green positive points and red negative points to accurately adjust the edge of the target object for inaccurate or erroneous annotations, so as to achieve refined annotation and form a standard data set with alternating positive and negative samples; the data annotation process includes the following steps: (1) Prepare the labeled images and the unlabeled images that need to be automatically labeled, and divide the labeled images into two parts for training the classification network and the discriminant network respectively; (2) Build a dual deep neural network model including a classification network and a discriminant network; (3) Use the labeled images to train the dual deep neural network model; (4) Use the trained dual deep neural network model to predict the category of unlabeled images; (5) Process the prediction results of the unlabeled images and choose to start the next iteration or end automatic labeling; The classifier is an iterative process, which is used to adaptively change the distribution of the sample data set so that the base classifier focuses on those samples that are difficult to classify; the classifier is used to realize the division of the training data set and the test data set; according to the existing fixed data classification attribute label set, for the input image, a classification attribute label is found from the classification attribute label set, and finally the classification attribute label is assigned to the input image; for the input image whose classification attribute label is the training set, sample optimization is performed; the classification process includes the following steps: (1) Sample data set: Given training samples (x1, y1), ..., (xi, yi), ..., (xn, yn), where xi represents the i-th sample, yi = 0 represents a negative sample, and yi = 1 represents a positive sample; n is the total number of training samples; (2) Initialize weights: Initialize the weights of the sample data set; (3) Iteration process: In the first iteration, first train a weak classifier and calculate the error rate of the weak classifier; select a suitable threshold to minimize the error; and update the sample weights; (4) Generating a strong classifier: After T cycles, T weak classifiers are obtained. They are weighted and superimposed according to the weight of evaluating the importance of each weak classifier, and finally a strong classifier is obtained.

3. The hydropower plant image visual recognition artificial intelligence alarm method according to claim 1 is characterized in that: The model training includes: Combined with online difficult sample mining, the training set that has been divided by the classifier and sample optimized is used to learn the areas with poor model prediction results and perform algorithm training; Combined with softened non-maximum suppression, the test set divided by the classifier is evaluated by reducing the difficulty of selecting the windows with the highest scores in the neighborhood and suppressing those with low scores; Through algorithm training, a target detection model is constructed; through model evaluation, the target detection model is continuously optimized to achieve continuous detection of the connected video stream; by integrating the output data of the prediction layer, a series of target frames are obtained, and thresholds are set to filter out target frames with low confidence scores. Finally, the retained target frames are greatly suppressed, duplicate frames are removed, and the target frame with the highest probability of appearing in the target category is selected, and its specific coordinates are output.

4. The hydropower plant image visual recognition artificial intelligence alarm method according to claim 1 is characterized in that: The detector in the model training step uses the camera to obtain real-time monitoring video image data, performs image resolution scaling operations, and performs image sharpening processing to detect targets in the video in real time; The testing process includes: (1) Input video stream: read surveillance video, initialize operation, read parameter file, parse model, load model weights, and perform image data preprocessing; (2) Obtaining the target detected by the target detection network: The preprocessed image data enters the network layer for processing, and the convolution layer and pooling layer are processed; since the size of the convolution kernel in each layer is not fixed, the value of the convolution layer is different, and the current frame image is alternately processed by convolution and mean pooling, and the feature map with convolution is output to obtain the feature value data; in order to facilitate the operation of the subsequent prediction layer, the feature data range is normalized to between 0 and 1 through the activation layer, and the stability is also enhanced; (3) Determine the detected target: After obtaining the detected target, on the one hand, match the key points of the target position in the previous frame with the target position predicted by the Kalman filter in the current frame; if the matching pair is greater than the previously set threshold, the position of the target in the current frame is obtained; if the matching pair is less than the previously set threshold, the target is detected using the target detection network by moving down the frame and a recursive judgment is performed; on the other hand, the similarity between the position of the target predicted by the Kalman filter in the current frame and the detected position of the target in the current frame is calculated; if the similarity is greater than the previously set threshold, the position of the target in the current frame is obtained; if the similarity is less than the previously set threshold, the target is detected using the target detection network by moving down the frame and a recursive judgment is performed; (4) Determine the video stream: In each subsequent frame, the detection is still carried out by cyclically matching pairs and similarities to determine whether the detection target still exists; if the detection target is not detected, the disappearance of the detection target is counted; if the disappearance time of the detection target is greater than the previously set threshold, the detection target is determined to have disappeared, and the target coordinates corresponding to the detection target are cleared at the same time; (5) Output to video surveillance: The prediction layer uses the predicted target category and coordinates. The prediction and target confidence are matched for each grid point in the feature map to obtain the target category probability and target box position. At the same time, the illegal target coordinates are drawn in real time to the corresponding position on the video surveillance image and marked in red.

5. The hydropower plant image visual recognition artificial intelligence alarm method according to claim 1 is characterized in that: The scenario application steps include: Under the premise of fully considering the image visual recognition area of ​​the hydropower plant, a visual display is constructed according to the application of typical scenarios; it is mainly applied to the electronic fence function of the upper reservoir periphery, where people climb over the railings to intrude; the personnel clothing inspection of the generator layer, the personnel safety helmet and work clothes inspection; the communication power panel room and the battery room, the smoke and fireworks recognition of the fire / explosion smoke alarm; the distribution panel room, the instrument identification of the switch status monitoring; the turbine layer and the volute layer, the leakage inspection of the leakage; the independent and complex scenes of the high-altitude operation detection in the GIS room.

6. A hydropower plant image visual recognition artificial intelligence alarm device, characterized in that: include: The automatic labeling module is used to label the sample data obtained offline to form a standard data set; The classifier module is used to optimize the labeled sample data again to form high-quality training sets and test sets; The detector module is used to perform algorithm training on the training set generated by the classifier and to perform model evaluation on the test set generated by the classifier and to further form a target detection model; Visualization application module, used for visualization of typical scene applications of hydropower plant image visual recognition; The automatic annotation module is used to perform the following steps: Using manual annotation as guidance information, the required foreground or object area is selected according to the needs of manual annotation, and flexible annotation results are obtained through multiple interactions, providing a semi-automatic annotation strategy for image annotation. Compared with semantic segmentation, interactive segmentation not only requires the input of images and labels, but also requires the input of interactive information for recognition to form an annotated sample data set. Initialize all standard sample data samples with the same weights, train a weak classifier under this sample distribution, increase the corresponding weights of the misclassified samples, and reduce the weights of the correctly classified samples, so that the samples that were misclassified in the previous step are highlighted, and obtain a new sample distribution. Under the new sample distribution, train the samples again and obtain another classifier; cycle in sequence to obtain multiple classifiers, and combine these classifiers according to certain weights and weighted voting mechanisms to obtain the final strong classifier; Combined with the sample optimization mechanism, the labeled sample data is scaled to different sizes for training, doubling the learning frequency of rare targets to achieve the reinforcement purpose of dividing into training sample sets, thereby achieving the high-standard requirements of improving the training sample sets.

7. The hydropower plant image visual recognition artificial intelligence alarm device according to claim 6 is characterized in that: The automatic marking module comprises: Fast annotation unit, used for fast generation of image and video annotation areas; Generate corner point units to mark the construction of the overall outline of the region; Corner point correction unit, used to adjust the overall contour anchor point; Format export unit for handover of annotated samples.

8. The hydropower plant image visual recognition artificial intelligence alarm device according to claim 6 is characterized in that: The classifier module includes: a weak classifier, which is used to preliminarily determine the category of the standard sample; a voter, which is used to vote the scores of the weak classifiers; and a strong classifier, which is used to compare the weighted sum of the voting scores with the average voting result to obtain the final result.

9. The hydropower plant image visual recognition artificial intelligence alarm device according to claim 6 is characterized in that: The detector module includes: an acquisition unit, which is used to collect image data to form an image video stream; a convolution unit, which is used to filter various areas of the image to extract the approximate features of the image; a pooling unit, which is used to "reduce the dimension" of the image and only retain the most critical features in the image; and a fully connected unit, which is used for data mining and analysis to obtain corresponding analysis results.

10. The hydropower plant image visual recognition artificial intelligence alarm device according to claim 6, characterized in that: Visual application modules include: electronic fence function, personnel clothing detection, smoke and fireworks recognition, instrument recognition, leakage detection, and height operation detection.

Citation Information

Patent Citations

  • Visual scene recognition system and method based on deep neural network

    CN108921013A

  • Construction site violation intelligent identification method based on deep learning

    CN110826514A