Strip mine flood control dam water level detection method and device

By acquiring data from IMU sensors and cameras, we build a scene classification and semantic segmentation network for water level detection, which solves the accuracy and cost problems of water level detection in the open-pit mine flood control dam environment, achieves accurate water level monitoring and reduces the false alarm rate.

CN118587145APending Publication Date: 2024-09-03CHINA COAL RES INST +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311389371.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing water level detection methods have problems such as difficulty in installation, low accuracy and high cost in the open-pit mine flood control dam environment, especially the lack of adaptability to non-flat water bottoms and harsh environments.

Method used

The IMU sensor is used in conjunction with the camera to obtain flood control dam body images and water surface images. By generating and labeling data sets, a scene classification and semantic segmentation network is constructed to perform image classification and water level detection, remove outliers, and set thresholds for water level over-limit detection. Reduce false alarm rate.

Benefits of technology

It achieves accurate water level detection under different environments and water level conditions, reduces detection costs and difficulties, and improves detection accuracy and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587145A
    Figure CN118587145A
Patent Text Reader

Abstract

The invention provides a strip mine flood control dam water level detection method and device, and the method comprises the steps: obtaining flood control dam body images and water surface images under different environments and water level conditions, obtaining a public water surface data set according to a network, and summarizing the public water surface data set to generate a first data set; annotating images in the first data set to generate a second data set, and performing augmentation processing on the second data set to obtain a third data set; constructing a scene classification neural network and a semantic segmentation network of a corresponding scene, classifying the images in the third data set according to the scene classification neural network, and selecting the semantic segmentation network of the corresponding scene according to a classification result so as to cut the image of the corresponding scene and generate a binary segmentation image; and removing outliers in the binary segmentation image, and carrying out water level over-limit detection on the binary segmentation image based on a preset pixel point threshold. The flood control dam water level monitoring capability under the complex terrain condition can be improved, and the equipment installation and arrangement difficulty is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of water level detection, and in particular to a method and device for detecting the water level of an open-pit mine flood control dam. Background Art

[0002] Open-pit mining of coal is an important mining method. Due to its advantages such as fast construction speed, low production cost and high labor efficiency, its proportion in coal mining is gradually increasing. Since open-pit mines are generally located in low-lying gully areas, it is easy for rainwater to accumulate. Therefore, flood control dams must be set up around open-pit mines to achieve the purpose of flood control and ensure the safety of open-pit mining of coal mines. After the flood control dam is set up, the water level of the flood control dam needs to be detected in real time to promptly detect abnormal situations where the water level exceeds the warning line.

[0003] In the prior art, existing water level detection methods mainly include the following categories:

[0004] (1) Water level detection method for fixed water gauge based on target detection:

[0005] A vertical water gauge is arranged in the water, and an image of the water gauge is captured in real time by a camera installed nearby. The image is processed by a computer to identify the intersection point between the water surface and the water gauge, or the boundary line between the water gauge and its reflection on the water surface, and compared with the scale of the water gauge. The OCR technology is used to read the scale of the water gauge to obtain the value of the water level height;

[0006] (2) Water level detection method based on virtual water gauge:

[0007] A camera is fixed on the bank of the section to be inspected in the river channel, a river section with a flat bottom and no undulations is selected in the video screen, a marker is fixed on the center line of the area, the camera lens is calibrated using the marker, a virtual water gauge is established in the area with the center point of the marker as the midpoint, the water surface image is segmented using the trained neural network, and the water level value corresponding to the water level line where the water surface intersects the shoreline is calculated;

[0008] (3) Water level detection method based on deep learning to detect markers set on the shore:

[0009] By setting up multiple marking lines of different colors from top to bottom on the river bank, using surveillance cameras to obtain images of the water area near the marking lines on the bank and establish a data sample library, constructing a Mask RCNN model, using the marked marking lines and the marked water area image samples to train the model, using the trained model to infer the position of the water surface and compare it with the marking lines to obtain different water level levels;

[0010] (4) Water level detection method based on sensor:

[0011] A water level probe sensor is set in the water, and the probe is connected to the drive unit. The water level is detected by detecting the resistance of the probe to detect whether the water level reaches the probe position; a float sensor is set in the water, which consists of a float and a float rod. There is a magnetic material in the float, and a magnetic switch in the float rod. When the water level reaches the set water level and the float floats at the magnetic switch, the magnetic material in the float makes the magnetic switch close, thereby indicating the water level; a pressure sensor is arranged at the bottom of the water, and the water pressure can be amplified and read by the pressure sensor, and the read water pressure value is converted into the water level height.

[0012] However, existing water level detection methods basically have some defects. Using a water gauge to judge the water level requires the bottom of the water to be relatively flat and the bottom of the water to not change frequently. In addition, the water quality must be relatively clean and the water gauge scale must not be unreadable due to covering by sand, gravel, mud, etc. The layout of the water gauge and the position of the camera need to be matched, and installation and debugging are relatively troublesome; the detection method based on the virtual water gauge requires a relatively flat, smooth bottom and water surface, and the water bank needs to be relatively flat and perpendicular to the horizontal plane. In addition, the camera lens is required to shoot the water bank vertically. These conditions have high requirements on the site and are difficult to meet in many scenarios; the detection method based on shore markings also requires the shore to be relatively flat and open to the sky. For mine flood control dams, as coal mining operations proceed, changes in the shape of the mining pits will also cause certain changes in the flood control dam body. At this time, the markers set on the shore need to be reinstalled; the detection method based on probe sensors utilizes the conductive properties of water, but the conductivity of water will change with changes in water quality, and impurities such as mud and sand in the water will also adhere to and wrap around the probe over time, making the measurement inaccurate; the detection method based on float switches may fail mechanically due to blockage by mud and sand, resulting in inaccurate measurements; the method based on pressure sensors requires the sensors to be placed on the bottom of the water, and the price is relatively high, and the installation and maintenance are also very troublesome. It is not suitable for scenes with harsh environments such as open-pit mine flood control dams. Summary of the invention

[0013] In view of the above problems, a method and device for detecting the water level of open-pit mine flood control dam is proposed.

[0014] The first aspect of the present application proposes a method for detecting the water level of an open-pit mine flood control dam, comprising:

[0015] Acquire images of the flood control dam body and water surface under different environmental and water level conditions, and acquire a public water surface dataset from the Internet, and aggregate the images of the flood control dam body, water surface and public water surface dataset to generate a first dataset;

[0016] Annotating the images in the first data set to generate a second data set, and augmenting the second data set to obtain a third data set;

[0017] Constructing a scene classification neural network and a semantic segmentation network of a corresponding scene, classifying the images in the third data set according to the scene classification neural network, and selecting the semantic segmentation network of the corresponding scene according to the classification result to cut the image of the corresponding scene to generate a binary segmentation image;

[0018] Outliers in the binary segmentation image are eliminated, and water level over-limit detection is performed on the binary segmentation image based on a preset pixel threshold.

[0019] Optionally, the acquiring of the flood control dam body image and the water surface image under different environmental and water level conditions includes:

[0020] Arrange multiple surveillance cameras with IMU sensors at the waterside, and adjust the shooting angle and shooting position of the surveillance cameras until the monitoring area can completely cover the entire flood control dam body;

[0021] The monitoring camera collects images of the flood control dam body and water surface under different environmental and water level conditions.

[0022] Optionally, the step of labeling the images in the first data set to generate the second data set includes:

[0023] For the first image in the first data set, a closed polygon composed of a preset point set is used to enclose a water surface area in the first image;

[0024] Binarizing the first image, assigning red to pixels in the surrounded area and black to pixels in the unsurrounded area, to obtain a first binary image;

[0025] The above-mentioned annotation process is adopted for the remaining images in the first data set, and after all images are annotated, an annotated data set is obtained;

[0026] The first data set and the annotated data set are integrated to generate the second data set.

[0027] Optionally, performing augmentation processing on the second data set to obtain a third data set includes:

[0028] Rotating, cutting, splicing multiple cut images, adjusting contrast, and adjusting brightness of the images in the second data set;

[0029] The original image in the second data set and the corresponding annotated original image are rotated at the same angle, cut at the same position, and spliced ​​in the same way.

[0030] Optionally, constructing a scene classification neural network includes:

[0031] Based on VGG-16 as the basic network architecture, the SE module with compression excitation is used as the channel attention mechanism to build a candidate scene classification neural network;

[0032] By using the transfer learning method, the candidate scene classification neural network is trained using the multi-weather data set MWD, and after the training, the scene classification neural network is obtained;

[0033] The scene classification neural network is used to identify the scene of the input image to classify the input image, and the scenes include sunny, foggy, rainy and snowy.

[0034] Optionally, constructing a semantic segmentation network corresponding to the scene includes:

[0035] Construct clear-candidate semantic segmentation network, fog-candidate semantic segmentation network, rain-candidate semantic segmentation network, and snow-candidate semantic segmentation network;

[0036] Selecting a preset proportion of data in the third data set as training data, and classifying the training data into clear-training data, fog-training data, rain-training data, and snow-training data according to the scene classification neural network;

[0037] The sunny-candidate semantic segmentation network is trained according to the sunny-training data, the fog-candidate semantic segmentation network is trained according to the fog-training data, the rain-candidate semantic segmentation network is trained according to the rain-training data, and the snow-candidate semantic segmentation network is trained according to the snow-training data. After the training, the sunny-semantic segmentation network, the fog-semantic segmentation network, the rain-semantic segmentation network, and the snow-semantic segmentation network are obtained.

[0038] Optionally, selecting the semantic segmentation network corresponding to the scene according to the classification result includes:

[0039] classifying the second image and the third image in the third data set in sequence according to the scene classification neural network;

[0040] If the classification results of the second image and the third image are the same, continue to use the semantic segmentation network of the original scene to segment the water surface of the third image;

[0041] If the classification results of the second image are different from those of the third image, the semantic segmentation network of the second image is switched to the semantic segmentation network corresponding to the third image, and then the switched semantic segmentation network is used to segment the water surface of the third image.

[0042] Optionally, the removing of outliers in the binary segmented image and performing water level over-limit detection on the binary segmented image based on a preset pixel threshold includes:

[0043] According to k-means clustering, points in the binary segmentation image are divided into several classes, and classes that do not belong to the water surface are removed;

[0044] Determine the maximum range of the flood control dam water area, and calculate the number of pixel points belonging to the water category in the binary segmentation image that fall outside the maximum range;

[0045] If the number of pixels belonging to the water category in the binary segmented image that fall outside the maximum range exceeds the preset pixel threshold, the water level corresponding to the binary segmented image exceeds the limit.

[0046] Optionally, the method further includes:

[0047] Set FLAG. For a binary segmentation image, if the binary segmentation image is detected to have an over-limit water level, the FLAG value is increased by 1. If the binary segmentation image is detected to have a normal water level, the FLAG value is set to 0. The initial FLAG value is 0.

[0048] When the FLAG value is greater than the preset threshold, an alarm signal is generated.

[0049] The second aspect of the present application provides a water level detection device for an open-pit mine flood control dam, comprising:

[0050] An acquisition module is used to acquire images of the flood control dam body and water surface under different environmental and water level conditions, and to acquire a public water surface dataset from the Internet, and to aggregate the images of the flood control dam body, water surface and public water surface dataset to generate a first dataset;

[0051] A data processing module, which annotates the images in the first data set to generate a second data set, and performs augmentation processing on the second data set to obtain a third data set;

[0052] A classification and cutting module, used to construct a scene classification neural network and a semantic segmentation network of a corresponding scene, classify the images in the third data set according to the scene classification neural network, select the semantic segmentation network of the corresponding scene according to the classification result, so as to cut the image of the corresponding scene and generate a binary segmentation image;

[0053] The detection module is used to remove outliers in the binary segmentation image and perform water level over-limit detection on the binary segmentation image based on a preset pixel threshold.

[0054] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0055] The water level data of the flood control dam is collected through a camera with an IMU and combined with the water surface data downloaded from the Internet to obtain the water surface recognition data of the flood control dam in various environments. The image is annotated through binary processing, and different external environments are detected through the classification network to quickly switch to the corresponding semantic segmentation network with the strongest recognition ability. The detection accuracy is improved by removing outliers, the water level is detected through a preset threshold, and FLAG is set to reduce the false alarm rate, so as to achieve accurate detection of the water level and reduce the cost and difficulty of water level detection.

[0056] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0058] Figure 1 It is a flow chart of a method for detecting water level of an open-pit mine flood control dam according to an embodiment of the present application;

[0059] Figure 2 is a flow chart of a marking method according to an embodiment of the present application;

[0060] Figure 3 is a schematic diagram of a first image according to an embodiment of the present application;

[0061] Figure 4 is a schematic diagram of a binary image corresponding to the first image after being labeled according to an embodiment of the present application;

[0062] Figure 5 This is a process of selecting a semantic segmentation network method for a corresponding scene according to a classification result according to an embodiment of the present application;

[0063] Figure 6 is a schematic diagram of a visualized image according to an embodiment of the present application;

[0064] Figure 7 It is a block diagram of a water level detection device for an open-pit mine flood control dam according to an embodiment of the present application. DETAILED DESCRIPTION

[0065] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0066] Figure 1 The flowchart of a method for detecting the water level of an open-pit mine flood control dam according to an embodiment of the present application includes the following steps:

[0067] Step 101, obtaining flood control dam body images and water surface images under different environmental and water level conditions, and obtaining a public water surface dataset from the Internet, summarizing the flood control dam body images, water surface images and the public water surface dataset to generate a first dataset.

[0068] In an embodiment of the present application, surveillance cameras equipped with multiple IMU sensors are arranged at the water's edge, and the shooting angle and position of the surveillance cameras are adjusted until the monitoring area can completely cover the entire body of the flood control dam. The surveillance cameras are used to collect images of the flood control dam body and water surface under different environmental and water level conditions.

[0069] It should be noted that the IMU sensor is an inertial measurement unit, which is a sensor used to detect and measure acceleration and rotational motion. The IMU sensor can collect inertial data of the flood control dam body image and water surface image.

[0070] As for the water surface dataset, this application downloads water surface images of various scenes from various public images on the Internet to form a water surface dataset.

[0071] Step 102: annotate the images in the first data set to generate a second data set, and perform augmentation processing on the second data set to obtain a third data set.

[0072] In the embodiment of the present application, the flood control dam body image, the water surface image and the public water surface dataset are annotated, specifically, Figure 2 As shown, the marking method includes the following steps:

[0073] Step 201, for a first image in a first data set, a closed polygon consisting of a preset point set is used to enclose a water surface area in the first image;

[0074] Step 202, binarizing the first image, assigning red to pixels in the enclosed area and black to pixels in the unenclosed area, to obtain a first binarized image;

[0075] Step 203, the above-mentioned annotation process is applied to the remaining images in the first data set, and after all images are annotated, an annotated data set is obtained;

[0076] Step 204: Integrate the first data set and the annotated data set to generate a second data set.

[0077] In the embodiment of the present application, the first image is any image in the first data set, and the second data set includes a flood control dam body image, a water surface image, and an original image in a public water surface data set and a corresponding labeled binary image.

[0078] In a possible embodiment, the first image is as follows: Figure 3 As shown, the corresponding binary image of the first image after annotation is as follows Figure 4 shown.

[0079] It should be noted that the number of images may not be enough at this time, and the labeled data set needs to be augmented. Specifically:

[0080] Rotating, cutting, splicing multiple cutting images, adjusting contrast, and adjusting brightness of the images in the second data set;

[0081] The original image in the second data set and the corresponding annotated original image are rotated at the same angle, cut at the same position, and spliced ​​in the same way.

[0082] It should be noted that for the processing method of adjusting brightness and contrast, there is no need to process the binary image.

[0083] Step 103, construct a scene classification neural network and a semantic segmentation network of the corresponding scene, classify the images in the third data set according to the scene classification neural network, select the semantic segmentation network of the corresponding scene according to the classification result, to cut the image of the corresponding scene and generate a binary segmentation image.

[0084] In the embodiments of the present application, different semantic segmentation networks are adopted for images of different scenes.

[0085] First, the scene classification neural network and the semantic segmentation network of the corresponding scene proposed in this application are explained.

[0086] Specifically, the scene classification neural network is constructed, including:

[0087] Based on VGG-16 as the basic network architecture, the SE module with compression excitation is used as the channel attention mechanism to build a candidate scene classification neural network;

[0088] By using the transfer learning method, the candidate scene classification neural network is trained using the multi-weather dataset MWD. ​​After the training, the scene classification neural network is obtained.

[0089] Among them, the scene classification neural network is used to identify the scene of the input image to classify the input image, and the scenes include sunny, foggy, rainy, and snowy.

[0090] In the embodiment of the present application, the multi-weather dataset MWD is a public dataset, including 60,000 images of multiple common weather categories.

[0091] Specifically, construct a semantic segmentation network for the corresponding scene, including:

[0092] Construct clear-candidate semantic segmentation network, fog-candidate semantic segmentation network, rain-candidate semantic segmentation network, and snow-candidate semantic segmentation network;

[0093] Selecting a preset proportion of data from the third data set as training data, and dividing the training data into clear-training data, fog-training data, rain-training data, and snow-training data according to a scene classification neural network;

[0094] The sunny-candidate semantic segmentation network is trained according to the sunny-training data, the fog-candidate semantic segmentation network is trained according to the fog-training data, the rain-candidate semantic segmentation network is trained according to the rain-training data, and the snow-candidate semantic segmentation network is trained according to the snow-training data. After the training, the sunny-semantic segmentation network, fog-semantic segmentation network, rain-semantic segmentation network, and snow-semantic segmentation network are obtained.

[0095] In an embodiment of the present application, each candidate semantic segmentation network consists of an encoder and a decoder. The encoder is usually a pre-trained classification network, and the task of the decoder is to semantically project the discriminable features (lower resolution) learned by the encoder to the pixel space (higher resolution) to obtain dense classification.

[0096] It should be noted that model training is an iterative process, which is performed by continuously adjusting the network parameters of the model until the overall loss function value of the model is less than the preset value, or the overall loss function value of the model no longer changes or changes slowly, the model converges, and a trained model is obtained.

[0097] Optionally, the training may be considered completed when a preset number of training times is reached.

[0098] Optionally, the training may be considered finished when a preset training time is reached.

[0099] It should be noted that the parameters of the trained scene classification neural network are saved in the .pth format. When reasoning about the video data from the surveillance camera, the network parameter data is loaded first, and then the video stream is decomposed in the memory and processed into a queue of single-frame images. New single-frame images decomposed from the video stream are continuously added to the queue, and images are also continuously removed from the queue, so that reasoning is continuously performed. When reasoning about the image, the scene classification network is used to reason and classify the scene. After obtaining the classification result, the semantic segmentation network of the corresponding scene is used to continuously segment and identify the water surface.

[0100] like Figure 5 As shown in the figure, for any image, when selecting the semantic segmentation network of the corresponding scene according to the classification result, if the classification result is the same as the last classification, no operation will be performed, and the semantic segmentation network of the original scene will continue to be used to segment the water surface; if the classification result is different from the last classification result, it will switch to the corresponding semantic segmentation network, and then use the switched model to segment the water surface.

[0101] In a possible embodiment, since the scene changes are not frequent or rapid, the process of classifying the scenes is performed every 15 minutes.

[0102] In the embodiment of the present application, the number of segmentation model parameters can be reduced, which is convenient for training and has high real-time calculation performance. At the same time, scene recognition and switching between multiple models can also ensure high calculation accuracy.

[0103] Step 104 , remove outliers in the binary segmented image, and perform water level over-limit detection on the binary segmented image based on a preset pixel threshold.

[0104] Due to the ever-changing lighting conditions at the scene, there is a certain probability that the binary segmentation image generated by inference will have noise, so the image needs to be post-processed to remove the noise.

[0105] In the embodiment of the present application, the points in the binary segmentation image are divided into several classes according to k-means clustering, and the classes that do not belong to the water surface are removed, thereby eliminating outliers.

[0106] In addition, according to the requirements of the hydrological and climatic conditions of the open-pit mine, a certain water level ratio is delineated. The present application determines the maximum range of the flood control dam water area in the binary segmentation image according to this ratio, thereby calculating how many pixels belonging to the water category in the segmented image data fall outside the specified water area. If the number of pixels outside the range exceeds the preset pixel threshold, the water level is considered to be out of limit.

[0107] It should be noted that the value of the preset pixel threshold is related to the size of the segmented image. The larger the image, the larger the threshold.

[0108] In a possible embodiment, the preset pixel threshold is 1920×1080×0.01%≈200.

[0109] In addition, in order to reduce the false alarm rate (false positive rate), the embodiment of the present application adopts a method of detecting alarms multiple times.

[0110] Specifically, a FLAG is set, whose initial value is 0. Each time the output water level is abnormal, the FLAG value is increased by one, and when the water level is normal, the FLAG is set to 0. When the FLAG value is greater than the preset threshold, an alarm signal is generated.

[0111] In the embodiment of the present application, the preset threshold is set to 4, that is, when the output water level is abnormal for five consecutive times, an alarm is triggered and the on-duty personnel are notified to take further action.

[0112] In another possible embodiment, the present application superimposes the binary segmented image with the original image to obtain a visualized image, and pushes the superimposed image results one by one to an HTML web page, which can be displayed through a browser and can be connected to a centralized control system display page used in the mine for unified display with other data. In addition, the obtained images are stored, and the corresponding timestamp and detection results are stored when each image is stored.

[0113] Specifically, for the same pixel of the original image and the binary segmentation image, the RGB values ​​are directly added:

[0114]

[0115] Among them, x r ,x g ,x b are the RGB values ​​of the pixel after superposition, x 0r ,x 0g ,x 0b are the RGB values ​​of the initial image at the pixel, x sr ,x sg ,x sb are the RGB values ​​of the binary segmentation image at that pixel.

[0116] In one possible embodiment, the visual image is as follows: Figure 6 shown.

[0117] The embodiment of the present application collects flood control dam water level data through IMU and integrates it with water surface data downloaded from the Internet, so as to obtain flood control dam water surface identification data in various environments, annotate the image through binary processing, detect different external environments through the classification network, and quickly switch to the corresponding semantic segmentation network with the strongest recognition ability. The detection accuracy is improved by the outlier removal method, the water level is detected through a preset threshold, and the FLAG is set to reduce the false alarm rate, so as to achieve accurate detection of the water level and reduce the cost and difficulty of water level detection.

[0118] Figure 7 is a block diagram of a water level detection device 700 for an open-pit mine flood control dam according to an embodiment of the present application, including:

[0119] The acquisition module 710 is used to acquire the flood control dam body image and water surface image under different environmental and water level conditions, and acquire the public water surface data set from the network, and aggregate the flood control dam body image, water surface image and the public water surface data set to generate a first data set;

[0120] The data processing module 720 annotates the images in the first data set to generate a second data set, and performs augmentation processing on the second data set to obtain a third data set;

[0121] The classification and cutting module 730 is used to construct a scene classification neural network and a semantic segmentation network of the corresponding scene, classify the images in the third data set according to the scene classification neural network, select the semantic segmentation network of the corresponding scene according to the classification result, so as to cut the image of the corresponding scene and generate a binary segmentation image;

[0122] The detection module 740 is used to remove outliers in the binary segmentation image and perform water level over-limit detection on the binary segmentation image based on a preset pixel threshold.

[0123] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0124] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this document is not limited here.

[0125] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for detecting water level of an open-pit mine flood control dam, characterized in that: include: Acquire images of the flood control dam body and water surface under different environmental and water level conditions, and acquire a public water surface dataset from the Internet, and aggregate the images of the flood control dam body, water surface and public water surface dataset to generate a first dataset; Annotating the images in the first data set to generate a second data set, and augmenting the second data set to obtain a third data set; Constructing a scene classification neural network and a semantic segmentation network of a corresponding scene, classifying the images in the third data set according to the scene classification neural network, and selecting the semantic segmentation network of the corresponding scene according to the classification result to cut the image of the corresponding scene to generate a binary segmentation image; Outliers in the binary segmentation image are eliminated, and water level over-limit detection is performed on the binary segmentation image based on a preset pixel threshold.

2. The method according to claim 1, characterized in that The method of obtaining the flood control dam body image and water surface image under different environmental and water level conditions includes: Arrange multiple surveillance cameras with IMU sensors at the waterside, and adjust the shooting angle and shooting position of the surveillance cameras until the monitoring area can completely cover the entire flood control dam body; The monitoring camera collects images of the flood control dam body and water surface under different environmental and water level conditions.

3. The method according to claim 1, characterized in that The step of labeling the images in the first data set to generate a second data set includes: For the first image in the first data set, a closed polygon composed of a preset point set is used to enclose a water surface area in the first image; Binarizing the first image, assigning red to pixels in the surrounded area and black to pixels in the unsurrounded area, to obtain a first binary image; The above-mentioned annotation process is adopted for the remaining images in the first data set, and after all images are annotated, an annotated data set is obtained; The first data set and the annotated data set are integrated to generate the second data set.

4. The method according to claim 1, characterized in that The augmenting the second data set to obtain a third data set includes: Rotating, cutting, splicing multiple cut images, adjusting contrast, and adjusting brightness of the images in the second data set; The original image in the second data set and the corresponding annotated original image are rotated at the same angle, cut at the same position, and spliced ​​in the same way.

5. The method according to claim 1, characterized in that The step of constructing a scene classification neural network comprises: Based on VGG-16 as the basic network architecture, the SE module with compression excitation is used as the channel attention mechanism to build a candidate scene classification neural network; By using the transfer learning method, the candidate scene classification neural network is trained using the multi-weather data set MWD, and after the training, the scene classification neural network is obtained; The scene classification neural network is used to identify the scene of the input image to classify the input image, and the scenes include sunny, foggy, rainy and snowy.

6. The method according to claim 5, characterized in that The step of constructing a semantic segmentation network corresponding to the scene includes: Construct clear-candidate semantic segmentation network, fog-candidate semantic segmentation network, rain-candidate semantic segmentation network, and snow-candidate semantic segmentation network; Selecting a preset proportion of data in the third data set as training data, and classifying the training data into clear-training data, fog-training data, rain-training data, and snow-training data according to the scene classification neural network; The sunny-candidate semantic segmentation network is trained according to the sunny-training data, the fog-candidate semantic segmentation network is trained according to the fog-training data, the rain-candidate semantic segmentation network is trained according to the rain-training data, and the snow-candidate semantic segmentation network is trained according to the snow-training data. After the training, the sunny-semantic segmentation network, the fog-semantic segmentation network, the rain-semantic segmentation network, and the snow-semantic segmentation network are obtained.

7. The method according to claim 1, characterized in that The selecting the semantic segmentation network corresponding to the scene according to the classification result includes: classifying the second image and the third image in the third data set in sequence according to the scene classification neural network; If the classification results of the second image and the third image are the same, continue to use the semantic segmentation network of the original scene to segment the water surface of the third image; If the classification results of the second image are different from those of the third image, the semantic segmentation network of the second image is switched to the semantic segmentation network corresponding to the third image, and then the switched semantic segmentation network is used to segment the water surface of the third image.

8. The method according to claim 1, characterized in that The step of removing outliers from the binary segmented image and performing water level over-limit detection on the binary segmented image based on a preset pixel threshold comprises: According to k-means clustering, points in the binary segmentation image are divided into several classes, and classes that do not belong to the water surface are removed; Determine the maximum range of the flood control dam water area, and calculate the number of pixel points belonging to the water category in the binary segmentation image that fall outside the maximum range; If the number of pixels belonging to the water category in the binary segmented image that fall outside the maximum range exceeds the preset pixel threshold, the water level corresponding to the binary segmented image exceeds the limit.

9. The method according to claim 8, characterized in that The method further comprises: Set FLAG. For a binary segmentation image, if the binary segmentation image is detected to have an over-limit water level, the FLAG value is increased by 1. If the binary segmentation image is detected to have a normal water level, the FLAG value is set to 0. The initial FLAG value is 0. When the FLAG value is greater than the preset threshold, an alarm signal is generated.

10. A water level detection device for open-pit mine flood control dam, characterized in that: include: An acquisition module is used to acquire images of the flood control dam body and water surface under different environmental and water level conditions, and to acquire a public water surface dataset from the Internet, and to aggregate the images of the flood control dam body, water surface and public water surface dataset to generate a first dataset; A data processing module, which annotates the images in the first data set to generate a second data set, and performs augmentation processing on the second data set to obtain a third data set; A classification and cutting module, used to construct a scene classification neural network and a semantic segmentation network of a corresponding scene, classify the images in the third data set according to the scene classification neural network, select the semantic segmentation network of the corresponding scene according to the classification result, so as to cut the image of the corresponding scene and generate a binary segmentation image; The detection module is used to remove outliers in the binary segmentation image and perform water level over-limit detection on the binary segmentation image based on a preset pixel threshold.

Citation Information

Patent Citations

  • Overwater visual scene segmentation method and device

    CN113705371A

  • Self-adaptive environment water level identification method, device and equipment

    CN116129430A

  • Shoreline remote sensing automatic identification and analysis method based on cloud platform and deep learning

    CN116503755A

  • Cotton crop row detection method and apparatus based on computer vision, and storage medium

    WO2021226900A1