Data processing method, system, device, storage medium and program product

By constructing a joint state vector, the geometric consistency problem caused by independent filtering of left and right lane lines is solved, improving the robustness of lane line perception and lateral control accuracy, and enhancing driving comfort.

CN123181796APending Publication Date: 2026-11-27ECARX (HUBEI) TECHCO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611424515.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing advanced driver assistance systems, the independent filtering calculations for the left and right lane lines result in poor lane line geometric consistency, reducing lateral vehicle control accuracy and driving comfort.

Method used

By constructing a joint state vector containing anchor point state variables and relative state variables, cross-side anchor point sharing constraints and key point relative position rigid constraints are established for the left and right lane lines. Filtering prediction and updating are then performed to generate stable lane line trajectory information.

Benefits of technology

It improves the geometric consistency and perception robustness of the left and right lane lines, reduces lane centerline vibration, and enhances vehicle lateral control precision and ride comfort.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181796A_ABST
    Figure CN123181796A_ABST
Patent Text Reader

Abstract

The application provides a data processing method, system, device, storage medium and program product, and relates to the technical field of automatic driving. The method comprises the following steps: acquiring observation data of left and right lane lines of a target vehicle; constructing a joint state vector according to the observation data; the joint state vector comprises an anchor point state quantity representing a lane line reference position and a motion state, and a relative state quantity representing a geometric offset of a key point relative to the anchor point; wherein the joint state vector is configured to share the same anchor point state quantity for the left and right lane lines, and a relative position rigid constraint relationship between adjacent key points is constructed in the relative state quantity; performing filtering prediction and filtering update based on the joint state vector to obtain an updated joint state vector; and generating trajectory information of the left and right lane lines based on the updated joint state vector. In this way, the geometric consistency of the left and right lane lines can be effectively maintained, and the robustness of lane line perception is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of autonomous driving technology, and in particular to a data processing method, system, device, storage medium, and program product. Background Technology

[0002] With the rapid development of autonomous driving technology, higher levels of autonomous driving place higher demands on the accuracy and stability of lane line perception. As an input to lateral motion control, the output quality of lane line perception directly affects the smoothness and safety of the vehicle's lateral control.

[0003] Currently, the lane line perception post-processing module of Advanced Driver Assistance Systems (ADAS) generally uses Kalman filtering to estimate the lane line state, performing independent filtering operations and state solutions for the left and right lane lines respectively.

[0004] This results in poor geometric consistency between the left and right lane lines, insufficient robustness in lane line perception, and reduced lateral control precision and ride comfort. Summary of the Invention

[0005] This application provides a data processing method, system, device, storage medium, and program product. By constructing a joint state vector containing anchor point state variables and relative state variables, it establishes cross-side anchor point sharing constraints and key point relative position rigid constraints for left and right lane lines. Based on the joint state vector, it completes filtering prediction and updating, which can effectively improve the problem of spatial inconsistency between left and right lane lines, maintain lane line geometric consistency, and improve the overall robustness of lane line perception.

[0006] In a first aspect, this application provides a data processing method, comprising: acquiring observation data of the left and right lane lines of a target vehicle; constructing a joint state vector based on the observation data; the joint state vector includes anchor point state variables representing the reference position and motion state of the lane lines, and relative state variables representing the geometric offset of key points relative to the anchor points; wherein the joint state vector is configured such that the left and right lane lines share the same anchor point state variable, and a rigid constraint relationship between the relative positions of adjacent key points is constructed in the relative state variables; performing filtering prediction and filtering update based on the joint state vector to obtain an updated joint state vector; and generating trajectory information of the left and right lane lines based on the updated joint state vector.

[0007] In one possible implementation, filtering prediction and filtering update are performed based on the joint state vector to obtain the updated joint state vector, including: filtering prediction on the joint state vector to obtain the predicted state vector; calculating the predicted covariance matrix based on the posterior covariance matrix corresponding to the previous frame before the current frame; constructing a standard observation vector and a corresponding standard observation matrix based on the observation data; constructing a virtual observation vector and a corresponding virtual observation matrix based on the normal width relationship between key points of the left and right lane lines in the joint state vector; concatenating the standard observation vector and the virtual observation vector to generate a total observation vector, and concatenating the standard observation matrix and the virtual observation matrix to generate a total observation matrix; and filtering and updating the predicted state vector based on the total observation vector, the total observation matrix, the observation noise matrix, and the predicted covariance matrix to obtain the updated joint state vector.

[0008] In one possible implementation, a virtual observation vector is constructed based on the normal width relationship between key points of the left and right lane lines in the joint state vector, including: determining the projection factor corresponding to each key point based on the lateral increment of adjacent key points in the joint state vector and the preset longitudinal sampling interval; determining the normal width corresponding to each key point based on the lateral distance between corresponding key points of the left and right lane lines and the projection factor; and determining the difference in the normal widths corresponding to adjacent key points as the components of the virtual observation vector.

[0009] In one possible implementation, trajectory information for the left and right lane lines is generated based on the updated joint state vector, including: extracting the lateral and longitudinal positions of anchor points, the lateral and longitudinal increments of each key point of the left lane line from the updated joint state vector; cumulatively adding the lateral positions of anchor points to the lateral increments of each key point to obtain the lateral positions of each key point of the left lane line; cumulatively adding the longitudinal positions of anchor points to the longitudinal increments of each key point to obtain the longitudinal positions of each key point of the left lane line; and constructing a key point sequence for the left lane line from the lateral and longitudinal positions of each key point. Similarly, extracting the lateral and longitudinal positions of anchor points, the lateral and longitudinal increments of each key point of the right lane line from the updated joint state vector; and cumulatively adding the lateral positions of anchor points to the lateral increments of each key point to obtain the right lane line. The lateral position of each key point is determined by summing the longitudinal position of the anchor point with the longitudinal increment of each key point point, thus obtaining the longitudinal position of each key point on the right lane line. The lateral and longitudinal positions of each key point constitute the key point sequence of the right lane line. Based on the change position of the semantic label of each key point and the position where the change in the normal width between the left and right lane lines at each key point exceeds a preset threshold, the segment boundary is determined, and the key point sequences of the left and right lane lines are divided into multiple segments according to the segment boundary. Each segment is fitted separately, and historical coefficients are introduced as constraint prior information. Continuity constraints are applied to the fitting results of adjacent segments at the segment boundary to obtain the lane line sub-trajectory information corresponding to each segment. The lane line sub-trajectory information corresponding to each segment is spliced ​​together to obtain the trajectory information of the left and right lane lines.

[0010] In one possible implementation, the method further includes: updating the memory bank when a preset stability condition is met; the stability condition includes at least one of the following: the number of valid keypoints is greater than or equal to a number threshold, the average variance of the keypoint estimation variance of valid segments is less than a variance threshold, the current lane width deviation is less than a width threshold, or the valid keypoints of the lane line in the current frame do not include keypoints with semantic labels of merging and keypoints with semantic labels of bifurcation; the memory bank includes at least one of the following coefficients: historical coefficients, used to provide constraint prior information for segment fitting; stability coefficients, used as a backoff benchmark when lane line observation anomalies or monitoring failures occur; and a width parameter, used to complete the lane constraint on the missing side when a lane line observation is missing on one side; wherein, the forgetting of the memory bank is determined based on the cumulative driving distance of the target vehicle, and when the cumulative driving distance exceeds a preset distance threshold, the memory bank is marked as invalid.

[0011] In one possible implementation, before constructing the joint state vector based on the observation data, the method further includes: determining the semantic labels corresponding to each key point in the observation data, and storing the semantic labels in association with the joint state vector; the semantic labels include normal, parallelism, merging, and bifurcation.

[0012] In one possible implementation, the method further includes: during the filtering update process, propagating the semantic tags of the previous frame across frames to the corresponding key points in the current frame.

[0013] In one possible implementation, acquiring observation data of the left and right lane lines of the target vehicle includes: acquiring lane line pixels in the image space; transforming the lane line pixels to a bird's-eye view space in the vehicle coordinate system to obtain a bird's-eye view point set; performing motion compensation on the bird's-eye view point set corresponding to historical frames to obtain a compensated bird's-eye view point set; fusing the bird's-eye view point set with the compensated bird's-eye view point set to obtain a fused point set; and performing random sampling consistency fitting on the fused point set to obtain the observation data of the left and right lane lines.

[0014] In one possible implementation, the method further includes: calculating the normal width deviation of key points; determining the corresponding operating mode based on the normal width deviation; the operating modes include normal mode, transition mode and emergency mode; and adjusting the observation noise matrix according to the determined operating mode.

[0015] In one possible implementation, the anchor point state variables include the lateral coordinates of the left lane anchor point, the lateral coordinates of the right lane anchor point, the longitudinal coordinates of the anchor point, the lateral velocity of the left anchor point, the lateral velocity of the right anchor point, and the longitudinal velocity of the anchor point; the relative state variables include the lateral increments of the left lane, the lateral increments of the right lane, and the longitudinal increments corresponding to each key point.

[0016] Secondly, this application provides a data processing system, including: an observation module for acquiring observation data of the left and right lane lines of a target vehicle; and a filtering module for constructing a joint state vector based on the observation data, performing filtering prediction and filtering update on the joint state vector to obtain an updated joint state vector, and generating trajectory information of the left and right lane lines based on the updated joint state vector.

[0017] Thirdly, this application provides a data processing apparatus, including: a memory and a processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the processor to perform the method provided above.

[0018] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method provided above.

[0019] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method provided above.

[0020] This application provides a data processing method, system, device, storage medium, and program product. By acquiring observation data of the left and right lane lines of a target vehicle, a joint state vector is constructed, comprising anchor point state variables and relative state variables. The joint state vector is configured such that the left and right lane lines share the same anchor point state variable and rigid constraints are established on the relative positions of key points. Based on this joint state vector, filtering prediction and filtering update are performed, and then the trajectory information of the left and right lane lines is generated based on the updated joint state vector. This ensures the geometric consistency of the left and right lane lines and enhances the robustness of lane line perception. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0022] Figure 1 A flowchart illustrating the data processing method provided in this application;

[0023] Figure 2 A schematic diagram illustrating the principles of each stage of lane line state processing provided in this application;

[0024] Figure 3 A schematic diagram of the data processing system provided in this application;

[0025] Figure 4 A schematic diagram of the data processing device provided in this application.

[0026] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0027] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.

[0028] With the rapid development of autonomous driving technology, lateral driving assistance functions such as lane keeping and automatic lane changing increasingly rely on high-precision and high-stability lane line perception results. In the closed-loop control system of the entire vehicle's autonomous driving, lane line perception results are the input to the lateral motion control module. The accuracy and stability of the lane geometry parameters output by perception directly determine the precision of vehicle steering control, greatly affecting the stability and driving safety threshold during vehicle operation, and are a key foundation for ensuring the reliable operation of high-level autonomous driving functions.

[0029] In the current post-processing workflow of lane line perception in mass-produced advanced driver assistance systems (ADAS), the mainstream industry solution relies on the Kalman filter algorithm to iteratively solve for the lane line state. This conventional approach configures independent filtering calculation channels for the left and right lane lines of the driving road, with the state iteration, parameter update, and numerical optimization processes for the two lane lines running completely independently. In the complete perception chain, the system only uses the image detection and observation data of one lane to independently complete the state prediction and parameter correction for the corresponding lane. The calculation links for the left and right lanes do not interfere with or link with each other, and each completes the final output of lane geometry parameters.

[0030] Thus, the independent filtering calculation system causes the parameter iteration deviations of the left and right lane lines to accumulate independently, making it impossible to effectively match the spatial geometric positions of the two lanes, resulting in poor overall geometric consistency. In complex driving scenarios such as changes in road lighting, road stains, and long-distance weak lane lines, observation noise further amplifies the estimation deviation of a single lane, significantly reducing the overall robustness of lane line perception. Continuous lane geometric deviations and dynamic fluctuations cause frequent changes in real-time lane width parameters, leading to continuous offset and jitter in the lane centerline position calculated by the downstream control module. This results in frequent and disordered vehicle steering fine-tuning actions, ultimately significantly reducing the vehicle's lateral control accuracy and severely affecting the smoothness and comfort of the driving experience.

[0031] In view of this, this application provides a data processing method that constructs a joint state vector integrating anchor point state variables and relative state variables to achieve unified state modeling of left and right lane lines. Combining the shared configuration of cross-side anchor points and the rigid constraint relationship of key point relative positions, it completes the filtering and iterative update of lane line states, and finally generates stable left and right lane line trajectory information based on the optimized joint state vector. This method first collects lane line observation data and constructs an integrated joint state vector. It then relies on unified reference anchor points to constrain the iterative process of left and right lane line states, and combines key point geometric rigid constraints to complete temporal filtering prediction and updating, outputting geometrically matched and state-stable lane line trajectory parameters, providing accurate and reliable perception input for vehicle lateral control.

[0032] Compared to traditional independent filtering lane state estimation schemes, this application transforms the separate and unrelated independent calculation mode of left and right lane lines into an integrated, interconnected constraint calculation mode. Based on the joint modeling logic of shared cross-side anchor points and rigid constraints on the relative positions of key points, it effectively suppresses the independent accumulation of iterative deviations in left and right lane line parameters, reduces the problem of mismatched spatial geometric positions of lanes on both sides, and significantly improves the geometric consistency of left and right lane lines and the perception robustness under complex conditions. Simultaneously, it effectively improves abnormal lane width fluctuations, eliminates frequent lane centerline jitter, reduces vehicle steering control erratic movements, significantly improves vehicle lateral control accuracy, and ensures smooth vehicle operation and ride comfort.

[0033] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0034] Figure 1 A flowchart illustrating the data processing method provided in this application. The method includes the following steps:

[0035] S101. Obtain observation data of the left and right lane lines of the target vehicle.

[0036] The observation data is used to characterize the geometric information of the left and right lane lines corresponding to the target vehicle at the current moment.

[0037] In one possible embodiment, the observation data can be derived from the results of road environment acquisition to form an effective set of observation points for the left and right lane lines; when there are shadows, backlighting, water reflections, obstructions, or local wear on the road, the observation data can also be generated by multiple frames of images to retain a stable input that can reflect changes in the lane line contours.

[0038] For each frame of observation data, we can also establish lateral and longitudinal coordinates corresponding to the vehicle's own coordinate system, so that subsequent state variables can directly correspond to the geometric position of the lane line in the vehicle's driving direction.

[0039] Understandably, this step provides the input basis for filtered monitoring. The quality of the observation data determines whether the initial construction of the subsequent joint state vector can accurately reflect the current geometric distribution of the lane lines. After the observation data is fused through multiple frames, the impact of single-frame noise, false detection points, and local missing data on state estimation can be reduced, thereby providing a stable source for the synchronous monitoring of the left and right lane lines.

[0040] In this application, the observation data of the left and right lane lines of the target vehicle can be output by the perception results. The perception results include image acquisition, lane line detection and result processing. Image acquisition is used to output the original road image. Lane line detection segments the lane line pixels in the image and extracts key points. Result processing organizes the discrete point set into observation sequences according to the left and right lane lines respectively.

[0041] If the number of visible points for a lane line on one side in the current frame is lower than a preset threshold, observation data for that lane line can be generated by combining the compensation results from neighboring frames. This ensures that both lane lines have input information that can participate in state construction at the same time. After this processing, the observation data not only includes the spatial location of the lane lines but also the temporal correlation information between consecutive frames, which facilitates subsequent estimation of lane line movement trends using a filtering model.

[0042] In one possible implementation, acquiring observation data of the left and right lane lines of the target vehicle includes: acquiring lane line pixels in the image space; transforming the lane line pixels to a bird's-eye view space in the vehicle coordinate system to obtain a bird's-eye view point set; performing motion compensation on the bird's-eye view point set corresponding to historical frames to obtain a compensated bird's-eye view point set; fusing the bird's-eye view point set with the compensated bird's-eye view point set to obtain a fused point set; and performing random sampling consistency fitting on the fused point set to obtain the observation data of the left and right lane lines.

[0043] Among them, lane line pixels in the image space are used to represent the position of the lane boundary detected in the image domain, which can be obtained by lane line segmentation or key point detection from road images captured by vehicle cameras.

[0044] The bird's-eye view space in the vehicle coordinate system is used to map pixels to a planar coordinate system with the target vehicle as the origin. The bird's-eye view point set is composed of points transformed by inverse perspective.

[0045] The bird's-eye view point set corresponding to the historical frame is used to provide lane line observations of the preceding time step.

[0046] Motion compensation is used to perform translation and rotation correction on the historical point set based on changes in the vehicle's pose.

[0047] The fused point set is used to aggregate the alignment results of the current frame and historical frames.

[0048] Random sampling consistency fitting is used to filter out outliers from the noisy point set and extract the observation results of the left and right lane lines that satisfy the overall geometric relationship.

[0049] In one possible embodiment, the camera first outputs the current frame image. The lane detection module extracts pixels located on the lane markings in the image and, combining camera intrinsic and extrinsic parameters, backprojects the pixel coordinates onto a bird's-eye view plane in the vehicle coordinate system to obtain the current frame's bird's-eye view point set. The system simultaneously caches bird's-eye view point sets from several historical frames and performs rigid body compensation on the historical point sets based on the vehicle's lateral, longitudinal, and heading angle changes between adjacent frames, aligning them to the current frame's coordinate system. Subsequently, the compensated historical point sets and the current frame's bird's-eye view point sets are fused according to spatial proximity or temporal weights to form a fused point set containing multi-moment information. A random sampling consensus algorithm is then used to fit the fused point set to a straight line, quadratic curve, or polynomial model, outputting the observation data for the left and right lane lines.

[0050] This observation data generation method uses joint modeling of the current frame and historical frames to achieve temporal alignment of lane line point sets within the vehicle coordinate system before robust fitting, thereby outputting continuous and stable left and right lane line observation results. Since random sampling consistency fitting can suppress the influence of outliers caused by occlusion, worn markings, and reflective noise, the obtained observation data can be directly used as input for subsequent joint state vector construction and filtering updates.

[0051] For example, the lane line pixels in the image space output by the camera are denoted as... The bird's-eye view is projected onto the vehicle coordinate system via an online calibration / inverse perspective transformation module, and the corresponding bird's-eye view points are obtained. .

[0052] The system maintains a historical buffer of bird's-eye view point sets from the most recent frames. It calls a motion compensation function to align the points from each historical frame to the coordinate system of the current frame, and then takes the union of these points with the current frame's bird's-eye view points to obtain the fused point set. The calculation formula is:

[0053] ;

[0054] in, Represents the point set of the current frame's bird's-eye view; to For the cached m-frame historical bird's-eye view point set; This is a motion compensation function used to perform translation and rotation rigid body correction of the historical point set based on the changes in the vehicle's pose. This is to merge the set of points between the current frame and the aligned historical frames.

[0055] For the obtained set of fusion points, a robust fitting algorithm based on random sampling consensus is used to solve for the polynomials corresponding to the left and right lane lines, respectively. The polynomial form is as follows:

[0056] ;

[0057] in, This represents the longitudinal distance along the vehicle's direction of travel in the vehicle coordinate system. This represents the lateral distance perpendicular to the vehicle's direction of travel in the vehicle coordinate system. This is the lateral offset coefficient; This is the yaw angle coefficient; The curvature coefficients are used; the left lane line and the right lane line are solved independently using a set of polynomial coefficients.

[0058] By adopting this implementation method, the observations of the left and right lane lines are fused and fitted in the same vehicle coordinate system, which can reduce the timing deviation introduced by the vehicle's motion and improve the stability and integrity of the observation points under complex road conditions, thereby providing continuous and reliable basic data for the subsequent generation of lane line trajectories.

[0059] S102. Based on the observation data, construct a joint state vector. The joint state vector includes anchor point state variables representing the reference position and motion state of the lane lines, and relative state variables representing the geometric offset of key points relative to the anchor points. The joint state vector is configured such that the left and right lane lines share the same anchor point state variable, and a rigid constraint relationship between the relative positions of adjacent key points is constructed in the relative state variables.

[0060] The joint state vector is a state carrier used to simultaneously express the spatial position and local shape of the left and right lane lines.

[0061] Anchor point state variables are used to describe the reference position of lane lines and their state information as they change over time.

[0062] Relative state variables are used to describe the geometric offset of multiple key points relative to anchor points.

[0063] Key points can be multiple discrete points selected along the longitudinal direction of the lane line.

[0064] When the left and right lane lines share the same anchor point state variable, the left and right lane lines do not maintain independent benchmarks separately. Instead, they use the same reference state to express the overall position of the lane lines on both sides in a linked manner, so that the lane lines on both sides can be modeled synchronously under the same state framework.

[0065] When constructing a rigid constraint relationship between adjacent key points in a relative state quantity, the distance, relative angle, or vertical ordering relationship between adjacent key points can be used as the constraint content to ensure that the key point sequence maintains the established geometric relationship during the state update process and reduce discontinuous jumps caused by observation fluctuations in local points.

[0066] Based on this, the joint state vector can transform the left and right lane lines from two independent objects into related objects in the same state space. Even if the observation of one lane line degrades, the other lane line and the shared anchor point can still provide constraint references, thereby maintaining the linkage between the left and right trajectories.

[0067] In this application, the construction of the joint state vector can be completed by the state initialization unit. Based on the key point positions of the left and right lane lines in the observation data, the state initialization unit first determines the initial values ​​of the anchor point state variables, and then establishes the initial values ​​of the relative positions of each key point using the anchor points as reference coordinates. For the relative state variables, the coordinate differences between adjacent points can be calculated sequentially according to the order of the key points on the lane lines, and these differences can be written into the state vector.

[0068] If there are defects, jump points, or outliers in the observation data, the initial relative values ​​of the corresponding key points can be supplemented based on the state estimates from the previous moment, and then corrected through subsequent filtering. This construction process ensures that the state vector retains both the overall anchoring information of the lane lines and the relative geometric relationships between local key points, providing a unified numerical expression for subsequent prediction and updates.

[0069] In one possible implementation, the anchor point state variables include the lateral coordinates of the left lane anchor point, the lateral coordinates of the right lane anchor point, the longitudinal coordinates of the anchor point, the lateral velocity of the left anchor point, the lateral velocity of the right anchor point, and the longitudinal velocity of the anchor point; the relative state variables include the lateral increments of the left lane, the lateral increments of the right lane, and the longitudinal increments corresponding to each key point.

[0070] The lateral coordinates of the left lane anchor point are used to indicate the position of the left lane anchor point in the lateral direction.

[0071] The lateral coordinates of the right lane anchor point are used to indicate the position of the right lane anchor point in the lateral direction.

[0072] The longitudinal coordinates of the anchor point are used to indicate the position of the shared reference line between the left and right lane lines in the longitudinal direction.

[0073] The lateral velocity of the left anchor point, the lateral velocity of the right anchor point, and the longitudinal velocity of the anchor point are used to characterize the changing trends of the anchor point in the lateral and longitudinal directions, respectively, and participate in the filtering prediction to maintain the continuous evolution of the state over time.

[0074] The left lane lateral increment, right lane lateral increment, and longitudinal increment corresponding to each key point are used to describe the geometric offset relationship of the key point relative to the anchor point. When the lateral increment and the longitudinal increment are used together, the position coordinates of each key point in the vehicle coordinate system can be recovered.

[0075] In practical implementation, the anchor point state variables can be organized into a fixed-dimensional state vector, and the relative state variables can be arranged into corresponding offset vectors according to the key point order. The two together constitute a joint state vector.

[0076] The joint state vector can be uniformly maintained by the filter. The anchor point state variable serves as a global reference term, reflecting the common position and motion state of the left and right lane lines, while the relative state variable serves as a local structure term, reflecting the fine-grained changes of each keypoint around the anchor point. After the image observation is converted into a set of lane line points in the vehicle coordinate system, the anchor point position and its velocity components can be determined first. Then, the corresponding increments can be calculated based on the lateral and longitudinal distances between each keypoint and the anchor point, and these increments can be written into the state vector. If the current frame observation degrades, the position extrapolation can be maintained by relying on the anchor point velocity, and the shape continuity of the keypoint sequence can be maintained by combining the relative state variable.

[0077] For example, along the longitudinal direction at a fixed sampling interval Select discrete key points, and denote the key point index as . ,in This is the anchor point. The key point for the left lane is denoted as... The key point of the right lane is marked as .

[0078] Anchor point state quantity The lateral coordinates of the left lane anchor point Horizontal coordinates of the right lane anchor point Anchor point longitudinal coordinates Lateral velocity of the left anchor point Horizontal velocity of the right anchor point Anchor point longitudinal velocity Composition, namely:

[0079] .

[0080] Relative state quantities Store the coordinate increments between adjacent keypoints, where the first keypoint is the first keypoint. The left lane lateral increment corresponding to each key point , No. The lateral increment of the right lane corresponding to each key point , No. Vertical increments corresponding to key points Under ideal rigid constraints The relative state vector form is:

[0081] .

[0082] By concatenating the anchor state variables with the relative state variables, a complete joint state vector is obtained. :

[0083] .

[0084] for Anchor point state variables; for The relative state variables are dimensional; the overall dimension of the joint state vector is . .

[0085] By using anchor points and increments of each order, the coordinates of each key point can be reconstructed, taking the left lane as an example. Taking one key point as an example:

[0086] ;

[0087] ;

[0088] In the formula, the positions of key points in the vehicle coordinate system are recovered by accumulating the horizontal and vertical increments at each level of anchor point coordinates.

[0089] When observations encounter defects, jumps, outliers, or degradation, the filtered output from the previous time step is directly reused. , , As the initial value of the relative state variable for this frame, the position is extrapolated by the anchor point state variable to maintain the geometric continuity of the key point sequence.

[0090] This approach allows the left and right lane lines to share a reference position within the same state framework, and the relative state variables are always expressed around the anchor point. Therefore, even with unilateral occlusion, local missing values, or increased observation noise, the synchronicity and consistency of the key point recovery results can still be maintained. The lane trajectory information generated based on this method has good temporal continuity and can maintain the correlation between the left and right lane lines in space, thereby improving the stability and geometric consistency of the trajectory output.

[0091] In one possible implementation, before constructing the joint state vector based on the observation data, the method further includes: determining the semantic labels corresponding to each key point in the observation data, and storing the semantic labels in association with the joint state vector; the semantic labels include normal, parallelism, merging, and bifurcation.

[0092] Semantic labels are used to perform lane topology semantic marking on key points in the observation data. "Normal" indicates that the key point is in a normal lane line state, "parallelism" indicates that the corresponding lane lines maintain a parallel relationship, "merging" indicates that the lane line merges at this point, and "bifurcation" indicates that the lane line bifurcates at this point.

[0093] The joint state vector can be composed of anchor state variables and relative state variables. Semantic labels and state indexes or storage units of each key point are written together in the same state record, so that each key point can carry the corresponding semantic information when updated in subsequent updates.

[0094] It should be noted that the associated storage can be implemented using a memory-mapped table, an additional field for the state vector, or a hash index to ensure that the semantic label and the geometric state maintain their correspondence during propagation within the same frame and across frames. In practical applications, other implementation methods can also be selected for this storage format, and this application does not limit them.

[0095] After acquiring the observation data of the left and right lane lines, the system performs semantic recognition on each key point and generates corresponding semantic labels based on the changes in lateral spacing between key points, the consistency of the relative directions of the left and right lane lines, and local topological change features. Key points with stable lane line relationships and no topological changes are labeled "normal"; key points where the geometric relationship between the left and right lane lines satisfies parallel constraints are labeled "parallelism"; key points where the road boundary or target lane merges into the main lane in a local area are labeled "merging"; and key points where the lane structure splits into multiple paths in a local area are labeled "forking". Subsequently, the system binds and stores this label with the state item of the corresponding key point in the joint state vector and directly calls it during filtering updates and trajectory generation.

[0096] In this way, by pre-writing semantic labels before constructing the joint state vector, the joint state vector not only contains the geometric quantities of key points but also synchronously includes topological semantic quantities, enabling subsequent updates to perform different constraint processing based on different labels. Thus, when key points are in parallel, merging, or bifurcation regions, state updates can retain their corresponding semantic context and maintain semantic consistency of key points during cross-frame matching, thereby ensuring that the lane trajectory representation remains consistent with changes in road topology.

[0097] In one possible implementation, the method further includes: during the filtering update process, propagating the semantic tags of the previous frame across frames to the corresponding key points in the current frame.

[0098] The semantic tags from the previous frame are used to pass semantic information across frames during the filter update process, allowing keypoints in the current frame to inherit the semantic state of the previous frame. Semantic tags include categories such as normal, parallelism, merging, and bifurcation. After being associated with and stored with their corresponding keypoints, these tags can serve as auxiliary criteria for keypoint segmentation, topology determination, and width constraints.

[0099] The key point corresponding to the current frame refers to the key point in the current frame observation data that is near the same spatial location or under the same trajectory index as the previous frame. The propagation of semantic tags can be completed based on the positional correspondence between key points, the filtering prediction results, and the matching relationship between adjacent frames.

[0100] In practice, the filtering update process receives the keypoint coordinates observed in the current frame, the predicted state vector, and the semantic tags saved in the previous frame. After matching the keypoints in the current frame, the semantic tags carried by the keypoints in the previous frame are written into the temporary semantic field of the corresponding keypoints in the current frame. When the observations in the current frame are incomplete or there are fluctuations in local keypoints, the system still uses the semantic tags obtained from cross-frame propagation as the initial semantic tags to participate in the joint state update, and corrects the semantic attribution together with the observation results of the current frame.

[0101] If the spatial deviation between the keypoints in the current frame and those in the previous frame is less than a preset threshold, the semantic label from the previous frame can be directly used. If the deviation exceeds the threshold, the semantic label for the corresponding keypoint in the current frame is re-determined based on the filtered prediction position, normal width change, and the coherence relationship between adjacent keypoints. The updated semantic label is then written back to the cache for propagation in the next frame. This semantic propagation process is performed synchronously with the geometric state update, and in the current frame, it only propagates to keypoints whose correspondence has been confirmed.

[0102] In this way, by passing the semantic label of the previous frame to the corresponding key point of the current frame, the current frame can still maintain semantic continuity when the observation is unstable, partially occluded, or the boundary is blurred. This also ensures that the segment boundary determination is consistent with the parallelism, merging, and bifurcation recognition results, thereby reducing the impact of inter-frame semantic jumps on subsequent trajectory stitching and constraint updates.

[0103] S103. Perform filtering prediction and filtering update based on the joint state vector to obtain the updated joint state vector.

[0104] Filtered prediction is used to infer the state distribution at the next moment based on the joint state vector at the current moment and the state transition relationship. In one possible embodiment, the state transition relationship can be jointly determined by the vehicle motion model and the lane line extension model, wherein the anchor point state quantity is advanced according to the vehicle's forward speed, heading change and sampling time interval, and the relative state quantity remains continuously changing or changes slowly within an allowable range according to preset geometric constraints.

[0105] The filter update is used to fuse the observation data at the current moment with the prediction results. It uses the observation model to map the actual detected key points of the left and right lane lines into the state space and corrects the predicted state.

[0106] The filtering process can employ a Kalman-like method. The state transition relation describes the temporal evolution of the anchor point and relative quantities, while the observation relation describes the mapping between the observed data and the state vector. Since the left and right lane lines share the same anchor point state quantity, prediction and updating simultaneously affect the state sub-vectors on both sides, allowing the left and right lane lines to be synchronously corrected within the same prediction framework. Because the relative state quantity incorporates rigid constraints between adjacent key points, the updating process suppresses unreasonable relative offsets between key points while fusing observations, preventing local noise from directly disrupting the shape continuity of the entire lane line.

[0107] When there are insufficient observation points for one lane at a given moment, the filter update can still utilize the shared anchor point state variables and the observation information of the other lane to complete the state correction, thereby maintaining the continuous evolution of the updated joint state vector. This step is used to restrict the observation correction to be performed within a unified state framework, avoiding the asynchronous phenomenon caused by the independent updates of the left and right lanes. It allows the deviation between the predicted and observed values ​​to be distributed to the anchor points and relative quantities through state coordination, thereby achieving continuous and stable time-series monitoring.

[0108] In this application, filtering prediction and filtering update can be executed cyclically according to a preset sampling period. Each cycle takes the joint state vector updated in the previous time step as input and outputs a new joint state vector by combining the observation data in the current frame or the current time window. When the vehicle is in a straight-ahead, slightly turning, lane-changing, or lane-forking scenario, the state transition relationship and observation relationship are processed through a unified filtering framework, thereby simultaneously incorporating the anchor point movement caused by changes in road geometry and the relative quantity adjustment caused by changes in the local curvature of the lane into the estimation result.

[0109] If the current observation is affected by occlusion, the filtered prediction can temporarily continue the motion trend of the previous moment. Once new valid observations arrive, the state deviation can be corrected by filtering. This approach makes the state estimation independent of the completeness of a single frame of observations, but rather relies on the state inertia and structural constraints in continuous time to maintain output stability.

[0110] In one possible implementation, filtering prediction and filtering update are performed based on the joint state vector to obtain the updated joint state vector. This includes: filtering and predicting the joint state vector to obtain the predicted state vector; calculating the predicted covariance matrix based on the posterior covariance matrix of the previous frame; constructing a standard observation vector and a corresponding standard observation matrix based on the observation data; constructing a virtual observation vector and a corresponding virtual observation matrix based on the normal width relationship between key points of the left and right lane lines in the joint state vector; concatenating the standard observation vector and the virtual observation vector to generate the total observation vector, and concatenating the standard observation matrix and the virtual observation matrix to generate the total observation matrix; and filtering and updating the predicted state vector based on the total observation vector, the total observation matrix, the observation noise matrix, and the predicted covariance matrix to obtain the updated joint state vector.

[0111] The predicted state vector is used to represent the intermediate estimation result of the joint state vector after state propagation.

[0112] The posterior covariance matrix is ​​used to characterize the uncertainty of the state estimation in the previous frame.

[0113] The prediction covariance matrix is ​​used to characterize the error range of the prediction result for the current frame.

[0114] Standard observation vectors are used to carry the positions of key lane line points obtained directly from observation data.

[0115] The standard observation matrix is ​​used to describe the mapping relationship between the observation and the joint state vector.

[0116] The virtual observation vector is used to express the normal width constraint between key points of the left and right lane lines.

[0117] The virtual observation matrix is ​​used to describe the relationship between the constraint and the joint state vector.

[0118] The total observation vector and total observation matrix are formed by splicing together standard observations and constraint observations, respectively, so as to simultaneously introduce direct observation information and geometric constraint information in the same update model.

[0119] In practical implementation, the joint state vector can be maintained using a Kalman filter state form, which includes the anchor point state variables shared by the left and right lane lines, as well as the relative state variables. During filtering prediction, the anchor point position, velocity, and curvature parameters are propagated according to the state transition model, and the predicted covariance matrix is ​​calculated by combining the posterior covariance matrix corresponding to the previous frame and the process noise term.

[0120] A standard observation vector is constructed based on the coordinates of key points of lane lines extracted from the current frame image or bird's-eye view observation data. Simultaneously, an observation matrix is ​​established to match the corresponding components in the joint state vector with the key points. For the normal width relationship between key points of the left and right lane lines, the width difference between adjacent key points is used as a constraint to generate a virtual observation vector, and a virtual observation matrix reflecting the propagation relationship of the width constraint is constructed. Subsequently, the two types of observations are concatenated dimensionally to form a total observation vector and a total observation matrix. These are then combined with the observation noise matrix and the prediction covariance matrix to complete the filtering update, outputting the updated joint state vector.

[0121] In this way, by introducing direct observation and normal width constraint into the update process, the system can maintain the geometric consistency of the left and right lane lines when there is local occlusion, missing observation or increased noise, and make the relative relationship of adjacent key points continuous and stable in time, thereby improving the synchronicity and anti-disturbance capability of lane line monitoring results.

[0122] In one possible implementation, a virtual observation vector is constructed based on the normal width relationship between key points of the left and right lane lines in the joint state vector. This includes: determining the projection factor corresponding to each key point based on the lateral increment of adjacent key points in the joint state vector and the preset longitudinal sampling interval; determining the normal width corresponding to each key point based on the lateral distance between corresponding key points of the left and right lane lines and the projection factor; and determining the difference in the normal widths corresponding to adjacent key points as the components of the virtual observation vector.

[0123] The projection factor is used to characterize the projection ratio of adjacent key points in the longitudinal sampling direction. Its value is determined by the lateral increment of adjacent key points in the joint state vector and the preset longitudinal sampling interval, and serves as an intermediate quantity for converting lateral distance to normal width.

[0124] Normal width is used to characterize the width relationship between corresponding key points of the left and right lane lines in the normal direction. It is determined by the lateral distance between corresponding key points combined with the projection factor to reflect the geometric constraints of the left and right lane lines at the same sampling position.

[0125] Each component of the virtual observation vector corresponds to the change in the normal width of adjacent key points, which is used to characterize the continuity of lane width along the longitudinal sampling direction.

[0126] In the specific implementation, the lateral increment of adjacent key points in the joint state vector can be calculated from the position difference of lane line key points on the horizontal axis of the vehicle coordinate system, and the preset longitudinal sampling interval can be set to a fixed value based on the longitudinal spacing of lane line sampling points. After reading the coordinates of key points in the joint state vector, the system performs proportional calculations on the lateral displacement and longitudinal interval of adjacent key points to obtain the projection factor corresponding to each key point, and inputs the projection factor into the width conversion relationship.

[0127] Subsequently, the system calculates the normal width at each keypoint based on the lateral distance between corresponding keypoints on the left and right lane lines and the projection factor. It then subtracts the normal widths of adjacent keypoints to form a virtual observation vector corresponding to the keypoint sequence. This virtual observation vector can be directly concatenated into the total observation vector for filtering and updating.

[0128] The above construction method keeps the geometry of the virtual observations consistent with that of the joint state vector, and can explicitly introduce the width constraints between the left and right lane lines into the filtering update process, and uniformly express the width changes between adjacent key points, so that the updated joint state vector can still maintain the continuity and consistency of lane width when the observations degrade.

[0129] In this way, the virtual observation vector no longer relies on the independent observation results of a single lane line. Instead, it establishes a constraint relationship through the difference in normal width between corresponding key points on the left and right lane lines. This allows the filter update to utilize both lateral distance and sampling geometry, thereby improving the synchronicity and stability of lane line state estimation. Since the change in normal width between adjacent key points is directly converted into observation components, abrupt width changes caused by local occlusion, reflection, or noise can be constrained during the update process, and the continuity of the lane line trajectory output is correspondingly enhanced.

[0130] For example, record the previous frame ( The posterior joint state vector of the frame is Previous frame ( The posterior covariance matrix of the frame is The state transition matrix is ​​a block diagonal matrix. The exercise compensation item is The sampling time interval is In the filtering and prediction stage, the predicted state vector is... Predicting the covariance matrix The calculation formula is as follows:

[0131] ;

[0132] .

[0133] in, For the previous frame ( (Frame) Joint state vector, For the previous frame ( (Frame) Vehicle speed, For the previous frame ( (Frame) yaw rate; Q is the process noise matrix.

[0134] Constructing standard observation vectors Standard observation matrix Construct virtual observation vectors to address the constraint of equal normal width at key points. The virtual observation function Quantity:

[0135] ;

[0136] in, , For the first Left and right horizontal coordinates of key points in the group. For the virtual observation function. The virtual observation matrix is ​​obtained by taking the partial derivative. .

[0137] No. Projection factors Satisfy the following formula:

[0138] .

[0139] The standard observation vector is concatenated with the virtual observation vector to obtain the total observation vector. The standard observation matrix and the virtual observation matrix are concatenated to generate the total observation matrix. The corresponding total observation noise matrix is :

[0140] ; ; .

[0141] in, The standard observation noise matrix; This is the virtual observation noise matrix.

[0142] Perform filter update:

[0143] ;

[0144] ;

[0145] ;

[0146] ;

[0147] in, To filter the new information; Kalman gain; This is the joint state vector updated for this frame; This is the updated posterior covariance matrix for this frame; It is an identity matrix.

[0148] S104. Based on the updated joint state vector, generate trajectory information for the left and right lane lines.

[0149] The updated joint state vector contains the corrected anchor point state variables and relative state variables. The trajectory information generation process can recover the reference position of the lane line based on the anchor point state variables, and then combine the relative state variables to recover the coordinate sequence of each key point of the left and right lane lines one by one.

[0150] In one possible embodiment, the recovered discrete key points can be connected to form a continuous trajectory to obtain a left and right lane line trajectory expression suitable for subsequent control modules. Since the trajectory information comes from shared anchor point state quantities and rigidly constrained key point relative quantities, the left and right lane lines maintain a geometric correspondence under the same reference frame when outputting, thereby giving the left and right trajectories a consistent lateral relationship and longitudinal extension relationship in space.

[0151] The trajectory information can be further output to the lane keeping control unit, trajectory output unit, or lateral control unit for subsequent calculations of the vehicle's deviation from the lane center, the aiming point position, or the lateral control quantity. This step converts the filtered state variables into directly applicable lane line geometry results, transforming the output object from an abstract state vector into a set of trajectory coordinates with practical vehicle control significance.

[0152] In one possible implementation, trajectory information for the left and right lane lines is generated based on the updated joint state vector. This includes: extracting the lateral and longitudinal positions of anchor points, the lateral and longitudinal increments of each key point of the left lane line from the updated joint state vector; cumulatively adding the lateral positions of anchor points to the lateral increments of each key point to obtain the lateral positions of each key point of the left lane line; cumulatively adding the longitudinal positions of anchor points to the longitudinal increments of each key point to obtain the longitudinal positions of each key point of the left lane line; and constructing a key point sequence for the left lane line from the lateral and longitudinal positions of each key point. Similarly, extracting the lateral and longitudinal positions of anchor points, the lateral and longitudinal increments of each key point of the right lane line from the updated joint state vector; and cumulatively adding the lateral positions of anchor points to the lateral increments of each key point to obtain the right lane line. The lateral position of each key point is determined by summing the longitudinal position of the anchor point with the longitudinal increment of each key point point, thus obtaining the longitudinal position of each key point on the right lane line. The lateral and longitudinal positions of each key point constitute the key point sequence of the right lane line. Based on the change position of the semantic label of each key point and the position where the change in the normal width between the left and right lane lines at each key point exceeds a preset threshold, the segment boundary is determined, and the key point sequences of the left and right lane lines are divided into multiple segments according to the segment boundary. Each segment is fitted separately, and historical coefficients are introduced as constraint prior information. Continuity constraints are applied to the fitting results of adjacent segments at the segment boundary to obtain the lane line sub-trajectory information corresponding to each segment. The lane line sub-trajectory information corresponding to each segment is spliced ​​together to obtain the trajectory information of the left and right lane lines.

[0153] Among them, the lateral position of the anchor point is used to represent the reference coordinates of the lane line in the lateral direction, and the longitudinal position of the anchor point is used to represent the longitudinal reference coordinates. Together, they determine the starting reference point of the key point sequence.

[0154] The horizontal and vertical increments of each key point represent the offset of each key point relative to the anchor point. After storing this relative value in the joint state vector, the spatial position of the key point can be directly recovered.

[0155] Normal width refers to the distance between the left and right lane lines in the local normal direction, and is used to characterize the geometric relationship changes between the lane lines on both sides.

[0156] Historical coefficients are used to provide prior constraints for piecewise fitting, and their contents can be derived from a memory bank.

[0157] In practical implementation, the updated joint state vector can be output from the filtered and updated state array. The system reads the corresponding anchor point and increment values ​​for the left and right lane lines respectively, and uses accumulation operations to recover the coordinates of each key point. Then, based on the switching position of the key point semantic label and the position where the change in normal width exceeds the threshold, the segment boundary is determined, and the key point sequences on both sides are synchronously divided into several segments.

[0158] Each segment can be fitted with a polynomial or spline to generate a local curve. At the same time, historical coefficients are introduced into the fitting objective function as regularization constraints, and positional and tangential continuity are constrained at the boundaries of adjacent segments to ensure that the sub-trajectories remain smoothly connected after splicing.

[0159] For example, the anchor point coordinates and each increment are read from the updated joint state vector, and the left lane is restored by accumulating the anchor points and increments of each order. Coordinates of key points:

[0160] ; ;

[0161] Similarly, restore the right lane. Coordinates of key points:

[0162] ; .

[0163] Segment boundary determination: A segment boundary is set if either of the following two conditions is met: First, the semantic label of the key point changes. ;in, For the first Semantic tags corresponding to each key point; For the first Semantic tags corresponding to each key point;

[0164] Second, the key points satisfy the following regarding the change in normal width:

[0165] ;

[0166] in, A preset threshold for segmenting width variations is provided, with an example value of 0.3m. For the first Each key point corresponds to the lane normal width; For the first Each key point corresponds to the lane normal width.

[0167] For each segment, a weighted least squares polynomial fitting is performed using soft constraints incorporating historical coefficients to fit the objective function:

[0168] ;

[0169] in, As key point weights; , These are the historical prior coefficients from the memory bank; , These are the constraint strength coefficients for the first-order and second-order terms, respectively. , , , These are the coefficients to be solved for the piecewise cubic polynomial; For the first Vertical coordinates of key points; For the first The lateral observation coordinates of the key points; This represents finding the polynomial coefficients that minimize the objective function. , , , ; This represents the lane line segment currently being fitted.

[0170] During the fitting calculation, continuity constraints of position, first derivative, and second derivative are applied at the segment boundary to ensure a smooth transition between adjacent segment trajectories. Finally, the lane line sub-trajectories output by each segment are spliced ​​together in longitudinal order to output complete left and right lane line trajectory information.

[0171] This processing method can uniformly map the left and right lane lines to a sequence of key points in a shared state. It determines segment boundaries through semantic changes and width abrupt changes, and then completes local fitting and stitching by combining historical coefficients and continuity constraints, thus ensuring the output trajectory remains continuous and consistent in lane topology change regions. Therefore, lane line trajectory information can be stably recovered into a continuous trajectory result that can be used by subsequent control modules.

[0172] In one possible implementation, the method further includes: updating the memory bank when a preset stability condition is met; the stability condition includes at least one of the following: the number of valid keypoints is greater than or equal to a number threshold, the average variance of the keypoint estimation variance of valid segments is less than a variance threshold, the current lane width deviation is less than a width threshold, or the valid keypoints of the lane line in the current frame do not include keypoints with semantic labels of merging and keypoints with semantic labels of bifurcation; the memory bank includes at least one of the following coefficients: historical coefficients, used to provide constraint prior information for segment fitting; stability coefficients, used as a backoff benchmark when lane line observation anomalies or monitoring failures occur; and a width parameter, used to complete the lane constraint on the missing side when a lane line observation is missing on one side; wherein, the forgetting of the memory bank is determined based on the cumulative driving distance of the target vehicle, and when the cumulative driving distance exceeds a preset distance threshold, the memory bank is marked as invalid.

[0173] The memory bank is used to store historical constraint information during lane line monitoring and is refreshed when the current observation meets the stability conditions.

[0174] The number of effective keypoints is used to characterize the scale of keypoints available for fitting in the current frame.

[0175] The quantity threshold is used to limit the minimum size of observations that can be written to the memory.

[0176] The average value of the key point estimation variance of the effective segment is used to characterize the dispersion of the fitting results for each segment.

[0177] The variance threshold is used to limit the maximum allowable fluctuation during stable writes.

[0178] The current lane width deviation is used to characterize the geometric consistency between the left and right lane lines.

[0179] Width thresholds are used to limit whether width variations are within an acceptable range.

[0180] Semantic tags are used for ingress and fork key points to identify areas where the road topology changes, and the memory is not refreshed when such key points exist.

[0181] The historical coefficient, stability coefficient, and width parameter correspond to the piecewise fitting prior, the anomaly backoff benchmark, and the missing side constraint completion information, respectively.

[0182] The cumulative driving distance is used to indicate the vehicle's driving scale since the current memory bank became effective, and the preset distance threshold is used to limit the effective duration of the memory bank.

[0183] In the specific implementation, after completing the joint state update of lane lines and trajectory generation, the system continues to jointly determine the number of effective key points, the mean of segment fitting variance, the lane width deviation, and the semantic labels of key points in the current frame. When any of the stability conditions is met and write permission is satisfied, the filtered segment coefficients, width, and backtracking reference in the current frame are written into the memory to form new historical coefficients, stability coefficients, and width parameters.

[0184] Historical coefficients can be obtained by using piecewise polynomial fitting coefficients or spline fitting coefficients, stability coefficients can be obtained by using the joint state variables corresponding to low-variance frames, and width parameters can be obtained by using the average normal spacing between the left and right lane lines or their piecewise mean. The memory provides prior constraints to the piecewise fitting during reading, provides a backoff benchmark when observations are abnormal or monitoring fails, and fills in the missing side constraints when a lane line is missing on one side.

[0185] At the same time, the system accumulates the mileage information of the target vehicle and compares it with a preset distance threshold. When the accumulated driving distance exceeds the threshold, the memory bank is directly marked as invalid, and new memory content will only be created when the stability conditions are met again.

[0186] For example, the stability criteria for bank updates are as follows:

[0187] ;

[0188] in, The number of valid key points on one side; The threshold for the number of key points; Estimate the variance for key points; This is the variance threshold; The current frame lane width; For reference lane width; This is the width threshold.

[0189] The memory bank fails due to forgetting conditions, when the vehicle's cumulative mileage... satisfy:

[0190] ;

[0191] Then the marker of memory validity Set as ;Example preset distance threshold value .

[0192] When the above stability conditions are met, the piecewise polynomial coefficients obtained by filtering, the stable monitoring status, and the lane width are written into the memory bank as historical coefficients, stability coefficients, and width parameters, respectively. After the memory bank expires, the memory content will be re-established only when the stability conditions are met again.

[0193] In this way, the memory update mechanism uses stable observations as the trigger condition and driving distance as the failure criterion, ensuring that the written content remains consistent with the current road geometry. Since the history coefficient, stability coefficient, and width parameter serve piecewise fitting, anomaly backoff, and missing data completion, lane lines can maintain continuous constraints even when occluded, undergoing topological changes, or experiencing unilateral loss. By using cumulative driving distance to manage the forgetting cycle, the memorized content is more closely related to the vehicle's actual driving process, reducing the interference of outdated information on subsequent trajectory generation and improving output stability.

[0194] In one possible implementation, the method further includes: calculating the normal width deviation of key points; determining the corresponding operating mode based on the normal width deviation; the operating modes include normal mode, transition mode and emergency mode; and adjusting the observation noise matrix according to the determined operating mode.

[0195] The normal width deviation measures the degree of deviation between the actual normal width of the left and right lane lines at key points and the expected normal width. This deviation is obtained by comparing the normal distance between the corresponding key points of the left and right lane lines in the current frame and a preset lane width reference. The preset lane width reference can be determined by historical stable frame values, road lane specification values, or calibration values ​​of the current lane segment.

[0196] The working mode is used to characterize the stability state of the current observed geometric relationship. When the normal width deviation is within a small range of fluctuation, it enters the normal mode; when the normal width deviation enters the change range, it enters the transition mode; and when the normal width deviation exceeds the abnormal threshold, it enters the emergency mode.

[0197] The observation noise matrix is ​​used to describe the degree of confidence in standard and virtual observations. Its matrix elements can be set to a diagonal matrix form, and the noise variance parameter increases sequentially in different modes.

[0198] In actual processing, the system first extracts the spatial coordinates of key points on the left and right lane lines based on the updated joint state vector, and calculates the width of the line connecting the corresponding key points in the normal direction. Then, it differs this width value from the target width to obtain the normal width deviation. Subsequently, it completes the mode determination based on a pre-set deviation threshold range and writes the current mode into the filter control parameters. If in normal mode, a smaller observation noise variance is used in the Kalman update; if in transition mode, the observation noise variance is appropriately increased to retain more of the predicted state in the update result; if in emergency mode, the observation noise variance is further increased to reduce the disturbance of abnormal width observations to the joint state vector. The adjustment result of the observation noise matrix takes effect within the current frame update cycle and dynamically switches with the re-determination of the normal width deviation in the next frame.

[0199] For example, the first Normal width deviation at key points:

[0200]

[0201] in, For the first Normal width deviation corresponding to key points; The reference normal width (preset lane width benchmark).

[0202] Pattern determination criteria:

[0203] ;

[0204] in, This is the upper limit threshold for normal fluctuations; The lower threshold corresponding to the inflow or fork.

[0205] Virtual observation noise matrix for Diagonal matrix, the first The diagonal elements are :

[0206] ;

[0207] According to the The working mode of each key point, independently calculating the corresponding diagonal element. :

[0208] ;

[0209] in, This represents the baseline value for virtual observation noise under normal mode. This is the amplification factor for the transition range; This represents the peak noise level observed virtually in emergency mode.

[0210] Each The deviation of the normal width of each keypoint is calculated independently, and different keypoints can be in different working modes. The elements on the diagonal can take different values; The smaller the value, the more restrictive the forced parallelism becomes.

[0211] In this way, by introducing the normal width deviation into the mode selection and coordinating with the hierarchical adjustment of the observation noise matrix, the filtering update process can adopt different observation confidence levels for different stability scenarios, thereby enabling the joint state vector to maintain more stable update results when there are sudden changes in lane width, unilateral occlusion, or abnormal lane geometry, and making the output left and right lane line trajectory information have more continuous temporal consistency.

[0212] Therefore, this application provides a data processing method for complex road scenarios involving lane observation occlusion, partial gaps, lane merging, and bifurcation during vehicle movement. When constructing a joint state vector containing anchor point state variables and relative state variables, the method sets the left and right lane lines to share the same anchor point state variable and establishes a rigid constraint relationship between the relative positions of adjacent key points in the relative state variables. Then, filtering prediction and filtering update are performed on the joint state vector. Finally, trajectory information of the left and right lane lines is generated based on the updated joint state vector. In this way, the coupling of left and right lane line states and the rigid geometric constraints of key points can be achieved during the state construction stage. The method fully preserves the baseline motion information and relative offset information of lane key points and directly uses them for filtering monitoring and trajectory generation. This method is suitable for operating conditions with high noise and local observation failures in vehicle sensing, reducing the asynchrony caused by independent updates of left and right lane lines and the disruption of the overall lane line shape by local noise. This improves the geometric consistency of lane line monitoring and the output stability in complex scenarios.

[0213] Figure 2 A schematic diagram illustrating the principles of each stage of lane line state processing provided in this application.

[0214] like Figure 2 As shown in (a), this is a scatter plot of the bird's-eye view. The plot shows the bird's-eye view point set corresponding to the left and right lane lines of the target vehicle. This point set contains the original key points of the lane lines after fusion of multiple frames.

[0215] like Figure 2 As shown in (b) in the figure, it is a schematic diagram of random sampling consistency fitting. The figure shows the initial contour of the lane line obtained by random sampling consistency fitting of the point set of the bird's-eye view.

[0216] like Figure 2 As shown in (c), this is a schematic diagram of coefficient sampling, which presents the sequence of key lane points obtained based on the initial contour sampling of the lane line.

[0217] like Figure 2 As shown in (d), this is a schematic diagram of key point monitoring. The diagram presents the sequence of key points for the left and right lanes with rigid relative position constraints after the joint state vector is constructed.

[0218] like Figure 2 As shown in (e), this is a schematic diagram of the geometric deviation of key points. The diagram presents pairs of key points for the left and right lanes, and marks the lateral deviation between the pairs of key points. Longitudinal deviation This is used to calculate the normal width corresponding to the key point and construct the virtual observation vector.

[0219] like Figure 2 As shown in (f), this is a schematic diagram of constraint fitting. The diagram shows the final generated left and right lane trajectories after the segmented constraint fitting is completed by combining the long-term memory geometric constraint module.

[0220] It should be noted that when there are merging or bifurcation scenarios in the lanes, the segment boundaries can be determined based on the semantic labels corresponding to the key points, and constraint fitting can be performed segment by segment to obtain the lane line trajectory that adapts to the merging or bifurcation pattern. This application does not impose any limitations on this.

[0221] Figure 3 A schematic diagram of the architecture of the data processing system provided in this application.

[0222] like Figure 3 As shown, the data processing system includes an observation module and a filtering module.

[0223] The observation module includes a spatial transformation unit, a compensation and fusion unit, an observation fitting unit, and a key point sampling unit.

[0224] The spatial transformation unit is used to perform coordinate spatial transformation of pixels.

[0225] The compensation and fusion unit is used to perform motion compensation on historical observation data and complete the fusion of multiple frames of data.

[0226] The observation fitting unit is used to perform lane line observation fitting on the fused data.

[0227] The key point sampling unit is used to sample and obtain lane key point observation data.

[0228] The filtering module includes a state prediction unit, a filter update unit, a piecewise fitting unit, and a memory management unit.

[0229] The state prediction unit is used to construct the joint state vector and perform filtered prediction.

[0230] The filter update unit is used for keypoint filtering updates and semantic tag propagation across frames.

[0231] The segmented fitting unit is used for semantic segmented constraint fitting to generate lane line trajectory information.

[0232] The memory management unit is used for the maintenance and management of the long-term memory bank.

[0233] The key point observation data output by the observation module is input into the filtering module; after the filtering module processes the data, it outputs the lane line trajectory information to the downstream functional module.

[0234] Figure 4 A schematic diagram of the data processing device provided in this application. Figure 4 As shown, the data processing device 40 provided in this embodiment includes at least one processor 401 and a memory 402. Optionally, the data processing device 40 further includes a communication component 403. The processor 401, memory 402, and communication component 403 are connected via a bus 404.

[0235] In the specific implementation process, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to execute the above-described data processing method.

[0236] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0237] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0238] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0239] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0240] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0241] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0242] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0243] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0244] The division of units is merely a logical functional division; 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 indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0245] 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.

[0246] In addition, the functional units in the various embodiments of the present invention 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.

[0247] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium 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 invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0248] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0249] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.

Claims

1. A data processing method, characterized in that, The method includes: Acquire observation data of the left and right lane lines of the target vehicle; Based on the observation data, a joint state vector is constructed; the joint state vector includes anchor point state quantities representing the reference position and motion state of the lane line, and relative state quantities representing the geometric offset of key points relative to the anchor points; wherein, the joint state vector is configured such that the left and right lane lines share the same anchor point state quantity, and a rigid constraint relationship between the relative positions of adjacent key points is constructed in the relative state quantities. Based on the joint state vector, filter prediction and filter update are performed to obtain the updated joint state vector; Based on the updated joint state vector, the trajectory information of the left and right lane lines is generated.

2. The method according to claim 1, characterized in that, The step of performing filtering prediction and filtering update based on the joint state vector to obtain the updated joint state vector includes: The joint state vector is filtered and predicted to obtain the predicted state vector; The prediction covariance matrix is ​​calculated based on the posterior covariance matrix of the previous frame before the current frame. Based on the observation data, construct standard observation vectors and corresponding standard observation matrices; Based on the normal width relationship between key points of the left and right lane lines in the joint state vector, construct the virtual observation vector and the corresponding virtual observation matrix. The standard observation vector and the virtual observation vector are concatenated to generate the total observation vector, and the standard observation matrix and the virtual observation matrix are concatenated to generate the total observation matrix; The predicted state vector is filtered and updated based on the total observation vector, the total observation matrix, the observation noise matrix, and the prediction covariance matrix to obtain the updated joint state vector.

3. The method according to claim 2, characterized in that, The step of constructing a virtual observation vector based on the normal width relationship between key points of the left and right lane lines in the joint state vector includes: The projection factor corresponding to each key point is determined based on the lateral increment of adjacent key points in the joint state vector and the preset longitudinal sampling interval. The normal width corresponding to each key point is determined based on the lateral distance between the key points corresponding to the left and right lane lines and the projection factor. The difference in the normal widths of adjacent key points is used to determine the components of the virtual observation vector.

4. The method according to claim 1, characterized in that, The step of generating trajectory information for the left and right lane lines based on the updated joint state vector includes: The anchor point lateral position, anchor point longitudinal position, and lateral and longitudinal increments of each key point of the left lane line are extracted from the updated joint state vector. The anchor point lateral position and the lateral increment of each key point are accumulated point by point to obtain the lateral position of each key point of the left lane line. The anchor point longitudinal position and the lateral increment of each key point are accumulated point by point to obtain the longitudinal position of each key point of the left lane line. The lateral and longitudinal positions of each key point constitute the key point sequence of the left lane line. The lateral and longitudinal positions of the anchor points of the right lane line, the lateral and longitudinal increments of each key point are extracted from the updated joint state vector. The lateral positions of the anchor points and the lateral increments of each key point are accumulated point by point to obtain the lateral positions of each key point of the right lane line. The longitudinal positions of the anchor points and the longitudinal increments of each key point are accumulated point by point to obtain the longitudinal positions of each key point of the right lane line. The lateral and longitudinal positions of each key point constitute the key point sequence of the right lane line. Based on the changing positions of the semantic labels of each key point and the position where the change in normal width between the left lane line and the right lane line at each key point exceeds a preset threshold, the segment boundary is determined, and the key point sequence of the left lane line and the key point sequence of the right lane line are divided into multiple segments according to the segment boundary. Each segment is fitted separately, and historical coefficients are introduced as constraint prior information. Continuity constraints are applied to the fitting results of adjacent segments at the segment boundaries to obtain the lane line sub-trajectory information corresponding to each segment. The lane line sub-trajectory information corresponding to each segment is spliced ​​together to obtain the trajectory information of the left and right lane lines.

5. The method according to claim 1, characterized in that, The method further includes: When the preset stability conditions are met, the memory is updated; The stability condition includes at least one of the following: the number of valid key points is greater than or equal to the number threshold, the average value of the variance of the key point estimation of the valid segment is less than the variance threshold, the current lane width deviation is less than the width threshold, or the valid key points of the lane line in the current frame do not include key points with the semantic label of merging and key points with the semantic label of bifurcation. The memory bank includes at least one of the following coefficients: historical coefficients, used to provide constraint prior information for piecewise fitting; stability coefficients, used as a backoff benchmark when lane line observation anomalies or monitoring failures occur; and width parameters, used to complete the lane constraints on the missing side when lane line observations on one side are missing. The forgetting of the memory bank is determined based on the cumulative driving distance of the target vehicle. When the cumulative driving distance exceeds a preset distance threshold, the memory bank is marked as invalid.

6. The method according to claim 1, characterized in that, Before constructing the joint state vector based on the observed data, the process further includes: Determine the semantic labels corresponding to each key point in the observation data, and associate and store the semantic labels with the joint state vector; The semantic tags include normal, parallelism, inflow, and fork.

7. The method according to claim 6, characterized in that, The method further includes: During the filtering update process, the semantic tags of the previous frame are propagated across frames to the corresponding key points in the current frame.

8. The method according to claim 1, characterized in that, The acquisition of observation data of the left and right lane lines of the target vehicle includes: Obtain lane line pixels in the image space; The lane line pixels are transformed to the bird's-eye view space in the vehicle coordinate system to obtain the bird's-eye view point set; Motion compensation is performed on the bird's-eye view point set corresponding to the historical frame to obtain the compensated bird's-eye view point set; The point set of the bird's-eye view is fused with the point set of the compensated bird's-eye view to obtain the fused point set; Random sampling consistency fitting is performed on the fused point set to obtain the observation data of the left and right lane lines.

9. The method according to claim 2, characterized in that, The method further includes: Calculate the normal width deviation of the key points; The corresponding operating mode is determined based on the normal width deviation; the operating modes include normal mode, transition mode, and emergency mode. The observation noise matrix is ​​adjusted according to the determined operating mode.

10. The method according to claim 1, characterized in that, The anchor point state quantities include the lateral coordinates of the left lane anchor point, the lateral coordinates of the right lane anchor point, the longitudinal coordinates of the anchor point, the lateral velocity of the left anchor point, the lateral velocity of the right anchor point, and the longitudinal velocity of the anchor point; the relative state quantities include the lateral increments of the left lane, the lateral increments of the right lane, and the longitudinal increments corresponding to each key point.

11. A data processing system, characterized in that, The system includes: The observation module is used to acquire observation data of the left and right lane lines of the target vehicle; The filtering module is used to construct a joint state vector based on the observation data, perform filtering prediction and filtering update on the joint state vector to obtain an updated joint state vector, and generate the trajectory information of the left and right lane lines based on the updated joint state vector.

12. A data processing device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-10.

14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-10.