Data enhancement method and device for mine foreign matter detection model and computer readable storage medium

Through data enhancement and image processing technology, more sample data are generated, which solves the problem of insufficient samples of traditional models, improves the robustness and generalization ability of foreign object detection models in coal mines, and achieves more accurate foreign object identification and processing. Improved safety and efficiency of the coal mining process.

CN118658090APending Publication Date: 2024-09-17山东浪潮智能生产技术有限公司

Patent Information

Application Number
CN202410493139.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Due to insufficient samples, the traditional foreign matter detection model in coal mines has insufficient robustness and generalization capabilities, and cannot effectively identify and process foreign matter on the conveyor belt, affecting production safety and efficiency.

Method used

Through data enhancement methods, foreign object samples in real scenes are collected and processed, and multi-angle and multi-distance recordings, man-made destruction processing, image segmentation, mapping and imaging processing technologies are used to generate more sample data for training foreign object detection models in mines. , improve the robustness and generalization ability of the model.

Benefits of technology

The accuracy and robustness of the foreign object detection model are significantly improved, which can more accurately identify and handle foreign objects, reduce the risk of equipment damage, reduce production interruptions, and improve the safety and efficiency of the coal mining process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658090A
    Figure CN118658090A
Patent Text Reader

Abstract

The invention belongs to the technical field of image video recognition and processing, and more particularly relates to a data enhancement method and device for a mine foreign matter detection model and a computer readable storage medium, and the method comprises the steps: collecting a foreign matter sample appearing on a coal conveyor belt; performing multi-angle and multi-distance video recording on the foreign matter sample under a green screen background to generate a video; performing artificial destruction processing on the foreign matter sample to obtain a sample video; collecting an under-mine conveyor belt picture in a real scene as a chartlet background; extracting a frame of image from the video per second to generate a video picture; carrying out matting processing on the video picture; for the collected picture with the conveyor belt, storing the coordinate range of the conveyor belt as a txt file for mapping; carrying out batch processing and mapping processing on the prepared pictures; and carrying out image processing on the generated pre-sample data. The problem that in the prior art, a traditional foreign matter detection algorithm is insufficient in sample, and consequently the robustness and generalization ability of a detection model are insufficient is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image and video recognition and processing, and more specifically, relates to a data enhancement method, device and computer-readable storage medium for a mine foreign body detection model. Background Art

[0002] As an important energy resource mining area, coal mines need to ensure safety and efficiency in the production process. In the coal mining process, conveyor belts are a key equipment used to transport large amounts of coal. However, various non-coal foreign objects may be mixed on the conveyor belts. These foreign objects may cause equipment damage and production interruptions, so timely and accurate detection of foreign objects is of great significance.

[0003] Chinese invention patent CN113469071A discloses a coal conveyor belt foreign body video detection method for embedded devices, including: first, the camera collects the video stream image of the belt transfer point; the k-means algorithm is used to cluster and generate anchor frame parameters; the shallow feature information of the image is extracted through key convolution to determine whether the current image is set as a key frame; when the input image is set as a key frame, the lightweight foreign body detection model extracts the image feature information; when the input image is not set as a key frame, the feature information of the previous key frame is integrated; finally, the calculation result of the foreign body detection model is output.

[0004] Traditional foreign body detection algorithms have the problem of insufficient samples, resulting in insufficient robustness and generalization of the detection model. Traditional methods usually use techniques such as mirror flipping, rotation, color transformation, noise addition, and elastic deformation to expand samples, but these methods often cannot fully simulate the complex situations of foreign bodies in actual scenes, resulting in limited accuracy and robustness of the detection model. Summary of the invention

[0005] The present invention aims to provide an improved foreign body detection technology for coal mines, which improves the accuracy, robustness and generalization ability of the foreign body detection model through a training method based on data enhancement. Through the processing of mapping and image graphics, various foreign body situations that may appear on the coal conveyor belt are realistically simulated, and the corresponding samples are used as training samples for training, so as to obtain a more robust model. Such a model can identify and handle foreign bodies in a timely and accurate manner, thereby improving the safety of the coal mining process, reducing the risk of equipment damage, reducing production interruptions, and improving production efficiency.

[0006] The detailed technical scheme of the present invention is as follows:

[0007] S1. Collect samples of foreign matter that appear on the coal conveyor belt, a total of N1 objects; at the same time, collect pictures of the conveyor belt under the mine in real scenes as the background of the map, a total of M1 pictures;

[0008] S2, record the foreign body sample at multiple angles and distances against a green screen background, and generate N1 videos with a duration of T seconds;

[0009] S3, after artificially destroying the foreign body sample in S1, repeat the process of S2 again to obtain N2 sample videos with a duration of T seconds, preferably, N2=N1;

[0010] S4, extract one frame of image from the video and sample video per second to generate T*(N2+N1) video images; then, perform cutout processing on the video images to remove the green screen and retain the foreign body images, a total of T*(N2+N1) images;

[0011] S5. For the M1 collected pictures with conveyor belts, use the image segmentation algorithm to save the coordinate range of the conveyor belt in the picture as a txt file for use in mapping;

[0012] S6, pasting the foreign body image on the image with the conveyor belt to generate a sample image, wherein the image is pasted at three random positions within the coordinate range of the conveyor belt; at the same time, saving the annotation data of the image position to generate pre-sample data;

[0013] S7, performing image processing on the generated sample image and pre-sample data to obtain enhanced image data; the image processing includes but is not limited to rotation, scaling, histogram equalization, filtering, and adding noise;

[0014] S8. Input the enhanced image data into the mine foreign body detection model for training.

[0015] Furthermore, the collecting of foreign matter samples appearing on the coal conveyor belt specifically includes:

[0016] S101. Conduct in-depth on-site investigations at the customer site, collect information and related pictures of foreign objects recorded by the staff, and collect information on objects that appeared underground but were not recorded and appeared on the conveyor belt;

[0017] S102. Make a list of the types of items, and collect sample objects underground and in other places according to the list for photographing.

[0018] Furthermore, the specific method of generating N1 videos with a duration of T seconds in S2 includes:

[0019] S201, placing N1 objects on a rotating stand under a green screen background, and the rotating stand keeps rotating;

[0020] S202, the camera can shoot videos of the object from all angles by moving up and down, so as to extract frames and convert them into pictures later, and the duration of each video is T seconds.

[0021] Furthermore, the S6 specifically includes:

[0022] S601, read a conveyor belt picture and the corresponding conveyor belt position txt file, and determine the position area of ​​the conveyor belt in the picture;

[0023] S602. To ensure that the foreign object image can be completely placed in the conveyor belt area, the foreign object image is reduced or enlarged, and then 3 positions are randomly selected within the conveyor belt area to place the foreign object image. The position of the foreign object image in the entire conveyor belt image, i.e., the upper left pixel point and the lower right pixel point of the foreign object image, are saved as annotation data.

[0024] A data enhancement device for a mine foreign body detection model, the device comprising:

[0025] processor;

[0026] a memory having stored thereon a computer program executable on the processor;

[0027] Wherein, when the computer program is executed by the processor, the steps of the method for reducing the data enhancement of the mine foreign body detection model are implemented.

[0028] A computer-readable storage medium stores a data enhancement method program for a mine foreign body detection model. When the data enhancement method program for the mine foreign body detection model is executed by the processor, the steps of data enhancement of the mine foreign body detection model are implemented.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] (1) The present invention proposes a data enhancement method, device and computer-readable storage medium for a mine foreign body detection model, and processes images of underground conveyor belts in real scenes to generate more sample data, thereby expanding the size of the data set; at the same time, image processing technology is used to rotate, scale, and histogram equalize the pre-generated sample data to further increase the diversity of the data and expand the size of the data set. Compared with traditional methods, the present invention does not require posing in real scenes of conveyor belts, and can expand the number of samples to achieve a hundred-fold growth effect.

[0031] (2) The present invention proposes a data enhancement method, device and computer-readable storage medium for a mine foreign body detection model. Through data enhancement and image processing, more sample data in real scenarios are generated, which can effectively improve the accuracy and performance of the foreign body detection model; help to reduce the risk of overfitting of the model, enable it to better adapt to unseen data, and improve the generalization ability of the model; the newly generated sample data covers more situations and changes, which helps to improve the detection performance of the model in different scenarios, that is, improves the robustness of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of the data enhancement method of the detection model described in the present invention.

[0033] Figure 2 It is a schematic diagram of the rotating exhibition stand described in Example 1 of the present invention.

[0034] Figure 3 It is a schematic diagram of the correspondence between the conveyor belt image and the conveyor belt location txt described in Example 1 of the present invention. DETAILED DESCRIPTION

[0035] The disclosure of this article is further described below in conjunction with the accompanying drawings and embodiments.

[0036] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0037] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0038] In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other.

[0039] Example 1

[0040] This embodiment provides a data enhancement method for a mine foreign body detection model;

[0041] S1, collect N1 kinds of foreign body samples and M1 real scene conveyor belt pictures;

[0042] Collect samples of foreign objects that appear on the coal conveyor belt, a total of N1 objects, preferably milk cartons, paper shells, clothes, glass bottles, wood, wires, iron rods, common tools used underground, and other items that are easily carried underground by miners; at the same time, collect a large number of real-life underground conveyor belt pictures as map backgrounds, a total of M1 pictures;

[0043] The collection of foreign matter samples appearing on the coal conveyor belt specifically includes:

[0044] S101. Conduct in-depth on-site investigations at the customer site, collect information and related pictures of foreign objects recorded by the staff, and collect information on objects that appeared underground but were not recorded and appeared on the conveyor belt;

[0045] S102. List the types of items, and collect sample objects underground and in other places according to the list, so as to be photographed in S2. Preferably, the other places include but are not limited to: tool storage areas, refuge chambers, and monkey car waiting rooms in mines.

[0046] The specific steps of collecting a large number of real-life mine conveyor belt images as texture backgrounds are as follows:

[0047] Through the recordings of multiple real surveillance cameras in the coal mine, the video containing the conveyor belt was extracted and saved as pictures, totaling M1 pictures. Among them, multiple lenses ensured the conveyor belt at different distances and angles, ensuring the diversity of samples.

[0048] S2. Record the foreign body sample at multiple angles and distances against a green screen background to generate N1 videos with a duration of T seconds.

[0049] The specific method of generating N1 videos with a duration of T seconds in S2 includes:

[0050] S201, place N1 objects on a rotating stand under a green screen background, and the rotating stand keeps rotating, such as Figure 2 As shown;

[0051] S202, the camera can shoot videos of the object from all angles by moving up and down, so as to extract frames and convert them into pictures later, and the duration of each video is T seconds.

[0052] S3. After artificially destroying the foreign body samples in S1, the process of S2 is repeated again to obtain N2 sample videos. Preferably, N2=N1.

[0053] After the object is artificially damaged by S3, the process of step 2 is repeated again to obtain N2 sample videos with a duration of T seconds. The specific method includes:

[0054] The collected daily necessities are often not in their original state. In order to be closer to the real scene, some items are randomly destroyed, including but not limited to being trampled, torn, and stained with coal dust or mud.

[0055] S4. Use Python programming language combined with OpenCV to extract one frame of image from the sample video per second to generate T*(N2+N1) images. Then, use OpenCV to perform image cutout processing on the video images to remove the green screen and only keep the foreign body images, a total of T*(N2+N1) images.

[0056] S5, image segmentation, saving the conveyor belt coordinate range data in each picture;

[0057] For the M1 pictures with conveyor belts collected by S1, the coordinate range of the conveyor belts is saved as a txt file using the image segmentation algorithm for subsequent mapping.

[0058] The specific method of S5 includes:

[0059] The coordinate range of the conveyor belt is saved using a mature image segmentation algorithm in the form of a txt file. Each txt file corresponds to a picture. The txt file content is a list of the outermost points that make up the conveyor belt (these points are connected in order to form the position of the conveyor belt in the picture). The corresponding relationship between the conveyor belt picture and the conveyor belt location txt is as follows: Figure 3 shown.

[0060] S6, batch mapping processing is performed on the foreign body pictures and the pictures with conveyor belts;

[0061] Paste the foreign body image in the image with the conveyor belt to generate a sample image, where the image is pasted at three random positions within the coordinate range of the conveyor belt; at the same time, save the annotation data of the image position to generate pre-sample data;

[0062] Specifically, Python programming language and OpenCV library are used to batch process T*(N2+N1) images in S4 and M1 images in S5, and the maps are pasted on three random positions within the conveyor belt coordinate range. At the same time, the annotation data of the mapping positions are saved, and a total of 3*M1*T*(N2+N1) groups of pre-sample data and sample images carrying annotation information are generated.

[0063] The specific method of S6 includes:

[0064] S601, read a conveyor belt picture and the corresponding conveyor belt position txt file, and determine the position area of ​​the conveyor belt in the picture;

[0065] S602. To ensure that the foreign object image can be completely placed in the conveyor belt area, the foreign object image is reduced or enlarged, and then 3 positions are randomly selected within the conveyor belt area to place the foreign object image. The position of the foreign object image in the entire conveyor belt image, i.e., the upper left pixel point and the lower right pixel point of the foreign object image, are saved as annotation data.

[0066] S7. Perform image processing on the generated sample image and pre-sample data, including but not limited to rotation, scaling, histogram equalization, filtering, and noise addition technology to obtain enhanced image data.

[0067] The specific method of S7 includes:

[0068] After the mapping is completed, the image is rotated, scaled, histogram equalized, filtered, and noise is added to generate new images and annotation data to make the data samples more complete;

[0069] Rotation: By rotating at random angles, we simulate real scenes shot at different angles, increasing the diversity and realism of the data.

[0070] Scaling: Randomly scale the image to simulate real scenes shot at different distances, so that the sample data has a larger coverage.

[0071] Histogram equalization: Equalize the histogram of the image to enhance the contrast and details of the image, making the sample clearer and more realistic.

[0072] Filtering: Filtering technology is used to smooth the image, reduce noise and interference in the image, and improve the quality and authenticity of the image.

[0073] Adding noise: Introducing random noise to simulate various interferences in real scenes makes the samples closer to actual application scenarios and enhances the robustness of the model.

[0074] S8. Input the enhanced image data into the mine foreign body detection model for training. This embodiment takes the yolov5s algorithm model as an example to train the model. The application on the same data set shows significant improvement:

[0075] Based on yolov5s, the precision (P), recall (R) and mAP[0.5] are all improved from 0.774, 0.785, and 0.793 to 0.821, 0.828, and 0.845 respectively, while mAP[0.5:0.95] is improved from 0.672 to 0.738.

[0076] In addition, in the generalization verification and robustness verification in new scenarios, it also demonstrated excellent performance: the precision, recall and mAP[0.5] were significantly improved, and mAP[0.5:0.95] was also improved, which shows that the method of the present invention can effectively improve the performance of the target detection model in different application scenarios.

[0077]

[0078]

[0079]

[0080] Among them, P is the proportion of predicted boxes to true value boxes (precision), R is the proportion of all true value boxes predicted (recall), mAP[0.5] is the average accuracy when IOU is set to 0.5, and mAP[0.5:0.95] is the average accuracy when the IOU threshold ranges from 0.5 to 0.95.

[0081] Example 2

[0082] This embodiment provides a data enhancement device for a mine foreign body detection model, the device comprising:

[0083] processor;

[0084] a memory having stored thereon a computer program executable on the processor;

[0085] Wherein, when the computer program is executed by the processor, the steps of the method for reducing the data enhancement of the mine foreign body detection model are implemented.

[0086] This embodiment also provides a computer-readable storage medium, on which is stored a data enhancement method program for a mine foreign object detection model. When the data enhancement method program for a mine foreign object detection model is executed by the processor, the steps of data enhancement of the mine foreign object detection model are implemented.

[0087] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.

Claims

1. A data enhancement method for a mine foreign body detection model, characterized in that: include: S1. Collect samples of foreign matter that appear on the coal conveyor belt, a total of N1 objects; at the same time, collect pictures of the conveyor belt under the mine in real scenes as the background of the map, a total of M1 pictures; S2, record the foreign body sample at multiple angles and distances against a green screen background, and generate N1 videos with a duration of T seconds; S3, after artificially destroying the foreign body sample, repeat the process of S2 again to obtain N2 sample videos with a duration of T seconds, where N2 = N1; S4, extract one frame of image from the video and sample video per second to generate T*(N2+N1) video images; then, perform cutout processing on the video images to remove the green screen and retain the foreign body images, a total of T*(N2+N1) images; S5. For the M1 collected pictures with conveyor belts, use the image segmentation algorithm to save the coordinate range of the conveyor belt in the picture as a txt file for use in mapping; S6, pasting the foreign body image on the image with the conveyor belt to generate a sample image, wherein the image is pasted at three random positions within the coordinate range of the conveyor belt; at the same time, saving the annotation data of the image position to generate pre-sample data; S7, performing image processing on the generated sample image and pre-sample data to obtain enhanced image data; S8. Input the enhanced image data into the mine foreign body detection model for training.

2. The data enhancement method for a mine foreign body detection model according to claim 1, characterized in that: The collection of foreign matter samples appearing on the coal conveyor belt specifically includes: S101. Collect the foreign object information and related pictures recorded by the staff, and collect the information of objects that appeared on the conveyor belt but were not recorded underground; S102. Make a list of the types of items, and collect sample objects underground and in other places according to the list.

3. The data enhancement method for a mine foreign body detection model according to claim 2 is characterized in that: The specific method of generating N1 videos with a duration of T seconds in S2 includes: S201, placing N1 objects on a rotating stand under a green screen background, and the rotating stand keeps rotating; S202, the camera can shoot videos of the object from all angles by moving up and down, so as to extract frames and convert them into pictures later, and the duration of each video is T seconds.

4. The data enhancement method for a mine foreign body detection model according to claim 3 is characterized in that: The S6 specifically includes: S601, read a conveyor belt picture and the corresponding conveyor belt position txt file, and determine the position area of ​​the conveyor belt in the picture; S602, reducing or enlarging the image of the foreign object, and then randomly selecting 3 positions within the conveyor belt area to place the foreign object images, and saving the positions of the foreign object images in the entire conveyor belt image as annotation data.

5. The data enhancement method for a mine foreign body detection model according to claim 1, characterized in that: The image processing includes but is not limited to rotation, scaling, histogram equalization, filtering, and adding noise.

6. A data enhancement device for a mine foreign body detection model, characterized in that: The device comprises: processor; a memory having stored thereon a computer program executable on the processor; Wherein, when the computer program is executed by the processor, the steps of the method for reducing the data enhancement of the mine foreign body detection model as described in any one of claims 1 to 5 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for data enhancement of a mine foreign body detection model. When the program for data enhancement of a mine foreign body detection model is executed by the processor, the steps for data enhancement of a mine foreign body detection model as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Coal conveying belt foreign matter video detection method for embedded equipment

    CN113469071A

  • Method and system for detecting foreign matters conveyed by conveying belt

    CN114445767A

  • Computer implementation method, system and computer readable medium

    CN115705722A

  • Computer-implemented method, system for vehicle, and computer-readable medium

    CN115705723A

Cited By

  • Metal particle detection method and system under complex background and medium

    CN119205727A

  • Intelligent amplification method for sensing data set of special-shaped obstacles on manually-painted road surface

    CN120339751A