A deep learning location recognition algorithm based on LiDAR
Through feature point extraction and the multi-head attention mechanism of the Point Transformer module, the problem of difficulty in balancing the accuracy and speed of point cloud position recognition technology in dynamic environments is solved, and efficient point cloud position recognition is achieved, which is suitable for practical scenarios.
Patent Information
- Application Number
- CN202210656594.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-10
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for point cloud-based position recognition technology in dynamic environments to combine high accuracy, speed, and low computational load at the same time. Existing methods are slow when the detection accuracy is high. On the contrary, the computational load is small but the speed is not enough, making it difficult to apply to practical scenarios.
The feature point extraction module is used to reduce the size of the point cloud, and the Point Transformer module is designed to use a multi-head attention mechanism to control the calculation amount, improve the accuracy and speed of point cloud position recognition, and enhance the model expression ability through feature point extraction and Multi Head Attention and Feature Attention.
It achieves high-precision and high-speed point cloud position recognition in dynamic environments, while reducing the amount of network calculations and is suitable for practical scenarios.
Smart Images

Figure CN117253138B_ABST
Abstract
Description
Technical Field
[0001] This paper invents a deep learning location recognition algorithm based on lidar to improve the accuracy and speed of location recognition. Technical Background
[0002] In recent years, some vision-based position recognition methods have been proposed, but visual sensors are highly sensitive to light and are difficult to use in dynamic environments. As a reliable alternative, 3D lidar can obtain accurate and detailed three-dimensional information, which is inherently unaffected by changes in lighting. However, position recognition methods based on 3D lidar will not achieve an effective and robust detection effect due to environmental factors such as sensor occlusion and viewpoint changes.
[0003] According to recent academic research, the accuracy and robustness of point cloud-based position recognition technology in dynamic environments are difficult to guarantee due to environmental factors such as sensor occlusion and viewpoint changes. The network models of existing methods with high detection accuracy are too large, and the detection speed of methods with small network models is not fast enough, making them difficult to use in real scenarios. To solve the above problems, we combine feature point extraction and Transformer to propose an efficient and lightweight point cloud position recognition learning network. Summary of the invention
[0004] Point cloud position recognition technology in dynamic environments is difficult to simultaneously have the advantages of high detection accuracy, fast detection speed and small model calculation amount.
[0005] This paper uses the feature point extraction module to greatly reduce the point cloud scale and retain data features, so as to alleviate the impact of environmental changes on data collection. The Point Transformer module is designed to introduce a multi-head attention that can promote local information exchange to control the amount of calculation and enhance the expressiveness of the model, so as to improve the accuracy and speed of point cloud position recognition and reduce the amount of network calculation.
[0006] A deep learning location recognition algorithm based on laser radar, the method steps are as follows:
[0007] Step 1: First, calculate the horizontal index and scan index of each point in the point cloud data obtained by the lidar; the formulas are:
[0008]
[0009]
[0010] Among them, x, y and z are the three-dimensional coordinate values of each point; δ is the absolute value of the angle that the laser radar can scan under the horizontal axis;
[0011] Step 2: Loop through each point and use the value of r i The sub-point cloud S composed of five points in front and behind with the same scan index and the closest horizontal index calculates the curvature value of the point; if the curvature value of the point is less than a certain threshold, it is discarded; finally, the feature point is obtained; the formula is expressed as:
[0012]
[0013] C i <σ (4)
[0014] Step 3: The feature points are copied into three equal-sized data K, Q, and V and processed by Multi Head Attention to obtain the local descriptor; the formula is as follows:
[0015] MultiHead(Q,K,V)=Concat(head1,...,head h )W O (4)
[0016]
[0017] Among them, W i Q , W i K and W i V ∈R D×(D / h) ,W O ∈R D×D , are all learnable parameter matrices;
[0018] Step 4: Aggregate the global descriptor by assigning weights to local descriptors through Feature Attention; the formula is as follows:
[0019]
[0020] Where N is the number of local descriptors, u is the local descriptor, and J is the learnable matrix parameter;
[0021] Step 5: Obtain the corresponding scene similarity by comparing the global descriptor similarity; the formula is described as:
[0022]
[0023] where ω [1:s] ∈R D×D×S , α∈R 2D×S is a learnable matrix parameter, b∈R S is a learnable vector parameter, and S is the dimension of the global descriptor.
[0024] Step 6: In the testing phase, step 5 is the end. In the training phase, the scene similarity output is obtained and then returned to the input to compare the true value. By comparing the difference with the true value, the weight parameters are modified again in the next training to enable the model to have the learning function.
[0025] The creativity of this paper is mainly reflected in the following aspects: the redundant original point cloud is first subjected to feature point extraction, and meaningless points are removed, which greatly reduces the point cloud scale and thus reduces the amount of calculation; the Point Transformer module learns the local features of the feature points well and aggregates discriminative global descriptors. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Instruction Manual Figure 1 It is the overall flow chart of the present invention
[0027] Instruction Manual Figure 2 This is a flowchart of Muti-Head Attention
[0028] Instruction Manual Figure 3 This is the flow chart of Feature Attention
[0029] Instruction Manual Figure 4 This is the flow chart of Feature Similarity Network
[0030] Instruction Manual Figure 5 This is a diagram of some experimental results Specific implementation plan
[0031] like Figure 1 As shown in the overall process, this paper invents a deep learning location based on laser radar
[0032] Identification algorithm.
[0033] First, the point cloud data extracted from the two paired scenes is processed by the Feature Point Extraction module to obtain a sub-point cloud with rich features. Then, the local descriptor F is extracted by the Multi-Head Attention layer in the Point Transformer module. L , the Feature Attention layer aggregates the different global descriptors. Finally, the two paired global descriptors e1 and e2 are passed to the Feature Similarity Network module to obtain the scene similarity. The specific steps include:
[0034] Use a lidar sensor to collect raw point clouds in your scene.
[0035] The original point cloud is first projected into a range image and then the scan index and horizontal index of each point are calculated.
[0036] Loop through each point in the original point cloud, and calculate the curvature value of the point through the sub-point cloud S composed of the five points before and after the point that are at the same scan index and have the closest horizontal index. If the curvature value of the point is less than a certain threshold, it will be discarded; what remains in the end is the feature point;
[0037] like Figure 2 As shown in the figure, a linear projection layer is first used to map the feature points into three equal parts, represented by K, Q and V; then K, Q and V are each divided into h parts and passed into Multi Head Attention for local descriptor extraction.
[0038] like Figure 3 As shown in the figure, first, the matrix J can be learned and multiplied with the average value of all local descriptors to construct a global context to provide global structure and feature information; then the global context is multiplied by the local descriptor, and the sigmoid function is used to ensure that the obtained weight is in [0, 1], and finally the weight is assigned to the local descriptor and the final global descriptor is obtained by summing up.
[0039] like Figure 4 As shown in Figure 1, the Feature Similarity Network is used to obtain the similarity of two global descriptors, and then the similarity of the scenes is obtained.
[0040] like Figure 5 As shown in the figure, our algorithm can distinguish the subtle differences between the scenes well and give appropriate scores for the similarity between the two scenes; Scene 1 and the compared scene are very similar both in overall and details, so it gets a higher similarity score, while Scene 2 is completely opposite; although Scene 3 is similar to the compared scene as a whole, it is different in details, so it gets a lower similarity score.
Claims
1. A deep learning location recognition algorithm based on laser radar, characterized by The following steps, Step 1: First, calculate the horizontal index and scanindex of each point in the point cloud data obtained by the lidar; the formulas are: Among them, x, y and z are the three-dimensional coordinate values of each point; δ is the absolute value of the angle that the laser radar can scan under the horizontal axis; Step 2: Loop through each point and use the value of r i The sub-point cloud S composed of five points in front and behind with the same scan index and the closest horizontal index calculates the curvature value of the point; if the curvature value of the point is less than a certain threshold, it is discarded; finally, the feature point is obtained; the formula is expressed as: C i <σ (4) Step 3: The feature points are copied into three equal-sized data K, Q, and V and processed by Multi Head Attention to obtain the local descriptor; the formula is as follows: MultiHead(Q,K,V)=Concat(head1,...,head h )W O (4) Among them, W i Q , W i K and W i V ∈R D×(D / h) ,W O ∈R D×D , are all learnable parameter matrices; Step 4: Aggregate the global descriptor by assigning weights to local descriptors through Feature Attention; the formula is as follows: Where N is the number of local descriptors, u is the local descriptor, and J is the learnable matrix parameter; Step 5: Obtain the corresponding scene similarity by comparing the global descriptor similarity; the formula is described as: where ω [1:s] ∈R D×D×S , α∈R 2D×S is a learnable matrix parameter, b∈R S is a learnable vector parameter, S is the dimension size of the global descriptor; Step 6: In the testing phase, step 5 is the end. In the training phase, the scene similarity output is obtained and then returned to the input to compare the true value. By comparing the difference with the true value, the weight parameters are modified again in the next training to enable the model to have the learning function.
Citation Information
Patent Citations
Image matching method based on self-attention deep neural network
CN112288011A
Point cloud map creation and scene identification method based on static semantic information
CN112767485A
