Improved L-shaped model-based laser radar vehicle tracking method, system and medium
Through the lidar vehicle tracking method based on the L-shaped model, the correlation between the vehicle morphological parameters and the motion state is used to improve the precision and accuracy of vehicle tracking, and solve the problems of poor fitting effect and independent update in the existing technology. Achieving higher vehicle measurement accuracy and robustness.
Patent Information
- Application Number
- CN202210534960.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-17
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-17
AI Technical Summary
When existing lidar vehicle tracking methods process vehicle rearview mirror point cloud data, the fitting effect is poor, resulting in large deviations in vehicle shape and position measurements, and the motion state and shape parameters are updated independently, which is not effective. The correlation between the two is used to affect the estimation accuracy.
An improved method based on the L-shaped model is adopted to utilize vehicle morphological parameters and motion status through technologies such as point cloud clustering, track prediction, data association, L-shaped model fitting and measurement extraction, anchor point transformation and multi-model interactive filtering. The correlation improves the fitting accuracy and estimation accuracy. Specific steps include point cloud clustering, track prediction, data association, L-shaped model fitting, anchor point conversion and multi-model interactive filtering to ensure accurate update of vehicle track data.
It improves the precision and accuracy of vehicle tracking, reduces the influence of outliers caused by factors such as rearview mirrors, enhances the robustness and estimation accuracy of vehicle measurement, and improves the joint prediction ability of vehicle morphological parameters and motion states.
Smart Images

Figure CN114924285B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of vehicle tracking, and in particular relates to an improved L-shaped model-based laser radar vehicle tracking method, system and medium. Background Art
[0002] The environmental perception system of autonomous driving is used to perceive the surrounding environment to assist in making driving decisions to improve the current driving state and avoid obstacles on the road. It is a key link in the autonomous driving system. Among them, vehicles on the road are an important type of target for environmental perception, and LiDAR is widely used in vehicle perception due to its high-precision and high-resolution ranging performance. When making driving decisions, it is necessary to make the best decision based on accurate information about the motion state and morphological parameters of surrounding vehicles. Since LiDAR can only reflect the surface of the target that meets the visual conditions to form a corresponding point cloud, and the viewpoint and visual conditions of the LiDAR change in real time as the vehicle travels, the observable part of the perceived target also changes dynamically. Therefore, how to generate an accurate estimate of the motion state and complete morphological parameters of surrounding vehicles based on the point cloud data of the visible part that reflects the dynamic changes of the perceived vehicle is a key issue for the LiDAR data processing unit in autonomous driving.
[0003] At present, one type of LiDAR data processing algorithm is to fit the point cloud data of each frame based on the L-shaped model assumption of the vehicle's appearance, and extract the measurements of the vehicle's shape and position from it, and use them to update the vehicle's shape parameters and motion state estimation respectively. The potential problem of this type of method is that the point cloud data generated by the rearview mirror on the vehicle cannot fit the L-shaped model well, resulting in the fitting effect being very sensitive to these outliers, and the extracted vehicle shape and position measurements may have large deviations. On the other hand, the subsequent updates to the vehicle's shape parameters and motion state estimation are generally performed independently. In normal driving, the vehicle's orientation is consistent with the speed direction. If the correlation between the vehicle's shape parameters and the motion state can be effectively utilized, the estimation accuracy can be effectively improved. Summary of the invention
[0004] The present invention provides an improved L-shaped model-based laser radar vehicle tracking method, system and medium, which effectively utilize the correlation between vehicle morphological parameters and motion state, improve the accuracy of vehicle L-shaped fitting, and further improve the accuracy of vehicle tracking.
[0005] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0006] An improved L-shaped model-based laser radar vehicle tracking method, comprising:
[0007] Point cloud clustering: Get the lidar point cloud data of the current frame k, and cluster all point cloud data to obtain M point cloud groups;
[0008] Track prediction: Based on the track data of N vehicles in the previous frame k-1, predict the track data of each vehicle in the current frame k, which is recorded as track data prediction; the track data includes the morphological parameters and motion state of the vehicle;
[0009] Data association: perform one-to-one association between M point cloud groups and N vehicle track data predictions to obtain P association pairs; P <= M, P <= N;
[0010] Based on L-shaped model fitting and measurement extraction: (1) For the point cloud group associated with the track data, the direction search range of the vehicle is first set using the associated vehicle track data prediction; then, based on the direction search range, the point cloud group is fitted to obtain the L-shaped model of the vehicle, and the vehicle measurement is extracted from the obtained L-shaped model; (2) For the point cloud group not associated with the track data, the L-shaped model of the vehicle is directly fitted, and the vehicle measurement is extracted from the obtained L-shaped model;
[0011] Anchor point conversion: For P association pairs, if the vehicle trajectory data prediction and the reference anchor point used by the extracted vehicle measurement are different, the vehicle trajectory data prediction is converted to the reference anchor point based on the vehicle measurement for description;
[0012] Track management: The track data in the associated pair is maintained as a valid track; for the point cloud group that is not associated with the track data, the initial new track is measured using the extracted vehicle; the track data that is not associated with the point cloud group within the specified length frame is deleted;
[0013] Result output: Output all vehicle track data of the current frame k and complete the lidar vehicle tracking of the current frame k.
[0014] Furthermore, it also includes multi-model interactive filtering: based on the motion model, using the vehicle measurements corresponding to the association pairs, and using the multi-model interactive filtering method to correct the vehicle track data prediction of the vehicle in the current frame k.
[0015] Furthermore, the method of using the multi-model interactive filtering method to correct the vehicle track data prediction of the vehicle in the current frame k is:
[0016]
[0017]
[0018]
[0019]
[0020] In the formula, To predict based on vehicle trajectory data The vehicle measurement prediction for the kth frame is obtained: in, is the observation matrix, corresponding to the two joint evolution models are H NCA =diag(I2,0 2×2 ,I3),H CTRV =diag(I2,0,1,0,I2),I n is the n-dimensional identity matrix; R k is the vehicle measurement covariance matrix extracted based on the L-shaped model.
[0021] Furthermore, the KD tree algorithm based on the farthest distance in a two-dimensional coordinate system is used to cluster all the collected lidar point cloud data.
[0022] Furthermore, the track prediction establishes two vehicle track data joint evolution models based on uniform acceleration motion and uniform rotation to describe the track data evolution, which are:
[0023]
[0024]
[0025] In the formula, the superscripts NCA and CTRV represent the models based on uniform acceleration motion and uniform rotation, respectively, and the subscripts k and k+1 are used to represent two adjacent frames. is the trajectory data of the vehicle based on uniform acceleration motion at frame k, is the track data of the vehicle based on uniform rotation at frame k; where [x k ,y k ] T is the position of the vehicle in the current frame k, v k is the speed, a k is the acceleration, θ k is the vehicle body orientation, ω k is the vehicle body turning speed, l k is the body length, w k is the body width; and is zero-mean white Gaussian process noise, which is used to model the situation where the vehicle is disturbed by various factors at frame k, causing deviation from uniform acceleration motion and uniform rotation.
[0026] Furthermore, the data association uses a two-dimensional allocation algorithm to perform one-to-one association between the M point cloud groups and the track data of the N vehicles, and the likelihood function that quantifies the association between each point cloud group and the track data is expressed as:
[0027]
[0028] Where Λ(k,m,n) represents the likelihood function when the m-th point cloud group in the k-th frame is associated with the n-th vehicle track, μ k|k-1,i is the probability of the vehicle trajectory data evolving based on the i-th model at the k-th frame, represents the likelihood function of a Gaussian distribution with mean μ and covariance S at x, [x k,m ,y k,m ] T is the position of the point closest to the laser radar in the mth point cloud group, is the predicted position of the nth vehicle track based on the i-th model, is the variance of the position information of the nth vehicle based on the i-th model.
[0029] Furthermore, the associated vehicle track data is used to predict the setting direction search range: in, is the vehicle body orientation in the prediction of the track data of the kth frame, is the corresponding variance.
[0030] Furthermore, the expression of the anchor point conversion is:
[0031]
[0032] In the formula, represents the position of the i-th anchor point in the k-th frame, and They are the angle and length when the i-th anchor point is transformed to the j-th anchor point.
[0033] An improved L-shaped model-based laser radar vehicle tracking system includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements any of the above-mentioned improved L-shaped model-based laser radar vehicle tracking methods.
[0034] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the improved L-shaped model-based laser radar vehicle tracking method described in any one of the above items is implemented.
[0035] Beneficial Effects
[0036] The present invention uses the vehicle track data of the previous frame to predict the track of the current frame, preliminarily sets the direction search range of the vehicle in the current frame based on the predicted vehicle body orientation, and then fits the L-shaped model of the vehicle to the laser radar point cloud data of the current frame collected based on the direction search range, and then extracts the vehicle measurement from the L-shaped model to update the predicted track data, thereby improving the robustness of the direction extraction accuracy affected by the outliers of the point cloud data generated by factors such as the vehicle rearview mirror, and improving the precision and accuracy of the extracted vehicle measurement. On the other hand, the present invention jointly predicts the vehicle track data (including vehicle morphological parameters and motion state), and based on the correlation between the vehicle morphological parameters and the motion state, improves the estimation accuracy of the vehicle morphological parameters and the motion state. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a flow chart of an improved L-shaped model-based laser radar vehicle tracking algorithm described in an embodiment of the present application;
[0038] Figure 2 It is a schematic diagram of the anchor point conversion implemented in this application. DETAILED DESCRIPTION
[0039] The following is a detailed description of an embodiment of the present invention. This embodiment is based on the technical solution of the present invention, and provides a detailed implementation method and a specific operation process to further explain the technical solution of the present invention.
[0040] Example 1
[0041] This embodiment provides an improved L-shaped model-based laser radar vehicle tracking method. Figure 1 As shown, the following steps are included:
[0042] (1) Point cloud clustering: Obtain the lidar point cloud data of the current frame k and cluster all point cloud data to obtain M point cloud groups.
[0043] In this embodiment, a KD tree algorithm based on the farthest distance in a two-dimensional coordinate system is used to cluster all collected laser radar point cloud data. The distance threshold is set in direct proportion to the distance of the point data from the laser radar, so as to achieve the effect of dense point cloud grouping at close distances and dispersed point cloud grouping at long distances.
[0044] (2) Track prediction: Based on the N valid track data of the previous frame k-1, the track data of the current frame k is predicted; the track data includes the morphological parameters and motion state of the vehicle;
[0045] Considering the mobility of the vehicle during driving, two joint evolution models of vehicle track data are established based on uniform acceleration motion and uniform rotation to jointly describe the evolution of track data, which are expressed as:
[0046]
[0047]
[0048] In the formula, the superscripts NCA and CTRV represent the models based on uniform acceleration motion and uniform rotation, respectively, and the subscripts k and k+1 are used to represent two adjacent frames. is the trajectory data of the vehicle based on uniform acceleration motion at frame k, is the track data of the vehicle based on uniform rotation at frame k. k ,y k ] T is the position of the vehicle in frame k, v k is the speed, a k is the acceleration, θ k is the vehicle body orientation, ω k is the vehicle body turning speed, l k is the body length, w k is the vehicle body width. The mean is zero and the variance is The white Gaussian process noise is used to model the situation where the vehicle is disturbed by various factors and deviates from uniform acceleration at frame k, where 0 2×2 is a 2×2 zero matrix, G a =[cosθT 2 / 2,sinθT 2 / 2,T,1] T , T is the time interval between two adjacent frames. Then the mean is zero and the variance is
[0049] The white Gaussian process noise is used to model the situation in which the vehicle deviates from uniform rotation due to interference from various factors at frame k.
[0050] Based on the above two models, the trajectory data prediction of the vehicle at frame k is given by the following formulas:
[0051]
[0052]
[0053] In the formula, and The vehicle track data of the k-1th frame is estimated based on the above two models. and Then, the trajectory data prediction of the vehicle k-th frame is obtained based on the above two models, and the corresponding covariance matrix is:
[0054]
[0055]
[0056] Among them, the symbol It means partial derivative.
[0057] (3) Data association: Perform one-to-one association between the M point cloud groups and the track data of N vehicles to obtain P association pairs. Since the track data is predicted based on the track data of the previous frame, and there may be new vehicles, obscured vehicles, or disappeared vehicles in the current frame compared with the previous frame, P <= M and P <= N.
[0058] In this embodiment, a two-dimensional allocation algorithm is used to perform one-to-one association between M point cloud groups and N vehicle track data, and the likelihood function that quantifies the association between each point cloud group and the track data is expressed as:
[0059]
[0060] Where Λ(k,m,n) represents the likelihood function when the m-th point cloud group in the k-th frame is associated with the n-th vehicle track, μ k|k-1,i is the probability of the vehicle trajectory data evolving based on the i-th model at the k-th frame, represents the likelihood function of a Gaussian distribution with mean μ and covariance S at x, [x k,m ,y k,m ] T is the position of the point closest to the laser radar in the mth point cloud group, is the predicted position of the nth vehicle track based on the i-th model, is the variance of the position information of the nth vehicle based on the ith model. The two-dimensional assignment algorithm performs a one-to-one association between the M point cloud groups and the track data of the N vehicles, so that the overall likelihood function of the association result is maximized.
[0061] (4) Based on L-shaped model fitting and measurement extraction:
[0062] For the point cloud group associated with the track data, first use the associated vehicle track data to set the direction search range of the vehicle in, To predict the vehicle body orientation in the track data of the kth frame, is the corresponding variance; then, based on the direction search range, the point cloud group is fitted to obtain an L-shaped model of the vehicle, and the vehicle measurement is extracted from the obtained L-shaped model; the vehicle measurement is expressed as z = [x, y, θ, l, w], where [x, y] T is the reference anchor point of the L-shaped model of the vehicle, i.e., the inflection point. θ, l, w are the orientation, length, and width of the L-shaped model of the vehicle, respectively.
[0063] For the point cloud group that is not associated with the track data, the L-shaped model of the vehicle is directly fitted, and the vehicle measurements are extracted from the obtained L-shaped model;
[0064] (5) Anchor point conversion: For P association pairs, if the position estimate in the vehicle track data is different from the anchor point in the extracted vehicle measurement, the position estimate in the vehicle track data is converted to the anchor point in the vehicle measurement;
[0065] The anchor point conversion diagram is shown in Figure 2 As shown, the conversion from the i-th anchor point to the j-th anchor point can be achieved by the following formula:
[0066]
[0067] In the formula, represents the position of the i-th anchor point in the k-th frame, and They are the angle and length when the i-th anchor point is transformed to the j-th anchor point.
[0068] (6) Track management: The track data in the associated pair is maintained as a valid track; for the point cloud group that is not associated with the track data, the initial new track is generated using the extracted vehicle measurement; the track data that is not associated with the point cloud group is deleted;
[0069] (7) Multi-model interactive filtering: Using the vehicle measurements z corresponding to the associated pairs k , the vehicle trajectory data prediction of the vehicle in the current frame k is corrected by the following formula:
[0070]
[0071]
[0072]
[0073] In the formula, To predict based on vehicle trajectory data The vehicle measurement prediction for the kth frame is obtained: in, is the measurement matrix corresponding to the vehicle measurement, and the corresponding two joint evolution models are H NCA =
[0074] diag(I2,0 2×2 ,I3),H CTRV =diag(I2,0,1,0,I2),I n is the n-dimensional identity matrix. and are the filter gain and information variance based on the i-th model, Rk is the vehicle measurement covariance matrix extracted based on the L-shaped model.
[0075] (8) Result output: Output the track data of all vehicles in the current frame k and complete the lidar vehicle tracking of the current frame k.
[0076] Example 2
[0077] This embodiment provides an improved L-shaped model-based laser radar vehicle tracking method, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements the method described in Embodiment 1.
[0078] Example 3
[0079] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in Embodiment 1 is implemented.
[0080] The above embodiments are preferred embodiments of the present application. Ordinary technicians in this field can also make various changes or improvements on this basis. Without departing from the overall concept of the present application, these changes or improvements should fall within the scope of protection required by the present application.
Claims
1. An improved L-shaped model based lidar vehicle tracking method, It is characterized in that include: Point cloud clustering: Get the lidar point cloud data of the current frame k, and cluster all point cloud data to obtain M point cloud groups; Track prediction: Based on the track data of N vehicles in the previous frame k-1, predict the track data of each vehicle in the current frame k, which is recorded as track data prediction; the track data includes the morphological parameters and motion state of the vehicle; Data association: perform one-to-one association between M point cloud groups and N vehicle track data predictions to obtain P association pairs; P <= M, P <= N; Based on L-shaped model fitting and measurement extraction: (1) For the point cloud group associated with the track data, the direction search range of the vehicle is first set using the associated vehicle track data prediction; then, based on the direction search range, the point cloud group is fitted to obtain the L-shaped model of the vehicle, and the vehicle measurement is extracted from the obtained L-shaped model; (2) For the point cloud group not associated with the track data, the L-shaped model of the vehicle is directly fitted, and the vehicle measurement is extracted from the obtained L-shaped model; Anchor point conversion: For P association pairs, if the vehicle trajectory data prediction and the reference anchor point used by the extracted vehicle measurement are different, the vehicle trajectory data prediction is converted to the reference anchor point based on the vehicle measurement for description; Track management: The track data in the associated pair is maintained as a valid track; for the point cloud group that is not associated with the track data, the initial new track is measured using the extracted vehicle; the track data that is not associated with the point cloud group within the specified length frame is deleted; Result output: Output all vehicle track data of the current frame k and complete the lidar vehicle tracking of the current frame k.
2. The method according to claim 1, It is characterized in that It also includes multi-model interactive filtering: based on the motion model, the vehicle measurements corresponding to the associated pairs are used to correct the vehicle track data prediction of the vehicle in the current frame k using a multi-model interactive filtering method.
3. The method according to claim 2, It is characterized in that The method of using the multi-model interactive filtering method to correct the vehicle track data prediction of the vehicle at the current frame k is: In the formula, To predict based on vehicle trajectory data The vehicle measurement prediction for the kth frame is obtained: in, is the observation matrix, corresponding to the two joint evolution models are H NCA =diag(I 2 ,0 2×2 ,I 3 ), H CTRV =diag(I 2 ,0,1,0,I 2 ), I n is the n-dimensional identity matrix; R k is the vehicle measurement covariance matrix extracted based on the L-shaped model.
4. The method according to claim 1, It is characterized in that The KD tree algorithm based on the farthest distance in a two-dimensional coordinate system is used to cluster all the collected lidar point cloud data.
5. The method according to claim 1, It is characterized in that The track prediction is based on uniform acceleration motion and uniform rotation to establish two vehicle track data joint evolution models to describe the track data evolution, which are: In the formula, the superscripts NCA and CTRV represent the models based on uniform acceleration motion and uniform rotation, respectively, and the subscripts k and k+1 are used to represent two adjacent frames. is the trajectory data of the vehicle based on uniform acceleration motion at frame k, is the track data of the vehicle based on uniform rotation at frame k; where [x k ,y k ] T is the position of the vehicle in the current frame k, v k is the speed, a k is the acceleration, θ k is the vehicle body orientation, ω k is the vehicle body turning speed, l k is the body length, w k is the body width; and is zero-mean white Gaussian process noise, which is used to model the situation where the vehicle is disturbed by various factors at frame k, causing deviation from uniform acceleration motion and uniform rotation.
6. The method according to claim 1, It is characterized in that The data association uses a two-dimensional allocation algorithm to perform one-to-one association between M point cloud groups and N vehicle track data, and the likelihood function that quantifies the association between each point cloud group and the track data is expressed as: Where Λ(k,m,n) represents the likelihood function when the m-th point cloud group in the k-th frame is associated with the n-th vehicle track, μ k|k-1,i is the probability of the vehicle trajectory data evolving based on the i-th model at the k-th frame, represents the likelihood function of a Gaussian distribution with mean μ and covariance S at x, [x k,m ,y k,m ] T is the position of the point closest to the laser radar in the mth point cloud group, is the predicted position of the nth vehicle track based on the i-th model, is the variance of the position information of the nth vehicle based on the i-th model.
7. The method according to claim 1, It is characterized in that The associated vehicle track data is used to predict the set direction search range: in, is the vehicle body orientation in the prediction of the track data of the kth frame, is the corresponding variance.
8. The method according to claim 1, It is characterized in that The expression of the anchor point conversion is: In the formula, represents the position of the i-th anchor point in the k-th frame, and They are the angle and length when the i-th anchor point is transformed to the j-th anchor point.
9. An improved L-shaped model-based laser radar vehicle tracking system, comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the computer program is executed by the processor, the processor is caused to implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
