Auxiliary pipeline robot cleaning system and method based on yov5-ESP32-CAM

By integrating the yolov5-ESP32-CAM system into the pipeline cleaning robot and using the improved yolov5 network model and infrared sensors to identify obstacles in the pipeline, the problems of high cost and low safety are solved, and the identification accuracy and system robustness are improved. , reducing operational risks.

CN118609075APending Publication Date: 2024-09-06KUNMING UNIV OF SCI & TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410713527.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing pipeline cleaning robots have high R&D and production costs, and there are safety risks when operating in extreme environments, making it difficult to effectively identify and avoid obstacles in pipelines.

Method used

The yolov5-ESP32-CAM-assisted pipeline robot cleaning system is adopted, combined with the ESP32-CAM module, LED light module and infrared reflection sensor module, using the improved yolov5 network model for image detection and obstacle judgment, and real-time data transmission and processing through CAN communication , to achieve accurate identification and avoidance of obstacles in pipelines.

Benefits of technology

It improves the accuracy of obstacle recognition and system security, and reduces costs and operational risks. The improved yolov5 algorithm improves mAP0.5 and mAP0.5:0.95 accuracy by 2.1% and 5% respectively. Precision and Recall are respectively The increases were 3.4% and 2.26%, which enhanced the system’s robustness and detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609075A
    Figure CN118609075A
Patent Text Reader

Abstract

The invention relates to the technical field of pipeline robots, and discloses an auxiliary pipeline robot cleaning system and method based on yov5-ESP32-CAM, an ESP32-CAM module, an LED lamp module, an infrared reflection sensor module and a yov5 graph detection module, the ESP32-CAM module comprises an ESP32-S chip, an OV2640 camera and a micro SD card slot, the ESP32-CAM module sends image data shot by the OV2640 camera to the yov5 graph detection module, and the yov5 graph detection module sends the image data shot by the OV2640 camera to the yov5 graph detection module. A trained and improved network model of the yolov5 is stored in the yolov5 graph detection module and used for judging obstacles, and the improved network model of the yolov5 comprises a path which is added to an output node from a P3 layer of an existing network model of the yolov5, and a BoT network structure is adopted in a Neck layer of the existing network model of the yolov5 to replace an original C3 network structure. According to the auxiliary pipeline robot cleaning system and method based on the yov5-ESP32-CAM, the precision of the improved yovz5 is improved by 2.1% and 1% respectively in the aspects of mAP0.5 and mAP0.5: 0.95 of network models, and the precision of the improved yovz5 is improved by 3.4% and 2.26% respectively in the aspects of Precision and Recall of the network models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pipeline robots, and in particular to a pipeline robot cleaning system and method based on yolov5-ESP32-CAM assistance. Background Art

[0002] With the rapid development of urbanization, urban municipal pipeline systems are becoming increasingly large and complex, and aging pipelines are in urgent need of maintenance and repair. Intelligent pipeline cleaning robots have shown great potential in this field, especially for underground sewage pipe networks and other closed-loop systems that are difficult to reach manually. Automated equipment designed for urban underground pipe networks, such as intelligent floating robots, has begun to be used for inspection and maintenance operations, reducing high-risk operations and improving maintenance efficiency.

[0003] The pipeline cleaning robot industry is currently facing many challenges, especially technical difficulties. The R&D and production costs of these robots are high, which not only increases procurement and maintenance costs, but is particularly difficult for small and medium-sized companies with limited resources. In addition, the safety and market acceptance of oil and gas pipeline cleaning robots are also urgent issues to be solved. These robots need to operate in extreme environments, which may cause safety risks and operational interruptions. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In view of the shortcomings of the prior art, the present invention provides a pipeline robot cleaning system and method based on yolov5-ESP32-CAM, which has the advantages of improved recognition accuracy and solves the above technical problems.

[0006] (II) Technical solution

[0007] To achieve the above object, the present invention provides the following technical solution: a pipeline robot cleaning system based on yolov5-ESP32-CAM auxiliary includes a pipeline robot, an ESP32-CAM module, an LED light module, an infrared reflection sensor module and a yolov5 graphic detection module;

[0008] The ESP32-CAM module includes an ESP32-S chip, an OV2640 camera and a micro SD card slot. The ESP32-CAM module sends the image data captured by the OV2640 camera to the yolov5 graphic detection module;

[0009] The LED light module is used to provide supplementary light to the OV2640 camera in the ESP32-CAM module in the pipeline;

[0010] The infrared reflection sensor module and the yolov5 graphic detection module jointly judge the obstacles inside the pipeline, and the yolov5 graphic detection module stores the trained improved yolov5 network model for judging obstacles;

[0011] The improved yolov5 network model includes adding a path to the output node in the P3 layer of the existing yolov5 network model and replacing the original C3 network structure with a BoT network structure in the Neck layer of the existing yolov5 network model.

[0012] As a preferred technical solution of the present invention, the improved yolov5 network model calculation expression is as follows:

[0013]

[0014]

[0015] in, represents the convolution operation, Indicates upsampling or downsampling operation. When the operation is performed, it is down-sampling. When the operation is performed, it is upsampling. , , , , Represent five different weight parameters, represents the output of the 80*80 inspection box, and Indicates the third layer starting from the input image in the yolov5 network architecture. It represents the 7th layer starting from the input image in the yolov5 network architecture. It represents the 10th layer starting from the input image in the yolov5 network architecture. express arrive The network architecture between express arrive The network architecture between express arrive The network architecture between Represents the output of a 20*20 inspection box, Represents the output of a 40*40 inspection box, Represents a value used to avoid numerical instability.

[0016] As a preferred technical solution of the present invention, the garbage samples in the data set used in the training process of the yolov5 network model include six major categories of garbage, including cardboard, glass, metal, paper, plastic and other garbage, and the number of samples in each category is uniform.

[0017] As the preferred technical solution of the present invention, the mAP0.5 and mAP0.5:0.95 indicators and the accuracy are used in the training process of the yolov5 network model. and recall To evaluate, the specific expression is as follows:

[0018]

[0019]

[0020]

[0021]

[0022] in, Indicates the number of correctly identified garbage categories. Indicates the number of items that are incorrectly identified as trash. indicates that instances of the non-junk class are incorrectly classified as junk. represents the recall rate of garbage target detection, Indicates the accuracy of garbage target detection, yes The area under the curve is the area enclosed by the coordinate axes. Indicates the accuracy of garbage target detection The integral between 0 and 1, mAP is the sum of all categories The average value of Represents the i-th category mAP0.5 represents the mAP value when the IOU threshold is 0.5, mAP0.5:0.95 represents the mAP value when the IOU threshold is gradually increased from 0.5 to 0.95 in steps of 0.05, and the mAP values ​​under different thresholds are obtained. The average value of all mAP values ​​under different thresholds is calculated. IOU is a measure of the overlap between the predicted box and the true annotation box in the object detection task calculated by Yolov5.

[0023] A pipeline robot cleaning method based on yolov5-ESP32-CAM auxiliary, using the above-mentioned pipeline robot cleaning system based on yolov5-ESP32-CAM auxiliary, includes the following steps:

[0024] S1, ESP32-CAM module shoots video in real time and sends the data to yolov5 graphic detection module in the computer through CAN communication;

[0025] S2, yolov5 graphic detection module detects the received video data and outputs the result;

[0026] S3. The output result of the yolov5 graphic detection module is combined with the infrared sensor module to determine whether there are obstacles. If there are obstacles, the detection is stopped and the staff is reminded. The staff remotely controls the motor of the pipeline robot to adjust the position of the pipeline robot to check the situation inside the pipe. If there are no obstacles, continue cleaning.

[0027] Compared with the prior art, the present invention provides a pipeline robot cleaning system and method based on yolov5-ESP32-CAM, which has the following beneficial effects:

[0028] The improved Yolovz5 of the present invention improves the accuracy of the network model mAP0.5 and mAP0.5:0.95 by 2.1% and 5% respectively, and improves the network model Precision and Recall by 3.4% and 2.26% respectively. The improved yolov5 algorithm firstly optimizes the original network in the Neck part by drawing on the BiFPN structure. In the detection, the model can better use the feature semantics, and replaces Yolov5 with the C3 network using the BoT network. BoT is a simple but powerful backbone architecture that uses convolution to effectively learn abstract and low-resolution feature maps from large images. BoT uses global self-attention to process and aggregate the information contained in the feature map captured by convolution. The hybrid design effectively processes the image, replaces Yolov5 with the C3 network, reduces parameters, and improves computational efficiency; the improved model has improved precision, recall, and average precision, and the improved average precision target detection is basically better than other models, indicating that the model has stronger robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of the structure of the existing yolov5s of the present invention;

[0030] Figure 2 This is a schematic diagram of the network architecture of the neck of yolov5 improved by the present invention;

[0031] Figure 3 The improved yolov5 calculation schematic diagram of the present invention;

[0032] Figure 4 This is a schematic diagram of the improved yolov5s network architecture of the present invention;

[0033] Figure 5 This is a schematic diagram of a conventional pipeline robot model of the present invention;

[0034] Figure 6 This is a schematic diagram of the structure of the pipeline robot system of the present invention;

[0035] Figure 7 It is a schematic diagram of the process of the present invention;

[0036] Figure 8 It is a schematic diagram of the framework of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] See also Figure 1-8 , based on yolov5-ESP32-CAM auxiliary pipeline robot cleaning system, including pipeline robot, the battery uses a voltage of 5v, a power of 6000mAh, and the product model is BD18650-1S-50; the boost module uses the LM257 power boost module, the input voltage range is 0~35v, the output voltage range is 5~40v, and it has built-in overcurrent protection function and EN foot logic level shutdown function; the battery valve uses a 10mm micro battery valve 1.2W low power service life is greater than 50 million times, the response time is less than 10ms, and the working voltage is DC12V , used to shut off the gas; the liquid battery valve is mainly used to shut off the cleaning liquid, the working voltage is 12V, and the input pipe diameter range is 10~12mm; the camera bracket uses two motors, one is used to rotate forward and backward to facilitate observation of the front and rear situation in the pipe, and the other is used to control the up and down of the camera, which can achieve a blind spot observation of the scene inside the pipe. The servo for rotating forward and backward is MG90S with a rotation angle of 180 degrees, a response speed of 0.11s, and a voltage of 4.8v. The servo for rotating up and down is SG90 with a rotation angle of 180 degrees, a response speed of 0.13s, and a voltage of 3~7v. For details, see Figure 8 ;

[0039] It also includes ESP32-CAM module, LED light module, infrared reflection sensor module and yolov5 graphic detection module;

[0040] The ESP32-CAM module includes an ESP32-S chip, an OV2640 camera, and a micro SD card slot. The ESP32-CAM module sends the image data captured by the OV2640 camera to the yolov5 graphic detection module. During the sending process, since the yolov5 graphic detection module is stored in the computer, the computer needs to be connected to the router. At the same time, the ESP32-CAM module sends the data, and the computer inputs it into the yolov5 graphic detection module.

[0041] YOLOv5 is fast and flexible, and consists of four parts: input, Backbone, Neck, and Head. The input preprocesses the input data set, including Mosiac data enhancement, adaptive anchor box calculation, and other operations to improve the training effect. The Backbone part uses the CSPDarknet53 network to extract rich information features from the input image. The core of the Neck part is the feature pyramid (FPN) and path aggregation network (PAN) structure, which are used to achieve the fusion of feature information of different scales. Head is the detection structure of YOLOv5, which outputs feature maps of three different sizes: large, medium, and small, for detecting targets of different sizes. Backbone includes modules such as Focus, Conv, C3, and SPP. Among them, the Focus module slices the input at intervals in the vertical and horizontal directions and then splices it. The CBS module contains convolution, regularization, and activation layers. The C3 module contains N residual network Bottleneck. SPPF is a spatial pyramid pooling layer, which is used to perform maximum pooling operations of various sizes and splice the results. The YOLOv5 network structure is as follows Figure 1 As shown;

[0042] The Neck structure of the YOLOv5 network adopts the FPN+PAN structure, as shown in the following figure. Figure 2 As shown in the figure, the bottom-up route and the top-down route in the first two columns are FPN structures, and the bottom-up structure in the rightmost column is the PAN structure. The FPN structure establishes a pathway from top to bottom for feature fusion. After feature fusion, a feature layer with higher semantic features is used for prediction, but the FPN structure is subject to unidirectional information flow. Based on FPN, the PAN structure was proposed. This structure establishes a bottom-up pathway based on the FPN structure, and transmits the bottom-level position information to the prediction feature layer, so that the prediction feature layer contains both semantic information from the top layer and position information from the bottom layer, thereby greatly improving the target detection accuracy of the algorithm.

[0043] The LED light module is used to supplement the light for the OV2640 camera in the ESP32-CAM module in the pipeline;

[0044] The infrared reflection sensor module and the yolov5 graphic detection module jointly judge the obstacles inside the pipeline. The yolov5 graphic detection module stores the trained improved yolov5 network model for judging obstacles.

[0045] The improved yolov5 network model includes adding a path to the output node in the P3 layer of the existing yolov5 network model and replacing the original C3 network structure with a BoT network structure in the Neck layer of the existing yolov5 network model.

[0046] BoTNet is a conceptually simple yet powerful backbone architecture that incorporates self-attention for multiple computer vision tasks. It significantly improves the baseline on instance segmentation and object detection while also reducing parameters with minimal latency overhead by replacing spatial convolutions with global self-attention in only the last three bottleneck blocks of ResNet and making no other changes.

[0047] The improved network architecture is as follows Figure 2 As shown in Figure 2, although it will lead to a slight increase in computational complexity, the improved network architecture can achieve good results on datasets with dense targets and simple features.

[0048] See also Figure 3 , the improved yolov5 network model calculation expression is as follows:

[0049]

[0050]

[0051] represents the convolution operation, Indicates upsampling or downsampling operation. When the operation is performed, it is down-sampling. When the operation is performed, it is upsampling. , , , , Represent five different weight parameters, represents the output of the 80*80 inspection box, and Indicates the third layer starting from the input image in the yolov5 network architecture. It represents the 7th layer starting from the input image in the yolov5 network architecture. It represents the 10th layer starting from the input image in the yolov5 network architecture. express arrive The network architecture between express arrive The network architecture between express arrive The network architecture between Represents the output of a 20*20 inspection box, Represents the output of a 40*40 inspection box, Represents a value used to avoid numerical instability.

[0052] The dataset used in the training process of the yolov5 network model is a public garbage classification dataset with more than 2,500 samples, covering six categories of cardboard, glass, metal, paper, plastic and other garbage. The number of samples in the dataset is evenly distributed, and each category has enough samples. The number of samples in the dataset is evenly distributed, and each category has enough samples. This helps to train better machine learning models and improve classification accuracy.

[0053] The accuracy is used in the training process of the yolov5 network model and recall To evaluate, the specific expression is as follows:

[0054]

[0055]

[0056]

[0057]

[0058] in, Indicates the number of correctly identified garbage categories. Indicates the number of items that are incorrectly identified as trash. indicates that instances of the non-junk class are incorrectly classified as junk. represents the recall rate of garbage target detection, Indicates the accuracy of garbage target detection, yes The area under the curve is the area enclosed by the coordinate axes. Indicates the accuracy of garbage target detection The integral between 0 and 1, mAP is the sum of all categories The average value of Represents the i-th category Value, which can comprehensively consider the detection accuracy of the model for different categories of targets. mAP0.5 refers to the mAP value when the IOU threshold is 0.5. Then the IOU threshold is gradually increased from 0.5 to 0.95 in steps of 0.05 to obtain the mAP values ​​under different thresholds. Finally, their average value is obtained to obtain mAP0.5:0.95, where IOU is a measure of the overlap between the predicted box and the true annotation box in Yolov5 object detection tasks. The IOU threshold is usually used to determine whether there is overlap between two boxes. In general, when the IOU is greater than or equal to a certain threshold (such as 0.5), it can be considered that there is overlap between the two boxes. In target detection tasks, the IOU threshold is also often used to determine the accuracy of the model prediction results. For example, when evaluating model performance, the performance of the model under different thresholds can be evaluated based on different IOU thresholds.

[0059]

[0060] All experiments in this article were conducted on the Windows 10 operating system. The specific hardware configuration information includes operating system Windows 10 64-bit, CPU Intel Core i5-12490F six-core, GPU Nvidia GeForce RTX 306012G, hard disk 512G solid state, software configuration CUDA 11.6, Torch 1.10.1, Python 3.9.5.

[0061] Experimental results and analysis

[0062] Network model YOLOV5 This paper improves YOLOV5

[0063] mAP0.5 73.7% 75.8%

[0064] mAP0.5:0.95 60.9% 65.9%

[0065] Precision 73.7% 76.11%

[0066] Recall 62.1% 64.36%

[0067] The improved Yolovz5 in this paper improves the mAP0.5 and mAP0.5:0.95 accuracy by 2.1% and 5% respectively, and the Precision and Recall by 3.4% and 2.26% respectively.

[0068] A pipeline robot cleaning method based on yolov5-ESP32-CAM auxiliary, using the above-mentioned pipeline robot cleaning system based on yolov5-ESP32-CAM auxiliary, includes the following steps:

[0069] S1, ESP32-CAM module shoots video in real time and sends the data to yolov5 graphic detection module in the computer through CAN communication;

[0070] S2, yolov5 graphic detection module detects the received video data and outputs the result;

[0071] S3. The output result of the yolov5 graphic detection module is combined with the infrared sensor module to determine whether there are obstacles. If there are obstacles, the detection is stopped and the staff is reminded. The staff remotely controls the motor of the pipeline robot to adjust the position of the pipeline robot to check the situation inside the pipe. If there are no obstacles, continue cleaning.

[0072] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. Based on yolov5-ESP32-CAM assisted pipeline robot cleaning system, including pipeline robot, characterized by: It also includes ESP32-CAM module, LED light module, infrared reflection sensor module and yolov5 graphic detection module; The ESP32-CAM module includes an ESP32-S chip, an OV2640 camera and a micro SD card slot. The ESP32-CAM module sends the image data captured by the OV2640 camera to the yolov5 graphic detection module; The LED light module is used to provide supplementary light to the OV2640 camera in the ESP32-CAM module in the pipeline; The infrared reflection sensor module and the yolov5 graphic detection module jointly judge the obstacles inside the pipeline, and the yolov5 graphic detection module stores the trained improved yolov5 network model for judging obstacles; The improved yolov5 network model includes adding a path to the output node in the P3 layer of the existing yolov5 network model and replacing the original C3 network structure with a BoT network structure in the Neck layer of the existing yolov5 network model.

2. The pipeline robot cleaning system based on yolov5-ESP32-CAM according to claim 1 is characterized in that: The improved yolov5 network model calculation expression is as follows: ; ; in, represents the convolution operation, Indicates upsampling or downsampling operation. When the operation is performed, it is down-sampling. When the operation is performed, it is upsampling. , , , , Represent five different weight parameters, represents the output of the 80*80 inspection box, and Indicates the third layer starting from the input image in the yolov5 network architecture. It represents the 7th layer starting from the input image in the yolov5 network architecture. It represents the 10th layer starting from the input image in the yolov5 network architecture. express arrive The network architecture between express arrive The network architecture between express arrive The network architecture between Represents the output of a 20*20 inspection box, Represents the output of a 40*40 inspection box, Represents a value used to avoid numerical instability.

3. The pipeline robot cleaning system based on yolov5-ESP32-CAM according to claim 1 is characterized in that: The garbage samples in the data set used in the training process of the yolov5 network model include six categories of garbage: cardboard, glass, metal, paper, plastic and other garbage, and the number of samples in each category is uniform.

4. The pipeline robot cleaning system based on yolov5-ESP32-CAM as claimed in claim 3 is characterized in that: The mAP0.5 and mAP0.5:0.95 indicators and the accuracy are used in the training process of the yolov5 network model. and recall To evaluate, the specific expression is as follows: ; ; ; ; in, Indicates the number of correctly identified garbage categories. Indicates the number of items that are not garbage that are mistakenly identified as garbage. indicates that instances of the non-junk class are incorrectly classified as junk. represents the recall rate of garbage target detection, Indicates the accuracy of garbage target detection, yes The area under the curve is the area enclosed by the coordinate axes. Indicates the accuracy of garbage target detection The integral between 0 and 1, mAP is the sum of all categories The average value of Represents the i-th category mAP0.5 represents the mAP value when the IOU threshold is 0.5, mAP0.5:0.95 represents the mAP value when the IOU threshold is gradually increased from 0.5 to 0.95 in steps of 0.05, and the mAP values ​​under different thresholds are obtained. The average value of all mAP values ​​under different thresholds is calculated. IOU is a measure of the overlap between the predicted box and the true annotation box in the object detection task calculated by Yolov5.

5. A pipeline robot cleaning method based on yolov5-ESP32-CAM, using the pipeline robot cleaning system based on yolov5-ESP32-CAM as described in any one of claims 1 to 4, characterized in that: The following steps are involved: S1, ESP32-CAM module shoots video in real time and sends the data to yolov5 graphic detection module in the computer through CAN communication; S2, yolov5 graphic detection module detects the received video data and outputs the result; S3. The output result of the yolov5 graphic detection module is combined with the infrared sensor module to determine whether there are obstacles. If there are obstacles, the detection is stopped and the staff is reminded. The staff remotely controls the motor of the pipeline robot to adjust the position of the pipeline robot to check the situation inside the pipe. If there are no obstacles, continue cleaning.

Citation Information

Patent Citations

  • Pipeline endoscopic detection system

    CN115234748A