A leakage detection method for underground water supply pipelines in coal mines

Through machine vision technology and neural network models, leaks in coal mine underground water supply pipelines are automatically detected, solving the problems of low manual inspection efficiency and safety hazards, achieving 24-hour uninterrupted automatic monitoring and leak detection, and ensuring coal mine safety. Production.

CN112508944BActive Publication Date: 2024-09-27CITIC HIC KAICHENG INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011571561.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-27
Publication Date
2024-09-27
Estimated Expiration
2040-12-27

AI Technical Summary

Technical Problem

It is difficult to detect leaks in underground water supply pipelines in coal mines. The existing manual inspections are inefficient and have safety hazards. They cannot grasp the working conditions of the pipelines in a timely manner, which affects the safety of coal mine production.

Method used

A leak detection method based on machine vision is used to extract the moving foreground through the frame difference method, and filtering and morphological operations are combined to eliminate noise interference. The neural network model is used to determine the frequency, area and location information in the leak candidate area map to achieve automated monitoring and alarming. .

Benefits of technology

It achieves 24-hour uninterrupted automatic monitoring, reduces worker safety hazards, simplifies equipment requirements, improves the robustness and portability of detection, can detect leaks in a timely manner, and ensure safe production in coal mines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112508944B
    Figure CN112508944B
Patent Text Reader

Abstract

The present invention proposes a leakage detection method for underground water supply pipelines in coal mines. The method uses machine vision technology to first collect video images of leakage monitoring points through a camera, then perform preprocessing, and obtain a suspected leakage candidate area map based on a frame difference method. Then, the leakage candidate area map is used as input, and a neural network model is used to determine whether there is a leakage phenomenon in the leakage candidate area map. Finally, the leakage frequency, area, and location information are comprehensively used to confirm whether a leakage actually occurs at the monitoring point within the time period recorded in the video, and a final judgment result is output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of coal mine safety, and in particular is a leakage detection method applied to underground water supply pipelines in coal mines. Background Art

[0002] The water supply pipeline system is an important part of the mine production system. Due to the complex production conditions in coal mines, environmental deformation, pipeline aging, and loose joints can cause leakage in the water supply pipeline, affecting the normal operation of underground equipment in coal mines, and may even cause safety accidents that endanger the lives of underground workers. Therefore, monitoring the working status of the water supply pipeline system is crucial for safe production in coal mines. At present, the monitoring of the working status of water supply pipelines mainly adopts manual inspection methods, which has low inspection efficiency and safety hazards. In addition, some pipelines are difficult to approach and their working conditions cannot be grasped in time. Summary of the invention

[0003] In order to solve the above technical problems, the present invention proposes a leakage detection method applied to underground water supply pipelines in coal mines. The detection method extracts the motion foreground in the field of view based on the frame difference method, eliminates noise interference through filtering and morphological operations, and obtains a suspected leakage candidate area map. Then, the leakage candidate area map is used as the input of the neural network. According to the frequency, area and position of the leakage map, it is judged whether there is a leakage phenomenon and an alarm record is made, which solves the problems of difficult monitoring of underground water supply pipelines in coal mines and untimely leakage detection, and provides effective help for ensuring safe production in coal mines.

[0004] The technical solution adopted by the present invention is: a leakage detection method applied to underground water supply pipelines in coal mines. The method uses machine vision technology to first collect video images of leakage monitoring points through a camera, and then pre-process them. A suspected leakage candidate area map is obtained based on a frame difference method. Then, the leakage candidate area map is used as input, and a neural network model is used to determine whether there is a leakage phenomenon in the leakage candidate area map. Finally, the leakage frequency, area, and location information are comprehensively used to confirm whether a leakage actually occurred at the monitoring point during the time period recorded in the video, and the final judgment result is output.

[0005] The preprocessing mainly includes operations such as frame difference method based on adaptive threshold, filtering, morphological processing, etc., through which a suspected leakage candidate area map is obtained to reduce the influence of illumination changes, noise and complex background on subsequent detection results.

[0006] In order to reduce the impact of background interference on the classification results, a convolutional neural network is used, with the leakage candidate area map as input, and the neural network model is used to predict the preliminary judgment results.

[0007] Compared with the existing manual detection method, the present invention has the following beneficial effects:

[0008] 1) Compared with manual detection, the present invention can perform detection continuously for 24 hours and can provide timely feedback on the operation status of the water supply pipeline.

[0009] 2) The present invention can realize remote automatic monitoring and effectively ensure the personal safety of workers.

[0010] 3) The equipment required for the present invention is simple and economical.

[0011] 4) The present invention is not affected by complex backgrounds, has strong robustness and high portability. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 The figure is a flow chart of the overall algorithm of the present invention.

[0013] Figure 2 This is a flow chart of the adaptive threshold calculation of the present invention.

[0014] Figure 3 This is a flowchart of extracting a candidate region map of the present invention.

[0015] Figure 4 This is the original video image leaked by the present invention.

[0016] Figure 5 This is a candidate area map of suspected leakage in the present invention. DETAILED DESCRIPTION

[0017] The present invention is further described in detail below in conjunction with the accompanying drawings;

[0018] like Figures 1 to 5 As shown, a leakage detection method applied to underground water supply pipelines in coal mines first collects historical videos of leakage monitoring points, including leakage videos and non-leakage videos; pre-processes each video to obtain a set of candidate area maps of suspected leakage; then, classifies and annotates the set of candidate area maps of suspected leakage according to the actual situation, and divides the set into two parts, training set and test set, in proportion; uses the training set as input to train the neural network to obtain a classification model. In the leakage detection stage, a camera is used to collect video images of the leakage monitoring point; a candidate area map of suspected leakage is obtained through a frame difference method based on an adaptive threshold, high-pass filtering, and morphological processing operations; the candidate area map of suspected leakage is used as input, and a neural network model is used to predict and judge whether leakage occurs along the way; finally, the leakage frequency, area, and location are comprehensively considered to confirm whether a leakage actually occurred at the monitoring point during the time period of the video recording, and the final judgment result is output. The specific process includes the following steps:

[0019] Step 1: Extract the current frame image fc and the previous frame image fp of the original video, and use the frame difference method to obtain the difference image d of the two images. The calculation formula is as follows:

[0020]

[0021] Where fc(x,y) is the grayscale value of the pixel (x,y) of image fc, fp(x,y) is the grayscale value of the pixel (x,y) of image fp, and d(x,y) is the grayscale value of the pixel (x,y) of the difference image d;

[0022] Step 2: Select a reference area ror in the difference map d, and calculate the filtering threshold T of the difference map d according to the grayscale values ​​of all pixels in ror sub , requiring that the selected area is not completely white and does not leak. The specific calculation method of the threshold is as follows:

[0023] Step 2.1: Get the grayscale histogram of all pixels in the reference area ror, get the grayscale value highest_value_idx of the highest peak, and the maximum grayscale value max_value_idx of the number of non-zero pixels;

[0024] Step 2.2: Use highest_value_idx as the initial value of ror binarization threshold t;

[0025] Step 2.3: Binarize ror with t as the threshold, and then eliminate noise interference through morphological processing, and count the number of pixels with a gray value of 255 (whites_num);

[0026] Step 2.4: If whites_num / (ror.cols*ror.rows)>rario_thresh, the t value increases by (max_value_idx-highest_value_idx)*ratio, repeat step 2.3 until whites_num / (ror.cols*ror.rows)<=ratio_thresh, and assign the current t to the filter threshold T sub .

[0027] Step 3: T sub The threshold is used to obtain the high-pass filtered image dhp, and the calculation formula is as follows;

[0028]

[0029] Step 4: Repeat steps 1 to 3 to obtain m dhp images each time, and add up these m images to obtain the cumulative image dsum. The calculation formula is as follows:

[0030]

[0031] Step 5: Perform morphological processing on the cumulative image dsum to eliminate noise interference and obtain the suspected leakage candidate area image dst;

[0032] Step 6: Using the suspected leakage candidate area map dst as input, determine whether there is leakage at the monitoring point within the time period recorded by the current cumulative map dsum, which specifically includes the following steps:

[0033] Step 6.1: Collect historical videos of the leakage monitoring points, including videos with leakage and videos without leakage. Use these historical videos as original materials and repeat steps 1 to 5 to obtain an atlas of candidate areas of suspected leakage.

[0034] Step 6.2: Classify and annotate the image set obtained in step 6.1, mark them into leakage and non-leakage categories according to the actual situation, and divide the set into training set and test set according to the proportion;

[0035] Step 7: Use the images in the training set as input to train the neural network model. When the loss function of the model tends to converge, start training and testing at the same time, and use the weight parameter with the highest accuracy on the test set as the final classification model.

[0036] Step 8: Use a camera to collect video images of the leakage monitoring point, repeat steps 1 to 5, and process a video to obtain k candidate area images dst of suspected leakage.

[0037] Step 9: Take k suspected leakage candidate area maps dst as input respectively, use the network model obtained in step 7 to make predictions, and preliminarily determine whether each candidate area map has leakage.

[0038] Step 10: Based on the location, frequency and area information of the leakage in the k candidate area maps dst, confirm whether a leakage has indeed occurred at the monitoring point within the time period recorded in the video, and output the final judgment result.

Claims

1. A leakage detection method for underground water supply pipelines in coal mines, characterized in that: The method is based on machine vision technology. The camera collects visual images of the leakage monitoring points of the underground water supply pipeline in the coal mine. The method combines image processing and neural network detection to detect the leakage of the underground water supply pipeline in the coal mine. First, the candidate area map of suspected leakage is obtained through the frame difference method based on adaptive threshold, filtering, and morphological processing preprocessing. Then, the neural network classification method is adopted. The neural network model is used to predict and judge whether there is a leakage in the candidate area map. Finally, the frequency, location and leakage area information of the leakage in the video within a period of time are combined to confirm whether the water supply pipeline has really leaked during the video recording period, and the final judgment result is output. The method specifically comprises the following steps: Step 1: Extract the current frame image fc and the previous frame image fp of the original video, and use the frame difference method to obtain the difference image d of the two images. The calculation formula is as follows: d(x,y)=|fc(x,y)-fp(x,y)| Where fc(x,y) is the grayscale value of the pixel (x,y) of image fc, fp(x,y) is the grayscale value of the pixel (x,y) of image fp, and d(x,y) is the grayscale value of the pixel (x,y) of the difference image d; Step 2: Select a reference area ror in the difference map d, and calculate the filtering threshold T of the difference map d according to the grayscale values ​​of all pixels in ror sub , requiring that the selected area is not completely white and does not leak. The specific calculation method of the threshold is as follows: Step 2.1: Get the grayscale histogram of all pixels in the reference region ror, get the grayscale value highest_value_idx of the highest peak, and the maximum grayscale value max_value_idx of the number of non-zero pixels; Step 2.2: Use highest_value_idx as the initial value of ror binarization threshold t; Step 2.3: Binarize ror with t as the threshold, and then eliminate noise interference through morphological processing, and count the number of pixels with a gray value of 255 (whites_num); Step 2.4: If whites_num / (ror.cols*ror.rows)>ratio_thresh, increase the t value by (max_value_idx-highest_value_idx)*ratio, repeat step 2.3 until whites_num / (ror.cols*ror.rows)<=ratio_thresh, and assign the current t to the filter threshold T sub ; Among them, ratio refers to a preset ratio, and ratio_thresh refers to a specified value of the ratio; Step 3: T sub The threshold is used to obtain the high-pass filtered image dhp, and the calculation formula is as follows; Step 4: Repeat steps 1 to 3 to obtain m dhp images each time, and add up these m images to obtain the cumulative image dsum. The calculation formula is as follows: Step 5: Perform morphological processing on the cumulative image dsum to eliminate noise interference and obtain the suspected leakage candidate area image dst; Step 6: Using the suspected leakage candidate area map dst as input, determine whether there is leakage at the monitoring point within the time period recorded by the current cumulative map dsum, which specifically includes the following steps: Step 6.1: Collect historical videos of the leakage monitoring points, including videos with leakage and videos without leakage. Use these historical videos as original materials and repeat steps 1 to 5 to obtain an atlas of candidate areas of suspected leakage. Step 6.2: Classify and annotate the image set obtained in step 6.1, mark them into leakage and non-leakage categories according to the actual situation, and divide the set into training set and test set according to the proportion; Step 7: Use the images in the training set as input to train the neural network model. When the loss function of the model tends to converge, start training and testing at the same time, and use the weight parameter with the highest accuracy on the test set as the final classification model; Step 8: Use a camera to collect video images of the leakage monitoring point, repeat steps 1 to 5, process a video to obtain k candidate area images dst of suspected leakage; Step 9: Take k suspected leakage candidate area maps dst as input, use the network model obtained in step 7 to make predictions, and preliminarily determine whether each candidate area map has leakage; Step 10: Based on the location, frequency and area information of the leakage in the k candidate area maps dst, confirm for the second time whether a leakage has indeed occurred at the monitoring point within the time period recorded in the video, and output the final judgment result.