Visual SLAM loopback detection method and system in dynamic environment
Through the combination of VLAD feature vectors and IMU motion vectors, the regional weighted matching strategy is used for loop detection, which solves the problem of false triggering and false loopback of visual SLAM loop detection in dynamic environments, improves positioning accuracy and stability, and meets the needs of autonomous driving. real-time needs.
Patent Information
- Application Number
- CN202410847673.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In a dynamic environment, the loopback detection of traditional visual SLAM systems has problems with false triggering and false loopback detection, resulting in a decrease in positioning accuracy and stability. Although existing methods such as the introduction of new feature descriptor algorithms and deep learning methods have been improved, However, it still faces limitations in computing resources and data dependence, making it difficult to meet real-time positioning requirements.
VLAD feature vector is used to extract inter-frame motion vectors combined with IMU data, a regional weighted matching strategy is introduced for loop detection, image feature points and descriptors are extracted through ORB, BRIEF and K-means algorithms, and inter-frame motion vectors are obtained through integral operations. Enhance the accuracy and robustness of loop closure detection.
It significantly improves the accuracy and robustness of visual SLAM loopback detection in dynamic environments, reduces false positive and false negative detection results, improves positioning accuracy and mapping stability, and meets the real-time response needs of application scenarios such as autonomous driving.
Smart Images

Figure CN118865295A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving real-time positioning and mapping, and in particular to a visual SLAM loop detection method and system in a dynamic environment. Background Art
[0002] Dynamic SLAM (Simultaneous Localization and Mapping) involves real-time relocalization and mapping in dynamic environments. These dynamic environments refer to challenging real-world autonomous driving environments, such as urban roads with heavy traffic and intersections with numerous pedestrians and erratic movement. Traditional SLAM methods often suffer from relocalization errors and mapping failures in these challenging environments, leading to the failure of the entire SLAM task. However, the rapid advancement of sensor and machine learning technologies in recent years has significantly impacted research on dynamic SLAM. Researchers are actively exploring the use of various sensors and imaging technologies to identify, track, and determine the dynamic properties of targets in order to address the SLAM problem in dynamic environments. Based on the type of sensor, SLAM methods can be categorized as vision-based SLAM, lidar-based SLAM, and multi-sensor fusion-based SLAM.
[0003] Visual SLAM solutions include monocular, binocular, RGB-D camera and other sensors. Because these sensors are relatively cheap, they are currently a hot topic in the SLAM research field.
[0004] The visual SLAM infrastructure consists of three key components: front-end visual odometry, back-end optimization, and loop closure detection. The front-end visual odometry and loop closure detection are most affected by dynamic environments. The impact of dynamic environments on back-end optimization stems primarily from unreliable front-end and loop closure results. Therefore, researchers focusing on visual dynamic SLAM have focused on these two components.
[0005] Loopback detection is a key research topic in the field of SLAM. It is crucial for ensuring the accuracy and robustness of SLAM systems. In particular, loopback detection plays an indispensable role in the field of visual SLAM. Visual SLAM primarily relies on visual sensors for environmental perception. However, in practical applications, the presence of non-static objects in the environment, such as moving vehicles and walking people, often interferes with traditional loopback detection algorithms, leading to false loopback detections. This can render traditional loopback detection algorithms such as DBOW, FBOW, and FAB-MAP ineffective, resulting in failure or false triggering of back-end optimization, and reduced trajectory estimation accuracy. Although front-end dynamic object removal methods, such as DS-SLAM and YOLO-SLAM, have been widely adopted to mitigate the impact of dynamic objects, they still face challenges in the loopback detection stage. While these methods' removal strategies help reduce the interference of dynamic objects, they often come at the expense of image matching. This reduced matching can lead to a performance degradation of the loopback detection algorithm, which in turn affects the overall accuracy and stability of the SLAM system. In recent years, researchers have actively explored new approaches to address these issues. Among them, the introduction of new feature descriptor algorithms and deep learning methods is considered an effective approach to achieving more robust image matching and efficient loop closure detection. By designing and applying more discriminative and stable feature descriptors, it is possible to more accurately extract and match static image features in dynamic environments, thereby improving the accuracy of loop closure detection. Furthermore, the rapid development of deep learning technology has opened up new possibilities for loop closure detection. By training deep learning models, they can be equipped with the ability to identify and exclude dynamic objects, thereby achieving more accurate loop closure detection. These models can learn from large amounts of data and extract useful features to improve the robustness and efficiency of loop closure detection. Specific improvement methods can be divided into the following two categories.
[0006] The first category involves loop detection using new feature descriptor algorithms. This type of algorithm requires the design of a feature extractor and feature descriptor based on two-dimensional images. The feature extractor is used to identify which pixels in the image are feature points, and the descriptor is used to match identical feature points between two images. The most classic descriptor method is the DBOW bag-of-words model. This model utilizes corner detection and the BRIEF feature descriptor algorithm to calculate the matching probability between two images based on the matching relationship between each feature point in the image. Its advantage is the establishment of a feature dictionary and high computational efficiency. However, because it describes each feature point without considering the structural relationship between feature points, it fails when there is partial motion in the same scene. A similar method is the Scancontext algorithm. Unlike the bag-of-words model, the Scancontext descriptor algorithm is a global descriptor algorithm. It maps the three-dimensional points within a keyframe into two-dimensional space using a non-histogram method, making its feature description global. The advantage of the Scan context descriptor algorithm lies in its global description concept, which can describe the relationships between feature points in an image. However, its disadvantage is that this global description method is sensitive to local changes in details, requiring a suitable threshold to qualitatively judge the matching results. However, the unknown scale of the image's changing regions makes this threshold setting ineffective. A subsequent upgraded version of the Scan context descriptor algorithm, Scan context++, optimized the feature point retrieval process but did not address the aforementioned issues. Imaging lidar is a loop closure detection method that integrates vision and lidar. Its principle is derived from the feature point description method, fusing and calibrating 3D radar feature points with 2D camera feature points. Its advantage is that, due to the integration of lidar data, it can obtain more accurate 3D feature point coordinates. Its disadvantage is that it requires a higher computational cost.
[0007] The second category involves loop closure detection based on deep learning methods. This approach aims to leverage deep learning methods for feature matching during the image matching phase to improve loop closure accuracy. MU Shoukat et al. proposed an innovative monocular visual odometry and loop closure detection method that deeply integrates deep learning techniques and utilizes a deep estimation network to enhance the robustness of visual SLAM systems in complex environments. Features extracted through deep learning possess greater expressiveness and discriminative power, making the system more robust when handling dynamic and challenging scenes. Zhang et al. introduced CNN (convolutional neural network) technology to loop closure detection, using it to identify similarities between images and achieve efficient loop closure detection. CNNs automatically learn and extract hierarchical feature representations from raw images. These features are invariant to changes in illumination and viewpoint, helping to improve loop closure accuracy. Building on CNNs, LoopNet further introduces an attention mechanism, achieving new breakthroughs in loop closure detection. This method uses the attention mechanism to annotate non-dynamic regions in the image and only compares feature points in these regions. This strategy effectively reduces the impact of dynamic environments on system performance and improves the accuracy and stability of loop detection. Deep learning-based loop detection methods have achieved significant performance improvements, but they also face some challenges. First, the training and inference processes of deep learning models usually require a lot of computing resources and time, which to some extent limits their application in real-time visual SLAM systems. Second, the performance of deep learning methods is highly dependent on the quantity and quality of training data. Models trained on limited datasets may not be able to fully generalize to various real-world scenarios. Summary of the Invention
[0008] In order to solve the technical problems in the above background, the present invention proposes a dynamic visual SLAM loop detection method and system based on motion area matching. The technical problem to be solved is to improve the accuracy of visual SLAM loop detection in a dynamic environment while meeting the real-time positioning requirements, thereby improving the overall positioning accuracy and stability of the system.
[0009] To achieve the above object, the present invention provides a visual SLAM loop detection method in a dynamic environment, comprising the following steps:
[0010] VLAD is used to extract feature vectors from images collected in an autonomous driving environment;
[0011] Extract inter-frame motion vectors from IMU data collected in an autonomous driving environment;
[0012] Based on the extracted feature vectors and inter-frame motion vectors, a regional weighted matching strategy is introduced to determine the loop position and complete the loop detection of visual SLAM.
[0013] Preferably, the method for extracting the feature vector includes:
[0014] Use ORB algorithm to extract image feature points;
[0015] Describing the image feature points using the BRIEF descriptor;
[0016] Use K-means clustering algorithm to cluster descriptors;
[0017] The cluster descriptors are described by vectors, and finally a VLAD feature vector is formed.
[0018] Preferably, the method for extracting inter-frame motion vectors includes: obtaining acceleration and angular velocity data between consecutive frames from IMU data, then obtaining rotation and translation vectors through integration operations, and combining the extracted inter-frame motion vectors with the VLAD feature vectors to enhance the accuracy and robustness of loop detection.
[0019] Preferably, the method for completing the loop detection of the visual SLAM includes: comprehensively considering the VLAD feature vector and the inter-frame motion vector, using the regional weighted matching strategy, calculating the similarity between the image sequence and the historical frame in the queue to be matched, and when the continuous frame has a high degree of matching with the historical frame, triggering loop detection to achieve precise positioning.
[0020] The present invention also provides a visual SLAM loop detection system in a dynamic environment, which is used to implement the above method and includes: an image feature vector extraction module, an IMU motion vector extraction module and a region weighted matching module;
[0021] The image feature vector extraction module is used to extract feature vectors from images collected in an autonomous driving environment using VLAD;
[0022] The IMU motion vector extraction module is used to extract inter-frame motion vectors from IMU data collected in an autonomous driving environment;
[0023] The regional weighted matching module is used to introduce a regional weighted matching strategy to determine the loop position based on the extracted feature vector and inter-frame motion vector, thereby completing the loop detection of visual SLAM.
[0024] Preferably, the workflow of the feature vector extraction module includes:
[0025] Use ORB algorithm to extract image feature points;
[0026] Describing the image feature points using the BRIEF descriptor;
[0027] Use K-means clustering algorithm to cluster descriptors;
[0028] The cluster descriptors are described by vectors, and finally a VLAD feature vector is formed.
[0029] Preferably, the workflow of the motion vector extraction module includes: obtaining acceleration and angular velocity data between consecutive frames from the IMU data, then obtaining rotation and translation vectors through integration operations, and combining the extracted inter-frame motion vector with the VLAD feature vector to enhance the accuracy and robustness of loop detection.
[0030] Preferably, the workflow of the detection module includes: comprehensively considering the VLAD feature vector and the inter-frame motion vector, using the regional weighted matching strategy, calculating the similarity between the image sequence and the historical frames in the queue to be matched, and when the continuous frame has a high degree of matching with the historical frame, triggering loop detection to achieve precise positioning.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] The dynamic visual SLAM loop detection method proposed in this paper significantly improves the accuracy and robustness of loop detection in dynamic environments by combining VLAD feature vector extraction with motion vectors from IMU data and introducing a regional weighted matching strategy to determine loop location. This method can effectively perform loop detection in dynamic environments or those after dynamic culling, reducing false positive and false negative detection results, thereby improving positioning accuracy and mapping stability. Furthermore, this technical solution is real-time, meeting the demand for rapid response in application scenarios such as autonomous driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 Schematic diagram of a method flow in an embodiment of the present invention;
[0035] Figure 2 Schematic diagram of the area to be detected according to an embodiment of the present invention;
[0036] Figure 3 Schematic diagram of a loop detection method according to an embodiment of the present invention;
[0037] Figure 4 A schematic diagram of similarity matching probability classification according to an embodiment of the present invention;
[0038] Figure 5 A schematic diagram of a motion region matching method according to an embodiment of the present invention;
[0039] Figure 6 : are camera observation images according to an embodiment of the present invention; wherein (a) is a static image without dynamic objects; (b) and (c) are dynamic images with dynamic objects; (d) is an observation at a three-dimensional spatial position far away from other images; (e) is a processed image corresponding to (b); (f) is a processed image corresponding to (c);
[0040] Figure 7 The experimental diagrams of the embodiment of the present invention for the true positive loop point ablation experiment, where (a)-(f) are respectively Figure 6 (a)-(f) are the corresponding image sequences of 6 frames. DETAILED DESCRIPTION
[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] Example 1
[0044] like Figure 1 FIG. 1 is a flow chart of the method of this embodiment, and the steps include:
[0045] S1. Use VLAD to extract feature vectors from images collected in an autonomous driving environment.
[0046] First, the VLAD local feature descriptor algorithm is used to extract feature vectors of image feature points. The VLAD algorithm, with its unique descriptive style and powerful distinguishing capabilities, provides a foundation for subsequent feature matching. Through the extracted feature vectors, this method can establish stable correspondences between different images, providing a reliable basis for loop closure detection.
[0047] The VLAD algorithm, as a method for image feature description, focuses on integrating local pixel features rather than individual pixel features. This makes it more suitable for dynamic environments than traditional pixel-based feature description algorithms. The VLAD algorithm's implementation involves four steps: extraction, description, clustering, and vector representation.
[0048] The specific steps include:
[0049] S101. Use the ORB algorithm to extract image feature points.
[0050] The ORB feature extraction algorithm is used to extract the feature points in the image, and the feature points to be described as the set P = {P1, P2, P3, ..., P n}. Among them, P i Represents the i-th feature point in the image (i=1,2,3...n).
[0051] S102. Describe the image feature points using the BRIEF descriptor.
[0052] Use the BRIEF feature descriptor to describe the BRIEF operator of a single feature point and get δ i ∈R D , where δ i represents the feature descriptor of the i-th feature point; R represents a set of binary real numbers; D represents the feature extraction dimension of the feature extraction sub-algorithm. The dimension of the ORB feature extraction sub-algorithm used in this embodiment is 128-dimensional. Thus, the description set of the feature descriptor E = {δ1, δ2, ..., δ n}.
[0053] S103. Use K-means clustering algorithm to cluster the descriptors.
[0054] Use the entire description set to perform K-means clustering on the feature points, and get the cluster center denoted as μ k .
[0055] S104. Perform vector description on the cluster descriptors to eventually form a VLAD feature vector.
[0056] In each cluster, the grayscale difference between the cluster center and other feature points in the cluster is recorded, and finally the VLAD descriptor of any image I can be obtained. Where K represents the number of cluster centers.
[0057] At this point, we have successfully extracted the VLAD descriptor for an image. Compared to the traditional BRIEF descriptor algorithm, the VLAD descriptor exhibits significant advantages. Its most notable feature is its ability to determine the overall similarity of images based on the differences between vectors, rather than relying solely on the quantitative relationship of feature matches. This feature enables the assessment of image similarity to move beyond simply focusing on quantitative matches and more comprehensively consider the overall structural and content differences between images. Therefore, when faced with qualitative judgment tasks such as false negatives and false positives, the VLAD descriptor makes it possible to design more scientific similarity algorithms.
[0058] S2. Extract inter-frame motion vectors from IMU data collected in an autonomous driving environment.
[0059] In dynamic vision-based autonomous driving Simultaneous Localization and Mapping (SLAM) systems, due to limitations in camera hardware, loop detection can only be determined based on images within the field of view. This can result in false negatives when the common viewpoint, i.e., matching feature points, is too few due to the camera's field of view. Furthermore, false positives can occur when similar objects, such as windows with identical designs, are observed.
[0060] Based on this, this embodiment proposes an IMU motion description vector matching method. The acceleration and angular velocity data between consecutive frames are obtained from the IMU data. Rotation and translation vectors are then obtained through integration. The extracted inter-frame motion vectors are combined with the VLAD feature vectors to enhance the accuracy and robustness of loop detection. The introduction of IMU data not only provides additional motion information but also helps correct errors and noise in the image data.
[0061] IMU data refers to data from an inertial measurement unit (IMU). An IMU is a combination of sensors that provides real-time data about an object's motion state, including its linear acceleration, angular velocity, and orientation.
[0062] This method requires maintaining a detection area, which is composed of 6 current frame observation images. The inter-frame motion of the detection area is as follows: Figure 2 shown.
[0063] Figure 2 Where k represents the camera image frame, and there are 6 images in the image sequence to be matched. b It represents the motion transformation matrix between two image frames calculated by IMU, and its expression is shown in formula (1):
[0064]
[0065] According to the IMU motion integral formula, the rotation matrix R in formula (1) is b and the translation matrix t b The expression of is shown in formula (2):
[0066]
[0067] Where, Represents the rotation matrix of the k-th frame IMU in the world coordinate system; Represents the translation matrix of the k-th frame IMU in the world coordinate system; ω b (k) represents the angular velocity of the IMU in the world coordinate system of the kth frame; v represents the linear velocity of the IMU; a represents the acceleration; w represents the world coordinate system; Δtime is the time change. Taking a 30Hz camera as an example, Δtime ≈ 0.33s.
[0068] Since the corresponding pose has been obtained according to the odometry at the kth frame, the rotation and translation of the kth frame in formula (2) can be replaced by the odometry pose to reduce the error, as shown in formula (3):
[0069]
[0070] Since R in formula (1) b is a 3-order square matrix, t b It is a 3*1 matrix, so T can be b Transformed into a vector U with 16 dimensions * Because there are 6 pictures, a vector representation similar to the VLAD algorithm is obtained, as shown in formula (4):
[0071]
[0072] Where U k,k+5 Represents the motion description vector of the kth to k+5th image frames; (k=1, 2, 3, 4, 5, 6) represents the motion description of the image corresponding to the k-th frame.
[0073] The two sets of motion description vectors U can be calculated by calculating the cosine value of the angle between the vectors i , U j The similarity of the two methods is obtained, and the similarity probability S(U i , U j ).
[0074] S3. Based on the extracted feature vector and inter-frame motion vector, the region weighted matching strategy is used to determine the loop position and complete the loop detection of visual SLAM.
[0075] Taking the VLAD feature vector and the inter-frame motion vector into comprehensive consideration, the regional weighted matching strategy is used to calculate the similarity between the image sequence and the historical frame in the queue to be matched. When the continuous frame has a high matching degree with the historical frame, loop detection is triggered to achieve precise positioning. Specifically, a regional weighted matching strategy is introduced. By maintaining a queue of 6 frames to be matched, the vector matching degree is compared with the historical frame, and the matching weight is calculated. When high matching degrees appear continuously, it is determined whether the system is in a loop position. The strategy based on dynamic region matching not only takes into account the similarity between the current frame and the historical frame, but also makes full use of the motion information on the continuous image sequence, making loop detection more robust and reliable. The loop detection method is as follows: Figure 3 shown.
[0076] The specific steps include:
[0077] First, this embodiment classifies the similarity matching probability of two images, such as Figure 4 As shown. This embodiment divides the matching results into three intervals according to the similarity matching probability: when the matching probability is in the range of 0.1 to 0.6, it is judged as no match; when the matching probability reaches 0.8 and above, it is judged as a high match; and when the matching probability is between 0.6 and 0.8, it is considered as a low match area. It is worth noting that in a dynamic environment, the false negative problem of loop detection mainly occurs in this low match area. The motion area matching method is as follows Figure 5 shown.
[0078] like Figure 5 As shown in the figure, the current image frame and its previous five frames are selected to form a six-frame sequence to be matched. During the matching process, if a historical image frame is detected that closely matches the sequence to be matched, the loop detection mechanism is immediately triggered. If a low degree of match is detected (low match probability between 0.6 and 0.8), this frame and the six frames following it are taken into consideration and participate in the weighted calculation of the final match probability.
[0079] When performing weighted calculation, the highest matching probability S(V i , V j ) is used as the matching probability of the frame. S(V i , V j ) is calculated as shown in formula (5):
[0080]
[0081] Where, S(V i , V j ) represents two vectors V i 、V jThe matching probability of ; cos(θ) represents the cosine of the angle between the two vectors.
[0082] Through this process, we can obtain a set of matching probabilities for each image in the two image sequences (S1, S2, S3, S4, S5, S6). These probability values reflect the degree of similarity between the frames of the two image sequences. The formula for calculating the matching probability of the two image sequences is shown in formula (6):
[0083]
[0084] Where S MAX It represents the upper limit of the matching probability, which is based on the mutual matching probability between the sequences to be matched. The highest matching probability between the previous and next frames is selected as S MAX .
[0085] So far, the matching probability simI and motion similarity probability S(U i , U j ), the loop detection performed with reference to the above two values is motion region matching. The matching strategy is as follows:
[0086] When simI≥0.8&&S(U i , U j )≥0.3, the two sets of image sequences are judged as positive loop detection, and the positive matching image frames are set as the two frames with the highest matching probability;
[0087] When S(U i , U j )<0.3, it is judged as a serious motion posture mismatch, and simI=0.6;
[0088] When S(U i , U j )>90%&&(70%<simI<80%) is judged as a positive loop detection, and simI=0.8.
[0089] The above motion region matching strategy can significantly improve the recall rate of loop detection, that is, the probability of detecting all true positives in the dataset.
[0090] Example 2
[0091] The advancement of the method of the present invention will be verified below through this example.
[0092] This embodiment uses a single-frame image plus IMU comparison method to demonstrate the practical application effect of the algorithm of this patent. The practical application effect of the algorithm is reflected in two aspects. The first is that when facing a dynamic environment, it can accurately detect the manually marked loop detection points. The second is that when facing a dynamic environment, it has the ability to avoid false positive and false negative loop detection. In view of the above two aspects of the effect display, the following uses the ORB-SLAM loop detection module (based on ORB features and DBOW word bag algorithm) as a comparison algorithm for comparison and display.
[0093] First, four frames of images that can be manually marked as positive or negative loop detection points in the New College public dataset and their first six frames of IMU pose data are taken for image preprocessing to form a positive loop detection image sequence as follows: Figure 6 shown.
[0094] exist Figure 6 (a), (b), and (c) are camera observation images selected from continuous images. Based on the environmental information and the RTK centimeter-level positioning data annotated in the dataset, they can be determined as positive loop detection points. Figure 6 (a) is a static image without dynamic objects. Figure 6 (b) and (c) are dynamic images containing dynamic objects. Figure 6 (e) corresponds to Figure 6 (b) The processed image removes the dynamic pedestrians in the image to simulate the situation where the dynamic features have been removed in the front-end odometry. Figure 6 (f) corresponds to Figure 6 (c) The processed image. Figure 6 (d) is an observation far away from the other images in the three-dimensional space. It is a false loop detection point. However, because it can observe some similar features such as windows on distant buildings, it is compared as a false positive detection point. Since the complete system proposed in this patent has a dynamic rejection function, if Figure 6 (e) and (f) can be combined with Figure 6 (d) The increase in the matching probability of other graphs shows that the method is effective.
[0095] The similarity experiment results using the ORB-SLAM algorithm and the algorithm with local motion description vectors of the present invention are shown in Table 1. In Table 1, rows 1-6 use the ORB-SLAM algorithm, and rows 7-12 use the algorithm of the present invention. The "-" in the table indicates that the data has been given and will not be repeated. The rows and columns in Table 1 correspond to Figure 6In the numbered figures (a)-(f), " / orb" indicates that the ORB-SLAM algorithm is used, and " / v+i" indicates that the algorithm of this patent is used. The experimental data represents the similarity probability of two pictures with corresponding row and column numbers. For example, the data 0.4691 in the second row and fifth column of Table 1 is Figure 6 In Table 1, true loop closures that are expected to achieve higher matching probabilities are bolded, false loop closures that are expected to maintain low matching probabilities are underlined, and results that achieve a high degree of matching are bolded and underlined.
[0096] Table 1
[0097]
[0098] This example demonstrates that the loop detection algorithm proposed by the present invention, which takes local motion into account, can improve the detection probability of true positive loop detection after dynamic elimination. In addition, the detection probability at false loop detection points is more stable than that of the ORB-SLAM algorithm, reducing the probability of false positives.
[0099] In addition, this embodiment also conducts ablation experiments. The ablation experiments of manually selected true positive loop points are as follows: Figure 7 shown. Figure 7 It will Figure 6 The effectiveness experiment was extended from a single frame image to a sequence of 6 frames.
[0100] Table 2
[0101]
[0102] According to Table 2, the complete method of the present invention can make correct judgments on the above two groups of sequences, which proves the effectiveness of the patented method.
[0103] Example 3
[0104] This embodiment also provides a visual SLAM loop detection system in a dynamic environment, including: a feature vector extraction module, a motion vector extraction module and a region weighted matching module; the feature vector extraction module is used to use VLAD to extract feature vectors from images collected in an autonomous driving environment; the motion vector extraction module is used to extract inter-frame motion vectors from IMU data collected in an autonomous driving environment; the region weighted matching module is used to introduce a region weighted matching strategy based on the extracted feature vectors and inter-frame motion vectors to determine the loop position and complete the loop detection of visual SLAM.
[0105] The workflow of the feature vector extraction module includes: extracting image feature points using the ORB algorithm; describing image feature points using the BRIEF descriptor; clustering the descriptors using the K-means clustering algorithm, and finally forming a VLAD feature vector.
[0106] The workflow of the motion vector extraction module includes: obtaining acceleration and angular velocity data between consecutive frames from the IMU data, then obtaining rotation and translation vectors through integration operations, and combining the extracted inter-frame motion vectors with the VLAD feature vectors to enhance the accuracy and robustness of loop detection.
[0107] The workflow of the regional weighted matching module includes: based on the VLAD feature vector and the inter-frame motion vector, the regional weighted matching strategy is used to calculate the similarity between the image sequence and the historical frames in the matching queue. When the matching degree between the continuous frame and the historical frame is high, the loop detection is triggered to achieve accurate positioning.
[0108] The embodiments described above are merely descriptions of preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by persons skilled in the art should fall within the scope of protection defined by the claims of the present invention.
Claims
1. A visual SLAM loop detection method in a dynamic environment, characterized in that the steps include: VLAD is used to extract feature vectors from images collected in an autonomous driving environment; Extract inter-frame motion vectors from IMU data collected in an autonomous driving environment; Based on the extracted feature vectors and inter-frame motion vectors, a regional weighted matching strategy is introduced to determine the loop position and complete the loop detection of visual SLAM.
2. The visual SLAM loop detection method in a dynamic environment according to claim 1, characterized in that: The method for extracting the feature vector includes: Use ORB algorithm to extract image feature points; Describing the image feature points by using the BRIEF descriptor; Use K-means clustering algorithm to cluster descriptors; The cluster descriptors are described by vectors, and finally a VLAD feature vector is formed.
3. The visual SLAM loop detection method under a dynamic environment according to claim 1, characterized in that: The method for extracting inter-frame motion vectors includes: acquiring acceleration and angular velocity data between consecutive frames from IMU data, then obtaining rotation and translation vectors through integral operations, and combining the extracted inter-frame motion vectors with the VLAD feature vectors to enhance the accuracy and robustness of loop detection.
4. The visual SLAM loop detection method in a dynamic environment according to claim 1, characterized in that: The method for completing the loop detection of the visual SLAM includes: comprehensively considering the VLAD feature vector and the inter-frame motion vector, using the regional weighted matching strategy, calculating the similarity between the image sequence and the historical frame in the queue to be matched, and when the continuous frame has a high degree of matching with the historical frame, triggering loop detection to achieve precise positioning.
5. A visual SLAM loop detection system in a dynamic environment, the system is used to implement the method according to any one of claims 1 to 4, characterized in that: include: Image feature vector extraction module, IMU motion vector extraction module and region weighted matching module; The image feature vector extraction module is used to extract feature vectors from images collected in an autonomous driving environment using VLAD; The IMU motion vector extraction module is used to extract inter-frame motion vectors from IMU data collected in an autonomous driving environment; The regional weighted matching module is used to introduce a regional weighted matching strategy to determine the loop position based on the extracted feature vector and the inter-frame motion vector, so as to complete the loop detection of the visual SLAM.
6. The visual SLAM loop detection system in a dynamic environment according to claim 5, characterized in that: The workflow of the feature vector extraction module includes: Use ORB algorithm to extract image feature points; Describing the image feature points by using the BRIEF descriptor; Use K-means clustering algorithm to cluster descriptors; The cluster descriptors are described by vectors, and finally a VLAD feature vector is formed.
7. The visual SLAM loop detection system in a dynamic environment according to claim 5, characterized in that: The workflow of the motion vector extraction module includes: acquiring acceleration and angular velocity data between consecutive frames from the IMU data, then obtaining rotation and translation vectors through integration operations, and combining the extracted inter-frame motion vector with the VLAD feature vector to enhance the accuracy and robustness of loop detection.
8. The visual SLAM loop detection system in a dynamic environment according to claim 5, characterized in that: The workflow of the detection module includes: comprehensively considering the VLAD feature vector and the inter-frame motion vector, using the regional weighted matching strategy, calculating the similarity between the image sequence and the historical frame in the queue to be matched, and triggering loop detection when the continuous frame has a high matching degree with the historical frame to achieve precise positioning.
Citation Information
Patent Citations
Image sorting display method, system and device and storage medium
CN110909193A
Laser SLAM method integrating ORB closed-loop detection
CN112595322A
Positioning method based on monocular vision odometer and IMU fusion
CN112747750A
Closed-loop detection method, device and equipment and storage medium
CN116012744A
Real-time state sensing method and system suitable for dynamic environment
CN116147618A
