Track inspection combined positioning method based on semantic map
By constructing a global semantic map of the track and using sleeper numbers for information fusion, the problems of cumulative errors and environmental limitations in traditional positioning technology are solved, and high-precision and reliable positioning for track inspections are achieved.
Patent Information
- Application Number
- CN202410673292.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Traditional odometry and satellite positioning technologies have accumulated errors and environmental limitations in track inspections, making it difficult to meet the high-precision and reliability requirements of modern railway track operation and maintenance.
A lightweight real-time semantic segmentation neural network based on Deeplabv3+ is used to segment the track image. The LIO-SAM algorithm and image-point cloud projection technology are combined to construct a global semantic map of the track. The sleeper number is used as a global positioning benchmark to perform multi-source information fusion and Local motion constraints realize combined positioning of track inspection.
It improves the robustness and accuracy of track inspection positioning, reduces positioning errors, and provides continuous and stable motion information especially within short distances.
Smart Images

Figure CN118537555A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of track inspection and positioning, and in particular to a track inspection combined positioning method based on a semantic map. Background Art
[0002] High-precision and reliable positioning technology is essential for track inspection. Although traditional odometer and satellite positioning technologies are widely used, they both have obvious limitations. Odometer positioning has the problem of cumulative errors, which will cause the performance of the positioning system to degrade rapidly, resulting in large errors and seriously affecting the positioning accuracy. On the other hand, in special environments such as under viaducts and tunnels, the ability of satellite positioning will be greatly reduced, resulting in the loss of positioning information. With the continuous growth of track inspection needs, the requirements for the reliability and accuracy of the positioning system are also increasing. In this context, positioning systems that rely solely on a single information source can no longer meet the needs of modern railway track operation and maintenance.
[0003] Existing track inspection equipment usually uses continuous pushing and trigger sampling to perform positioning and track status data collection. However, there is a significant cumulative error in the positioning mileage of these devices, and the mileage error can even reach more than meters. The existing solution is to add markers such as RFID in the track environment to reduce the cumulative error. However, this method is time-consuming and labor-intensive, and cannot meet the positioning requirements of large-scale positioning and non-visualization. As an important part of the track structure, the sleepers are discretely distributed at equal distances along the length of the track. This feature makes them an important reference for track positioning. Therefore, the present invention uses the constructed semantic map to visualize the positioning information of the global sleepers, implements effective constraints on the local motion model, and obtains more accurate positioning results. Summary of the invention
[0004] In order to solve the problems existing in the prior art, the present invention provides a combined positioning method for track inspection based on semantic maps. The present invention adopts a lightweight real-time semantic segmentation neural network based on Deeplabv3+ to segment the track image to obtain the semantic label of each pixel. Subsequently, these semantic labels are mapped to the point cloud data through the image-point cloud projection technology, and the LIO-SAM algorithm is combined with the acquired semantic information to construct a global semantic map of the track to provide the sleeper position information for subsequent combined positioning. The local motion model provides local motion constraints for the combined positioning method. Although its accuracy is limited and there are cumulative errors, it can output continuous and stable motion information within a short distance. Finally, on the basis of the constructed track semantic map, the local motion is constrained and adjusted to achieve the fusion positioning of multi-source information, which solves the problems mentioned in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a track inspection combined positioning method based on semantic map, comprising the following steps:
[0006] S1. Track image semantic segmentation: Use the dilated convolution of DeepLabV3+ to segment the track image and obtain the semantic label of each pixel;
[0007] S2, point cloud and image space calibration: obtain point cloud frame and camera frame data, synchronize the data, and then map the obtained semantic labels to the point cloud data to complete the point cloud and image space calibration;
[0008] S3. Construction of global semantic map of track: The LIO-SAM algorithm estimates the IMU data to determine the movement posture and direction of the device, and then generates IMU odometer data to correct the distortion of the point cloud, thus optimizing the 3D mapping process. After completing the point cloud and image space calibration, the LIO-SAM algorithm is combined with the acquired semantic information to construct a global semantic map of the track.
[0009] S4. Track global semantic map optimization: The track global semantic map is optimized through statistical filtering algorithm and plane fitting algorithm RANSAC;
[0010] S5. Combined positioning of track inspection: On the optimized global semantic map of the track, the sleeper number is used as the global positioning reference to constrain the local motion error between the sleepers, thereby realizing the combined positioning of track inspection with multi-source information fusion.
[0011] Preferably, in step S1, the track image is segmented using the dilated convolution of DeepLabV3+, and the formula is expressed as follows:
[0012]
[0013] Where y[i1] is the i1th element of the output feature map, w[j] is the weight in the convolution kernel, and j is the position in the convolution kernel. x[i1+r·j] is the i1+r·jth element in the input signal, r is the dilation rate, which indicates the jump length of the convolution kernel on the input signal. f is the size of the convolution kernel, which indicates the number of elements in the convolution kernel.
[0014] Preferably, in step S2, let the laser radar coordinate system be a point p l =[x l ,y l ,z l ] T , after the camera internal parameter K, rotation matrix Translation Matrix After the distortion parameters are obtained, it is converted to the pixel coordinate system to obtain Represents the pose transformation matrix of the laser radar and industrial camera. The specific conversion relationship is:
[0015]
[0016] The pixel coordinates p" corresponding to the n1 pairs of laser radar points are compared with the calculated pixel coordinates The residual constraint equation is constructed by the distance difference between the point pairs, and the external parameter is solved by the method of least squares iterative optimization. e1 is the corresponding residual, and the formula is expressed as follows:
[0017]
[0018] Preferably, in step S3, the edge features and plane features extracted at time point i2 are and Then the lidar frame at time point i2 is Then, based on the extracted feature points, constraint relationships are constructed, and keyframe strategies are used to optimize registration and relative transformation calculations. Finally, the point cloud is registered to the global map, and a sliding window method is used to create a point cloud map containing the most recent fixed number of LiDAR scan data. The details are as follows:
[0019] By extracting the most recent n2 sub-keyframes Then use the transforms associated with them Convert it to world frame The converted sub-keyframes are merged together to form a voxel map in is the edge voxel map, is a planar voxel map;
[0020] Let the new frame scanned by LiDAR be Motion matrix estimated by IMU Will Convert from coordinate system B to coordinate system W to obtain Then in the edge voxel map and planar voxel maps Find the corresponding relationship between its edges or planes;
[0021] The distance between a feature and its corresponding edge or plane feature can be calculated using the following formula:
[0022]
[0023] Among them, k, u, v, and w are feature indices in the corresponding sets.
[0024] for The edge features in In terms of and yes The two points that form the corresponding edge line. Plane features in In terms of and yes The three points that constitute the corresponding surface point.
[0025] Finally, the Gauss-Newton method is used to minimize the following residual model to solve the optimal transformation, where e2 is the corresponding residual, as shown in the formula:
[0026]
[0027] Finally, we can get the state node and The relative transformation matrix between That is, the lidar measurement factor for the following two postures, the formula is as follows:
[0028]
[0029] Preferably, in step S4, the following is specifically included:
[0030] S41, let the initial point cloud data set S = {p1, p2, p3…, p m}, where each point For the midpoint of S To any point p r =(x r ,y r ,z r ) is calculated using the following formula:
[0031]
[0032] Next, set a neighborhood a for each point and calculate the average distance θ from the point to all points in its neighborhood. The formula is as follows:
[0033]
[0034] After calculating the average distance of all points, calculate the mean μ and standard deviation σ of these distances, the formula is as follows:
[0035]
[0036] Then, a threshold interval is set as [μ-λσ,μ+λσ], and the average distance θ of each point neighborhood a is checked to see if it falls within this threshold interval. If so, the point is retained; otherwise, it is considered an outlier and removed; finally, all the retained points form a new point cloud dataset J = {p1, p2, p3…, p j};
[0037] S42, randomly select a sampling subset N1 from the filtered point cloud data, and assume that these data are all inliers, and then calculate the model parameters; then, use other points in the data set to verify the estimated model parameters, and use a set maximum threshold to determine whether each data point is an inlier; after a certain number of iterations, select the model containing the most inliers, and the termination condition of the iteration is as follows:
[0038]
[0039] Where I is the maximum number of iterations; s is the proportion of internal points in the data, which is continuously updated with iterations; and P is the confidence condition.
[0040] Preferably, in step S5, the following is specifically included:
[0041] S51, using KDE method and peak detection to complete sleeper position detection and counting;
[0042] Suppose there are n3 independent and identically distributed sample data They are taken from the continuous function f(y) of the unknown probability distribution, where y∈R, let is the kernel density estimation function of f(y), The calculation formula is as follows:
[0043]
[0044] Where h is the bandwidth, which is used to control the smoothing shape of the kernel density function; K(·) is the kernel function, which takes the data value and bandwidth of each sample data as parameters; for different sample data, the corresponding kernel function is calculated respectively, and then the obtained n3 kernel functions are linearly superimposed and averaged to obtain the final kernel density estimation function;
[0045] S52. After completing the sleeper position detection and counting using the KDE method and peak detection, the position coordinate L of the track inspection data is expressed using four parameters, namely, the starting point coordinate value X, the number of sleeper main points N2 that have been passed from the starting point to the current position of the track inspection equipment, the sleeper spacing d', and the distance l' that the track inspection equipment moves between locally adjacent sleepers; based on these four parameters, the position coordinate L of the track inspection data is calculated using the following formula: L = X + N2 × d' + l'.
[0046] The beneficial effects of the present invention are as follows: the present invention utilizes the constructed semantic map to visualize the global sleeper positioning information, uses the sleeper number as the global positioning reference, constrains the local motion error between the sleepers, and realizes track inspection combined positioning with multi-source information fusion, thereby obtaining a more robust and globally accurate positioning result. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic diagram of the steps of the method of the present invention;
[0048] Figure 2 This is a schematic diagram of the positioning of the track inspection assembly of the present invention;
[0049] Figure 3 Schematic diagram of the semantic map constructed for the present invention;
[0050] Figure 4 This is a schematic diagram of the detection results of the kernel density estimation KDE algorithm of the present invention;
[0051] Figure 5 It is a schematic diagram of the error comparison results of the combined positioning method and the local positioning method of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] Track inspection positioning algorithms can be divided into local positioning, global positioning, and combined positioning that has both. In the research on track inspection positioning, the method of locating the track inspection position with the help of a local motion model is relatively common. The sensors commonly used in the local positioning algorithm include odometers and inertial navigation systems. These sensors do not rely on external environmental information and have high accuracy in a short time. However, the cumulative errors generated by these sensors during the mileage positioning process can easily lead to the problem of misalignment between multi-cycle measurement data. In contrast, the global positioning algorithm only relies on the position information of the sleepers, so no cumulative errors will be generated over time. However, the discontinuity of the sleepers makes it impossible to obtain accurate position information within the sleeper interval. Combined positioning is a method that combines global and local positioning, and the positions obtained by the two methods are integrated and complement each other's advantages. The present invention uses the sleeper number as the global positioning reference, constrains the local motion error between the sleepers, and realizes the track inspection combined positioning of multi-source information fusion, thereby obtaining a more robust and globally accurate positioning result.
[0054] The present invention provides a technical solution: a combined positioning method for track inspection based on semantic maps, such as Figure 1 and Figure 2 As shown, the following steps are included:
[0055] S1. Track image semantic segmentation: Use the dilated convolution of DeepLabV3+ to segment the track image and obtain the semantic label of each pixel;
[0056] S2, point cloud and image space calibration: obtain point cloud frame and camera frame data, synchronize the data, and then map the obtained semantic labels to the point cloud data to complete the point cloud and image space calibration;
[0057] S3. Construction of global semantic map of track: The LIO-SAM algorithm estimates the IMU data to determine the movement posture and direction of the device, and then generates IMU odometer data to correct the distortion of the point cloud, thus optimizing the 3D mapping process. After completing the point cloud and image space calibration, the LIO-SAM algorithm is combined with the acquired semantic information to construct a global semantic map of the track.
[0058] S4. Track global semantic map optimization: The track global semantic map is optimized through statistical filtering algorithm and plane fitting algorithm RANSAC;
[0059] S5. Combined positioning of track inspection: On the optimized global semantic map of the track, the sleeper number is used as the global positioning reference to constrain the local motion error between the sleepers, thereby realizing the combined positioning of track inspection with multi-source information fusion.
[0060] Furthermore, in step S1, the track image is segmented using the dilated convolution of DeepLabV3+, and the formula is expressed as follows:
[0061]
[0062] Where y[i1] is the i1th element of the output feature map, x[j] is the weight in the convolution kernel, and j is the position in the convolution kernel. x[i1+r·j] is the i1+r·jth element in the input signal, and r is the dilation rate, which indicates the jump length of the convolution kernel on the input signal. f is the size of the convolution kernel, which indicates the number of elements in the convolution kernel.
[0063] Furthermore, in step S2, an improvement is made based on the LIO-SAM algorithm by introducing a semantic projection model. After acquiring the point cloud frame and camera frame data, the data is first processed synchronously, and then the semantic segmentation information acquired in the image is projected into the point cloud data.
[0064] Suppose a point p in the laser radar coordinate system l =[xl ,y l ,z l ] T , after the camera internal parameter K, rotation matrix Translation Matrix After the distortion parameters are obtained, it is converted to the pixel coordinate system to obtain Represents the pose transformation matrix of the laser radar and industrial camera. The specific conversion relationship is:
[0065]
[0066] The pixel coordinates p" corresponding to the n1 pairs of laser radar points are compared with the calculated pixel coordinates The residual constraint equation is constructed by the distance difference between the point pairs, and the external parameter is solved by the method of least squares iterative optimization. e1 is the corresponding residual, and the formula is expressed as follows:
[0067]
[0068] Furthermore, in step S3, the LIO-SAM algorithm determines the movement posture and direction of the device by estimating the IMU data, and then generates IMU odometer data to correct the distortion of the point cloud, thereby optimizing the 3D mapping process.
[0069] Suppose the edge features and plane features extracted at time point i2 are and Then the lidar frame at time point i2 is Then, based on the extracted feature points, constraint relationships are constructed, and keyframe strategies are used to optimize registration and relative transformation calculations. Finally, the point cloud is registered to the global map, and a sliding window method is used to create a point cloud map containing the most recent fixed number of LiDAR scan data. The details are as follows:
[0070] By extracting the most recent n2 sub-keyframes Then use the transforms associated with them Convert it to world frame The converted sub-keyframes are merged together to form a voxel map in is the edge voxel map, is a planar voxel map;
[0071] Let the new frame scanned by LiDAR be Motion matrix estimated by IMU Will Convert from coordinate system B to coordinate system W to obtain Then in the edge voxel map and planar voxel maps Find the corresponding relationship between its edges or planes;
[0072] The distance between a feature and its corresponding edge or plane feature can be calculated using the following formula:
[0073]
[0074] Among them, k, u, v, and w are feature indices in the corresponding sets.
[0075] for The edge features in In terms of and yes The two points that form the corresponding edge line. Plane features in In terms of and yes The three points that constitute the corresponding surface point.
[0076] Finally, the Gauss-Newton method is used to minimize the following residual model to solve the optimal transformation, where e2 is the corresponding residual, as shown in the formula:
[0077]
[0078] Finally, we can get the state node and The relative transformation matrix between That is, the LiDAR measurement factor for the following two postures.
[0079]
[0080] This method uses a sliding window to generate a point cloud map containing a fixed number of frames at the most recent moment. The LIO-SAM algorithm can provide robust state estimation and map construction by combining IMU pre-integration and lidar odometer, such as Figure 3 As shown, in the semantic map, rails, sleepers, trajectory points obtained by local positioning method and sleeper main points obtained by calculation are marked.
[0081] Furthermore, in step S4, since the surface of the track plate in reality is not flat, there is a lot of noise in the measurement data. In order to eliminate the noise introduced by equipment, environment and other factors, data filtering becomes a necessary step. Statistical filtering algorithm, which is a statistical filtering technology, performs well in removing outliers. The specific process includes the following:
[0082] S41, let the initial point cloud data set S = {p1, p2, p3…, p m}, where each point For the midpoint of S To any point p r =(x r ,y r ,z r ) is calculated using the following formula:
[0083]
[0084] Next, set a neighborhood a for each point and calculate the average distance θ from the point to all points in its neighborhood. The formula is as follows:
[0085]
[0086] After calculating the average distance of all points, calculate the mean μ and standard deviation σ of these distances, the formula is as follows:
[0087]
[0088] Then, a threshold interval is set as [μ-λσ,μ+λσ], and the average distance θ of each point neighborhood a is checked to see if it falls within this threshold interval. If so, the point is retained; otherwise, it is considered an outlier and removed; finally, all the retained points form a new point cloud dataset J = {p1, p2, p3…, p j};
[0089] S42, randomly select a sampling subset N1 from the filtered point cloud data, and assume that these data are all inliers, and then calculate the model parameters; then, use other points in the data set to verify the estimated model parameters, and use a set maximum threshold to determine whether each data point is an inlier; after a certain number of iterations, select the model containing the most inliers, and the termination condition of the iteration is as follows:
[0090]
[0091] Where I is the maximum number of iterations; s is the proportion of internal points in the data, which is continuously updated with iterations; and P is the confidence condition.
[0092] Furthermore, in step S5, since the intervals between the sleepers on the track plate are fixed and their geometric shapes vary significantly, the point cloud data will show obvious clustering characteristics at the sleeper positions in the generated semantic map. Based on the fact that the point cloud density changes from small to large and then to small when passing through the sleepers during the track inspection process, the kernel density estimation (KDE) can be combined with the peak detection technology to accurately determine the number of sleepers passed by the detection system. KDE is a non-parametric probability density estimation method that is suitable for situations where the distribution of observed data is unknown, such as Figure 4 As shown, the curve represents the detection result of the kernel density estimation (KDE) algorithm. By observing this curve, it can be found that the curve shows a specific change pattern at the location where the sleeper appears. Specifically, whenever the sleeper appears, the curve will first rise locally and then drop rapidly, and these two changes appear alternately. In order to capture the overall change trend of the data in the window, the present invention uses the peak value as the feature to identify the sleeper, and the dots in the figure represent the sleeper position determined by peak detection. In addition, the present invention also sets a sliding window to process the data in the window so as to more accurately obtain the location information of the sleeper. It can be clearly seen from the figure that the track inspection equipment has passed the distance of 8 sleepers. The true positioning distance is 5 meters, while the actual positioning distance is 5.01 meters, and the global positioning error is 0.20%. This shows that the positioning error is effectively limited to the range between the sleepers. It does not make any assumptions about the data distribution, but models the probability density function based on the observed data itself. Specifically includes the following:
[0093] S51, using KDE method and peak detection to complete sleeper position detection and counting;
[0094] Suppose there are n3 independent and identically distributed sample data They are taken from the continuous function f(y) of the unknown probability distribution, where y∈R, let is the kernel density estimation function of f(y), The calculation formula is as follows:
[0095]
[0096] Where h is the bandwidth, which is used to control the smoothing shape of the kernel density function; K(·) is the kernel function, which takes the data value and bandwidth of each sample data as parameters; for different sample data, the corresponding kernel function is calculated respectively, and then the obtained n3 kernel functions are linearly superimposed and averaged to obtain the final kernel density estimation function;
[0097] S52. After completing the sleeper position detection and counting using the KDE method and peak detection, the position coordinate L of the track inspection data is expressed using four parameters, namely, the starting point coordinate value X, the number of sleeper main points N2 that have been passed from the starting point to the current position of the track inspection equipment, the sleeper spacing d', and the distance l' that the track inspection equipment moves between locally adjacent sleepers; based on these four parameters, the position coordinate L of the track inspection data is calculated using the following formula: L = X + N2 × d' + l'.
[0098] like Figure 5 As shown, Figure 5 The error comparison results of the combined positioning and local positioning methods in the indoor experiment are shown. In the figure, the x-axis represents the number of sleepers passed, and the y-axis represents the error value of the positioning method. By observing the chart, it can be seen that before passing the first sleeper, since the combined positioning method completely relies on the local positioning data, the errors generated by the two methods are consistent. However, as the number of sleepers passed by the track inspection equipment increases, the error of the local positioning method gradually increases due to the cumulative error. In contrast, the error of the combined positioning method remains stable and fluctuates in the range of -0.02 to 0.02 meters. As shown in Table 1:
[0099] Table 1 Error statistics of track inspection positioning
[0100] Evaluation indicators Combined positioning method Local positioning method MAX 0.032 0.072 RMSE 0.011 0.030
[0101] Table 1 lists the error statistics of track inspection positioning. According to the analysis results, the combined positioning method exhibits stable maximum error and root mean square error throughout the process, and its accuracy has been significantly improved compared with the local positioning method.
[0102] The present invention uses the sleeper number as a global positioning reference, constrains the local motion error between sleepers, and realizes track inspection combined positioning with multi-source information fusion, thereby obtaining a more robust and globally accurate positioning result.
[0103] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A combined positioning method for track inspection based on semantic maps, characterized in that: The steps include: S1. Track image semantic segmentation: Use the dilated convolution of DeepLabV3+ to segment the track image and obtain the semantic label of each pixel; S2, point cloud and image space calibration: obtain point cloud frame and camera frame data, synchronize the data, and then map the obtained semantic labels to the point cloud data to complete the point cloud and image space calibration; S3. Construction of global semantic map of track: The LIO-SAM algorithm estimates the IMU data to determine the movement posture and direction of the device, and then generates IMU odometer data to correct the distortion of the point cloud, thus optimizing the 3D mapping process. After completing the point cloud and image space calibration, the LIO-SAM algorithm is combined with the acquired semantic information to construct a global semantic map of the track. S4. Track global semantic map optimization: The track global semantic map is optimized through statistical filtering algorithm and plane fitting algorithm RANSAC; S5. Combined positioning of track inspection: On the optimized global semantic map of the track, the sleeper number is used as the global positioning reference to constrain the local motion error between the sleepers, thereby realizing the combined positioning of track inspection with multi-source information fusion.
2. The track inspection combined positioning method based on semantic map according to claim 1 is characterized in that: In step S1, the track image is segmented using the dilated convolution of DeepLabV3+, and the formula is as follows: Where y[i1] is the o1th element of the output feature map, w[j] is the weight in the convolution kernel, and j represents the position in the convolution kernel. x[i1+r·j] is the i1+r·jth element in the input signal, r is the hole rate, which represents the jump length of the convolution kernel on the input signal. f is the size of the convolution kernel, which represents the number of elements in the convolution kernel.
3. The track inspection combined positioning method based on semantic map according to claim 1 is characterized in that: Suppose a point p in the laser radar coordinate system l =[x l ,y l ,z l ] T , after the camera internal parameter K, rotation matrix Translation Matrix After the distortion parameters are obtained, it is converted to the pixel coordinate system to obtain Represents the pose transformation matrix of the laser radar and industrial camera. The specific conversion relationship is: The pixel coordinates p" corresponding to the n1 pairs of laser radar points are compared with the calculated pixel coordinates The residual constraint equation is constructed by the distance difference between the point pairs, and the external parameter is solved by the method of least squares iterative optimization. e1 is the corresponding residual, and the formula is expressed as follows:
4. The track inspection combined positioning method based on semantic map according to claim 1 is characterized in that: In step S3, the edge features and plane features extracted at time point i2 are assumed to be and Then the lidar frame at time point i2 is Then, based on the extracted feature points, constraint relationships are constructed, and keyframe strategies are used to optimize registration and relative transformation calculations. Finally, the point cloud is registered to the global map, and a sliding window method is used to create a point cloud map containing the most recent fixed number of LiDAR scan data. The details are as follows: By extracting the most recent n2 sub-keyframes Then use the transforms associated with them Convert it to world frame The converted sub-keyframes are merged together to form a voxel map in is the edge voxel map, is a planar voxel map; Let the new frame scanned by LiDAR be Motion matrix estimated by IMU Will Convert from coordinate system B to coordinate system W to obtain Then in the edge voxel map and planar voxel maps Find the corresponding relationship between its edges or planes; The distance between a feature and its corresponding edge or plane feature is calculated using the following formula: Among them, k, u, v, w are feature indices in the corresponding set; for The edge features in In terms of and yes The two points that form the corresponding edge line in Plane features in In terms of and yes The three points that constitute the corresponding surface point; Use the Gauss-Newton method to minimize the following residual model to solve the optimal transformation, where e2 is the corresponding residual, as shown in the formula: Finally, we get the status node and The relative transformation matrix between That is, the lidar measurement factor for the following two postures is shown in the following formula:
5. The track inspection combined positioning method based on semantic map according to claim 1 is characterized in that: In step S4, the specific steps include: S41, let the initial point cloud data set S = {p1, p2, p3…, p m }, where each point For the midpoint of S To any point p r =(x r ,y r ,z r ) is calculated using the following formula: Next, set a neighborhood a for each point and calculate the average distance θ from the point to all points in its neighborhood. The formula is as follows: After calculating the average distance of all points, calculate the mean μ and standard deviation σ of these distances, the formula is as follows: Then, a threshold interval is set as [μ-λσ,μ+λσ], and the average distance θ of each point neighborhood a is checked to see if it falls within this threshold interval. If so, the point is retained; otherwise, it is considered an outlier and removed; finally, all the retained points form a new point cloud dataset J = {p1, p2, p3…, p j }; S42, randomly select a sampling subset N1 from the filtered point cloud data, and assume that these data are all inliers, and then calculate the model parameters; then, use other points in the data set to verify the estimated model parameters, and use a set maximum threshold to determine whether each data point is an inlier; after a certain number of iterations, select the model containing the most inliers, and the termination condition of the iteration is as follows: Where I is the maximum number of iterations; s is the proportion of internal points in the data, which is then continuously updated with iterations; P is the confidence condition.
6. The track inspection combined positioning method based on semantic map according to claim 1 is characterized in that: In step S5, the specific steps include: S51, using KDE method and peak detection to complete sleeper position detection and counting; Suppose there are n3 independent and identically distributed sample data They are taken from the continuous function f(y) of the unknown probability distribution, where y∈R, let is the kernel density estimation function of f(y), The calculation formula is as follows: Where h is the bandwidth, which is used to control the smoothing shape of the kernel density function; K(·) is the kernel function, which takes the data value and bandwidth of each sample data as parameters; for different sample data, the corresponding kernel function is calculated respectively, and then the obtained n3 kernel functions are linearly superimposed and averaged to obtain the final kernel density estimation function; S52. After completing the sleeper position detection and counting using the KDE method and peak detection, the position coordinate L of the track inspection data is expressed using four parameters, namely, the starting point coordinate value X, the number of sleeper main points N2 that have been passed from the starting point to the current position of the track inspection equipment, the sleeper spacing d', and the distance l' that the track inspection equipment moves between locally adjacent sleepers; based on these four parameters, the position coordinate L of the track inspection data is calculated using the following formula: L = X + N2 × d' + l'.
Citation Information
Patent Citations
Railway track assets survey system
CN108974044A
Mapping and positioning method and system based on laser radar and engineering vehicle
CN116358525A
Visual SLAM method based on deep learning in dynamic environment
CN116563340A
Cited By
Construction and application method of global descriptor for detecting tunnel segment leakage
CN120147231A
Subway protection area intelligent patrol system based on unmanned aerial vehicle
CN120763821A
An unmanned aerial vehicle-based intelligent patrol system for a subway protection zone
CN120763821B
