Inspection robot path planning method based on convolutional neural network

Through the path planning method based on the convolutional neural network, combined with tangent optimization and piecewise cubic Hermite interpolation optimization, the problem of low path planning efficiency of the traditional RRT* algorithm in complex obstacle environments is solved, and a more efficient and stable path planning is achieved. Path planning improves the intelligence and autonomous operation capabilities of the inspection robot.

CN118672265APending Publication Date: 2024-09-20CHINA THREE GORGES UNIV
View PDF 0 Cites 3 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When the traditional RRT* algorithm is used for path planning in a complex obstacle environment, the iterative convergence is unstable due to randomness and the efficiency is low. It is difficult to accurately set the maximum number of iterations, resulting in low path planning time efficiency.

Method used

The optimal path feasible region prediction model based on convolutional neural network, tangent optimization method and piecewise cubic Hermite interpolation optimization method are used to shorten the path planning time, optimize the path cost, and smooth the turning points to ensure that the inspection robot turns Safe and stable movement.

Benefits of technology

The convolutional neural network is used to predict the feasible region distribution map, reduce the scope of the sampling domain, and improve the efficiency of path planning. The tangent optimization method optimizes redundant nodes, and the piecewise cubic Hermite interpolation optimizes the inflection point, achieving optimal and smooth path cost, and improving inspection efficiency. The robot’s intelligence level and autonomous operation capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118672265A
    Figure CN118672265A
Patent Text Reader

Abstract

An inspection robot path planning method based on a convolutional neural network comprises the steps that firstly, an optimal path feasible region prediction model based on the convolutional neural network is proposed, a feasible region distribution map from a starting point to a target point in a path planning task is predicted, and then path planning time is shortened from the perspective of narrowing a sampling domain range; the time efficiency of path planning is improved; then, a tangent optimization method is proposed to optimize redundant nodes existing in a final path, and the path cost is further reduced; and finally, putting forward a segmented cubic Hermite interpolation optimization method to process inflection points in the path after tangent optimization, and smoothing the inflection points in the path to ensure that the inspection robot safely and stably performs steering motion. The invention provides an improved RRT * path planning method (NRRT *) based on a convolutional neural network, and the method can be applied to path planning of an inspection robot in a transformer substation environment, and has obvious superiority and effectiveness. And meanwhile, a new direction is provided for transmission, distribution and transformation intelligent inspection path planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of inspection robot path planning, and in particular to an inspection robot path planning method based on a convolutional neural network. Background Art

[0002] With the advent of the era of artificial intelligence and big data, robotics technology has been continuously developing and iterating, and the traditional manufacturing industry has been continuously replaced by intelligent equipment. Among them, using robots to replace manual operations has become the mainstream trend of robotic operations, and has been widely used in various aspects of society such as industrial manufacturing, medical services, food production, aerospace, and agricultural automation. However, the application of inspection robots in substation environments is still in its early stages.

[0003] With the continuous development of intelligent equipment technology and the comprehensive consideration of safety and efficiency factors, the traditional manual inspection operation will inevitably be gradually replaced by robot operation. Among them, the mainstream method of intelligent inspection operation in the current power transmission and transformation background is to use robots equipped with infrared, laser radar, binocular cameras and other sensors to complete power inspection tasks of different types, different scenarios and different targets. Therefore, conducting research on inspection robot path planning in complex power transmission and transformation environments will help improve the inspection robot's ability to operate continuously in power transmission and transformation environments and promote the development of autonomous, intelligent and smart operations.

[0004] The traditional RRT* algorithm introduces branch pruning and rewiring operations on the basis of the RRT algorithm to optimize the random tree, so that the path cost converges to the shortest in the continuous iteration process. However, due to the randomness of the algorithm, the iterative convergence process is not stable, resulting in low time efficiency of the path planning of the traditional RRT* algorithm. Figure 1(a) shows the result of 5000 iterations of the traditional RRT* algorithm under the obstacle environment map, where: green dots represent the starting point, red dots represent the end point, black rectangles represent obstacles, dark green represents branches generated during the iteration process, and pink represents the final path. Figure 1(b) shows the relationship between the path cost and planning time with the number of iterations in the path planning process. It can be seen from Figure 1(b) that in the path planning process of the traditional RRT* algorithm, the path cost decreases with the increase of the number of iterations, and tends to be stable after reaching a certain level, and the subsequent iterative optimization is of little significance; the planning time increases almost exponentially with the increase of the number of iterations. In summary, the traditional RRT* algorithm can optimize the path cost by introducing optimization measures and increasing the number of iterations. However, due to the randomness of the algorithm and the diversity of obstacle maps, the maximum number of iterations cannot be accurately set, resulting in low time efficiency of path planning of the traditional RRT* algorithm. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides an improved RRT* path planning method (NRRT*) based on convolutional neural network. This method can be applied to the path planning of inspection robots in substation environments, and has obvious advantages and effectiveness. It also provides a new direction for intelligent inspection path planning of transmission and distribution substations.

[0006] The technical solution adopted by the present invention is:

[0007] The inspection robot path planning method based on convolutional neural network includes the following steps:

[0008] Step 1: First, an optimal path feasible domain prediction model based on convolutional neural network is proposed to predict the feasible domain distribution map from the starting point to the target point in the path planning task, thereby shortening the path planning time and improving the time efficiency of path planning from the perspective of reducing the sampling domain range;

[0009] Step 2: Then, a tangent optimization method is proposed to optimize the redundant nodes in the final path and further reduce the path cost;

[0010] Step 3: Finally, a piecewise cubic Hermite interpolation optimization method is proposed to deal with the turning points in the path after tangent optimization, and the turning points in the path are smoothed to ensure that the inspection robot can turn safely and smoothly.

[0011] In step 1, the optimal path feasible domain prediction model based on convolutional neural network includes three links: map feature encoding, coordinate feature encoding and feature fusion decoding based on convolutional neural network. The specific network structure is shown in Figure 3(a). In the map feature encoding link, the trained ResNet18 network is used as the main network of the encoder of this link, and its input is an obstacle map with a dimension of (256, 256, 3). The specific obstacle map is shown in Figure 3(b).

[0012] In the coordinate feature encoding stage, four encoding modules are used to extract the coordinate features from low latitude to high dimension in sequence, and four bilinear interpolation modules are used to resample the extracted coordinate features. The input of the coordinate feature encoding stage is the starting point and end point coordinates of dimension (2,2,1). The specific input coordinates are shown in the coordinate feature encoding area in Figure 3(a).

[0013] In the feature fusion decoding stage, the map features and coordinate features are first spliced ​​along the channel dimension and decoded by the subsequent network module; then the spliced ​​features are convolved, and the fused features are deconvolved using the deconvolution module. The output is a feasible domain distribution map of (256, 256, 1). The feasible domain distribution map specifically output by the network is shown in Figure 3(c).

[0014] The optimal path feasible domain prediction model based on convolutional neural network aims to convert a high-resolution input map into another high-resolution output map, namely the feasible domain distribution map predicted by the model.

[0015] In the map feature encoding stage, the input map first passes through a Conv2d+Relu+Conv2d+Relu layer to extract low-dimensional features of the obstacle map, and then uses four ResNet18 layers to extract higher-dimensional features. All convolution modules in this stage use a 3×3 convolution kernel with a step size of 1 and a padding of 1. After being processed in the map feature encoding stage, the feature size of the input map changes from (256, 256, 3) to (32, 32, 512), as shown in the map feature encoding area in Figure 3(a).

[0016] In the coordinate feature encoding link, the input is the starting point and end point coordinates of dimension (2,2,1), and four Conv2d+Relu encoding modules are used to extract the coordinate features from low latitude to high dimension in sequence; at the same time, four bilinear interpolation modules are used to resample the extracted coordinate features to generate new feature data that matches the feature size of the map feature encoding link, so as to facilitate feature splicing in subsequent links; all convolution modules in this link use 3×3 convolution kernels, with a step size of 1 and a padding of 1; the interpolation target size of the bilinear interpolation module is the output feature size of the corresponding convolution layer in the map feature encoding link; after processing in the coordinate feature encoding link, the feature size of the input coordinates changes from (2,2,1) to (32,32,512), as shown in the coordinate feature encoding area in Figure 3(a).

[0017] In the feature fusion decoding link, the map features and coordinate features are first concatenated along the channel dimension, and then decoded by the subsequent network module; then the concatenated features are convolved using the Conv2d+Relu+Conv2d+Relu layer, and the fused features are deconvolved using the ConvTranspose2d module. In this link, only the last layer of convolution modules uses a 2×2 convolution kernel, and the remaining convolution modules use a 3×3 convolution kernel with a step size of 1 and a padding of 1; after the feature fusion decoding link, the feature size of the input coordinates changes from (32, 32, 1024) to (256, 256, 1), as shown in the feature fusion decoding area in Figure 3(a).

[0018] In step 2, the tangent optimization method includes the following steps:

[0019] S2.1. Define and initialize the starting point and end point as: X1, X4;

[0020] S2.2. Starting from the starting point X1, find the path point where the first collision is sent, recorded as the collision point X3;

[0021] S2.3. Record the point before the collision point X3 as the secondary collision point X2;

[0022] S2.4. Discretely split the paths X2-X1 and X2-X3 respectively to obtain discrete sets P1 and P2;

[0023] S2.5. Perform collision detection on the starting point X1 and the collision point X3 with the discrete points P2 and P1 respectively, and find the child nodes N2 and N1 of the first collision node in the discrete points P2 and P1 respectively;

[0024] S2.6. Find the intersection point N of the straight lines X1-N2 and X3-N1, and update the starting point X1 to the intersection point N;

[0025] S2.7. Repeat the above steps until the iteration reaches the end point X4.

[0026] In step 2.4, the paths X2-X1 and X2-X3 are discretely split respectively to obtain a more sophisticated redundant node deletion method, and the discrete sets P1 and P2 are obtained; the discrete splitting expression is:

[0027] P = (1-θ)·(x k-1 ,y k-1 )+θ·(x k ,y k );

[0028] Where: θ is the discrete step length, n represents the number of discrete split segments;

[0029] (x k-1 ,y k-1 )、(x k ,y k ) is the two-dimensional coordinate of the path node;

[0030] P is the node set after the discrete splitting of the path segment, which is used for collision detection.

[0031] In step 3, the piecewise cubic Hermite interpolation optimization method comprises the following steps:

[0032] S3.1. Assume that after tangent optimization, there are path points (x0, y0), (x1, y1), …, (xn, yn), and the slopes m0, m1, …, mn corresponding to the path points. Each path point interval [xi, xi+1] is represented by a cubic polynomial.

[0033] S3.2. Rewrite the cubic polynomial into the form of Hermite basis functions;

[0034] S3.3. Improve the slope calculation method in traditional Hermite interpolation;

[0035] In traditional Hermite interpolation, the slope of an interval with endpoints (xi, yi) and (xi+1, yi+1) is calculated by finding the ratio of the ordinate difference to the abscissa difference of the endpoints of the interval. The specific calculation expression is:

[0036]

[0037] Where M i represents the slope of the ith interval in the path, x i Represents the horizontal coordinate of the i-th path point in the path, x i+1 Indicates the horizontal coordinate of the i+1th path point in the path, y i Represents the ordinate of the i-th path point in the path, y i+1 Represents the ordinate of the i+1th path point in the path.

[0038] The specific slope improvement method is: there are path nodes (xi-1, yi-1), (xi, yi), (xi+1, yi+1), (xi+2, yi+2), (xi+3, y+3), among which: nodes (xi-1, yi-1), (xi, yi) form interval Li-1; nodes (xi, yi), (xi+1, yi+1) form interval Li; nodes (xi+1, yi+1), (xi+2, yi+2) form interval Li+1; nodes (xi+2, yi+2), (xi+3, yi+3) form interval Li+2; intervals Li-1, Li, Li+1, Li+2 have corresponding slopes mi-1, mi, mi+1, mi+2. The idea of ​​improving the slope Mi of interval Li is to comprehensively consider the slopes of the four adjacent intervals, aiming to reduce the swing of the interpolation curve. The specific expression is:

[0039] w1=|m i+1 -m i+2 |;

[0040] w2=|m i-1 -m i |;

[0041]

[0042] Where w1 and w2 represent the slope control factors, m i-1 represents the slope of the i-1th interval in the path, m i represents the slope of the ith interval in the path, m i+1 represents the slope of the i+1th interval in the path, m i+2 Represents the slope of the i+2th interval in the path.

[0043] S3.4. Use basis functions and slopes to solve the cubic polynomial between nodes of each path segment.

[0044] In step 3, for each path point interval [x i ,x i+1 ] are represented by a cubic polynomial, which is: for each path point interval [x i ,x i+1 ] are represented by a cubic polynomial, which is:

[0045] P(t)=a0+a1t+a2t 2 +a3t 3 ;

[0046] In the formula, In the current interval [x i ,x i+1 ]; a0 represents the constant term of the cubic polynomial, a1 represents the coefficient of the first term of the cubic polynomial, a2 represents the coefficient of the second term of the cubic polynomial, a3 represents the coefficient of the third term of the cubic polynomial, x i Represents the horizontal coordinate of the i-th path point in the path, x i+1 Represents the horizontal coordinate of the i+1th path point in the path. Rewrite the polynomial in the form of Hermite basis function:

[0047] P(t)=y i ·h 00 (t)+y i+1 ·h 10 (t)+M i ·(x i+1 -x i )·h 01 (t)+M i+1 ·(x i+1 -x i )·h 11 (t);

[0048] In the formula, y i Represents the ordinate of the i-th path point in the path, y i+1 Indicates the ordinate of the i+1th path point in the path, M i represents the slope of the i-th path point in the path, M i+1 Represents the slope of the i+1th path point in the path.

[0049] In the formula, h 00 (t), h 10 (t), h 01 (t), h 11 (t) is the basis function of Hermite interpolation, which is defined as follows:

[0050] h 00 (t) = (1 + 2t) (1 - t) 2 ;

[0051] h 10 (t) = t 2 (3-2t);

[0052] h 01 (t) = t(1-t) 2 ;

[0053] h 11 (t) = t 2 (t-1);

[0054] In the formula, In the current interval [x i ,x i+1 ] is the normalization parameter on .

[0055] Among them, the slope M i The calculation of is as follows:

[0056] w1=|m i+1 -m i+2 |;

[0057] w2=|m i-1 -m i |;

[0058]

[0059] Where w1 and w2 represent the slope control factors, m i-1 represents the slope of the i-1th interval in the path, m i represents the slope of the ith interval in the path, m i+1 represents the slope of the i+1th interval in the path, m i+2 Represents the slope of the i+2th interval in the path.

[0060] The present invention provides a patrol robot path planning method based on convolutional neural network, and the technical effects are as follows:

[0061] 1) Step 1 of the present invention introduces a feasible domain prediction model based on a convolutional neural network, and transfers the deep learning method to the path planning task, aiming to convert any unknown input environment map into another high-resolution output map, that is, a feasible domain probability distribution map where the optimal path exists. This map is used to guide the sampling process of the RRT* algorithm, thereby reducing the path planning time and improving the efficiency of path planning from the perspective of limiting the sampling range. Compared with the global sampling domain of the traditional RRT* algorithm and the existing elliptical sampling domain and cylindrical sampling domain, the feasible sampling domain predicted by step 1 of the present invention is more consistent with the distribution of the optimal path, and there are no obstacles in the feasible sampling domain. In complex environments, the elliptical sampling domain and the cylindrical sampling domain may fall into local optimality. The feasible sampling domain predicted by step 1 of the present invention can be personalized according to environmental maps of different complexities, different starting points and target points. Its distribution sampling distribution is more reasonable and more efficient. The feasible domain probability distribution map output by the method proposed in step 1 is as follows: Figure 4 shown.

[0062] 2) Step 2 of the present invention introduces the tangent optimization method to delete the redundant nodes in the final path found by the NRRT* algorithm, further reducing the path cost. The method proposed in step 2 is inspired by the tangent of a circle to propose the tangent optimization method. Most of the existing redundant node optimization methods are unidirectional redundant node optimization. This method searches for tangents from both ends of the redundant nodes at the same time, which belongs to bidirectional redundant node optimization. It compresses the number of redundant nodes to the greatest extent, reduces the path cost, and makes the final path cost optimal. The optimization effect of the method proposed in step 2 on redundant nodes is as follows: Figure 5 shown.

[0063] 3) Step 3 of the present invention introduces piecewise cubic Hermite interpolation to optimize the inflection points in the path after tangent optimization, and smoothes the path, which can effectively obtain a curve with optimal path cost and smoothness at the inflection point, thereby ensuring the safety and stability of the robot's steering movement. The method in step 3 improves the slope calculation method based on the traditional Hermite interpolation, and replaces the slope calculation of a single interval with a comprehensive consideration of the slopes of four adjacent intervals. This enables the improved cubic Hermite polynomial interpolation to effectively reduce excessive swinging of the curve, especially in areas where the path nodes change dramatically. The smoothing effect of the method proposed in step 3 on the final path is as follows: Figure 6 shown.

[0064] 4) Existing substation inspection robots use set routes for inspection. The inspection robots are equipped with sensors to verify the pre-specified paths for mechanical inspections, and their autonomous capabilities are not high. In actual inspection work, the staff in the control room often need to specify the status and parameters of equipment, instruments, and facilities at a certain location in the substation. This requires the inspection robot to have the ability to re-plan a new path from the current operating position to the specified target point to ensure that the inspection robot can move from any position in the substation to any specified position. The NRRT* algorithm proposed in the present invention, by introducing a feasible domain prediction model based on a convolutional neural network, enables the inspection robot to quickly predict the feasible domain probability distribution of the specified starting point and target point, ensuring that the inspection robot's path planning can cover the entire substation environment; ensuring that the planned path is shorter and more efficient; ensuring that the final operating path is smooth and continuous, and ensuring that the inspection robot can turn smoothly. In summary, the present invention improves the intelligence level of the inspection robot, is conducive to improving the inspection robot's ability to operate continuously in a power transmission and transformation environment, and promotes the development of autonomous, intelligent, and smart operations. The path planning effect of the method proposed in the present invention in a complex substation environment is as follows: Fig.10 shown. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The present invention will be further described below in conjunction with the accompanying drawings and examples;

[0066] Figure 1(a) shows the result of 5000 iterations of the traditional RRT* algorithm in the obstacle environment map;

[0067] Figure 1(b) shows the relationship between the path cost, planning time and number of iterations of the traditional RRT* algorithm.

[0068] Figure 2 This is the overall flow chart of the NRRT* algorithm.

[0069] Figure 3(a) is a schematic diagram of the feasible domain convolutional neural network prediction model structure;

[0070] Figure 3(b) is the obstacle map;

[0071] Figure 3(c) is the output feasible domain distribution map.

[0072] Figure 4 This is the output result diagram of the feasible domain convolutional neural network prediction model.

[0073] Figure 5 Schematic diagram of tangent line optimization.

[0074] Figure 6 Schematic diagram of piecewise cubic Hermite interpolation optimization comparison.

[0075] Figure 7 This is Example 1: Schematic diagram of a simple environment planning task.

[0076] Figure 8 This is Example 2: Schematic diagram of complex environment planning task.

[0077] Fig. 9 Schematic diagram of the simplified process for substation environment map.

[0078] Fig.10 This is Example 3: Schematic diagram of planning tasks in a complex substation environment. DETAILED DESCRIPTION

[0079] The improved RRT* path planning method based on convolutional neural network includes the following steps:

[0080] Step 1: Convolutional neural network based feasible domain prediction model construction method:

[0081] In order to solve the problem of high planning time cost of traditional RRT* algorithm, an inspiration method based on convolutional neural network is introduced. The constructed CNN network model is used to predict the input obstacle map and output a probability map containing feasible paths. This map is used to guide the sampling process of RRT* algorithm, which can reduce the sampling domain range and shorten the time cost of path planning.

[0082] The model can be generally divided into three parts:

[0083] 1.1: Map feature encoding: This step aims to extract features from the map that needs path planning, improve the convolution layer to extract features of different dimensions, and then encode features of different latitudes to facilitate network learning to identify the feature range of the feasible domain of path planning;

[0084] 1.2: Coordinate feature encoding stage, which aims to encode the starting point and target point of path planning, and then map the encoded coordinate features to the features of the input map by linear interpolation, so that the network can identify the starting point and target point of the feasible domain of path planning;

[0085] 1.3: Feature fusion decoding stage. This stage aims to fuse the encoded map features and coordinate features of different dimensions, splice the map features and coordinate features along the channel dimension, and then further perform convolution feature extraction on the fused features to identify higher-level map features. The features are then decoded through the deconvolution module, and their feature channels are gradually mapped to one dimension. Finally, the model-predicted path planning feasible domain map is output.

[0086] The map feature encoding link is specifically composed of 5 convolutional layers: the structure of convolutional layer 1 is: Conv2d+Relu+Conv2d+Relu, the convolution modules all use 3×3 convolution kernels, the step size is 1, and the padding is 1; the structure of convolutional layer 2 is: the first layer of the ResNet18 network; the structure of convolutional layer 3 is: the second layer of the ResNet18 network; the structure of convolutional layer 4 is: the third layer of the ResNet18 network; the structure of convolutional layer 5 is: the fourth layer of the ResNet18 network.

[0087] The coordinate feature encoding link is specifically composed of 4 convolutional layers and 4 bilinear interpolation layers: the structures of convolutional layers 1 to 4 are all: Conv2d+Relu, the convolution modules all use 3×3 convolution kernels, the step size is 1, and the padding is 1; the target sizes of bilinear interpolation layers 1 to 4 are all: the size of the output features of the convolutional layer in the map feature encoding link when the corresponding features are fused; the convolutional layers and bilinear interpolation layers are combined in pairs to form the feature extraction layer of the coordinate feature encoding link.

[0088] The feature fusion decoding link is specifically composed of 4 convolutional layers and three deconvolutional layers: the structure of convolutional layer 1-convolutional layer 3 is: Conv2d+Relu+Conv2d+Relu, the convolution module uses a 3×3 convolution kernel, the step size is 1, and the padding is 1; the structure of convolutional layer 4 is: Conv2d, the convolution module uses a 1×1 convolution kernel; the structure of deconvolutional layer 1-deconvolutional layer 4 is: the convolution module uses a 2×2 convolution kernel, and the step size is 2.

[0089] In the feature fusion decoding stage, the map features are first jump-connected with the coordinate feature lines, the features are spliced ​​along the channel dimension, and then the fused features are input into the convolution layer for feature extraction, and then the extracted features are input into the deconvolution layer for decoding; the above steps are repeated until the last layer of this stage, and the features are mapped to a one-dimensional channel through the last convolution layer, and then the model structure is output, that is, the predicted path feasible domain probability distribution map.

[0090] Step 2: Tangent optimization method:

[0091] There may still be some redundant nodes in the final path planned by the NRRT* algorithm. The existence of these redundant nodes will reduce the quality of the path and increase the length of the path. To solve this problem, a tangent optimization method is proposed based on the inspiration from the tangent of the circle to optimize the redundant nodes in the path. Figure 5 As shown:

[0092] b21. Initialize the starting point and end point of the NRRT* path planning to X1 and X4;

[0093] b22. Find the path point where the collision is first sent from the starting point, recorded as collision point X3;

[0094] b23. The point before the collision point is recorded as the secondary collision point X2;

[0095] b24. Discretely split the paths X2-X1 and X2-X3 to obtain discrete sets P1 and P2;

[0096] b25. Perform collision detection on X1 and discrete point P2 in the direction of X2-X3, and perform collision detection on X3 and discrete point P1 in the direction of X2-X1, and find the child nodes N2 and N1 of the first collision node in P2 and P1 respectively;

[0097] b26. Find the intersection point N of the lines X1-N2 and X3-N1, and update the starting point X1 to the intersection point N;

[0098] b27. Repeat the above steps b21-b26 until the iteration reaches the end point X4.

[0099] Step 3: Piecewise cubic Hermite interpolation optimization:

[0100] The robot motion belongs to an inertial system. To ensure its stable operation, there should be no turning points on the motion path. The piecewise cubic Hermite interpolation polynomial is used to smooth the turning points in the path after tangent optimization to ensure the stable operation of the robot arm.

[0101] c31. Assume that after tangent optimization, there are path points (x0, y0), (x1, y1),…, (x n ,y n ), and the slopes m0, m1, …, m corresponding to the path points n , for each path point interval [x i ,x i+1 ] are represented by a cubic polynomial, which is: P(t) = a0+a1t+a2t 2 +a3t 3 ; In the formula, In the current interval [x i ,x i+1 ] on the normalized parameters;

[0102] c32. Rewrite the polynomial in the form of Hermite basis functions:

[0103] P(t)=y i ·h 00 (t)+y i+1 ·h 10 (t)+M i ·(x i+1 -x i )·h 01 (t)+Mi+1 ·(x i+1 -x i )·h 11 (t)

[0104] In the formula, h 00 (t), h 10 (t), h 01 (t), h 11 (t) is the basis function of Hermite interpolation, which is defined as follows:

[0105] h 00 (t) = (1 + 2t) (1 - t) 2

[0106] h 10 (t) = t 2 (3-2t)

[0107] h 01 (t) = t(1-t) 2

[0108] h 11 (t) = t 2 (t-1)

[0109] c33. The traditional slope calculation method is improved. The improved slope calculation expression is:

[0110] w1=|m i+1 -m i+2 |

[0111] w2=|m i-1 -m i |

[0112]

[0113] The cubic Hermite polynomial not only matches the value at the two endpoints, but also matches the slope. By improving the calculation method of its slope, the consideration range of the slope is increased, which enables the cubic Hermite polynomial interpolation to effectively reduce excessive swinging of the curve, especially in areas where the path nodes change dramatically.

[0114] c34.Finally, by solving the cubic Hermite polynomial on each path point, the path turning points after tangent optimization can be smoothed.

[0115] Step 4: The path planning method of the NRRT* inspection robot in the substation environment includes the following steps:

[0116] Step 1. Initialize the starting point X start 、Target point X goal ;

[0117] Step 2. Input the obstacle environment map of the path planning into the feasible domain convolutional neural network prediction model, and use the probability distribution map output by the model to guide the random sampling process of the NRRT* algorithm;

[0118] Step 3. Combine the feasible domain random sampling and global random sampling with a probability ratio of 0.75:0.25;

[0119] Step 4. Generate a random number Rand() to decide the random point sampling method. This not only ensures the probability integrity of the sampling, but also achieves the purpose of narrowing the sampling domain, providing a potential possibility for shortening the path planning time.

[0120] Step 5. Use the random number Rand() to sample and get the random point X rand , and then find the node X closest to the random point near ;

[0121] Step 6. Follow the X near -X rand The random tree is expanded in the direction of step size step to get the latest point X new , judge X new With X near Is there an obstacle between them? If there is no obstacle, the latest point is valid and added to the random tree, thus completing the expansion of the random tree; if there is an obstacle, the latest point is invalid and it is necessary to jump to Step 5;

[0122] Step 7. Construct a near space with the latest point as the center and radius R=30, and determine whether the latest point needs to be reselected as a parent node and rewired based on whether the latest point collides with the nearest point; if satisfied, perform optimization operations to improve the path quality and create more potential better choices for subsequent nodes; if not satisfied, jump to Step 5;

[0123] Step8. Determine the latest point X near With the target point X goal Is the distance less than a preset threshold? If the condition is met, it is marked that a feasible path has been found and the next step is performed; if not, it jumps to step 5;

[0124] Step 9. At this point, the NRRT* algorithm has found a feasible complete path. Update the shortest path found by the NRRT* algorithm, and then determine whether the condition for early termination of the iteration is met or whether the maximum number of iterations has been reached; if so, proceed to the next step; if not, jump to Step 5;

[0125] Step 10. Use the tangent optimization method to optimize the redundant nodes of the path planned in Step 9 to improve the path quality;

[0126] Step 11. Use piecewise cubic Hermite interpolation optimization to smooth the path in Step 10 to ensure that the robot can turn smoothly and safely;

[0127] Step 12. End the NRRT* algorithm path planning process.

[0128] Example:

[0129] The specific implementation of the present invention is described in detail below in conjunction with a specific embodiment: The present invention provides an improved RRT* path planning method (NRRT*) based on a convolutional neural network, including the following algorithm steps:

[0130] A1. Initialize starting point X start 、Target point X goal ;

[0131] A2. Input the obstacle environment map of the path planning into the feasible domain convolutional neural network prediction model, and use the probability distribution map output by the model to guide the random sampling process of the NRRT* algorithm. The model structure is shown in Figure 3.

[0132] Specifically, in order to ensure that the trained model has good robustness, the present invention randomly generates 1,000 obstacle maps of size 256×256, and randomly generates 10 groups of starting points and target points on each map, obtaining a total of 10,000 data sets; uses the A* algorithm to generate an optimal path on each map, and expands the path on the map by 16 times, and uses the expanded path as the training label; then divides the training set, validation set, and test set in a ratio of 8:2:2. In addition, the Adam optimizer is used to optimize the parameters of the model during training, where the learning rate is set to 0.0002, β1=0.5, and β2=0.999; the StepLR learning rate scheduler is used to dynamically adjust the learning rate of the optimizer. This strategy can help the model converge stably during training, and can gradually reduce the learning rate in the later stage of training, which is helpful to refine the model parameters, where the step size is set to 10 and the attenuation factor γ=0.1; the model is deployed using the PyTorch framework, and the training environment is NVIDIA GeForce RTX 3060Ti, Python3.8;

[0133] Specifically, the model output results are as follows: Figure 4As shown in the figure, the green dots represent the starting points of path planning, and the red dots represent the target points of path planning; the first row shows the obstacle environment map of path planning, which is also the input map of the feasible domain prediction network; the second row shows the optimal path planned by the A* algorithm, which represents the actual situation of the optimal path and is used as the training label of the corresponding input map; the third row shows the output of the feasible domain prediction network, that is, the feasible domain probability distribution map corresponding to each environment map. Figure 4 It can be seen that the feasible domain probability distribution predicted by the model of the present invention is very close to the actual situation. During the training process of the present invention, the accuracy of the validation set was 91.64%, and the accuracy of the test set was 91.87%; the test results show that the feasible domain prediction model proposed by the present invention can effectively predict the feasible domain probability distribution of different environmental maps.

[0134] A3. Combine the feasible domain random sampling and global random sampling with a probability ratio of 0.75:0.25, and use the random number Rand() to sample to obtain the random point X rand , and then find the node X closest to the random point near ;

[0135] Specifically, global random sampling is done by multiplying the random function by the map border length (256*256): X rand = rand()*size; Random sampling in the feasible domain is to perform random sampling using the probability distribution map of the feasible domain. The present invention truncates the values ​​in the probability distribution map output by the prediction model, so that the area less than -3 is truncated to -3, and the area greater than 1 is truncated to 1. Random sampling in the feasible domain aims to sample the area where the pixel value is distributed in (-3, 1); Similar to global random sampling, random sampling in the feasible domain uses a function multiplied by the map boundary length (256*256): X rand = rand()*size to obtain random sampling points, points whose sampling pixel values ​​are not equal to -3, that is, pixel points in the feasible domain.

[0136] A4. Along X near -X rand The random tree is expanded in the direction of step size step to get the latest point X new , judge X new With X near Is there an obstacle between them? If there is no obstacle, the latest point is valid and added to the random tree, thereby completing the expansion of the random tree; if there is an obstacle, the latest point is invalid and it is necessary to jump to step A3;

[0137] A5. Construct a near space with the latest point as the center and a radius of R=30, and determine whether the latest point needs to be reselected as a parent node and rewired based on whether the latest point collides with the nearest point; if satisfied, perform optimization operations to improve the path quality and create more potential better choices for subsequent nodes; if not satisfied, jump to step A3;

[0138] A6. Determine the latest point X near With the target point X goal Is the distance less than a preset threshold? If the condition is met, it is marked that a feasible path has been found and the next step is performed; if not, it jumps to step A3;

[0139] A7. At this point, the NRRT* algorithm has found a feasible complete path. The shortest path found by the NRRT* algorithm is updated, and then it is determined whether the condition for early termination of the iteration is met or whether the maximum number of iterations has been reached. If so, proceed to the next step. If not, jump to step A3.

[0140] A8. Use the tangent optimization method to optimize the redundant nodes of the path planned in step A7 to improve the path quality;

[0141] Specifically, the specific process of the tangent optimization method is as follows: Figure 5 As shown in the figure, the black area represents obstacles in the two-dimensional space, and the black path is the initial path. There are 8 path nodes from the starting point to the target point. According to the above steps, the path point where the first collision is sent is found from the starting point, which is recorded as the collision point X3. The point before the collision point is recorded as the secondary collision point X2. The paths X2-X1 and X2-X3 are discretely split to obtain discrete sets P1 and P2, where P1 is as follows: Figure 5 As shown in the orange point set, P2 is Figure 5 The blue point set is shown in the figure; the discrete splitting expression is as follows: P = (1-θ)·(x k-1 ,y k-1 )+θ·(x k ,y k ) where θ is the discrete step length, (x k-1 ,y k-1 )、(x k ,y k ) is the two-dimensional coordinate of the path node; P is the node set after the discrete splitting of this path segment, which is used for collision detection.

[0142] Then, perform collision detection on X1 and discrete point P2 in the direction of X2-X3, and perform collision detection on X3 and discrete point P1 in the direction of X2-X1, respectively, and find the subnodes N2 and N1 of the first collision node in P2 and P1; solve the intersection N of the straight lines X1-N2 and X3-N1; update the starting point X1 to the intersection N; repeat the above steps until the iteration reaches the end point X4. This completes the deletion of redundant nodes in the initial path, optimizes the tortuosity of the path, and reduces the length of the path; the path after tangent optimization is shown in the green path in the figure.

[0143] A9. Use piecewise cubic Hermite interpolation optimization to smooth the path in step A8 to ensure that the robot can perform steering movements smoothly and safely;

[0144] A10. End the NRRT* algorithm path planning process. The entire algorithm process is as follows Figure 2 shown.

[0145] The specific performance of the improved RRT* path planning method (NRRT*) based on convolutional neural network provided by the present invention is verified as follows:

[0146] Example 1. Simple environment planning task:

[0147] To verify the path planning capability of the present invention in a simple two-dimensional environment, an environment map map1 is set in Python: the environment space size is set to 256*256, the maximum number of sampling times is 2000, the step length is 10, and 5 squares are added as obstacles. Figure 7 In the figure, the path planning results of the NRRT* and standard RRT* algorithms in map1 are respectively; Figure 7 It can be seen that, firstly, the NRRT* algorithm can effectively predict the feasible domain of the optimal path between the starting point and the target point; secondly, the sampling points of the NRRT* algorithm are far less than those of the RRT* algorithm, which can effectively reduce the memory usage during the planning process; finally, the path length of the NRRT* algorithm is not much different from that of the RRT* algorithm, but the path of the NRRT* algorithm is continuous and smooth at the turning point, which is more conducive to the robot's turning movement.

[0148] Example 2. Complex environment planning task:

[0149] To verify the path planning capability of the present invention in a complex two-dimensional environment, set the environment map map2 in Python: set the environment space size to 256*256, the maximum number of sampling times to 2000, the step length to 10, and add random squares as obstacles. Figure 8 As shown in the figure, the NRRT* algorithm is superior to the RRT* algorithm in terms of sampling efficiency and path smoothness, which proves the superiority and effectiveness of the algorithm.

[0150] Example 3. Complex substation environment planning task:

[0151] To verify the path planning capability of the present invention in a complex substation environment, a simplified model of a substation is used as the environment map map3. Fig. 9 As shown in the figure, the three-dimensional point cloud image of the substation, the two-dimensional patrol path plan of the substation, and the simplified environment map map3 are respectively displayed. In map3, the white area represents the patrol path, and the gray area represents the layout area of ​​each device in the substation. In map3, 10,000 groups of different starting points and end points are randomly created to expand the data set for model training. The specific model structure and training details are consistent with step 1.

[0152] Four groups of planning tasks were randomly selected from the test set as different working conditions for simulation experiments, with a maximum sampling number of 4000 and a step length of 5. The results are shown in Fig.10 As shown in the figure, the first column shows the feasible domain of working conditions 1 to 4; the second column shows the path planning results of the NRRT* algorithm under the four working conditions; the third column shows the path planning results of the RRT* algorithm under the four working conditions. Fig.10 It can be seen that in the substation environment, the NRRT* algorithm can effectively predict the feasible domain under four random working conditions and be used to guide path planning; the sampling domain of the NRRT* algorithm is limited to the feasible domain, while the sampling domain of the RRT* algorithm is the global sampling domain; the path of the NRRT* algorithm is smooth and continuous at the inflection point; in summary, the path planning results of the NRRT* algorithm in the substation environment are better than those of the RRT* algorithm.

[0153] The present invention can be applied to the path planning of inspection robots in substation environments, and also provides a new direction for intelligent inspection path planning of power transmission and distribution substations.

Claims

1. A path planning method for inspection robots based on convolutional neural networks, characterized in that The following steps are involved: Step 1: First, an optimal path feasible domain prediction model based on convolutional neural network is proposed to predict the feasible domain distribution map from the starting point to the target point in the path planning task, thereby shortening the path planning time from the perspective of narrowing the sampling domain range; Step 2: Then, a tangent optimization method is proposed to optimize the redundant nodes existing in the final path; Step 3: Finally, a piecewise cubic Hermite interpolation optimization method is proposed to deal with the turning points in the path after tangent optimization, and the turning points in the path are smoothed to ensure the inspection robot can perform turning movements.

2. The inspection robot path planning method based on convolutional neural network according to claim 1 is characterized in that: In the step 1, the optimal path feasible domain prediction model based on the convolutional neural network includes three links: map feature encoding, coordinate feature encoding and feature fusion decoding based on the convolutional neural network; In the map feature encoding stage, the trained ResNet18 network is used as the main network of the encoder in this stage, and its input is an obstacle map with a dimension of (256, 256, 3); In the coordinate feature encoding stage, four encoding modules are used to extract the coordinate features from low latitude to high dimension in sequence, and four bilinear interpolation modules are used to resample the extracted coordinate features. The input of the coordinate feature encoding stage is the starting point and end point coordinates of dimension (2,2,1); In the feature fusion decoding stage, the map features and coordinate features are first spliced ​​along the channel dimension and decoded by the subsequent network module; then the spliced ​​features are convolved, and the fused features are deconvolved using the deconvolution module, and the output is a feasible domain distribution map of (256, 256, 1).

3. The inspection robot path planning method based on convolutional neural network according to claim 2 is characterized in that: In the map feature encoding stage, the input map first passes through a Conv2d+Relu+Conv2d+Relu layer to extract low-dimensional features of the obstacle map, and then uses four ResNet18 layers to extract higher-dimensional features; all convolution modules in this stage use a 3×3 convolution kernel, a step size of 1, and a padding of 1.

4. The inspection robot path planning method based on convolutional neural network according to claim 2 is characterized in that: The coordinate feature encoding link has the input of the starting point and end point coordinates of dimension (2,2,1), and uses four Conv2d+Relu encoding modules to extract the coordinate features from low latitude to high dimension in sequence; at the same time, four bilinear interpolation modules are used to resample the extracted coordinate features to generate new feature data that matches the feature size of the map feature encoding link, so as to facilitate feature splicing in subsequent links; all convolution modules in this link use a 3×3 convolution kernel with a step size of 1 and a padding of 1; the interpolation target size of the bilinear interpolation module is the output feature size of the corresponding convolution layer in the map feature encoding link.

5. The inspection robot path planning method based on convolutional neural network according to claim 2 is characterized in that: In the feature fusion decoding link, the map features and coordinate features are first spliced ​​along the channel dimension, and the subsequent network module performs decoding processing; then the spliced ​​features are convolved using the Conv2d+Relu+Conv2d+Relu layer, and the fused features are deconvolved using the ConvTranspose2d module. In this link, only the last layer of convolution modules uses a 2×2 convolution kernel, and the remaining convolution modules use a 3×3 convolution kernel, with a step size of 1 and a padding of 1.

6. The inspection robot path planning method based on convolutional neural network according to claim 1 is characterized in that: In step 2, the tangent optimization method includes the following steps: S2.

1. Define and initialize the starting point and end point as: X1, X4; S2.

2. Starting from the starting point X1, find the path point where the first collision is sent, recorded as the collision point X3; S2.

3. Record the point before the collision point X3 as the secondary collision point X2; S2.

4. Discretely split the paths X2-X1 and X2-X3 respectively to obtain discrete sets P1 and P2; S2.

5. Perform collision detection on the starting point X1 and the collision point X3 with the discrete points P2 and P1 respectively, and find the child nodes N2 and N1 of the first collision node in the discrete points P2 and P1 respectively; S2.

6. Find the intersection point N of the straight lines X1-N2 and X3-N1, and update the starting point X1 to the intersection point N; S2.

7. Repeat the above steps until the iteration reaches the end point X4.

7. The inspection robot path planning method based on convolutional neural network according to claim 6 is characterized in that: In step 2.4, the paths X2-X1 and X2-X3 are discretely split respectively to obtain a more sophisticated redundant node deletion method, and the discrete sets P1 and P2 are obtained; the discrete splitting expression is: P=(1−θ)·(x k-1 ,y k-1 )+θ·(x k ,y k ): Where: θ is the discrete step length, n represents the number of discrete split segments; (x k-1 ,y k-1 )、(x k ,y k ) is the two-dimensional coordinate of the path node; P is the node set after the discrete splitting of this path segment, which is used for collision detection.

8. The inspection robot path planning method based on convolutional neural network according to claim 1 is characterized in that: In step 3, the piecewise cubic Hermite interpolation optimization method comprises the following steps: S3.

1. Assume that after tangent optimization, there are path points (x0, y0), (x1, y1), …, (xn, yn), and the slopes m0, m1, …, mn corresponding to the path points. Each path point interval [xi, xi+1] is represented by a cubic polynomial. S3.

2. Rewrite the cubic polynomial into the form of Hermite basis functions; S3.

3. Improve the slope calculation method in traditional Hermite interpolation; S3.

4. Solve the cubic polynomial between the nodes of each path segment using the basis function and the slope; In traditional Hermite interpolation, the slope of an interval with endpoints (xi, yi) and (xi+1, yi+1) is calculated by finding the ratio of the ordinate difference to the abscissa difference of the endpoints of the interval. The specific calculation expression is: Where M i represents the slope of the ith interval in the path, x i Represents the horizontal coordinate of the i-th path point in the path, x i+1 Indicates the horizontal coordinate of the i+1th path point in the path, y i Represents the ordinate of the i-th path point in the path, y i+1 Represents the ordinate of the i+1th path point in the path; The specific slope improvement method is: there are path nodes (xi-1, yi-1), (xi, yi), (xi+1, yi+1), (xi+2, yi+2), (xi+3, y+3), among which: nodes (xi-1, yi-1), (xi, yi) constitute interval Li-1; nodes (xi, yi), (xi+1, yi+1) constitute interval Li; nodes (xi+1, yi+1), (xi+2, yi+2) constitute interval Li+1; nodes (xi+2, yi+2), (xi+3, yi+3) constitute interval Li+2; intervals Li-1, Li, Li+1, Li+2 have corresponding slopes mi-1, mi, mi+1, mi+2; the idea of ​​improving the slope Mi of interval Li is to comprehensively consider the slopes of the four adjacent intervals, aiming to reduce the swing of the interpolation curve. The specific expression is: w1=|m i+1 -m i+2 |; w2=|m i-1 -m i |; Where w1 and w2 represent the slope control factors, m i- 1 represents the slope of the i-1th interval in the path, m i represents the slope of the ith interval in the path, m i+1 represents the slope of the i+1th interval in the path, m i+2 Represents the slope of the i+2th interval in the path.

9. The inspection robot path planning method based on convolutional neural network according to claim 1, characterized in that: In step 3, for each path point interval [x i ,x i+1 ] are represented by a cubic polynomial, which is: For each path point interval [x i ,x i+1 ] are represented by a cubic polynomial, which is: P(t)=a0+a1t+a2t 2 +a3t 3 ; In the formula, In the current interval [x i ,x i+1 ]; a0 represents the constant term of the cubic polynomial, a1 represents the coefficient of the first term of the cubic polynomial, a2 represents the coefficient of the second term of the cubic polynomial, a3 represents the coefficient of the third term of the cubic polynomial, x i Represents the horizontal coordinate of the i-th path point in the path, x i+1 Indicates the horizontal coordinate of the i+1th path point in the path; Rewrite the polynomial in the form of Hermite basis functions: P(t)=y i ·h 00 (t)+y i+1 ·h 10 (t)+M i ·(x i+1 -x i )·h 01 (t)+M i+1 ·(x i+1 -x i )·h 11 (t); In the formula, y i Represents the ordinate of the i-th path point in the path, y i+1 Indicates the ordinate of the i+1th path point in the path, M i represents the slope of the i-th path point in the path, M i+1 represents the slope of the i+1th path point in the path; In the formula, h 00 (t), h 10 (t), h 01 (t), h 11 (t) is the basis function of Hermite interpolation, which is defined as follows: h 00 (t)=(1+2t)(1-t) 2 ; h 10 (t)=t 2 (3-2t); h 01 (t)=t(1-t) 2 ; h 11 (t)=t 2 (t-1); In the formula, In the current interval [x i ,x i+1 ] on the normalized parameters; Among them, the slope M i The calculation of is as follows: w1=|m i+1 -m i+2 |; w2=|m i-1 -m i |; Where w1 and w2 represent the slope control factors, m i-1 represents the slope of the i-1th interval in the path, m i represents the slope of the ith interval in the path, m i+1 represents the slope of the i+1th interval in the path, m i+2 Represents the slope of the i+2th interval in the path.

10. The NRRT* inspection robot path planning method in a substation environment is characterized by The following steps are involved: Step 1. Initialize the starting point X start 、Target point X goal ; Step 2. Input the obstacle environment map of the path planning into the feasible domain convolutional neural network prediction model, and use the probability distribution map output by the model to guide the random sampling process of the NRRT* algorithm; Step 3. Combine the feasible domain random sampling and global random sampling with a probability ratio of 0.75:0.25; Step 4. Generate a random number Rand() to decide the random point sampling method, which not only ensures the probability integrity of sampling, but also achieves the purpose of narrowing the sampling domain, providing a potential possibility for shortening the path planning time; Step 5. Use the random number Rand() to sample and get the random point X rand , and then find the node X closest to the random point near ; Step 6. Follow the X near -X rand The random tree is expanded in the direction of step size step to get the latest point X new , judge X new With X near Is there an obstacle between them? If there is no obstacle, the latest point is valid and added to the random tree, thus completing the expansion of the random tree; if there is an obstacle, the latest point is invalid and it is necessary to jump to Step 5; Step 7. Construct a near space with the latest point as the center and radius R=30, and determine whether the latest point needs to be reselected as a parent node and rewired based on whether the latest point collides with the nearest point; if satisfied, perform optimization operations to improve the path quality and create more potential better choices for subsequent nodes; if not satisfied, jump to Step 5; Step8. Determine the latest point X near With the target point X goal Is the distance less than a preset threshold? If the condition is met, it is marked that a feasible path has been found and the next step is performed; if not, it jumps to step 5; Step 9. At this point, the NRRT* algorithm has found a feasible complete path. Update the shortest path found by the NRRT* algorithm, and then determine whether the condition for early termination of the iteration is met or whether the maximum number of iterations has been reached; if so, proceed to the next step; if not, jump to Step 5; Step 10. Use the tangent optimization method to optimize the redundant nodes of the path planned in Step 9 to improve the path quality; Step 11. Use piecewise cubic Hermite interpolation optimization to smooth the path in Step 10 to ensure that the robot can turn smoothly and safely; Step 12. End the NRRT* algorithm path planning process.

Citation Information

Cited By

  • Path planning optimization method, device and equipment for paddy field weeding robot and medium

    CN119413172A

  • Inspection robot path planning method and device based on neural network

    CN120141503A

  • Unmanned ship trajectory tracking control method based on optimized backstepping method

    CN120276447A