A visual inertial positioning method based on pedestrian motion feature optimization

By combining the inertial sensor and optical flow method on the pedestrian platform for visual inertial odometry optimization, the problem of positioning stability and accuracy on the pedestrian platform is solved, long-term meter-level precision positioning in indoor scenes is achieved, reducing costs and avoiding Accumulation of positioning errors.

CN117928527BActive Publication Date: 2024-09-20AEROSPACE INFORMATION RES INST CAS
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410140900.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-01
Publication Date
2024-09-20
Estimated Expiration
2044-02-01

AI Technical Summary

Technical Problem

It is difficult for existing visual inertial odometry to achieve long-term robust positioning on pedestrian platforms, especially in indoor scenes. Due to the complex motion of the pedestrian platform and the inability to carry high-cost sensors, positioning accuracy and stability decrease.

Method used

The visual inertial odometry method based on pedestrian motion characteristics optimization is used to calculate the attitude through the inertial sensor worn on the pedestrian's head. It combines the optical flow method and sliding window optimization technology, uses the BRIEF descriptor to perform loop detection and global optimization, and constructs the residual The constraint terms are nonlinearly optimized to achieve accurate acquisition of three-dimensional attitude and heading information.

Benefits of technology

It achieves long-term meter-level precision positioning of pedestrians in indoor scenes without the need for external base stations or source equipment, reduces costs, avoids the time accumulation of positioning errors, and provides a low-radiation, stable autonomous positioning solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117928527B
    Figure CN117928527B
Patent Text Reader

Abstract

The present invention provides a visual inertial positioning method based on pedestrian motion feature optimization, which belongs to the field of visual inertial positioning technology, and includes: step 1, using the inertial sensor unit in the visual inertial sensor worn on the pedestrian's head to perform posture calculation to obtain the pedestrian's three-dimensional posture information; step 2, based on the pedestrian's three-dimensional posture information, perform local optimization of the visual inertial odometer; step 3, based on the heading information in the pedestrian's three-dimensional posture information, perform global optimization of the visual inertial odometer. The present invention can achieve long-term reliable positioning of pedestrians in indoor scenes without the need for external base stations or signal source equipment. It is a low-cost, radiation-free positioning method with no error accumulation over time, and can achieve long-term meter-level precision positioning of pedestrians in indoor scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of visual inertial positioning, and specifically relates to a visual inertial positioning method based on pedestrian motion feature optimization, which is aimed at pedestrian wearable devices and can be used to achieve long-term robust positioning of low-cost sensors. Background Art

[0002] At present, outdoor positioning technology is developing rapidly in line with social needs. In most outdoor scenarios, satellite navigation, as a reliable and real-time positioning method, provides corresponding location services for pedestrians, vehicles, etc. However, in some environments with poor satellite signals (tunnels, building shelters, etc.), due to factors such as signal attenuation and reflection, the accuracy and robustness of its positioning are seriously reduced. Therefore, in such scenarios, it is necessary to use a method with strong anti-interference and good autonomy for positioning.

[0003] At present, the main means of pedestrian positioning in indoor scenes include WiFi, Bluetooth, geomagnetism and inertial navigation. The first three methods use environmental information to build a database, and then design the corresponding matching algorithm to match the real-time data with the data in the database to obtain the current accurate and reliable positioning information. However, in the face of scenes with a large spatial range, the above methods are not only too expensive but also difficult to achieve real-time performance. At the same time, the switching of scenes will also have a great impact on the positioning results. In comparison, inertial navigation, as a passive and autonomous positioning technology, can provide stable positioning results in a short time only by relying on its own sensor information, but as time goes by, the inertial positioning results will produce obvious cumulative errors. In comprehensive comparison, visual inertial odometer, as an emerging navigation and positioning means, can provide stable positioning over a long period of time due to its own correction capabilities such as loop detection. It is one of the effective means to solve the problem of pedestrian positioning over a long period of time.

[0004] The implementation of visual inertial odometry mainly includes three parts: front-end pose calculation, back-end nonlinear optimization and loop detection. In the front-end pose calculation, the displacement of feature points between frames is used to calculate the pose change of the camera, providing an initial value for the back-end optimization; in the back-end nonlinear optimization, residual construction and subsequent nonlinear optimization are performed on the visual information, inertial information, marginalization information and other data input by the front-end to improve the overall performance of the system; when the same scene is detected in the scene, the pose data in the database is used to optimize the current pose data to maintain stable positioning for a long time.

[0005] At present, most visual inertial odometry positioning methods are often developed based on stable platforms such as vehicles or drones, and have good positioning performance on the corresponding data sets. However, pedestrian platforms have complex and unstable motion characteristics, and pedestrians cannot carry large and expensive sensors, so the existing visual inertial odometry calculation methods often find it difficult to achieve long-term robust positioning on pedestrian platforms. For this reason, it is necessary to consider combining the motion characteristics of pedestrians with visual inertial odometry to improve the reliability of the overall positioning results of the system and meet the positioning needs and applications of pedestrians in indoor scenes. Summary of the invention

[0006] In view of the demand for autonomous positioning of pedestrians in indoor scenes and the problem of how to achieve reliable positioning of visual inertial odometers on pedestrian platforms, the present invention provides a visual inertial odometer positioning method based on motion feature optimization, which can achieve long-term autonomous and reliable positioning of pedestrians in indoor scenes.

[0007] In order to achieve the above object, the present invention adopts the following technical scheme:

[0008] A visual inertial positioning method based on pedestrian motion feature optimization includes the following steps:

[0009] Step 1: Use the inertial sensor unit in the visual inertial sensor worn on the pedestrian's head to perform posture calculation to obtain the pedestrian's three-dimensional posture information and heading information;

[0010] Step 2: Based on the pedestrian's 3D posture information, perform local optimization of the visual inertial odometer, including:

[0011] Step 2.1: track the feature points by the optical flow method at the front end of the visual inertial odometer, and locally optimize the key frame information by means of a sliding window at the back end of the visual inertial odometer, wherein the optimization parameters in the sliding window include the inverse depth information of the 3D point, the external parameter value of the camera to the inertial sensor unit, the displacement from the camera coordinate system to the world coordinate system corresponding to the key frame, the speed of the camera coordinate system in the world coordinate system, the rotation attitude from the camera coordinate system to the world coordinate system corresponding to the key frame, the zero bias value of the accelerometer, and the zero bias value of the gyroscope; design an optimization objective function according to the optimization parameters, and calculate the nonlinear optimization item of the original sliding window;

[0012] Step 2.2: The three-dimensional posture information obtained by solving the inertial sensor unit in the visual inertial sensor worn on the pedestrian's head is combined with the nonlinear optimization term of the current sliding window to construct the corresponding residual constraint term, and the above residual constraint term is uniformly optimized in the loss function;

[0013] Step 3: Based on the pedestrian's heading information, perform global optimization of the visual inertial odometer, including:

[0014] The pose information solved by the visual inertial odometry is globally optimized by means of loop closure detection. The DboW2 bag of words of the BRIEF descriptor is used for loop closure detection in the visual inertial odometry. The feature points are described by the BRIEF descriptor, and then the similarity score between the current frame and the DboW2 bag of words is calculated and compared with the data in the key frame database. When the threshold condition is met, the corresponding candidate frame is extracted to participate in the nonlinear optimization of four degrees of freedom.

[0015] Beneficial effects:

[0016] The method in the present invention is based on visual inertial odometry positioning technology and combines pedestrian motion characteristics to optimize positioning results. It can achieve long-term reliable positioning of pedestrians in indoor scenes without the help of external base stations or signal source equipment. It is a low-cost, radiation-free positioning method that does not accumulate errors over time. It can achieve long-term meter-level precision positioning of pedestrians in indoor scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of a visual inertial positioning method based on pedestrian motion feature optimization of the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0019] like Figure 1 As shown, a visual inertial positioning method based on pedestrian motion feature optimization of the present invention comprises the following steps:

[0020] Step 1: Use the inertial sensor unit in the visual inertial sensor worn on the pedestrian's head to perform posture calculation to obtain the pedestrian's three-dimensional posture information and heading information;

[0021] Step 2: Based on the pedestrian's 3D posture information, perform local optimization of the visual inertial odometer;

[0022] Step 3: Based on the pedestrian’s heading information, perform global optimization of the visual inertial odometry.

[0023] This paper takes an indoor scene as an example to describe a visual inertial positioning method based on pedestrian motion feature optimization.

[0024] Specifically, the step 1 includes:

[0025] First, the IMU (Inertial Sensor Unit) in the visual inertial sensor worn on the pedestrian's head is used to calculate the attitude. The algorithm used is the mature AHRS (Attitude and Heading Reference System) attitude calculation algorithm. This method first calculates the pitch and roll angles of the pedestrian's head through the gravity component sensed by the accelerometer in the head IMU, then uses the magnetometer to calculate the magnetic north direction, and finally uses the gyroscope to measure the angular velocity of the pedestrian's head and uses complementary filtering to correct it to obtain robust and accurate attitude information. The AHRS is updated in the form of quaternions.

[0026] Specifically, the step 2 includes:

[0027] (1) Calculate the original sliding window nonlinear optimization term:

[0028] The basic algorithm of visual inertial odometry adopted in this invention is VINS (Visual Inertial Odometry). Its front end tracks feature points by optical flow method, and the back end performs local optimization of key frame information by sliding window. The specific optimization parameters in the sliding window are As shown below:

[0029] ,

[0030] in, is the inverse depth information of the corresponding 3D point, Is the external parameter value from camera to IMU:

[0031] ,

[0032] In the formula, is the displacement from the camera system to the carrier system; The quaternion representation of the rotation matrix from the camera system to the carrier system.

[0033] is the optimized state parameter, and its specific content is as follows:

[0034] ,

[0035] in, is the displacement from the camera coordinate system to the world coordinate system corresponding to the kth key frame; is the velocity of the camera coordinate system in the world coordinate system; is the rotation posture from the camera coordinate system to the world coordinate system corresponding to the kth key frame; and are the zero bias values ​​of the accelerometer and the gyroscope respectively.

[0036] According to the residual term, the corresponding optimization objective function is designed, and its specific form is as follows:

[0037] ,

[0038] In the formula is the marginalized prior information, is the measurement residual of IMU, is the visual reprojection residual. is the Mahalanobis distance, is the marginalized residual, is the error term The Jacobian matrix for all state vectors is, is the error term, is the state vector, For the Frame and The observed value of the state quantity between frames, Representative Frame and Three-axis position information between frames, is the feature set observed at least twice in the current sliding window The index value of the corresponding quantity in for The observed value of the corresponding feature in , For the The landmark point is The coordinates observed in the normalized coordinate system of the camera; is the set of inertial sensor unit measurements, It is the feature set observed at least twice in the current sliding window; is the set of IMU measurement values, It is the feature set observed at least twice in the current sliding window; is a feature set Middle features; the LM (Levenberg-Marquardt method) is used for nonlinear optimization, and then the ceres method is used to solve it.

[0039] (2) Back-end nonlinear optimization based on AHRS heading information:

[0040] In the original VINS algorithm, the residual optimization items in the sliding window include marginalization information, IMU residual constraints, and visual residual constraints. On this basis, the posture information obtained by the IMU solution of the pedestrian's head is combined with the optimization items in the current sliding window to construct the corresponding residual constraint items, and they are uniformly optimized in the loss function.

[0041] The specific form of the residual optimization item constructed in the sliding window based on the three-dimensional attitude information provided by AHRS is as follows:

[0042] ,

[0043] In the formula That is, the attitude information estimated value calculated by AHRS in the world coordinate system. It is the three-axis attitude information calculated by the visual inertial odometer within the sliding window. Estimated value of the rotation matrix from the camera coordinate system to the carrier coordinate system. That is, the matrix that transforms the carrier system into the world coordinate system, which is specifically expressed in the following form:

[0044] ,

[0045] ,

[0046] in, That is, the yaw angle between the coordinate system initialized by VINS and the pedestrian coordinate system; The rotation matrix calculated for this yaw angle.

[0047] Since the initialization of the visual inertial odometer depends on the initialization action, when it is converted from the camera coordinate system to the world coordinate system, there is a yaw angle between the coordinate system of the visual inertial odometer and the pedestrian coordinate system, so they need to be aligned. To this end, pedestrians need to walk a certain distance in a straight line during the initialization phase, and then use the heading angle difference calculated between AHRS and VINS to calculate the corresponding rotation matrix and convert the two to the same coordinate system. As shown in the above formula, That is the yaw angle between the two.

[0048] To calculate the Jacobian matrix, Decomposed into the following formula:

[0049] ,

[0050] In the formula Estimated value of the rotation matrix from the camera coordinate system to the carrier coordinate system; The true value of the rotation matrix from the camera coordinate system to the carrier coordinate system; is the identity matrix; is the matrix error value; is the heading information error value calculated by VINS; Represents the cross product form of a vector.

[0051] After optimization of the above methods, the visual-inertial odometry calculation method based on the pedestrian's head can still provide stable posture information even in complex motion situations.

[0052] Specifically, the step 3 includes:

[0053] In order to maintain stable positioning of the visual inertial odometer based on the pedestrian platform over a long period of time, it often uses loop detection to globally optimize the pose information (the position and pose information is obtained through nonlinear optimization of the back-end sliding window). In VINS, the DboW2 bag of words of the BRIEF descriptor is used for loop detection. The feature points are described by the BRIEF descriptor, and then the similarity score between the current frame and the bag of words is calculated and compared with the data in the key frame database. When the threshold condition is met, the corresponding candidate frame is extracted to participate in the nonlinear optimization of the four degrees of freedom.

[0054] When a closed loop is detected between the current frame and a frame in the key frame database (let this frame be the vth frame), fast relocalization is turned on, and the current frame is optimized using the pose and related feature points of the vth frame as visual constraints. However, the pose of the vth frame is not fixed. Instead, a sliding window is used to optimize the pose estimation result of the vth frame, thereby calculating the relative pose relationship between the current frame and the vth frame.

[0055] After fast relocalization, four-degree-of-freedom graph optimization is performed. Two types of edges are provided in graph optimization: sequential edge and loop edge. Sequential edge refers to the relative pose between two frames calculated by visual inertial odometer, as shown below:

[0056] ,

[0057] In the formula and For the The estimated value of the frame's position in world coordinates, For the The estimated value of the extrinsic parameter matrix in the frame, For the An estimate of the position difference between frames in camera coordinates; and For the An estimate of the frame's heading; For the An estimate of the heading difference between frames.

[0058] A closed loop edge refers to two frames where a closed loop is detected. When the frame in the sliding window is a closed loop frame with the frame in the key frame database, all frames in the key frame database are closed loop optimized. Since the vision is aligned with the gravity direction in the initialization stage, the pitch angle can be observed according to the gravity direction. and roll angle Therefore, during closed-loop optimization, only the position x, y, z and heading angle are optimized. These four degrees of freedom. When the current frame and the matching frame in the key frame database both contain the attitude information solved by AHRS and the attitude information solved by visual inertial odometer, the corresponding residual information is constructed based on the above data and participates in nonlinear optimization, as shown below:

[0059] ,

[0060] in, is the rotation matrix in the external parameter, and Respectively The pitch and roll angles of the frame, For the The position residual between frames;

[0061] is the pitch angle is the roll angle;

[0062] ,

[0063] In the formula, and is the relative pose between two frames calculated by VINS, and Respectively The position information of the frame in the world coordinate system. and Respectively Frame heading information. and For the Position residual and heading residual between frames.

[0064] By introducing the heading information solved by AHRS, a new observation constraint is constructed, and its specific residual form is expressed as the following formula:

[0065] ,

[0066] ,

[0067] In the formula and For the Pedestrian heading information obtained by frame solution; and They represent the pedestrian's heading information and the position residual and heading residual constructed by the visual inertial odometer respectively;

[0068] The final overall optimized residual function As shown below:

[0069] ,

[0070] The performance of graph optimization is effectively improved by introducing the heading information solved by AHRS.

[0071] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A visual inertial positioning method based on pedestrian motion feature optimization, It is characterized in that The steps include: Step 1: Use the inertial sensor unit in the visual inertial sensor worn on the pedestrian's head to perform posture calculation to obtain the pedestrian's three-dimensional posture information and heading information; Step 2: Based on the pedestrian's 3D posture information, perform local optimization of the visual inertial odometer, including: Step 2.1: track the feature points by the optical flow method at the front end of the visual inertial odometer, and locally optimize the key frame information by means of a sliding window at the back end of the visual inertial odometer, wherein the optimization parameters in the sliding window include the inverse depth information of the 3D point, the external parameter value of the camera to the inertial sensor unit, the displacement from the camera coordinate system to the world coordinate system corresponding to the key frame, the speed of the camera coordinate system in the world coordinate system, the rotation attitude from the camera coordinate system to the world coordinate system corresponding to the key frame, the zero bias value of the accelerometer, and the zero bias value of the gyroscope; design an optimization objective function according to the optimization parameters, and calculate the nonlinear optimization item of the original sliding window; Step 2.2: The three-dimensional posture information obtained by solving the inertial sensor unit in the visual inertial sensor worn on the pedestrian's head is combined with the nonlinear optimization term of the current sliding window to construct the corresponding residual constraint term, and the above residual constraint term is uniformly optimized in the loss function; The residual constraints constructed are as follows: ; In the formula, The residual constraint term constructed in the sliding window between the posture information solved by the visual inertial odometer and the three-dimensional posture information; is the estimated value of the 3D posture information in the world coordinate system, It is the three-dimensional posture information calculated by the visual inertial odometer in the sliding window; is the estimated value of the rotation matrix from the camera coordinate system to the carrier coordinate system; The matrix for transforming the carrier system to the world coordinate system is in the following form: ; ; in, The yaw angle between the coordinate system initialized by the visual inertial odometry and the pedestrian coordinate system; The rotation matrix calculated for this yaw angle; Step 3: Based on the pedestrian's heading information, perform global optimization of the visual inertial odometer, including: The pose information obtained by visual inertial odometry is globally optimized by loop closure detection. The DboW2 bag of words of the BRIEF descriptor is used for loop closure detection in the visual inertial odometry. The feature points are described by the BRIEF descriptor, and then the similarity score between the current frame and the DboW2 bag of words is calculated and compared with the data in the key frame database. When the threshold condition is met, the corresponding candidate frame is extracted to participate in the nonlinear optimization of the four degrees of freedom. When a closed loop is detected between the current frame and the vth frame in the key frame database, fast relocalization is started, and the relative pose and related feature points of the vth frame are used as visual constraints to optimize the current frame, but the relative pose of the vth frame is not fixed. The estimated result of the relative pose of the vth frame is optimized using a sliding window, so as to calculate the relative relationship between the relative poses of the current frame and the vth frame; After fast relocalization, four-degree-of-freedom graph optimization is performed. Two types of edges are provided in graph optimization: a sequence edge and a closed-loop edge. A sequence edge refers to the relative pose between two frames calculated by the visual inertial odometer, as shown below: ; In the formula and For the The estimated value of the frame's position in world coordinates, For the The estimated value of the extrinsic parameter matrix in the frame, For the An estimate of the position difference of the frame in the camera coordinate system; and For the An estimate of the frame heading; For the An estimate of the heading difference between frames; The closed loop edge refers to the two frames where the closed loop is detected. When the frame that slides out of the sliding window is a closed loop frame with the frame in the key frame database, all frames in the key frame database are closed loop optimized, and only the position x, y, z and heading angle are optimized. These four degrees of freedom; when the current frame and the matching frame in the key frame database both contain 3D posture information and posture information solved by the visual inertial odometer, the corresponding residual information is constructed and participates in nonlinear optimization, as shown below: ; in, is the rotation matrix in the external parameter, and Respectively The pitch and roll angles of the frame, For the The position residual between frames; ; In the formula, and is calculated by visual inertial odometry The relative pose between the two frames, and Respectively The position information of the frame in the world coordinate system; and Respectively Frame heading information; and For the Position residual and heading residual between frames; is the pitch angle, is the roll angle; By introducing the heading information of pedestrians, a new observation constraint is constructed. The specific residual form of the observation constraint is expressed as the following formula: ; ; In the formula and For the Pedestrian heading information obtained by frame solution; and Represent the heading information of the pedestrian and the position residual and heading residual constructed by the visual inertial odometer respectively; The obtained overall optimization residual function is as follows: ; in, Optimize the residual function as a whole.

2. According to claim 1, a visual inertial positioning method based on pedestrian motion feature optimization, It is characterized in that The step 1 comprises: calculating the pitch angle and roll angle of the pedestrian's head by using the gravity component sensed by the accelerometer in the inertial sensor unit, then calculating the magnetic north direction by using the magnetometer, and finally measuring the rotation angular velocity of the pedestrian's head by using the gyroscope and correcting it by using complementary filtering to obtain robust and accurate three-dimensional posture information and heading information of the pedestrian.

3. The visual inertial positioning method based on pedestrian motion feature optimization according to claim 2, It is characterized in that In the step 2.1, the optimization items in the optimization objective function include marginalized prior information, measurement residuals of the inertial sensor unit, visual reprojection residuals, and residual items constructed using pedestrian posture information calculated using the inertial sensor unit; then the optimization objective function is solved using the Levenberg-Marquardt method and the CERES method.

Citation Information

Patent Citations

  • Visual inertial odometer system

    CN113358134A

  • Visual inertia SLAM positioning method based on pedestrian step length information assistance

    CN113639743A

  • Hexapod robot positioning method based on multi-sensor fusion

    CN114234967A

  • Visual and inertial mixed pose tracking method of head-mounted augmented reality system

    CN114485637A

  • Camera motion state-based binocular-inertial fusion pose estimation method, electronic equipment and storage medium

    CN116205947A