Inspection integrated robot control method based on convolutional neural network
Through the integrated inspection robot control method based on convolutional neural network, combined with the collaborative work of robotic arms and drones, the problems of high missed detection rate and low safety in pipeline network inspections in the existing technology are solved, and high efficiency is achieved. , intelligent obstacle recognition and obstacle avoidance operations improve the accuracy and robustness of pipeline network inspections.
Patent Information
- Application Number
- CN202410911909.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, pipeline network inspections have high missed inspection rates, low safety, and difficulty in data collection and analysis. Moreover, most inspection robots are in the conceptual design stage and lack intelligent control and smart decision-making, making it difficult to effectively troubleshoot management problems in complex environments. Network problem.
An inspection-integrated robot control method based on convolutional neural networks is used to obtain environmental images through cameras, combined with the path planning and obstacle avoidance algorithms of the robotic arm to realize obstacle recognition and obstacle avoidance operations, using intelligent inspection vehicles and drones. Work collaboratively to conduct ground and high-altitude inspections, and optimize feature extraction and matching algorithms through multi-scale cross-attention networks to improve obstacle recognition capabilities and model prediction accuracy.
It realizes safe and efficient obstacle identification and obstacle avoidance operations, provides comprehensive inspection work for the pipeline network, improves the prediction accuracy and robustness of the model, reduces background interference, and improves inspection efficiency and safety.
Smart Images

Figure CN118769247A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of inspection robots, and in particular relates to a control method of an integrated inspection robot based on a convolutional neural network. Background Art
[0002] The pipes in the air conditioning network are used to transport refrigerants, circulating water or air to transfer heat, regulate temperature and humidity inside the building. In addition to various pipes, the network also includes valves, accessories and connectors, as well as related control and monitoring equipment, which are essential for the normal operation of the entire air conditioning system. Therefore, the network needs to be inspected regularly, and the inspection frequency is required to be high. Due to environmental restrictions and other factors, the inspection of the network is difficult and the investigation is weak.
[0003] The current manual inspection method has many problems, such as high missed detection rate, low safety and difficulty in data collection and analysis, which makes the pipeline inspection inefficient. The use of intelligent inspection robots can effectively avoid the above problems.
[0004] At present, most pipeline inspection robots are in the conceptual design stage and have few constraints. There are problems with their operating performance, and the overall structure and key module technologies still need to be upgraded. At the same time, most inspection robots rely on remote control to complete their operations, and rely on human help to complete key steps such as operation mode, parameter selection, and path planning, lacking intelligent control and smart decision-making.
[0005] Therefore, it is urgent to design a set of efficient and intelligent inspection robot system control methods that can make autonomous decisions, so as to promptly detect pipeline network problems in complex environments. Summary of the invention
[0006] In order to solve the problems existing in the above-mentioned prior art, the present invention provides a patrol integrated robot control method based on convolutional neural network, which improves the ability to recognize obstacles and reduces background interference; and uses the cross entropy loss function for classification optimization to improve the prediction accuracy and robustness of the model.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A control method for an inspection integrated robot based on a convolutional neural network, the steps are as follows:
[0009] S1. Obtain environmental images through the camera, use image processing methods to identify obstacles, and combine the path planning and obstacle avoidance algorithms of the robot arm to achieve obstacle avoidance operations;
[0010] S2. Conduct ground and aerial dual inspections of indoor and outdoor pipelines through the collaboration of intelligent inspection vehicles and drones;
[0011] S3. Optimize Cartographer’s feature extraction and matching algorithm through a multi-scale cross-attention network based on convolutional neural networks and Transformer.
[0012] Furthermore, the specific steps of step S1 are as follows:
[0013] S11. Create a three-dimensional accumulator array, where each element of the accumulator corresponds to a specific (x, y, r) combination in the parameter space and the initial value is 0;
[0014] S12. For each point in the point cloud, calculate all (x, y, r) combinations of the cylinder and add a vote to the corresponding position in the accumulator;
[0015] S13. Calculate the vertical distance d between (x_i, y_i, r) and point P for all possible r values in the accumulator, and then increase the count of (x_i + d cosθ, y_i + d sinθ) in the accumulator, where is the angle from the z axis to the normal direction of point P;
[0016] S14. A local maximum value is searched in the accumulator, and the maximum value corresponds to a cylinder parameter in the data. When the maximum value exceeds a set threshold, it is determined that a cylinder is detected.
[0017] Furthermore, for the processed 3D map, the shortest moving path is planned for the robot arm, using the weighted 3D Euclidean distance as the heuristic function:
[0018] H(n)=w_x·|x_2-x_1|+w_y·|y_2-y_1|+w_z·|z_2-z_1|
[0019] where w_x, w_y and w_z are weight coefficients.
[0020] Furthermore, the following steps are used to make the smart car equipped with a robotic arm adapt to various environments:
[0021] T1. First, divide the working area into one-meter intervals according to the constructed three-dimensional space model, I_i=1,2,3...,n, and mark the center point of each working area as the inspection point of the car p_i=1,2,3...,n;
[0022] T2. Use the Astar algorithm to plan the shortest path for the working point p_i, provide a moving route for the inspection vehicle, and directly plan the shortest path back to the starting point O_xyz after the vehicle inspects the last inspection point p_i;
[0023] T3. When the car arrives at the designated inspection point p_i, the car stops moving and sends the inspection information to the control panel of the robot arm through the ROS subscription node. The robot arm then scans the three-dimensional model of the pipeline within the inspection point interval I_i of the car. After planning the determined moving path, the robot arm begins to go deep into the pipeline group to take pictures;
[0024] T4. Upload the images captured by the camera at the end of the robotic arm to the cloud server through the image transmission method, and perform machine vision inspection on the feature map based on the trained model to determine whether there is a problem with the pipeline. At the same time, the sensors on the inspection smart car work to collect the environment around the pipeline and check for gas and liquid leakage in the pipeline.
[0025] T5. After collecting the characteristic map information, the robot arm will notify the intelligent inspection vehicle to mark the inspection point p_i and return to the original state;
[0026] T6. After the reply is completed, the inspection intelligent vehicle moves autonomously to the next inspection point p_i+1 and repeats the above steps to inspect I_i+1 until the inspection work of all inspection intervals I_i is completed.
[0027] Further, step S2 includes the following steps:
[0028] S21. At the beginning of the system startup, the unmanned vehicle is first dispatched to the pipeline network factory, using the on-board 3D laser radar to perform high-precision spatial scanning and construct a detailed three-dimensional global map of the factory through 3D laser SLAM technology;
[0029] S21. The three-dimensional global map is then published to the drone in real time through a distributed communication network based on the ROS system. After receiving the three-dimensional global map, the drone autonomously plans an inspection plan according to the content of the three-dimensional global map, and performs autonomous flight path planning and inspection area division.
[0030] Furthermore, step S2 includes the following steps: the UAV uses visual SLAM for high-precision positioning and complex terrain adaptability, and collects pipeline surface status data through the onboard depth camera and the camera at the end of the vehicle-mounted robotic arm; the aerial inspection UAV obtains image information of the pipeline from different angles, and uses the onboard YOLOv5 target detection model to perform real-time image analysis.
[0031] Further, step S3 includes the following steps:
[0032] S31, input the scanned point cloud and use multi-scale CNN to extract local information and long-distance dependencies respectively;
[0033] S32. On the features extracted by CNN, channel and spatial attention mechanisms are used to enhance feature information at different scales;
[0034] S33. According to the specific features of the point cloud, the value method is used to obtain the original obstacle area, thereby enhancing the network's ability to identify obstacles and reducing background interference;
[0035] S34. Use the cross-attention mechanism to fully fuse the feature vectors from CNN to obtain the final prediction result.
[0036] Furthermore, step S3 includes the following steps: the laser radar point cloud information is input through the multi-scale cross-attention network prediction process guided by the laser radar point cloud signal, first enters the ResNet18 editor for four downsampling to obtain feature maps of different scales and extracts the feature maps of the first three downsamplings through MSE to enhance the feature representation; the fourth downsampled features enter the Transformer editor to obtain the point cloud information and the long-distance dependency of the image, and then the enhanced features are fused with the point cloud signal by point-by-point addition; finally, the fused features and the output features of the Transformer encoder are jointly subjected to MHCA to obtain the final classification result.
[0037] Furthermore, in step S3, the convolution layer is first initialized to convert the point cloud information into image data as input; a 7*7 convolution kernel is used, the step size is 2, and the padding is 1, and 64 feature maps are output; a 3*3 maximum pooling is applied with a step size of 2 to further reduce the spatial dimension of the feature map; the fully connected layer is removed, and the features after the last convolution layer are directly input into the Transformer; the input features are respectively passed through conv1, conv2, conv3, and conv4 to obtain features of different scales y1, y2, y3, y4,
[0038] y1=conv1(x)
[0039] y2=conv2(y1)
[0040] y3=conv3(y2)
[0041] y4=conv4(y3).
[0042] Furthermore, we first prepare the extracted feature map of the convolutional neural network, embed the prepared feature map through a linear layer, and convert the high-dimensional features into low-dimensional feature vectors; retain the spatial information of the features by adding position encoding; obtain the position encoding through learning, and for each position i, define a learnable position vector p_i:
[0043] p_i=W×e_i
[0044] Where W is a learnable weight matrix, e_i is a one-dimensional position encoding vector representing position i; at the input stage of the Transformer, p_i is added to the input feature vector x_i to obtain the final input z_i:
[0045] z_i=x_i+p_i
[0046] Then, through the back-propagation algorithm, the model can learn the optimal encoding for each position; the embedded feature vector is input into the self-attention layer of the Transformer to generate attention weights, and then these weights are used to weight the feature vector to achieve feature fusion.
[0047] Beneficial effects of the present invention:
[0048] Compared with the prior art, the inspection integrated robot control method based on convolutional neural network described in the present invention obtains environmental images through a camera, uses image processing technology to identify obstacles, and combines the path planning and obstacle avoidance algorithm of the robotic arm to achieve safe and efficient obstacle avoidance operations; through the collaborative work of intelligent inspection vehicles and drones, it provides ground and high-altitude dual inspection work for indoor pipelines and comprehensive inspection work for outdoor pipelines; by introducing the cross-attention mechanism, the ability to recognize obstacles is further improved and background interference is reduced; the cross-entropy loss function is used for classification optimization to improve the prediction accuracy and robustness of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the present invention will be described in detail below in combination with the accompanying drawings and detailed embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0050] Figure 1 This is a three-dimensional model space division diagram of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Figure 1 The control method of the integrated inspection robot based on convolutional neural network is further explained.
[0052] The inspection integrated robot control method based on convolutional neural network includes the following algorithms:
[0053] (1) Obstacle avoidance algorithm for robotic arm holding camera
[0054] The camera acquires environmental images, uses image processing technology to identify obstacles, and combines the robot's path planning and obstacle avoidance algorithms to achieve safe and efficient obstacle avoidance operations. The acquired images are preprocessed (such as denoising, contrast enhancement, etc.) and then obstacle detection is performed.
[0055] (2) Land-air robot collaboration algorithm
[0056] Through the collaborative work of intelligent inspection vehicles and drones, dual ground and aerial inspections are provided for indoor pipelines, and comprehensive inspections are provided for outdoor pipelines.
[0057] (3) Feature extraction and matching algorithm based on convolutional neural network
[0058] This paper proposes a multi-scale cross-attention network based on convolutional neural network (CNN) and Transformer to optimize the feature extraction and matching algorithm of Cartographer. The network first extracts local features of different scales through ResNet18 and enhances them using channel and spatial attention mechanisms. Then, the Transformer module is used to fuse long-distance dependencies and enhanced features. By introducing the cross-attention mechanism, the ability to recognize obstacles is further improved and background interference is reduced. Finally, the cross-entropy loss function is used for classification optimization to improve the prediction accuracy and robustness of the model.
[0059] 3.1. Obstacle avoidance algorithm for robotic arm holding camera
[0060] Because the inspection target of this system is the complex and intertwined pipelines, it is difficult to shoot the pipelines "hidden" inside the pipeline group through the on-board camera to extract feature points for fault detection, and this part of the pipeline that is most "ignored" is exactly where the pipeline leaks and breaks the most. To solve this problem, this inspection robot is equipped with a mechanical arm on the gimbal, and the mechanical arm goes deep into the pipeline group to shoot.
[0061] In order to ensure that the robot arm can smoothly penetrate into the pipeline group, the present invention plans a detailed moving path for the robot arm through rapid mapping after drone inspection, ensuring that the robot arm can flexibly "shuttle" in the pipeline group and accurately extract the required feature map. The above goals have extremely high requirements for the point cloud processing collected by the laser radar. If the pipeline is not accurately identified and an accurate moving path is planned for the robot arm, the robot arm will most likely collide in a chain in the narrow gap between the pipelines, causing damage to the pipeline and the robot arm. Therefore, the preprocessing of the point cloud data is particularly critical.
[0062] The present invention selects a model fitting denoising algorithm based on a cylinder model according to the characteristics of the pipeline. The present invention selects Hough transform as the mathematical algorithm of the present invention for model fitting. Create a three-dimensional accumulator array, each element of the accumulator corresponds to a specific (x, y, r) combination in the parameter space, and the initial value is 0. For each point in the point cloud, calculate all (x, y, r) combinations that it may belong to the cylinder (pipeline), and add a vote to the corresponding position in the accumulator. Finally, the vertical distance d between (x_i,, y_i, r) and point P is calculated for all possible r values in the accumulator, and then the count of (x_i+dcosθ, y_i+dsinθ) in the accumulator is increased, where θ is the angle from the z-axis to the normal direction of point P. The local maximum value is searched in the accumulator, and these peaks correspond to the most likely cylinder parameters in the data. When the peak exceeds the set threshold, it is identified as a cylinder (pipeline) detected. Through the above denoising algorithm, the present invention successfully constructs an accurate three-dimensional map, providing a good environment for the safe and stable operation of the robotic arm.
[0063] For the processed three-dimensional map, the present invention improves the Astar algorithm so that it can be applied in three-dimensional scenes to plan the shortest moving path for the robot arm. The present invention chooses to use the weighted three-dimensional Euclidean distance as the heuristic function:
[0064] H(n)=w_x·|x_2-x_1|+w_y·|y_2-y_1|+w_z·|z_2-z_1|
[0065] where w_x, w_y and w_z are weight coefficients.
[0066] The above algorithm provides technical support for the autonomous movement of the robot arm and the shooting of feature maps. In specific application scenarios, in order to ensure that the intelligent car equipped with a robot arm of the present invention can adapt to various environments, the present invention has formulated the following control strategy:
[0067] First, according to the constructed three-dimensional space model, the working interval is divided into one-meter intervals, I_i=1,2,3……,n, and the center point of each working interval is marked as the inspection point p_i=1,2,3……,n of the trolley. The shortest path planning is performed for these working points p_i through the Astar algorithm to provide a moving route for the trolley inspection. After the trolley inspects the last inspection point p_i, the shortest path back to the starting point O_xyz is directly planned, providing a detailed control strategy for the entire inspection process of the trolley. When the trolley arrives at the designated inspection point p_i, the trolley stops moving and sends the inspection information to the control board work command of the robotic arm through the ROS subscription node. The robotic arm then scans the three-dimensional model map of the pipeline within the inspection point interval I_i of the trolley. After planning the determined moving path, the robotic arm begins to shoot deep inside the pipeline group. The content shot by the camera at the end of the robotic arm is uploaded to the cloud server through the image transmission technology, and the feature map is machine-visually inspected according to the trained model to determine whether there is a problem with the pipeline. At the same time, the sensors on the patrol smart car work to collect information about the surrounding environment of the pipeline and check for leaks in the pipeline. After the robot arm completes the collection of feature map information, it notifies the smart patrol car to mark the patrol point p_i here and restore it to its original state. After the reply is completed, the patrol smart car moves autonomously to the next patrol point p_i+1 and repeats the above steps to patrol I_i+1 until the patrol work of all patrol intervals I_i is completed.
[0068] like Figure 1 As shown, the present invention divides the three-dimensional model into spaces, uses the corresponding inspectable intervals as the inspection work intervals of the present invention according to the pipeline layout, calibrates the inspection work intervals, marks them as inspection points, and transmits the coordinate positions to the inspection vehicle, which then performs inspection work according to the inspection sequence.
[0069] 3.2. Land-Air Robot Collaboration Algorithm
[0070] At the beginning of the system startup, the unmanned vehicle was first dispatched to the pipeline network factory, using the on-board 3D laser radar to perform high-precision spatial scanning, and using 3D laser SLAM technology to build a detailed three-dimensional global map of the factory. This global map is then published to the drone in real time through a distributed communication network based on the ROS system. After receiving this global map, the drone will autonomously plan the inspection plan based on the content of the global map, and conduct autonomous flight path planning and inspection area division.
[0071] In order to maximize the inspection efficiency and coverage, the present invention intelligently plans the respective inspection tasks and paths according to the specific conditions of the pipeline distribution in the global map and the characteristics of the aerial inspection unit. In this process, the present invention uses the RRT path planning algorithm to ensure that the inspection areas of the unmanned vehicle and the drone do not overlap, thereby avoiding the waste of resources and ensuring the efficient operation of the system. During the inspection process, the unmanned vehicle and the drone can not only independently perform their respective inspection tasks, but also dynamically adjust the inspection strategy and path according to the real-time environmental changes and the location information between each other to cope with the complex and changeable factory environment.
[0072] When the ground inspection unmanned vehicle performs its tasks, it relies on the local_costmap cost map, while the drone uses visual SLAM for high-precision positioning and complex terrain adaptability, and can accurately perform inspection tasks and collect pipeline surface status data through the onboard depth camera and the camera at the end of the vehicle's mechanical arm. At the same time, the aerial inspection drone uses its flexible flight capabilities and high-definition cameras to obtain pipeline image information from different angles, and uses the onboard YOLOv5 target detection model for real-time image analysis to identify possible defects and problem areas. The data of the two inspection units will be summarized and analyzed to form the final inspection report.
[0073] The two robots will work together in pipeline inspections through real-time data interaction. The present invention naturally takes advantage of the high endurance of the inspection vehicle and the wide aerial field of view of the drone, and combines the two to model the pipeline network. The present invention uses a mapping algorithm of a tightly coupled vision-lidar-IMU inertial conduction link through smoothing and mapping. First, the robot first establishes the relative positions of the pipeline network and various partitions by quickly scanning and mapping the two-dimensional plane of the ground, and then uses the improved Astar algorithm to plan the movement path for the drone, providing the premise for the drone to scan and build three-dimensional maps at low altitudes, which greatly reduces the difficulty of drone mapping. After fully adopting this efficient mapping method, the present invention uses the Cartographer algorithm for the two-dimensional modeling of the inspection vehicle.
[0074] The present invention uses RPLIDAR C1 single-line laser radar for mapping. Because it has low accuracy when processing long-distance points, the present invention reduces the value of max_range, increases the value of voxel_filter_size, and reduces the number of points that need to be processed. In order to reduce the search amount during matching, the present invention increases the value of submaps.grid_options_2d.resolution, and at the same time, in order to meet the needs of adaptive voxel filtering, reduces the value of min_num_points and increases the value of max_length. Increase optimize_every_n_nodes, reduce the optimization frequency, increase MAP_BUILDER.num_background_threads, increase the calculation speed, reduce global_sampling_ratio, reduce the frequency of calculating global constraints, increase global_localization_min_score, reduce the number of calculated constraints, increase the probability of correct constraints, increase global_constraint_search_after_n_seconds, and reduce the number of loops.
[0075] 3.3 Feature extraction and matching algorithm based on convolutional neural network
[0076] The present invention optimizes the feature extraction and matching algorithm of Cartographer through convolutional neural network, and proposes a CNN model. First, the point cloud obtained by input scanning is subjected to multi-scale CNN to extract local information and long-distance dependencies respectively. On the features extracted by CNN, channel and spatial attention mechanisms are used to enhance feature information at different scales. Then, according to the specific features of the point cloud, the value method is used to obtain the original obstacle area, thereby enhancing the network's ability to identify obstacles and reducing background interference. Finally, the cross-attention mechanism is used to fully fuse the feature vectors from CNN to obtain the final prediction result.
[0077] The present invention proposes a multi-scale cross-attention network guided by a lidar point cloud signal, which includes a feature extraction module based on ResNet18, a feature extraction module based on Transformer, and a loss function module. The prediction process is that the input lidar point cloud information first enters the ResNet18 editor for four downsampling to obtain feature maps of different scales and extracts the feature maps of the first three downsamplings to enhance the feature representation through MSE. The fourth downsampled feature enters the Transformer editor to obtain the long-distance dependency of the point cloud information and the image, and then the enhanced feature is fused with the point cloud signal by point-by-point addition. Finally, the fused features and the output features of the Transformer encoder are jointly subjected to MHCA to obtain the final classification result.
[0078] 3.3.1 Feature extraction module based on ResNet18
[0079] First, initialize the convolution layer and convert the point cloud information into image data as input. Use a 7*7 convolution kernel, a step size of 2, and a padding of 1 to output 64 feature maps to reduce the spatial dimension of the feature map and increase the number of feature channels. Apply a 3*3 maximum pooling with a step size of 2 to further reduce the spatial dimension of the feature map. Remove the fully connected layer, and the features after the last convolution layer will be directly input into the Transformer. The input features are passed through conv1, conv2, conv3, and conv4 to obtain features of different scales y1, y2, y3, and y4, respectively.
[0080] y1=conv1(x)
[0081] y2=conv2(y1)
[0082] y3=conv3(y2)
[0083] y4=conv4(y3)
[0084] The spatial dimensions of the above four features gradually decrease, the channel dimensions gradually double, and the local information contained in the features gradually decreases. Therefore, this paper uses the first three features y1, y2, and y3 to input into the multi-scale information enhancement module to extract more shallow features y4 and input into the Transformer to obtain the global information of the image.
[0085] 3.3.2 Feature fusion module based on Transfermer
[0086] First, prepare the extracted feature map of the convolutional neural network, embed the prepared feature map through a linear layer, and convert the high-dimensional features into low-dimensional feature vectors. Since Transformer does not have a spatial structure like CNN, it is necessary to retain the spatial information of the features by adding position encoding. The present invention obtains the position encoding by learning, and for each position i, defines a learnable position vector p_i:
[0087] p_i=W×e_i
[0088] Where W is a learnable weight matrix, e_i is a one-dimensional position encoding vector representing position i. At the input stage of the Transformer, p_i is added to the input feature vector x_i to obtain the final input z_i:
[0089] z_i=x_i+p_i
[0090] Then, through the back-propagation algorithm, the model can learn the optimal encoding for each position.
[0091] The embedded feature vector is input into the self-attention layer of Transformer to generate attention weights, and then these weights are used to weight the feature vector to achieve feature fusion.
[0092] 3.3.3 Loss Function Module
[0093] The present invention performs binary classification calculation on the point cloud information through the cross entropy loss function:
[0094]
[0095] Where yi represents the label of sample i, the positive class is 1, the negative class is 0, and pi represents the probability that sample i is predicted to be positive. The difference between the model's prediction results and the actual data is measured based on the calculation results of the cross entropy loss function, and the model parameters are adjusted to improve the model's performance.
[0096] The present invention adopts the following five evaluation indicators:
[0097]
[0098] The above five evaluation indicators represent accuracy, precision, sensitivity, specificity and F1 score respectively. TP represents the number of correctly classified as noise points, TN represents the number of correctly classified as point clouds, FP represents the number of misclassified as noise points, and FN represents the number of misclassified as point clouds.
[0099] The rapid mapping operation of the inspection vehicle makes it possible for the drone to fly at low altitude, reducing the autonomous cost of the drone for rapid three-dimensional mapping.
[0100] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A control method for an inspection-integrated robot based on a convolutional neural network, characterized in that: Here are the steps: S1. Obtain environmental images through the camera, use image processing methods to identify obstacles, and combine the path planning and obstacle avoidance algorithms of the robot arm to achieve obstacle avoidance operations; S2. Conduct ground and aerial dual inspections of indoor and outdoor pipelines through the collaboration of intelligent inspection vehicles and drones; S3. Optimize Cartographer’s feature extraction and matching algorithm through a multi-scale cross-attention network based on convolutional neural networks and Transformer.
2. The inspection integrated robot control method based on convolutional neural network according to claim 1, characterized in that: The specific steps of step S1 are as follows: S11. Create a three-dimensional accumulator array, where each element of the accumulator corresponds to a specific (x, y, r) combination in the parameter space and the initial value is 0; S12. For each point in the point cloud, calculate all (x, y, r) combinations of the cylinder and add a vote to the corresponding position in the accumulator; S13. Calculate the vertical distance d between (x_i, y_i, r) and point P for all possible r values in the accumulator, and then increase the count of (x_i + d cosθ, y_i + d sinθ) in the accumulator, where is the angle from the z axis to the normal direction of point P; S14. A local maximum value is searched in the accumulator, and the maximum value corresponds to a cylinder parameter in the data. When the maximum value exceeds a set threshold, it is determined that a cylinder is detected.
3. The inspection integrated robot control method based on convolutional neural network as claimed in claim 2, characterized in that: For the processed 3D map, plan the shortest moving path for the robot arm, using the weighted 3D Euclidean distance as the heuristic function: H(n)=w_x·|x_2-x_1|+w_y·|y_2-y_1|+w_z·|z_2-z_1| where w_x, w_y and w_z are weight coefficients.
4. The inspection integrated robot control method based on convolutional neural network according to any one of claims 1 to 3, characterized in that: Use the following steps to adapt the smart car equipped with a robotic arm to various environments: T1. First, divide the working area into one-meter intervals according to the constructed three-dimensional space model, I_i=1,2,3...,n, and mark the center point of each working area as the inspection point of the car p_i=1,2,3...,n; T2. Use the Astar algorithm to plan the shortest path for the working point p_i, provide a moving route for the inspection vehicle, and directly plan the shortest path back to the starting point O_xyz after the vehicle inspects the last inspection point p_i; T3. When the car arrives at the designated inspection point p_i, the car stops moving and sends the inspection information to the control panel of the robot arm through the ROS subscription node. The robot arm then scans the three-dimensional model of the pipeline within the inspection point interval I_i of the car. After planning the determined moving path, the robot arm begins to go deep into the pipeline group to take pictures; T4. Upload the images captured by the camera at the end of the robotic arm to the cloud server through the image transmission method, and perform machine vision inspection on the feature map based on the trained model to determine whether there is a problem with the pipeline. At the same time, the sensors on the inspection smart car work to collect the environment around the pipeline and check for gas and liquid leakage in the pipeline. T5. After collecting the characteristic map information, the robot arm will notify the intelligent inspection vehicle to mark the inspection point p_i and return to the original state; T6. After the reply is completed, the inspection intelligent vehicle moves autonomously to the next inspection point p_i+1 and repeats the above steps to inspect I_i+1 until the inspection work of all inspection intervals I_i is completed.
5. The inspection integrated robot control method based on convolutional neural network according to claim 1, characterized in that: Step S2 includes the following steps: S21. At the beginning of the system startup, the unmanned vehicle is first dispatched to the pipeline network factory, using the on-board 3D laser radar to perform high-precision spatial scanning and construct a detailed three-dimensional global map of the factory through 3D laser SLAM technology; S21. The three-dimensional global map is then published to the drone in real time through a distributed communication network based on the ROS system. After receiving the three-dimensional global map, the drone autonomously plans an inspection plan according to the content of the three-dimensional global map, and performs autonomous flight path planning and inspection area division.
6. The inspection integrated robot control method based on convolutional neural network according to claim 1, characterized in that: Step S2 includes the following steps: the UAV uses visual SLAM for high-precision positioning and complex terrain adaptability, and collects pipeline surface status data through the onboard depth camera and the camera at the end of the vehicle-mounted robotic arm; the aerial inspection UAV obtains image information of the pipeline from different angles, and uses the onboard YOLOv5 target detection model for real-time image analysis.
7. The inspection integrated robot control method based on convolutional neural network according to claim 1, characterized in that: Step S3 includes the following steps: S31, input the scanned point cloud and use multi-scale CNN to extract local information and long-distance dependencies respectively; S32. On the features extracted by CNN, channel and spatial attention mechanisms are used to enhance feature information at different scales; S33. According to the specific features of the point cloud, the value method is used to obtain the original obstacle area, thereby enhancing the network's ability to identify obstacles and reducing background interference; S34. Use the cross-attention mechanism to fully fuse the feature vectors from CNN to obtain the final prediction result.
8. The inspection integrated robot control method based on convolutional neural network according to claim 1, characterized in that: Step S3 includes the following steps: the laser radar point cloud information is input through the multi-scale cross-attention network prediction process guided by the laser radar point cloud signal, first entering the ResNet18 editor for four downsampling to obtain feature maps of different scales and extracting the feature maps of the first three downsamplings through MSE to enhance the feature representation; the fourth downsampled features enter the Transformer editor to obtain the point cloud information and the long-distance dependency of the image, and then the enhanced features are fused with the point cloud signal by point-by-point addition; finally, the fused features and the output features of the Transformer encoder are jointly subjected to MHCA to obtain the final classification result.
9. The inspection integrated robot control method based on convolutional neural network according to claim 1, characterized in that: In step S3, the convolution layer is first initialized to convert the point cloud information into image data as input; a 7*7 convolution kernel is used, the step size is 2, and the padding is 1, and 64 feature maps are output; a 3*3 maximum pooling is applied with a step size of 2 to further reduce the spatial dimension of the feature map; the fully connected layer is removed, and the features after the last convolution layer are directly input into the Transformer; the input features are passed through conv1, conv2, conv3, and conv4 to obtain features of different scales y1, y2, y3, y4, y1=conv1(x) y2=conv2(y1) y3=conv3(y2) y4=conv4(y3).
10. The inspection integrated robot control method based on convolutional neural network according to claim 1, characterized in that: In step S3, first prepare the extracted feature map of the convolutional neural network, embed the prepared feature map through a linear layer, and convert the high-dimensional features into low-dimensional feature vectors; retain the spatial information of the features by adding position encoding; obtain the position encoding through learning, and for each position i, define a learnable position vector p_i: p_i=W×e_i Where W is a learnable weight matrix, e_i is a one-dimensional position encoding vector representing position i; at the input stage of the Transformer, p_i is added to the input feature vector x_i to obtain the final input z_i: z_i=x_i+p_i Then, through the back-propagation algorithm, the model can learn the best encoding for each position; The embedded feature vector is input into the self-attention layer of Transformer to generate attention weights, and then these weights are used to weight the feature vector to achieve feature fusion.
Citation Information
Cited By
Unmanned aerial vehicle power inspection autonomous flight obstacle avoidance method and device based on laser radar, and storage medium
CN119717864A
Intelligent robot safe operation method based on three-dimensional Gaussian and touch image fusion
CN119897874A
