Hydropower station dam reservoir area water surface floating object intelligent detection and early warning method

Through the YOLOV5 model and data set enhancement strategy, automatic detection and early warning of floating objects on the water surface of the hydropower station dam reservoir area are realized, which solves the problem of low efficiency in the existing technology and improves the supervision efficiency and detection accuracy.

CN118537291APending Publication Date: 2024-08-23CHINA YANGTZE POWER
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410437386.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, the efficiency of detecting floating objects on the water surface in the dam reservoir area of ​​a hydropower station through manual inspection or video monitoring is low, requiring special inspection personnel on duty, and it is difficult to achieve automatic detection in complex environments.

Method used

The YOLOV5 model is used to detect floating objects on the water surface. Key frame images are obtained through real-time video for preprocessing, and the detection model is deployed in the server. Data set training and enhancement strategies are used to improve detection accuracy and robustness, and achieve automatic detection and early warning.

Benefits of technology

It improves the efficiency of water area supervision, enhances the generalization ability and robustness of the model, reduces computational overhead, and enables automatic detection and real-time warning in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537291A
    Figure CN118537291A
Patent Text Reader

Abstract

The invention discloses a hydropower station dam reservoir area water surface floating object intelligent detection and early warning method, and the method comprises the steps: training an intelligent detection model through a water surface floating object data set, deploying the trained model into a server, and building a corresponding detection system. The method comprises the following steps: making a water surface floating object video of a hydropower station dam area into a VOC data set, carrying out certain data enhancement on the data set, training a model according to a certain strategy, combining an algorithm model with an established detection system, and finally deploying a complete water surface floating object detection system into a server. A user inputs an original video needing to be detected through the system platform to obtain corresponding detected video information; the method realizes automatic detection of common floating objects in a water area under complex environmental condition changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of water ecological environment detection and protection, and in particular relates to an intelligent detection and early warning method for floating objects on the water surface of a dam reservoir area of ​​a hydropower station. Background Art

[0002] Surface floating object detection technology is an indispensable tool for modern environmental monitoring and resource management. With the growth of urbanization and industrialization, the risk of water pollution and resource waste is also increasing. One of the key driving forces behind this technology is the concern for water quality, because water is the source of life and is essential to the ecosystem and human life. However, a large number of domestic pollutants gather in the waters of hydropower station dams, which not only affects the water quality safety, but also causes water pollution and damage to the ecological environment. In the long run, it will seriously affect shipping safety and drinking water quality, and may even affect the overall safety of the dam; the existing technology often relies on manual inspection and supervision, or on-duty visual supervision through video monitoring, which is inefficient and requires the arrangement of special on-duty inspection personnel, which is time-consuming and labor-intensive; therefore, it is necessary to design an intelligent detection and early warning method for surface floating objects in the reservoir area of ​​a hydropower station dam to solve the above problems. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide an intelligent detection and early warning method for floating objects on the water surface of a hydropower station dam reservoir area, which solves the problem of low efficiency in the prior art of supervising floating objects on the water surface through manual patrols or on-duty visual supervision through video monitoring. The method can effectively identify different types of floating objects on the water surface, and can store and feedback the identification results accordingly, and can be effectively deployed on a server for use, thereby realizing the automatic detection of common floating objects in water areas under complex environmental conditions.

[0004] In order to achieve the above technical effects, the technical solution adopted by the present invention is: A method for intelligent detection and early warning of floating objects on the water surface of a hydropower station dam reservoir area, comprising the following steps: S1, obtain the real-time video of the water surface in the dam reservoir area of ​​the hydropower station and extract the key frame image as the model detection input; S2, preprocessing the key frame image extracted by S1; S3, uses the YOLOV5 model to obtain the optimal detection model weight through data set training; S4, deploys the model trained in S3 to the server for users to call; S5, input the image processed by S2 into the server of step S4 for model detection to detect whether there are floating objects; if there are floating objects, go to the next step; if there are no floating objects, go to S2 to continue processing the video frame; S6, sending the detection result to the backend database for storage, and returning the detection result video to the Web frontend; S7, based on the detection results, real-time display and warning on the Web front end.

[0005] Preferably, the preprocessing in step S2 includes: First, the captured key frame image is converted into an RGB image, then gray bars are added to the image, cropped, and the batch_size dimension is added to the image so that the input data matches the expected input of the model.

[0006] Preferably, the detection model in step S3 is obtained by the following steps: S301, water surface floating object dataset production: Use webcams to record videos of floating objects on the water surface, including different areas, different time periods and different types of floating objects, and use search engines to obtain other types of floating objects on the water surface; Process the video into images frame by frame. After the screening is completed, use the labelImg tool to annotate the images into a VOC format dataset. When annotated into VOC format datasets, the floating object label types include plastic bags, balls, leaves, branches, milk cartons, bottles, plastic garbage, and water plants; S302, perform data enhancement on the data set: The data set is first enhanced with Mosaic data, and then with Mixup. S303, using the frozen training strategy to speed up training: The training is divided into two stages: the freezing stage and the thawing stage. In the freezing stage, the model backbone is frozen, the feature extraction network does not change, the video memory is small, and only the network structure is fine-tuned. In the thawing stage, the model backbone is not frozen, the feature extraction network will change, and all network parameters will change.

[0007] Preferably, the model deployment in step S4 includes: First, build the environment required for the model to run, then embed the detection model into the Web system framework, and then write the logical application interface based on the actual scenario requirements.

[0008] Preferably, step S6 comprises: According to the detection results, a frame of the result image is captured at a certain time interval, and the image code is sent to the database, along with the description information of the detection result, which includes the detection content, detection time and camera code; at the same time, the real-time detection result video is sent to the Web front-end in the form of a video stream for real-time display.

[0009] Preferably, in step S7, the test result feedback is in the form of video and table, and prompts and warnings are given through voice and text.

[0010] The beneficial effects of the intelligent detection and early warning method for floating objects on the water surface of a hydropower station dam reservoir area provided by the present invention are as follows: The present invention realizes the intelligent detection and early warning method of floating objects on the water surface of the dam reservoir area of ​​the hydropower station, and provides a real-time detection framework for effectively detecting floating objects on the water surface. It solves the time-consuming and labor-intensive situation of traditional manual supervision and greatly improves the management efficiency of water area supervision; the enhanced processing of the data set not only enhances the generalization ability and robustness of the network and improves the model detection accuracy, but also introduces extremely small computing overhead to the machine, which has better applicability; the training strategy adopted can not only accelerate the network training speed, but also meet the machine performance deficiency and train a better model. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 Flow chart of intelligent detection and early warning method of floating objects on the water surface in the reservoir area of ​​a hydropower station dam; Figure 2 Structure diagram of the detection system for intelligent detection and early warning methods of floating objects on the water surface in the dam reservoir area of ​​a hydropower station. DETAILED DESCRIPTION

[0012] Embodiment 1: like Figure 1~Figure 2 As shown, a method for intelligent detection and early warning of floating objects on the water surface of a hydropower station dam reservoir area includes the following steps: S1, obtain the real-time video of the water surface in the dam reservoir area of ​​the hydropower station and extract the key frame image as the model detection input; S2, preprocessing the key frame image extracted by S1; S3, uses the YOLOV5 model to obtain the optimal detection model weight through data set training; S4, deploys the model trained in S3 to the server for users to call; S5, input the image processed by S2 into the server of step S4 for model detection to detect whether there are floating objects; if there are floating objects, go to the next step; if there are no floating objects, go to S2 to continue processing the video frame; S6, sending the detection result to the backend database for storage, and returning the detection result video to the Web frontend; S7, based on the detection results, real-time display and warning on the Web front end.

[0013] Preferably, the processing of the video key frames includes: Get monitoring video of the hydropower station dam area The video stream of the surveillance video obtained through the streaming platform, such as RTSP, must be guaranteed to be a valid video source, and then the RTSP stream is sent to the model detection in the system.

[0014] Preferably, the preprocessing in step S2 includes: First, the captured key frame image is converted into an RGB image, then gray bars are added to the image, cropped, and the batch_size dimension is added to the image so that the input data matches the expected input of the model.

[0015] Preferably, the detection model in step S3 is obtained by the following steps: S301, water surface floating object dataset production: Use webcams to record videos of floating objects on the water surface, including different areas, different time periods and different types of floating objects, and use search engines to obtain other types of floating objects on the water surface; Process the video into images frame by frame. After the screening is completed, use the labelImg tool to annotate the images into a VOC format dataset. When annotated into VOC format datasets, the floating object label types include plastic bags, balls, leaves, branches, milk cartons, bottles, plastic garbage, and water plants; S302, perform data enhancement on the data set: The data set is first enhanced with Mosaic data, and then with Mixup. S303, using the frozen training strategy to speed up training: The training is divided into two stages: the freezing stage and the thawing stage. In the freezing stage, the model backbone is frozen, the feature extraction network does not change, the video memory is small, and only the network structure is fine-tuned. In the thawing stage, the model backbone is not frozen, the feature extraction network will change, and all network parameters will change.

[0016] Preferably, the model deployment in step S4 includes: First, build the environment required for the model to run, then embed the detection model into the Web system framework, and then write the logical application interface based on the actual scenario requirements.

[0017] Preferably, step S6 comprises: According to the detection results, a frame of the result image is captured at a certain time interval, and the image code is sent to the database, along with the description information of the detection result, which includes the detection content, detection time and camera code; at the same time, the real-time detection result video is sent to the Web front-end in the form of a video stream for real-time display.

[0018] Preferably, in step S7, the test result feedback is in the form of video and table, and prompts and warnings are given through voice and text.

[0019] Embodiment 2: In S302, Mosaic data enhancement enables the model to read four pictures at a time, and perform random cropping, color gamut conversion, scaling, flipping and other operations on each of the pictures, and finally stitch these pictures together for processing; this operation method enriches the background of the detected object, enhances the generalization ability and robustness of the network, and improves the detection accuracy of the model; In order to improve the generalization ability of the model in the case of small samples, a more lightweight Mixup data enhancement method is introduced; it is a data enhancement strategy that is independent of the data itself. It constructs new training samples and labels in a linear interpolation manner, which can greatly improve the generalization ability of the model with only a very small computational overhead. Compared with traditional data enhancement methods, it has better applicability; the principle is as follows: ; ;

[0020] in, It is determined by the parameters of Distribution of the calculated mixing coefficients; and There are two sample, and is the corresponding label, yes The mixed sample is the corresponding label.

Claims

1. A method for intelligent detection and early warning of floating objects on the water surface of a hydropower station dam reservoir, characterized in that: The following steps are involved: S1, obtain the real-time video of the water surface in the dam reservoir area of ​​the hydropower station and extract the key frame image as the model detection input; S2, preprocessing the key frame image extracted by S1; S3, uses the YOLOV5 model to obtain the optimal detection model weight through data set training; S4, deploys the model trained in S3 to the server for users to call; S5, input the image processed by S2 into the server of step S4 for model detection to detect whether there are floating objects; if there are floating objects, go to the next step; if there are no floating objects, go to S2 to continue processing the video frame; S6, sending the detection result to the backend database for storage, and returning the detection result video to the Web frontend; S7, based on the detection results, real-time display and warning on the Web front end.

2. The intelligent detection and early warning method for floating objects on the water surface of a hydropower station dam reservoir area according to claim 1 is characterized by: The pre-processing in step S2 includes: First, the captured key frame image is converted into an RGB image, then gray bars are added to the image, cropped, and the batch_size dimension is added to the image so that the input data matches the expected input of the model.

3. The intelligent detection and early warning method for floating objects on the water surface of a hydropower station dam reservoir area according to claim 1 is characterized by: The detection model in step S3 is obtained by the following steps: S301, water surface floating object dataset production: Use webcams to record videos of floating objects on the water surface, including different areas, different time periods and different types of floating objects, and use search engines to obtain other types of floating objects on the water surface; Process the video into images frame by frame. After the screening is completed, use the labelImg tool to annotate the images into a VOC format dataset. S302, perform data enhancement on the data set: The data set is first enhanced with Mosaic data, and then with Mixup. S303, using the frozen training strategy to speed up training: The training is divided into two stages: the freezing stage and the thawing stage. In the freezing stage, the model backbone is frozen, the feature extraction network does not change, the video memory is small, and only the network structure is fine-tuned. In the thawing stage, the model backbone is not frozen, the feature extraction network will change, and all network parameters will change.

4. The intelligent detection and early warning method for floating objects on the water surface of a hydropower station dam reservoir area according to claim 1 is characterized by: The model deployment in step S4 includes: First, build the environment required for the model to run, then embed the detection model into the Web system framework, and then write the logical application interface based on the actual scenario requirements.

5. The intelligent detection and early warning method for floating objects on the water surface of a hydropower station dam reservoir area according to claim 1 is characterized by: Step S6 includes: According to the detection results, a frame of the result image is captured at a certain time interval, and the image code is sent to the database, along with the description information of the detection result, which includes the detection content, detection time and camera code; at the same time, the real-time detection result video is sent to the Web front-end in the form of a video stream for real-time display.

6. The intelligent detection and early warning method for floating objects on the water surface of a hydropower station dam reservoir area according to claim 1 is characterized by: In step S7, the test result feedback is in the form of video and table, and prompts and warnings are given through voice and text.

Citation Information

Cited By

  • Hydropower station floater detection method based on global relation modeling

    CN119516474A