Target tracking method and device for automatic driving and automatic driving system

By employing a cascaded screening mechanism of local adaptive tracking and multi-dimensional reliability prediction, the accuracy and robustness issues of autonomous driving target tracking in complex scenarios are resolved, achieving high-precision, interference-resistant target tracking suitable for high-level autonomous driving systems.

CN123181507APending Publication Date: 2026-11-27BEIJING HENGZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611467705.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-12-26
Filing Date
2026-09-20
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing autonomous driving target tracking methods suffer from insufficient accuracy, poor robustness, and weak scale adaptability in complex dynamic scenarios, making it difficult to meet the requirements of high-level autonomous driving for long-term, high-precision, and low-latency perception.

Method used

A local adaptive tracking method is adopted, which combines the cascaded screening mechanism of NCC predictor and FB error predictor. Through normalized cross-correlation and forward-backward error verification, a highly reliable local tracker is selected. The offset and scaling scale are weighted and fused to achieve accurate estimation of target position and scale.

Benefits of technology

It significantly improves the robustness and accuracy of target tracking, and can provide stable and high-precision target trajectory information in complex traffic scenarios, making it suitable for environmental perception in high-level autonomous driving systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181507A_ABST
    Figure CN123181507A_ABST
Patent Text Reader

Abstract

The application provides a target tracking method and device for automatic driving and an automatic driving system, the method comprising: dividing a target area into a plurality of grids in an initial frame, and initializing a local tracker in the center of each grid; predicting the position of each local tracker in a previous frame; screening whether the position prediction of each local tracker is successful by using a first predictor and a second predictor; performing weighted processing on the offset of all local trackers that are successful in tracking; performing weighted average on the scaling factor of all local trackers that are successful in tracking, to obtain the weighted scaling scale of the target; and updating the position of the target according to the overall target offset and the weighted scaling scale. According to the technical scheme, a new target tracking method for automatic driving is obtained by fusing local adaptive tracking, multi-dimensional reliability prediction and confidence weighted fusion, so that the overall performance and practicability of the tracking system are significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of autonomous driving technology, and more specifically to a target tracking method and apparatus for autonomous driving, as well as an autonomous driving system. Background Technology

[0002] With the rapid development of autonomous driving technology, high-precision and robust environmental perception capabilities have become the core foundation for achieving safe and reliable autonomous driving. In perception systems, target tracking, as a crucial link connecting target detection with downstream modules such as behavior prediction and trajectory planning, is tasked with associating the identity and estimating the state of dynamic targets (such as vehicles, pedestrians, and cyclists) across continuous video frames, outputting stable, continuous, and accurate motion trajectories. Especially in complex urban road scenarios, targets often face challenges such as frequent occlusion, drastic changes in lighting, high-speed movement, abrupt scale changes, and background interference, placing extremely high demands on long-term target tracking algorithms.

[0003] Currently, mainstream target tracking methods for autonomous driving can be divided into two categories: detection-by-detection and detection-free tracking. The former relies on high-frequency target detection results and establishes a trajectory through data association (such as the Hungarian algorithm, Kalman filtering, and ReID feature matching). However, its performance is severely limited by the accuracy and recall of the detector, and it is prone to trajectory breakage or ID switching in the event of missed or false detections. The latter typically employs techniques such as optical flow, template matching, or correlation filtering to perform continuous tracking directly at the pixel or image block level. While it offers high real-time performance, it is susceptible to cumulative drift, appearance changes, and noise interference during long-term operation, making it difficult to maintain tracking stability.

[0004] In summary, existing target tracking methods for autonomous driving face bottlenecks such as insufficient accuracy, poor robustness, and weak scale adaptability in complex dynamic scenarios, making it difficult to meet the requirements of high-level autonomous driving for long-term, high-precision, and low-latency perception.

[0005] Therefore, a technical solution is needed that can integrate local adaptive tracking, multi-dimensional reliability prediction and confidence-weighted fusion to create a novel target tracking method for autonomous driving, so as to significantly improve the overall performance and practicality of the tracking system. Summary of the Invention

[0006] This application aims to provide a target tracking method and apparatus for autonomous driving, as well as an autonomous driving system, which integrates local adaptive tracking, multi-dimensional reliability prediction, and confidence-weighted fusion to significantly improve the overall performance and practicality of the tracking system.

[0007] According to one aspect of this application, a target tracking method for autonomous driving is provided, the method comprising: In the initial frame, the target region is divided into multiple grids, and a local tracker is initialized at the center of each grid. Each local tracker corresponds to a fixed-size image patch, which is used to extract local appearance features and perform motion estimation. In the previous frame, position prediction is performed on each of the local trackers to obtain the predicted position of each of the local trackers in the current frame; The first predictor and the second predictor are used to filter whether the position prediction of each local tracker is successfully tracked, so as to obtain the predicted position set of each local tracker that is successfully tracked. The offsets of all successfully tracked local trackers are weighted to obtain the tracking offset as the overall target offset. The target's weighted scaling scale is obtained by taking a weighted average of the scaling factors of all the local trackers that successfully tracked the target. Update the target's position based on the overall target offset and the weighted scaling scale.

[0008] According to some embodiments, after initializing the local tracker at each grid center, the process further includes: If the predicted position of the local tracker in a subsequent frame exceeds the boundary of its grid, it is reinitialized to the center of the grid.

[0009] According to some embodiments, the first predictor includes an NCC predictor; the second predictor includes an FB error predictor.

[0010] According to some embodiments, the method of filtering the position predictions of each local tracker based on a first predictor and a second predictor to determine whether the tracking was successful includes: Calculate the NCC values ​​of all the local trackers and sort them by size, using the values ​​in the sequence as the first threshold; If the NCC value of a certain local tracker is greater than the first threshold, it is determined that the initial tracking is successful; otherwise, it is determined that the tracking is unsuccessful.

[0011] According to some embodiments, the method of filtering whether the position predictions of each local tracker are successfully tracked using a first predictor and a second predictor further includes: Starting from the local tracker position in the previous frame, optical flow is used to trace forward to the current frame to obtain the forward tracking trajectory; Starting from the current predicted position, trace back to the previous frame to obtain the reverse verification trajectory; The sum of the Euclidean distances between the forward trajectory and the reverse verification trajectory at corresponding time points is calculated as the FB error; If the FB error is less than a preset threshold, the local tracker is determined to have successfully tracked the target.

[0012] According to some embodiments, the offsets of all successfully tracked local trackers are weighted to obtain the tracking offset as the overall target offset, including: weighting and summing the offsets of each successfully tracked local tracker based on its weight to obtain the overall target offset.

[0013] According to some embodiments, the weighted scaling scale is the sum of the products of the weights of each successfully tracked local tracker and its corresponding scaling factor.

[0014] According to some embodiments, the method further includes calculating the weights of each successfully tracked local tracker: For each successfully tracked local tracker, an FB similarity value is calculated based on its FB error, where the FB similarity value is a dimensionless value. The smaller the FB error, the closer the FB similarity value is to 1, and the larger the FB error, the closer the FB similarity value is to 0. The weight of the i-th local tracker is calculated based on the NCC value and the FB similarity value. The weight is the product of the NCC value and the corresponding weight coefficient of the i-th local tracker, plus the product of the FB similarity value and the corresponding weight coefficient of the i-th local tracker. The NCC value is a dimensionless normalized cross-correlation similarity value ranging from 0 to 1, and the sum of the two weight coefficients is 1.

[0015] According to one aspect of this application, a computing device is provided, comprising: Processor; and A memory storing a computer program that, when executed by the processor, causes the processor to perform the target tracking method as described in any of the preceding claims.

[0016] According to one aspect of this application, an autonomous driving system is provided, comprising: a computing device as described above.

[0017] According to another aspect of this application, a non-transitory computer-readable storage medium is provided, on which computer-readable instructions are stored, which, when executed by a processor, cause the processor to perform the target tracking method as described in any of the preceding claims.

[0018] According to embodiments of this application, the present invention introduces an adaptive weighting strategy based on tracking confidence into the cascaded screening mechanism composed of an NCC predictor and an FB error predictor. The offset fusion and scaling estimation are dynamically weighted according to the NCC value and FB error, so that the high-reliability local tracker contributes more to the final result. This not only improves the discrimination ability of the cascaded predictor, but also further optimizes the accuracy and anti-interference ability of target pose estimation. While ensuring real-time performance, it significantly improves the robustness, accuracy and long-term stability of target tracking in complex traffic scenarios, and is particularly suitable for the environmental perception requirements of high-level autonomous driving systems.

[0019] It should be understood that the above general description and the following detailed description are merely exemplary and do not limit this application. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.

[0021] Figure 1 The diagram illustrates a target tracking method for autonomous driving according to an example embodiment.

[0022] Figure 2 The diagram illustrates the local tracker tracking process in a target tracking method for autonomous driving according to an example embodiment.

[0023] Figure 3 This diagram illustrates the adaptive offset of a local tracker in a target tracking method for autonomous driving according to an example embodiment.

[0024] Figure 4 The diagram illustrates the prediction process of the FB error predictor in a target tracking method for autonomous driving according to an example embodiment.

[0025] Figure 5 This diagram illustrates a cascaded prediction of the NCC predictor and the FB error predictor in a target tracking method for autonomous driving according to an example embodiment.

[0026] Figure 6 The diagram illustrates a target tracking method for autonomous driving according to an example embodiment.

[0027] Figure 7 This diagram illustrates an autonomous driving system architecture according to an example embodiment.

[0028] Figure 8 A block diagram of a computing device according to an exemplary embodiment is shown. Detailed Implementation

[0029] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this application will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.

[0030] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.

[0031] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0032] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0033] It should be understood that although the terms first, second, third, etc., may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Therefore, the first component discussed below may be referred to as the second component without departing from the teachings of this application. As used herein, the term "and / or" includes all combinations of any one and more of the associated listed items.

[0034] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0035] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of exemplary embodiments, and the modules or processes in the drawings are not necessarily essential for implementing this application, and therefore cannot be used to limit the scope of protection of this application.

[0036] Target tracking is a fundamental and critical technology required for autonomous driving. In complex scenarios, it requires long-term, accurate, and rapid tracking results to provide important perception information for downstream algorithms.

[0037] Currently, mainstream target tracking methods can be divided into two categories: detection-by-detection and detection-free tracking. The former relies on high-frequency target detection results and establishes a trajectory through data association (such as the Hungarian algorithm, Kalman filtering, and ReID feature matching). However, its performance is severely limited by the accuracy and recall of the detector, and it is prone to trajectory breakage or ID switching in the event of missed or false detections. The latter typically employs techniques such as optical flow, template matching, or correlation filtering to perform continuous tracking directly at the pixel or image block level. While it offers high real-time performance, it is susceptible to cumulative drift, appearance changes, and noise interference during long-term operation, making it difficult to maintain tracking stability.

[0038] In summary, existing target tracking methods for autonomous driving face bottlenecks such as insufficient accuracy, poor robustness, and weak scale adaptability in complex dynamic scenarios, making it difficult to meet the requirements of high-level autonomous driving for long-term, high-precision, and low-latency perception.

[0039] Therefore, this application proposes a target tracking method, device, and autonomous driving system for autonomous driving. It is a novel target tracking method for autonomous driving that integrates local adaptive tracking, multi-dimensional reliability prediction, and confidence-weighted fusion, so as to significantly improve the overall performance and practicality of the tracking system. Furthermore, it can improve the accuracy of the tracker and the overall perception effect, and provide higher accuracy tracking results for autonomous driving.

[0040] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of this application.

[0041] Figure 1 This diagram illustrates a target tracking method for autonomous driving according to an example embodiment.

[0042] See Figure 1 In S101, the target region is divided into multiple grids in the initial frame, and a local tracker is initialized at the center of each grid.

[0043] According to some embodiments, when a target is first labeled, the target area is uniformly divided into a regular grid of M×N (such as 3×3 or 5×5). See details for further information. Figure 2Example: An independent local tracker is deployed at the center point of each grid, serving as the basic unit for subsequent tracking. Each local tracker corresponds to a fixed-size image patch (e.g., 16×16 pixels) to extract local appearance features and perform motion estimation, thereby ensuring that motion in different regions within the target can be captured, avoiding overall tracking failure due to local deformation or occlusion of a single center point.

[0044] In S103, position prediction is performed on each of the local trackers in the previous frame to obtain the predicted position of each of the local trackers in the current frame.

[0045] According to some embodiments, starting from the second frame, during the processing of each frame, the Lucas-Kanade optical flow method is used to predict the displacement of each local tracker. Specifically, an image patch is extracted centered on the location of the local tracker in frame t, and the optical flow constraint equation is solved using its spatial and temporal gradients to obtain the predicted coordinates of that point in frame t+1.

[0046] According to some embodiments, the local tracker of this invention supports adaptive offset. If the predicted position of the local tracker in a subsequent frame exceeds the boundary of its grid, it is reinitialized to the center position of the grid. See [link to relevant documentation]. Figure 3 Example from the example. Because the Lucas-Kanade method assumes consistent motion and small displacements within a local window, it is suitable for fine-grained tracking between short, consecutive frames. Each local tracker corresponds to a network. In the initial frame, the local tracker is initialized to its respective cell center. In subsequent frames, each local tracker performs local target tracking, records the offset of the corresponding network center, and performs tracking in the next frame at the offset position. If a local tracker exceeds its corresponding grid, it is reinitialized to the center position of the corresponding grid, such as... Figure 3 As shown, this tracker allows local trackers to drift within their respective grids, enabling the selection of the optimal location point as the tracking point in each grid, thereby improving detection performance and preventing long-term drift accumulation.

[0047] In S105, the first predictor and the second predictor are used to filter whether the position prediction of each local tracker is successfully tracked, so as to obtain the predicted position set of each local tracker that is successfully tracked.

[0048] According to some embodiments, to ensure the reliability of the tracking results, this invention introduces a two-stage cascaded predictor to filter all local trackers, see [link to relevant documentation]. Figure 5The first predictor includes an NCC predictor; the second predictor includes an FB error predictor. The first predictor is a Normalized Cross-Correlation (NCC) predictor. The NCC value of each local tracker is the normalized cross-correlation similarity between the image patch determined by the local tracker in the current frame and its reference template. By calculating the NCC values ​​of all the local trackers and sorting them by size, the median value is used as a first threshold. If the NCC value of a local tracker is greater than the first threshold, it is determined that the initial tracking is successful; otherwise, it is determined to be a failure. The NCC value reflects the appearance similarity between two image patches; the closer the value is to 1, the higher the matching quality. The NCC values ​​of all local trackers are sorted, and the median is taken as the threshold; local trackers with NCC values ​​greater than the median are considered to be initially effective and proceed to the next stage of verification.

[0049] Specifically, the NCC predictor calculates the normalized cross-correlation of the local tracker using the following formula: , in, , Let x represent the image patch where the local tracker is located, and y represent the top-left corner of the image patch, respectively. , These are the height and width of the image patch, respectively. , The average value of the pixels in the image block. , .

[0050] The NCC predictor sorts local trackers by NCC values ​​and obtains the median value in the sequence. If a tracker's NCC value is greater than the median value, the tracking is successful; otherwise, the tracking fails. The predictor records the NCC value of each successfully tracked tracker.

[0051] The second predictor is a forward-backward (FB) error predictor. For local trackers selected by NCC, forward tracking (from t to t+1) is performed, and then the predicted position is used as the starting point to track back to frame t to obtain the backtracked position. The Euclidean distance between the original position and the backtracked position is calculated as the FB error. If the FB error is less than a preset threshold (e.g., 1.5 pixels), the local tracker is considered to have successfully tracked; otherwise, it is discarded. In simple terms, the FB error predictor predicts the local tracker based on the forward-backward consistency assumption. The local tracker generates a tracking trajectory through forward tracking, uses the last frame of the forward tracking as the starting frame, and tracks backward to the first frame to obtain the verification trajectory. If the error between the two trajectories is less than a certain threshold, the local tracker is considered to have successfully tracked; otherwise, the tracking fails, and the value of each successfully tracked FB predictor is recorded.

[0052] See Figure 4 ,exist Figure 4 The upper part defines the FB error in the image sequence. In the process, the local tracker forward tracks to obtain the tracking trajectory. Where x represents the tracker's position information. The local tracker will... The verification trajectory is obtained by reverse tracing from the starting point. ,in The FB error is the distance between corresponding points between these two trajectories. , in, .

[0053] exist Figure 4 The lower part visually describes whether the two local trackers are successful. If the error between the tracking trajectory and the verification trajectory FB of local tracker 1 is less than a set threshold, the tracking is considered successful. If the error between the tracking trajectory and the verification trajectory FB of local tracker 2 is larger, the tracking is considered to have failed.

[0054] Predictor cascade process as follows Figure 5 As shown, all local trackers first pass through the NCC predictor, which sorts them according to their NCC values ​​to obtain the median NCC value. Tracking is considered successful if the value is greater than the median NCC value, otherwise, tracking fails. Next, the tracker passes through the FB predictor, which calculates the distance to the corresponding point. If the distance is less than a threshold, tracking is considered successful, otherwise, tracking fails. In other words, only local trackers that pass both NCC and FB verification are included in the "successful tracking set" for subsequent fusion calculations. During target tracking, the cascaded NCC predictor and FB error predictor eliminate failed local trackers, improving the tracker's tracking accuracy.

[0055] In S107, the offsets of all successfully tracked local trackers are weighted to obtain the tracking offset as the overall target offset.

[0056] In the original tracking algorithm, the NCC predictor and FB predictor are cascaded to obtain successfully predicted local trackers. Successfully tracked local trackers are treated equally when calculating offsets and scaling. However, the NCC predictor calculates the NCC value of each local tracker; a higher NCC value indicates a higher matching degree and a greater contribution to offset and scaling calculations, thus requiring higher weighting, and vice versa. The FB predictor calculates the distance of each local tracker based on forward-backward calculations; a smaller distance indicates a better tracking result, requiring higher weighting in offset and scaling calculations, and vice versa. Therefore, this invention weights the offsets of all successfully tracked local trackers to obtain the tracking offset as the overall target offset.

[0057] Specifically, based on the calculation results of the NCC predictor and the FB error predictor, the weights of each successfully tracked local tracker are calculated using the following formula: , , in, This represents the i-th local tracker. The NCC value of the i-th local tracker. The distance value is the distance value of the FB predictor, and A and B are weighting coefficients that can be set based on experience or learned.

[0058] Next, the tracking offset is calculated based on the weights of each successfully tracked local tracker, using the following formula: , in, Let i be the weights of the local tracker. Let represent the offset of local tracker i, and N represent the number of local trackers that have successfully tracked the target. This weighted fusion mechanism allows local trackers with high confidence to contribute more to the final result, thereby significantly improving the accuracy and robustness of target position estimation, especially maintaining stable tracking even when some local areas are disturbed or fail.

[0059] In S109, the scaling factors of all successfully tracked local trackers are weighted and averaged to obtain the target's weighted scaling scale.

[0060] To adapt to scale changes caused by target movement at varying distances, this invention employs a scaling estimation strategy based on the point-to-point distance ratio. Specifically, for each successfully tracked local tracker, several non-repeating local trackers are randomly selected from the neighborhood to form point pairs (e.g., 10 pairs). For each point pair, its distance d in frame t (the previous frame) is calculated. t Distance d from frame t+1 (the current frame) t+1 Define the scaling factor s=d t+1 / d t This allows us to obtain the scaling factor for each successfully tracked local tracker. The final weighted scaling scale of the target is the weighted average of the scaling factors of all local trackers, calculated using the following formula: , in, The weights of local tracker i are... is the scaling factor for local tracker i. This mechanism fully utilizes the geometric relationships between multiple reliable feature points within the target to dynamically perceive scale changes caused by target movement, viewpoint changes, or deformation, avoiding the limitations of traditional fixed aspect ratios or reliance solely on bounding box regression, thus achieving more accurate target size updates.

[0061] In S111, the position of the target is updated based on the overall target offset and the weighted scaling scale.

[0062] According to some embodiments, the center coordinates of the initial target bounding box are added to the overall target offset (Δx, Δy), and the width and height are multiplied by a weighted scaling factor s to obtain the updated target position and size. This result can be output to downstream modules (such as trajectory prediction and behavior recognition), or it can be used as the initial state for tracking in the next frame to achieve closed-loop tracking.

[0063] According to some embodiments, through the above method process, the present invention achieves high-precision, anti-interference, and adaptive long-term tracking of targets, which is particularly suitable for stable perception of dynamic obstacles such as vehicles and pedestrians in autonomous driving.

[0064] Figure 6 The diagram illustrates a target tracking method for autonomous driving according to an example embodiment.

[0065] The overall process of the target tracking method for autonomous driving of the present invention is as follows: Figure 6 As shown. In frame t, the system first deploys multiple local trackers based on the target region. These trackers employ an adaptive offset strategy, allowing them to dynamically adjust their positions within their respective grids to better capture changes in the target's local features.

[0066] According to some embodiments, the Lucas-Kanade optical flow method is then used to predict the motion of each local tracker, obtaining its preliminary position in frame t+1. Since the optical flow method may drift in occluded, blurred, or texture-deficient regions, this invention introduces a two-stage reliability prediction mechanism to filter the prediction results: first, the appearance similarity of image patches between consecutive frames is evaluated using a normalized cross-correlation (NCC) predictor; then, the forward-backward (FB) error predictor verifies the forward-backward consistency of the trajectory. Only local trackers that pass both verifications are considered to have successfully tracked the target.

[0067] For all successfully tracked local trackers, the system calculates corresponding confidence weights based on their NCC values ​​and FB errors, and then performs a weighted average of their respective offsets to obtain the final overall target offset. Simultaneously, the system randomly selects several pairs of successfully tracked local trackers to form point pairs, calculates the Euclidean distance between each pair in frame t and frame t+1, and uses the ratio of these two distances as a local scaling factor. All scaling factors are also weighted and averaged according to the weights of their corresponding trackers to obtain the global scaling scale of the target.

[0068] According to some embodiments, the method further includes calculating the weights of each successfully tracked local tracker: For each local tracker that successfully tracks, calculate the FB similarity value based on its FB error. The specific calculation formula is as follows: , in, Let be the FB error of the i-th local tracker, which is the sum of the Euclidean distances between the forward tracking trajectory and the backward verification trajectory at the corresponding time points. It is the minimum constant. This is used to prevent calculation errors caused by a zero denominator when the FB error is zero. The similarity value is dimensionless; the smaller the FB error, the better. The closer to 1, the larger the FB error. The closer to 0; The weight of the i-th local tracker is calculated based on the NCC value and the FB similarity value. The specific calculation formula is as follows: , in, Let be the NCC value of the i-th local tracker, and be the dimensionless normalized cross-correlation similarity value, ranging from [0, 1]. Let be the FB similarity value of the i-th local tracker, which is a dimensionless value; A and B are weighting coefficients. .

[0069] Furthermore, to accurately calculate the weights of each successfully tracked local tracker, the FB error needs to be dimensionless, and a normalization mechanism needs to be introduced to ensure the rationality of the weight allocation. Specifically, the weight calculation process includes the following detailed steps: First, this embodiment introduces a minimum constant for the raw distance value output by the FB error predictor. ( To construct the Facebook similarity value Specifically, for each successfully tracked local tracker, an FB similarity value is calculated based on its FB error. The calculation formula is as above. Wherein, Let be the FB error of the i-th local tracker, which is the sum of the Euclidean distances between the forward tracking trajectory and the backward verification trajectory at the corresponding time points. A minimum constant is introduced. The technical motivation is that, in actual tracking, when the local tracker is extremely stable, the FB error may approach zero. Without introducing this constant, the denominator would be zero, leading to calculation anomalies. By adding... This effectively ensures the numerical stability of the calculation. This is a dimensionless similarity value, and its value is determined by the following logic: the smaller the FB error, the more reliable the tracking. The closer to 1, the larger the FB error. The closer it is to 0.

[0070] Secondly, considering that the NCC value (Normalized Cross-Correlation Similarity value) output by the NCC predictor is dimensionless, while the original FB error has a "pixel" dimension, directly adding the two lacks physical meaning. Therefore, this embodiment converts the FB error into a dimensionless value. Then, with The fusion process is performed. Based on the NCC value and the FB similarity value, the weight of the i-th local tracker is calculated. The calculation formula is as above. Wherein, Let NCC be the value of the i-th local tracker, with a value range of [0, 1]. is the FB similarity value of the i-th local tracker; A and B are weight coefficients, A≥0, B≥0, which can be set based on empirical values ​​or obtained through training. The denominator is... This indicates the local tracker that has successfully tracked all cases. Perform summation.

[0071] The calculated ownership value is obtained through the design of the above explicit normalization formula. The sum is strictly equal to 1 (i.e. This satisfies the normalization constraint and solves the defect in the original formula that the sum of weights is not equal to 1.

[0072] According to some embodiments, after the above formula is introduced, on the one hand, the units of NCC value and FB error are unified through the conversion of FB similarity value, enabling reasonable weighted fusion of the two; on the other hand, the normalization process ensures that the sum of the weights of each local tracker is 1, making the subsequent weighting of offset and scaling scale more scientific. This dual-dimensional weight allocation mechanism can adaptively assign greater weights to local trackers that are more reliable in tracking (high NCC value and small FB error), thereby effectively suppressing the interference of abnormal trackers and significantly improving the overall accuracy and robustness of autonomous driving target tracking.

[0073] Finally, the system combines the overall offset with the weighted scaling scale to update the target's position and size, outputs the tracking result of frame t+1, and uses it as the initial state for tracking the next frame, thus achieving continuous, stable, and high-precision target tracking.

[0074] Figure 7 A schematic diagram of a target tracking device according to an example embodiment is shown.

[0075] See Figure 7 The present invention also provides a target tracking device, comprising: a grid division and initialization module 01, a prediction module 02, a prediction filtering module 03, a weight calculation module 04, an offset and scale fusion module 05, and a target update module 06.

[0076] According to some embodiments, the grid division and initialization module 01 is used to divide the target region into multiple grids in the initial frame and initialize a local tracker at the center of each grid. It is used to receive the target region (e.g., a bounding box provided by the upstream detection module) in the initial frame and divide the region into multiple regular grids (such as 3×3 or 5×5 rectangular grids); subsequently, a local tracker is initialized at the geometric center of each grid, with each local tracker corresponding to a fixed-size image patch as the basic unit for subsequent tracking.

[0077] According to some embodiments, prediction module 02 is used to predict the position of each local tracker in the current frame to obtain the predicted position of each local tracker in the next frame. It is also used to perform motion prediction for each local tracker in the current frame. Specifically, this module uses the Lucas-Kanade optical flow method to calculate the predicted position of each local tracker in the next frame based on the image gradient information of the current frame and the previous frame. If the predicted position of a local tracker exceeds the boundary of its corresponding grid, a re-initialization mechanism is triggered to reset its position back to the center of the corresponding grid to prevent long-term drift accumulation.

[0078] According to some embodiments, the prediction filtering module 03 includes a first predictor 0301 and a second predictor 0302. The first and second predictors are used to filter the predicted positions of each local tracker to determine whether tracking was successful, resulting in a set of predicted positions for each successfully tracked local tracker. The first predictor 0301 calculates the normalized cross-correlation (NCC) value for each local tracker, sorts all NCC values, and uses the median as a threshold. Local trackers with NCC values ​​higher than this threshold are considered initially valid. The second predictor 0302 performs forward tracking and then backward tracking on the local trackers filtered by the first predictor, calculating the Euclidean distance between their original and backtracked positions as the FB error. If the FB error is less than a preset threshold, the local tracker is considered to have successfully tracked. The prediction filtering module 03 outputs a "set of successfully tracked local trackers" and their corresponding predicted positions for use by subsequent modules.

[0079] According to some embodiments, the weight calculation module 04 is used to weight the offsets of all successfully tracked local trackers to obtain the tracking offset as the overall target offset. It is used to perform weighted fusion of the offsets of each successfully tracked local tracker based on their confidence level. This module calculates a comprehensive weight wi for each local tracker i based on the NCC value output by the first predictor 0301 and the FB error output by the second predictor 0302, and performs a weighted average of its offsets (Δxi, Δyi) based on this weight to obtain the overall target offset (Δx, Δy), which serves as the displacement estimate of the target center point.

[0080] According to some embodiments, the offset and scale fusion module 05 is used to perform a weighted average of the scaling factors of all successfully tracked local trackers to obtain the weighted scaling scale of the target. Specifically, several point pairs are randomly selected from the successfully tracked local trackers, and the ratio of the Euclidean distance between each point pair in the current frame and the previous frame is calculated to obtain the local scaling factor. Then, based on the weights of the local trackers at both ends of the point pair, the scaling factor is weighted and averaged to finally output the weighted scaling scale of the target.

[0081] According to some embodiments, the target update module 06 is used to update the target's position based on the overall offset and the weighted scaling scale. It is used to update the target's position and size in the next frame based on the overall target offset (Δx, Δy) and the weighted scaling scale s: the center coordinates of the original target bounding box are translated by (Δx, Δy), and the width and height are multiplied by s respectively to generate a new target state, which is then output to the downstream perception or decision module.

[0082] According to some embodiments, the target tracking device is integrated into the perception system of an autonomous vehicle, working in conjunction with the target detection module to provide continuous, high-precision target trajectory information for the path planning or behavior prediction module. The target tracking device, integrated into the perception system of the autonomous vehicle, serves as a key component of environmental perception. During operation, this device collaborates with an upstream target detection module (such as a deep learning-based visual detector). The target detection module provides an initial target region in keyframes, while this device maintains the target's identity and state at a high frequency in subsequent consecutive frames, effectively compensating for the shortcomings of the detection module in frame rate limitations, missed detections, or false detections.

[0083] According to some embodiments, by integrating local optical flow prediction with a multi-dimensional reliability verification mechanism, the device can output continuous, smooth, and high-precision target trajectory information, including position, motion offset, and scale changes. This trajectory data is transmitted in real time to downstream behavior prediction and path planning modules to determine the intentions of surrounding traffic participants and generate safe and reasonable autonomous vehicle driving strategies, thereby significantly improving the perception robustness and decision reliability of the autonomous driving system in complex dynamic scenarios.

[0084] According to some embodiments, the technical solution of the present invention can also be applied to the design of computing devices, including: a processor; and a memory storing a computer program, which, when executed by the processor, causes the processor to perform the target tracking method as described above, thereby achieving long-term, high-precision continuous target tracking, significantly improving the stability and accuracy of the trajectory, and providing reliable perception input for downstream behavior prediction and path planning.

[0085] According to some embodiments, the technical solution of the present invention can also be applied to the design of an autonomous driving system. The autonomous driving system includes a target tracking module and a human-machine interaction module. The target tracking module executes the target tracking method for autonomous driving as described in any of the preceding embodiments. The human-machine interaction module includes one or more of visual interaction devices, auditory interaction devices, tactile interaction devices, and input control devices. It is capable of high-precision and robust trajectory tracking of dynamic targets such as pedestrians and vehicles around the vehicle in continuous video frames and outputs target state information including position, motion trend, and scale changes. The human-machine interaction module is connected to the target tracking module and is used to convey perception results or system decisions to the driver or passengers in an intuitive manner. This module may include one or more of various interaction devices, such as visual interaction devices (e.g., instrument panel, head-up display HUD, central control screen), auditory interaction devices (e.g., voice prompts or warning sounds), tactile interaction devices (e.g., steering wheel or seat vibration feedback), and input control devices (e.g., steering wheel buttons, voice microphone, or gesture recognition sensor). When the system requires driver intervention or alerts the driver to surrounding hazardous targets, the human-machine interaction module can promptly issue multimodal prompts based on the trajectory information provided by the target tracking module, thereby improving driving safety and user experience. By combining high-precision target tracking capabilities with a multi-channel human-machine interaction mechanism, the autonomous driving system of this invention can achieve more reliable state perception and more natural human-vehicle collaboration in complex traffic scenarios.

[0086] According to some embodiments, the target tracking method and apparatus for autonomous driving provided by the present invention can effectively track dynamic targets (such as vehicles, pedestrians, cyclists, etc.) around autonomous vehicles. By working in conjunction with target detection methods, it can still achieve long-term, high-precision continuous target tracking in challenging scenarios such as frequent occlusion, drastic changes in lighting, and complex backgrounds, significantly improving the stability and accuracy of the trajectory and providing reliable perception input for downstream behavior prediction and path planning.

[0087] According to some embodiments, the present invention adopts a local tracker structure based on adaptive offset, which allows each local tracker to dynamically adjust its position within its own grid according to the actual motion and automatically reset when drifting beyond the boundary. This overcomes the shortcomings of traditional fixed center point tracking, which is susceptible to local deformation or occlusion, and effectively improves the robustness and adaptability of local tracking, thereby enhancing the overall tracking performance.

[0088] According to some embodiments, this invention introduces an adaptive weighting strategy based on tracking confidence in the cascaded screening mechanism composed of the NCC predictor and the FB error predictor. The offset fusion and scaling estimation are dynamically weighted according to the NCC value and FB error, so that the high-reliability local tracker contributes more to the final result. This not only improves the discrimination ability of the cascaded predictor, but also further optimizes the accuracy and anti-interference ability of target pose estimation. While ensuring real-time performance, it significantly improves the robustness, accuracy and long-term stability of target tracking in complex traffic scenarios, and is particularly suitable for the environmental perception requirements of high-level autonomous driving systems.

[0089] Figure 8 A block diagram of a computing device according to an example embodiment of this application is shown.

[0090] like Figure 8 As shown, the computing device 30 includes a processor 12 and a memory 14. The computing device 30 may also include a bus 22, a network interface 16, and an I / O interface 18. The processor 12, memory 14, network interface 16, and I / O interface 18 can communicate with each other via the bus 22.

[0091] Processor 12 may include one or more general-purpose CPUs (Central Processing Units), microprocessors, or application-specific integrated circuits, for executing relevant program instructions. According to some embodiments, computing device 30 may also include a high-performance display adapter (GPU) 20 for accelerating processor 12.

[0092] Memory 14 may include a machine-readable medium in the form of volatile memory, such as random access memory (RAM), read-only memory (ROM), and / or cache memory. Memory 14 is used to store one or more programs containing instructions, as well as data. Processor 12 may read the instructions stored in memory 14 to perform the methods described above according to embodiments of this application.

[0093] The computing device 30 can also communicate with one or more networks via the network interface 16. The network interface 16 can be a wireless network interface.

[0094] Bus 22 can include address bus, data bus, control bus, etc. Bus 22 provides a path for exchanging information between components.

[0095] It should be noted that, in specific implementations, the computing device 30 may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the device described above may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0096] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), network storage devices, cloud storage devices, or any type of medium or device suitable for storing instructions and / or data.

[0097] This application also provides a computer program product including a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments.

[0098] Those skilled in the art will clearly understand that the technical solutions of this application can be implemented using software and / or hardware. In this specification, "unit" and "module" refer to software and / or hardware capable of independently performing or cooperating with other components to perform a specific function, where the hardware may be, for example, a field-programmable gate array (FPGA), integrated circuit, etc.

[0099] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0100] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.

[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0103] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application.

[0105] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0106] The exemplary embodiments of this application have been specifically shown and described above. It should be understood that this application is not limited to the detailed structures, arrangements, or implementation methods described herein; rather, this application is intended to cover various modifications and equivalent arrangements contained within the spirit and scope of the appended provisions.

Claims

1. A target tracking method for autonomous driving, characterized in that, The method includes: In the initial frame, the target region is divided into multiple grids, and a local tracker is initialized at the center of each grid. Each local tracker corresponds to a fixed-size image patch, which is used to extract local appearance features and perform motion estimation. In the previous frame, position prediction is performed on each of the local trackers to obtain the predicted position of each of the local trackers in the current frame; The first predictor and the second predictor are used to filter whether the position prediction of each local tracker is successfully tracked, so as to obtain the predicted position set of each local tracker that is successfully tracked. The offsets of all successfully tracked local trackers are weighted to obtain the tracking offset as the overall target offset. The target's weighted scaling scale is obtained by taking a weighted average of the scaling factors of all the local trackers that successfully tracked the target. Update the target's position based on the overall target offset and the weighted scaling scale.

2. The target tracking method according to claim 1, characterized in that, After initializing the local tracker at each grid center, the process also includes: If the predicted position of the local tracker in a subsequent frame exceeds the boundary of its grid, it is reinitialized to the center of the grid.

3. The target tracking method according to claim 1, characterized in that, The first predictor includes an NCC predictor; the second predictor includes an FB error predictor.

4. The target tracking method according to claim 3, characterized in that, The method of filtering based on the position predictions of each local tracker using a first predictor and a second predictor includes: Calculate the NCC values ​​of all the local trackers and sort them by size, using the values ​​in the sequence as the first threshold; If the NCC value of a certain local tracker is greater than the first threshold, it is determined that the initial tracking is successful; otherwise, it is determined that the tracking is unsuccessful.

5. The target tracking method according to claim 4, characterized in that, The method of filtering based on whether the position predictions of each local tracker are successfully tracked using the first predictor and the second predictor further includes: Starting from the local tracker position in the previous frame, optical flow is used to trace forward to the current frame to obtain the forward tracking trajectory; Starting from the current predicted position, trace back to the previous frame to obtain the reverse verification trajectory; The sum of the Euclidean distances between the forward trajectory and the reverse verification trajectory at corresponding time points is calculated as the FB error; If the FB error is less than a preset threshold, the local tracker is determined to have successfully tracked the target.

6. The target tracking method according to claim 1, characterized in that, The offsets of all successfully tracked local trackers are weighted to obtain the tracking offset as the overall target offset. This includes: weighting and summing the offsets of each successfully tracked local tracker based on its weight to obtain the overall target offset.

7. The target tracking method according to claim 1, characterized in that, The weighted scaling scale is the sum of the products of the weights of each successfully tracked local tracker and its corresponding scaling factor.

8. The target tracking method according to claim 1, characterized in that, The method further includes calculating the weights of each successfully tracked local tracker: For each successfully tracked local tracker, an FB similarity value is calculated based on its FB error, where the FB similarity value is a dimensionless value. The smaller the FB error, the closer the FB similarity value is to 1, and the larger the FB error, the closer the FB similarity value is to 0. The weight of the i-th local tracker is calculated based on the NCC value and the FB similarity value. The weight is the product of the NCC value and the corresponding weight coefficient of the i-th local tracker, plus the product of the FB similarity value and the corresponding weight coefficient of the i-th local tracker. The NCC value is a dimensionless normalized cross-correlation similarity value ranging from 0 to 1, and the sum of the two weight coefficients is 1.

9. A computing device, characterized in that, include: processor; as well as A memory storing a computer program that, when executed by the processor, causes the processor to perform the target tracking method as described in any one of claims 1-8.

10. An autonomous driving system, characterized in that, include: The computing device according to claim 9.