A virtual lane keeping method and device

By acquiring motion data of vehicles and target objects, identifying vehicles traveling in the same direction and generating safety boundaries, the system solves the problem of functional failure of traditional lane keeping systems in complex scenarios, achieves safe lane keeping without lane lines, and improves environmental adaptability and driving safety.

CN123190814APending Publication Date: 2026-12-01CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611307018.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-12-01

AI Technical Summary

Technical Problem

Traditional lane keeping assist systems struggle to reliably detect lane lines in complex scenarios such as lane line wear, insufficient nighttime lighting, rain or snow cover, or road construction, leading to functional failure and an inability to achieve accurate lane keeping without lane lines.

Method used

By acquiring the motion data of the current vehicle and the target object, vehicles traveling in the same direction are identified, a vehicle driving safety boundary is generated, and the vehicle driving direction is corrected based on this boundary. The vehicle driving safety boundary is dynamically generated using the driving trajectory information of vehicles traveling in the same direction, including triple filtering of relative speed difference, heading angle deviation and object type. The Kalman filter residual and trajectory quality weight are combined for fitting to generate a smooth vehicle driving boundary.

Benefits of technology

In the absence of lane markings, it significantly improves the vehicle's environmental adaptability and driving safety in complex environments, enhances the reliability of identifying vehicles traveling in the same direction and the accuracy of safety boundaries, and achieves robust and adaptive path tracking for the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123190814A_ABST
    Figure CN123190814A_ABST
Patent Text Reader

Abstract

This application discloses a virtual lane keeping method and apparatus. The method includes: acquiring motion data of a current vehicle and motion data of target objects within the environment in which the current vehicle is located; determining vehicles traveling in the same direction based on the motion data of the current vehicle and the motion data of target objects within the environment; acquiring the driving trajectory information of the vehicles traveling in the same direction, and generating a vehicle driving safety boundary based on the driving trajectory information of the vehicles traveling in the same direction; determining the distance between the current vehicle and the vehicle driving safety boundary, and correcting the driving direction of the current vehicle based on the distance between the current vehicle and the vehicle driving safety boundary. This application enables virtual lane keeping without lane markings.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent driving technology, and in particular to a virtual lane keeping method and device. Background Technology

[0002] Currently, Lane Keeping Assist (LKA) relies heavily on accurate lane line recognition. However, in complex scenarios such as worn lane lines, insufficient nighttime lighting, rain or snow cover, or road construction, visual sensors struggle to reliably detect lane lines, causing traditional LKA functions to fail and making it impossible to achieve accurate lane keeping without lane lines. Summary of the Invention

[0003] In view of this, this application provides a virtual lane keeping method and apparatus to achieve virtual lane keeping without lane lines.

[0004] This application provides the following solution: In a first aspect, a virtual lane keeping method is provided, the method comprising: Acquire the motion data of the current vehicle and the motion data of target objects within the environment in which the current vehicle is located; Based on the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located, vehicles traveling in the same direction are determined. Obtain the driving trajectory information of the vehicles traveling in the same direction, and generate a vehicle driving safety boundary based on the driving trajectory information of the vehicles traveling in the same direction. The distance between the current vehicle and the vehicle driving safety boundary is determined, and the driving direction of the current vehicle is corrected based on the distance between the current vehicle and the vehicle driving safety boundary.

[0005] Optionally, the motion data of the current vehicle includes the first speed and first heading angle information of the current vehicle; the motion data of the target object in the environment where the current vehicle is located includes the second speed, second heading angle information and type information of the target object.

[0006] Optionally, determining vehicles traveling in the same direction based on the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located includes: The relative speed difference is determined based on the first speed and the second speed; Determine the heading angle deviation based on the first heading angle information and the first heading angle information; If the relative speed difference is less than the speed difference threshold, the heading angle deviation is less than the heading angle deviation threshold, and the type information is a vehicle, the target object is identified as a vehicle traveling in the same direction.

[0007] Optionally, generating the vehicle driving safety boundary based on the driving trajectory information of the vehicles traveling in the same direction includes: The trajectory information of the vehicles traveling in the same direction is fitted with a curve to obtain the vehicle travel boundary curve; The vehicle driving safety boundary is determined based on the vehicle driving boundary curve.

[0008] Optionally, the step of curve fitting the trajectory information of the vehicles traveling in the same direction to obtain the vehicle travel boundary curve includes: The Kalman filter residual for each trajectory point of the vehicles traveling in the same direction is determined based on the trajectory information of the vehicles traveling in the same direction. The trajectory quality weight of each trajectory point of the vehicle traveling in the same direction is determined based on the Kalman filter residual of each trajectory point of the vehicle traveling in the same direction. Obtain the position information of each travel trajectory point of the vehicles traveling in the same direction and the position information of the current vehicle; The trajectory target weight of each travel trajectory point of the same-direction vehicle is determined based on the trajectory quality weight of each travel trajectory point of the same-direction vehicle, the position information of each travel trajectory point of the same-direction vehicle, and the position information of the current vehicle. Substitute the target weight of each travel trajectory point of the vehicles traveling in the same direction into the objective function of the weighted least squares method, and solve the objective function with the target weight of the trajectory to obtain the vehicle travel boundary curve.

[0009] Optionally, determining the vehicle driving safety boundary based on the vehicle driving boundary curve includes: The average trajectory quality weight is determined based on the trajectory quality weight of each travel trajectory point of the vehicles traveling in the same direction. The trajectory confidence level is determined based on the average trajectory quality weight; The boundary safety offset is determined based on the trajectory confidence level; The vehicle driving safety boundary is determined based on the vehicle driving boundary curve and the boundary safety offset.

[0010] Optionally, correcting the driving direction of the current vehicle based on the distance between the current vehicle and the vehicle driving safety boundary includes: The correction threshold is determined based on the trajectory confidence level; If the distance between the current vehicle and the vehicle driving safety boundary is less than the correction threshold, then the steering wheel angle is obtained, and the driving direction of the current vehicle is corrected based on the steering wheel angle.

[0011] Secondly, a virtual lane keeping device is provided, the device comprising: The motion data acquisition unit is configured to acquire the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located; The same-direction vehicle determination unit is configured to determine the same-direction vehicles based on the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located. The safety boundary determination unit is configured to acquire the driving trajectory information of the vehicles traveling in the same direction, and generate a vehicle driving safety boundary based on the driving trajectory information of the vehicles traveling in the same direction. The driving direction correction unit is configured to determine the distance between the current vehicle and the vehicle driving safety boundary, so as to correct the driving direction of the current vehicle based on the distance between the current vehicle and the vehicle driving safety boundary.

[0012] Thirdly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any one of the first aspects above.

[0013] Fourthly, an electronic device is provided, comprising: One or more processors; and A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method described in any one of the first aspects above.

[0014] Fifthly, a computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0015] According to the specific embodiments provided in this application, the following technical effects are disclosed: 1) This application dynamically generates a vehicle driving safety boundary by utilizing the driving trajectory of vehicles traveling in the same direction, and corrects the driving direction of the current vehicle by using the distance between the current vehicle and the vehicle driving safety boundary as a reference. This enables the current vehicle to maintain a safe driving path that conforms to the current traffic flow even in scenarios without clear lane lines, thereby significantly improving the environmental adaptability and driving safety of the current vehicle in complex environments such as unclear or missing lane lines or severe weather.

[0016] 2) This application simultaneously collects data such as the speed, heading angle and object type of the vehicle and the target object, providing necessary and accurate input for the subsequent screening logic, thereby eliminating misjudgments that may be introduced due to insufficient data dimensions and improving the reliability of vehicle identification in the same direction.

[0017] 3) This application effectively eliminates interference from oncoming vehicles, pedestrians, bicycles and stationary obstacles through triple filtering of relative speed difference, heading angle deviation and object type, and retains only vehicles traveling in the same direction as the current vehicle, thereby improving the purity and effectiveness of the driving trajectory information used for safety boundary construction and laying the foundation for generating accurate safety boundaries.

[0018] 4) This application determines the safety boundary by fitting discrete driving trajectory information into a continuous boundary curve, which enables the vehicle to perform subsequent distance calculation and driving direction correction based on a clear geometric description, thus providing a foundation for reliable virtual lane keeping.

[0019] 5) This application utilizes Kalman filter residuals to quantify the reliability of each driving trajectory point, and then combines the distance between the driving trajectory point and the current vehicle for weighting, making the fitting process more reliant on high-quality, close-range trajectory points. This effectively suppresses the interference of noise or abnormal trajectory points on the shape of the boundary curve, resulting in a smoother vehicle driving boundary curve that more accurately reflects the direction of traffic flow.

[0020] 6) This application improves the safety of vehicle lane keeping by mapping trajectory quality weights to safety offsets, thereby enabling adaptive adjustment of the vehicle driving safety boundary width.

[0021] 7) By associating the correction threshold with the trajectory confidence, this application enables more timely correction and maintains accurate path tracking when the driving trajectory of vehicles traveling in the same direction is reliable; while increasing the trigger threshold when the trajectory confidence decreases, it avoids unnecessary or erroneous correction actions caused by inaccurate safety boundaries, thereby achieving robustness and adaptability of driving direction correction.

[0022] Of course, any product implementing this application does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a system architecture diagram applicable to the embodiments of this application.

[0025] Figure 2 A flowchart of the virtual lane keeping method provided in the embodiments of this application.

[0026] Figure 3A schematic block diagram of a virtual lane keeping device provided in an embodiment of this application.

[0027] Figure 4 A schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0029] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “a,” “the,” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0030] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0031] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."

[0032] Currently, Lane Keeping Assist (LKA) relies heavily on accurate lane line recognition. However, in complex scenarios such as worn lane lines, insufficient lighting at night, rain or snow cover, or road construction, visual sensors struggle to reliably detect lane lines, causing traditional LKA functions to fail.

[0033] In existing technologies, when lane lines are not visible, onboard sensors (such as millimeter-wave radar and cameras) can be used to identify static boundaries on both sides of the road (such as curbs, guardrails, and green belts), and virtual lane lines can be generated based on these boundaries to provide deviation warnings or corrections. The core problems with this technical solution are: first, the road boundaries it relies on may also be missing in open intersections, squares, or some rural roads, limiting its applicability; second, the generated virtual lane lines are fixed and rigid, unable to be flexibly adjusted according to real-time traffic flow conditions (such as traffic density and speed).

[0034] In view of this, this application provides a new approach. To facilitate understanding of this application, the system architecture on which this application is based will first be described. Figure 1 An exemplary system architecture that can be applied to embodiments of this application is shown, such as Figure 1 As shown, the system architecture may include: user terminal, terminal device and server terminal.

[0035] The server side and the client side are the two main components of an application service. The server side uses a server as its primary hardware infrastructure and may include one or more software service modules. The server side and the client side form a collaborative front-end and back-end.

[0036] The user client can be located on a terminal device, which can be an internet-connected car terminal. In this embodiment, the user client can be a local application running on the terminal device. The user client can interact with the server via a network; for example, the internet-connected car terminal can send data such as vehicle location to the server.

[0037] The server can be a single server, a server cluster consisting of multiple servers, or a cloud server. A cloud server, also known as a cloud computing server or cloud host, is a host product in the cloud computing service system, designed to address the shortcomings of traditional physical hosts and Virtual Private Servers (VPS) services, such as high management difficulty and weak service scalability.

[0038] It should be understood that Figure 1 The number of client terminals, terminal devices, and servers shown is merely illustrative. Depending on implementation needs, there can be any number of client terminals, terminal devices, and servers.

[0039] Figure 2 This is a flowchart of a virtual lane keeping method provided in an embodiment of this application. The method can be... Figure 1 The user-side execution in the system shown is as follows. Figure 2 As shown, the method may include the following steps: Step 201: Obtain the motion data of the current vehicle and the motion data of the target objects in the current vehicle's environment.

[0040] Step 202: Determine vehicles traveling in the same direction based on the current vehicle's motion data and the motion data of target objects in the current vehicle's environment.

[0041] Step 203: Obtain the driving trajectory information of vehicles traveling in the same direction, and generate vehicle driving safety boundaries based on the driving trajectory information of vehicles traveling in the same direction.

[0042] Step 204: Determine the distance between the current vehicle and the vehicle driving safety boundary, so as to correct the current vehicle's driving direction based on the distance between the current vehicle and the vehicle driving safety boundary.

[0043] As can be seen from the above process, this application dynamically generates the vehicle driving safety boundary by utilizing the driving trajectory of vehicles traveling in the same direction, and corrects the current vehicle's driving direction by using the distance between the current vehicle and the vehicle driving safety boundary as a reference. This enables the current vehicle to maintain a safe driving path that conforms to the current traffic flow even in scenarios without clear lane lines, thereby significantly improving the environmental adaptability and driving safety of the current vehicle in complex environments such as unclear or missing lane lines or severe weather.

[0044] The following describes in detail each step of the above process and the effects that can be further produced, with reference to the embodiments. It should be noted that the terms "first" and "second" used in this disclosure do not have limitations in terms of size, order, or quantity, but are only used to distinguish them in name.

[0045] First, the above step 201, namely "acquiring the motion data of the current vehicle and the motion data of the target object in the environment where the current vehicle is located", will be described in detail with reference to the embodiments.

[0046] Motion data refers to parameters or information describing the motion state of an object. For example, motion data may include, but is not limited to, velocity, acceleration, position, and heading angle. The current vehicle refers to the vehicle currently in motion, which can be an autonomous or manned vehicle. The target object is an object within the current vehicle's environment, and may include, but is not limited to, vehicles, pedestrians, bicycles, electric vehicles, motorcycles, and stationary obstacles.

[0047] As one possible approach, the motion data of the current vehicle includes the vehicle's first speed and first heading angle information; the motion data of the target object in the environment in which the current vehicle is located includes the target object's second speed, second heading angle information, and type information.

[0048] Here, the first speed refers to the current vehicle speed. The first heading angle information refers to the current vehicle heading angle. Both the first speed and the first heading angle information can be measured by the vehicle's own sensors. The second speed refers to the target object's speed. The second heading angle information refers to the target object's heading angle. The type information refers to the type of physical object, which can be a vehicle, pedestrian, bicycle, electric vehicle, motorcycle, stationary obstacle, etc.

[0049] For example, millimeter-wave radars and cameras on both sides of the vehicle can detect target objects in adjacent lanes in real time. Specifically, the millimeter-wave radar can acquire information such as the distance, speed, and heading angle of the target object; the cameras can capture environmental images, and then target detection algorithms can be used to identify the outline of the target object in the environmental image and determine the type of the target object. The motion data acquired by the millimeter-wave radar and cameras can be timestamped and fused at the target object level through extended Kalman filtering, that is, to associate motion data with target objects.

[0050] It should be noted that this application simultaneously collects data such as the speed, heading angle, and object type of both the vehicle and the target object, providing necessary and accurate input for the subsequent filtering logic. This eliminates potential misjudgments due to insufficient data dimensions and improves the reliability of identifying vehicles traveling in the same direction.

[0051] The following describes in detail step 202, namely "determining vehicles traveling in the same direction based on the current vehicle's motion data and the motion data of target objects in the current vehicle's environment," with reference to an embodiment.

[0052] Among them, vehicles traveling in the same direction refer to vehicles traveling in the same direction as the current vehicle, and can participate in the construction of virtual security boundaries as effective traffic flow.

[0053] Specifically, target objects can be filtered based on the current vehicle's motion data and the motion data of target objects in the current vehicle's environment, thereby identifying vehicles traveling in the same direction from among the target objects.

[0054] One possible approach is to determine vehicles traveling in the same direction based on the motion data of the current vehicle and the motion data of target objects in the environment in which the current vehicle is located, including: determining a relative speed difference based on a first speed and a second speed; determining a heading angle deviation based on a first heading angle information and a first heading angle information; and determining the target object as a vehicle traveling in the same direction if the relative speed difference is less than a speed difference threshold, the heading angle deviation is less than a heading angle deviation threshold, and the type information is a vehicle.

[0055] The relative speed difference refers to the difference between the first speed and the second speed. The heading angle deviation refers to the difference between two heading angle values. The speed difference threshold can be a fixed value or dynamically adjusted based on the current vehicle speed; for example, the higher the current vehicle speed, the higher the speed difference threshold can be. The heading angle deviation threshold can be a fixed value.

[0056] For example, if the absolute value of the relative speed difference is less than the speed difference threshold, the absolute value of the heading angle deviation is less than the heading angle deviation threshold, and the type information is a vehicle, the target object can be identified as a vehicle traveling in the same direction.

[0057] This application effectively eliminates interference from oncoming vehicles, pedestrians, bicycles, and stationary obstacles through triple filtering based on relative speed difference, heading angle deviation, and object type, retaining only vehicles traveling in the same direction as the current vehicle. This improves the purity and effectiveness of the driving trajectory information used for safety boundary construction, laying the foundation for generating accurate safety boundaries.

[0058] As another feasible approach, to improve the robustness of detecting vehicles traveling in the same direction and avoid instantaneous errors, a continuous observation time threshold can be set based on the above filtering conditions. This allows for the retention of stably tracked target objects based on the continuous observation time threshold. For example, if the continuous tracking duration of a target object is greater than the continuous observation time threshold, the target object can be retained; if the continuous tracking duration of a target object is not greater than the continuous observation time threshold, the target object can be removed and not identified as a vehicle traveling in the same direction.

[0059] As another possible approach, after identifying vehicles traveling in the same direction, these vehicles can be categorized into left-side and right-side vehicles based on their lateral position relative to the current vehicle. For example, vehicles with a positive lateral position can be identified as left-side vehicles, and vehicles with a negative lateral position can be identified as right-side vehicles.

[0060] The following describes in detail step 203, namely "obtaining the driving trajectory information of vehicles traveling in the same direction and generating a vehicle driving safety boundary based on the driving trajectory information of vehicles traveling in the same direction", with reference to the embodiments.

[0061] Among them, the driving trajectory information refers to the driving trajectory of vehicles traveling in the same direction, which may include the driving trajectory points of one or more vehicles traveling in the same direction.

[0062] Specifically, for each vehicle traveling in the same direction, a sequence of its driving trajectory points in the current vehicle coordinate system can be established. The sequence of driving trajectory points can be a sequence of driving trajectory points within a preset time window.

[0063] In some embodiments, Kalman filtering can be used to smooth the driving trajectory information, eliminating jumps or outliers in the driving trajectory points. In another embodiment, all driving trajectory points can be aligned with the current moment in the time dimension, thereby forming trajectory clusters on the left and right sides.

[0064] A vehicle driving safety boundary is a virtual boundary generated based on the trajectory of vehicles traveling in the same direction, used to define the safe driving area of ​​the current vehicle. For example, a vehicle driving safety boundary may include the left safety boundary and / or the right safety boundary of the current vehicle.

[0065] One feasible approach is to generate a vehicle driving safety boundary based on the driving trajectory information of vehicles traveling in the same direction, including: performing curve fitting on the driving trajectory information of vehicles traveling in the same direction to obtain a vehicle driving boundary curve; and determining the vehicle driving safety boundary based on the vehicle driving boundary curve.

[0066] Among them, the vehicle driving boundary curve refers to the result of curve fitting of the driving trajectory points of vehicles traveling in the same direction, which can characterize the driving path of the traffic flow.

[0067] This application determines the vehicle's driving safety boundary by fitting discrete driving trajectory information into a continuous boundary curve, enabling the vehicle to perform subsequent distance calculations and driving direction corrections based on a clear geometric description, thus providing a foundation for reliable virtual lane keeping.

[0068] Furthermore, as one feasible approach, curve fitting is performed on the trajectory information of vehicles traveling in the same direction to obtain the vehicle driving boundary curve. This includes: determining the Kalman filter residual for each trajectory point of the vehicles traveling in the same direction based on their trajectory information; determining the trajectory quality weight for each trajectory point based on the Kalman filter residual; obtaining the position information of each trajectory point and the current vehicle's position information; determining the trajectory target weight for each trajectory point based on its trajectory quality weight, position information, and current vehicle position information; substituting the trajectory target weight into the objective function of the weighted least squares method, and solving the objective function with the substituted trajectory target weight to obtain the vehicle driving boundary curve.

[0069] Kalman filter residual refers to the deviation between the actual measured value and the predicted value of the Kalman filter when using the Kalman filter to estimate the state of a driving trajectory point. The Kalman filter residual reflects the degree of measurement noise or anomaly at the driving trajectory point; a larger Kalman filter residual indicates lower measurement reliability for that driving trajectory point.

[0070] Trajectory quality weight is a numerical metric used to measure the reliability of a single driving trajectory point, and it can be calculated based on the Kalman filter residuals. For example, the specific calculation formula can be: W_point_k=exp(-residual_k / sigma); Where W_point_k represents the trajectory quality weight of the k-th driving trajectory point, residual_k represents the Kalman filter residual of the k-th driving trajectory point, and sigma represents the normalization constant.

[0071] The trajectory target weight refers to the weighting coefficient assigned to each driving trajectory point during curve fitting. This weighting coefficient comprehensively considers the trajectory quality weight of the driving trajectory point and the spatial distance correlation between the driving trajectory point and the current vehicle. Specifically, the trajectory quality weight is divided by the Euclidean distance between the driving trajectory point and the current vehicle position to obtain the trajectory target weight, so that the driving trajectory point that is closer to the current vehicle and has higher quality contributes more to the fitting result.

[0072] For example, the formula for calculating the trajectory target weight can be: Wk=W_point_k / ((xk–x0)^2+(yk–y0)^2+epsilon); Where (xk, yk) represents the location information of the kth driving trajectory point, (x0, y0) represents the current vehicle location information; epsilon represents a constant used to prevent the denominator from being zero; Wk represents the trajectory target weight of the kth driving trajectory point.

[0073] The objective function of the weighted least squares method can be: Where Wk represents the trajectory target weight of the k-th driving trajectory point, yk represents the measured ordinate of the k-th driving trajectory point, f(xk) represents the predicted ordinate output by the fitted curve equation at the abscissa xk, and f(.) represents the curve equation. In some embodiments, the curve equation can be a cubic spline curve equation, that is, the boundary curve can be fitted using the cubic spline interpolation method.

[0074] Furthermore, by solving the objective function that substitutes the target weights of the trajectory, the polynomial coefficients that minimize the sum of squared weighted errors are obtained, which are the vehicle driving boundary curves. The vehicle driving boundary curves can include the left vehicle driving boundary curve and the right vehicle driving boundary curve.

[0075] It should be noted that this application utilizes Kalman filter residuals to quantify the reliability of each driving trajectory point, and then combines the distance between the driving trajectory point and the current vehicle for weighting, making the fitting process more reliant on high-quality, close-range trajectory points. This effectively suppresses the interference of noise or abnormal trajectory points on the shape of the boundary curve, resulting in a smoother vehicle driving boundary curve that more accurately reflects the direction of traffic flow.

[0076] One possible approach is to determine the vehicle driving safety boundary based on the vehicle driving boundary curve, including: determining the average trajectory quality weight based on the trajectory quality weight of each driving trajectory point of vehicles traveling in the same direction; determining the trajectory confidence based on the average trajectory quality weight; determining the boundary safety offset based on the trajectory confidence; and determining the vehicle driving safety boundary based on the vehicle driving boundary curve and the boundary safety offset.

[0077] The average trajectory quality weight refers to the average of the trajectory quality weights of multiple driving trajectory points. For example, the average trajectory quality weight may include the average of the trajectory quality weights of all driving trajectory points on the left and the average of the trajectory quality weights of all driving trajectory points on the right.

[0078] Trajectory confidence is a quantitative evaluation index that assesses the overall reliability of one or more sets of driving trajectory points. The higher the trajectory confidence, the more accurately the current traffic flow data reflects the actual driving path.

[0079] For example, trajectory confidence can include the overall confidence level of all driving trajectory points on the left and the overall confidence level of all driving trajectory points on the right. The formula for calculating the overall confidence level of all driving trajectory points on the left can be: K_Left=(N_Left / N_max)×AVE_W_point_Left; The formula for the overall reliability of all driving trajectory points on the right side can be: K_Right=(N_Right / N_max)×AVE_W_point_Right; Wherein, K_Left represents the overall reliability of all driving trajectory points on the left, N_Left represents the number of driving trajectory points on the left, N_max represents the maximum number of references, AVE_W_point_Left represents the average value of the trajectory quality weights of all driving trajectory points on the left, K_Right represents the overall reliability of all driving trajectory points on the right, N_Right represents the number of driving trajectory points on the right, and AVE_W_point_Right represents the average value of the trajectory quality weights of all driving trajectory points on the right.

[0080] Boundary safety offset refers to the distance extended outward from the vehicle driving boundary curve, used to reserve additional safety margin within the vehicle driving safety boundary.

[0081] For example, the boundary safety offset may include a left dynamic safety offset and a right dynamic safety offset, and the formula for calculating the left dynamic safety offset can be: Offset_Left=(W_lane / 2)+D_margin+beta×(1-K_Left); The formula for calculating the dynamic safety offset on the right side can be: Offset_Right=(W_lane / 2)+D_margin+beta×(1-K_Right); Where Offset_Left represents the dynamic safety offset on the left; W_lane represents the basic lane width, which can be a fixed value; D_margin represents the basic safety margin, which can be a fixed value; beta represents the adjustment coefficient; and Offset_Right represents the dynamic safety offset on the right.

[0082] The vehicle driving safety boundary can include a left safety boundary and a right safety boundary. The formula for calculating the left safety boundary is as follows: y_left_safe(x)=y_left(x)+Offset_Left; The formula for calculating the right-side safety boundary can be: y_right_safe(x)=y_right(x)-Offset_Right; Where y_left_safe(x) represents the left safety boundary, y_left(x) represents the left vehicle driving boundary curve, and Offset_Left represents the left dynamic safety offset; y_right_safe(x) represents the right safety boundary, y_right(x) represents the right vehicle driving boundary curve, and Offset_Right represents the right dynamic safety offset.

[0083] It should be noted that this application achieves adaptive adjustment of the vehicle driving safety boundary width by mapping the trajectory quality weight to a safety offset, thereby improving the safety of vehicle lane keeping.

[0084] In some embodiments, after obtaining the vehicle driving safety boundary, validity checks, boundary intersection checks, and minimum lane width guarantee checks can be performed on the vehicle driving safety boundary. If any check fails, degradation strategies such as reducing vehicle speed or requesting driver intervention can be implemented. Validity checks may include curvature checks; for example, if the curvature at all points on the vehicle driving safety boundary is greater than a preset curvature threshold, the vehicle driving safety boundary is determined to be invalid. Boundary intersection checks can be performed by determining whether the left and right safety boundaries intersect. The minimum lane width guarantee check is performed if the distance between the left and right safety boundaries is less than the minimum lane width threshold, in which case the vehicle driving safety boundary is determined to be invalid.

[0085] The following describes in detail step 204, namely "determining the distance between the current vehicle and the vehicle driving safety boundary, so as to correct the driving direction of the current vehicle based on the distance between the current vehicle and the vehicle driving safety boundary", with reference to the embodiments.

[0086] For example, the lateral distance between the current vehicle and the left and right safety boundaries can be calculated based on the current vehicle's position and the vehicle's driving safety boundaries. Then, the driving direction of the current vehicle can be corrected based on the lateral distance between the current vehicle and the left and right safety boundaries, that is, lateral correction control is performed on the current vehicle.

[0087] One possible approach is to correct the current vehicle's direction of travel based on the distance between the current vehicle and the vehicle's safe travel boundary, including: determining a correction threshold based on trajectory confidence; if the distance between the current vehicle and the vehicle's safe travel boundary is less than the correction threshold, obtaining the steering wheel angle, and correcting the current vehicle's direction of travel based on the steering wheel angle.

[0088] The correction threshold refers to the lateral distance value that triggers lateral correction control, which can be a fixed value or calculated based on the trajectory confidence level.

[0089] For example, the correction threshold may include a left correction threshold and a right correction threshold, and the formula for calculating the left correction threshold can be: T_left=T_base+alpha×(1–K_Left); The formula for calculating the right-side correction threshold is as follows: T_right=T_base+alpha×(1–K_Right); where T_left represents the left correction threshold, T_base represents the base threshold, alpha represents the adjustment coefficient, K_Left represents the overall reliability of all left driving trajectory points; T_right represents the right correction threshold; K_Right represents the overall reliability of all right driving trajectory points. When D_left < T_left, rightward correction is triggered; when D_right < T_right, leftward correction is triggered. The correction can be implemented by converting the expected lateral displacement into a steering wheel angle through a PID (Proportional-Integral-Derivative) controller or a model predictive controller, so as to correct the current driving direction of the vehicle.

[0090] It should be noted that, by associating the correction threshold with the trajectory confidence, this application enables more timely correction to maintain precise path tracking when the driving trajectory of vehicles traveling in the same direction is reliable; and increases the trigger threshold when the trajectory confidence decreases, so as to avoid unnecessary or erroneous correction actions caused by inaccurate safety boundaries, thereby achieving the robustness and adaptability of driving direction correction.

[0091] To facilitate the understanding of the above method flow and technical effects, application examples are listed below: S1: Collect information on surrounding vehicles. Specifically, obtain the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located.

[0092] S2: Screen vehicles traveling in the same direction. Specifically, determine vehicles traveling in the same direction based on the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located.

[0093] S3: Trajectory construction and quality evaluation. Specifically, obtain the driving trajectory information of the vehicles traveling in the same direction, and determine the Kalman filter residual of each driving trajectory point of the vehicles traveling in the same direction based on the driving trajectory information of the vehicles traveling in the same direction; determine the trajectory quality weight of each driving trajectory point of the vehicles traveling in the same direction based on the Kalman filter residual of each driving trajectory point of the vehicles traveling in the same direction.

[0094] S4: Weighted boundary curve fitting. Specifically, obtain the position information of each driving trajectory point of the vehicles traveling in the same direction and the position information of the current vehicle; determine the trajectory target weight of each trajectory point of the vehicles traveling in the same direction based on the trajectory quality weight of each trajectory point of the vehicles traveling in the same direction, the position information of each driving trajectory point of the vehicles traveling in the same direction, and the position information of the current vehicle; substitute the trajectory target weight of each trajectory point of the vehicles traveling in the same direction into the objective function of the weighted least square method, and solve the objective function with the substituted trajectory target weight to obtain the vehicle driving boundary curve.

[0095] S5: Safety Boundary Generation and Dynamic Offset. Specifically, an average trajectory quality weight is determined based on the trajectory quality weight of each travel trajectory point of the vehicles traveling in the same direction; a trajectory confidence level is determined based on the average trajectory quality weight; a boundary safety offset is determined based on the trajectory confidence level; and a vehicle driving safety boundary is determined based on the vehicle driving boundary curve and the boundary safety offset.

[0096] S6: Lateral control execution. Specifically, a correction threshold is determined based on the trajectory confidence; if the distance between the current vehicle and the vehicle driving safety boundary is less than the correction threshold, the steering wheel angle is obtained, and the driving direction of the current vehicle is corrected based on the steering wheel angle.

[0097] S7: Status Monitoring and Mode Switching. Specifically, when the camera cannot effectively recognize the physical lane lines, and the total confidence score (K_Left + K_Right) for the left and right sides exceeds a preset confidence threshold for a continuous preset time, the system enters virtual lane mode, i.e., executes S1-S6. When the total confidence score for the left and right sides falls below the preset confidence threshold, or when the camera re-recognizes the physical lane lines for a continuous preset number of frames, the system switches back to LKA.

[0098] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0099] According to another embodiment, a virtual lane keeping device is provided. Figure 3 A schematic block diagram of a virtual lane-keeping device according to one embodiment is shown, the device being disposed in Figure 1 The user end in the illustrated architecture. For example... Figure 3 As shown, the device 300 includes: a motion data acquisition unit 301, a vehicle-in-the-same-direction determination unit 302, a safety boundary determination unit 303, and a driving direction correction unit 304. The main functions of each component are as follows: The motion data acquisition unit 301 is configured to acquire the motion data of the current vehicle and the motion data of the target object in the environment where the current vehicle is located.

[0100] The same-direction vehicle determination unit 302 is configured to determine the same-direction vehicles based on the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located.

[0101] The safety boundary determination unit 303 is configured to acquire the driving trajectory information of the vehicles traveling in the same direction and generate a vehicle driving safety boundary based on the driving trajectory information of the vehicles traveling in the same direction.

[0102] The driving direction correction unit 304 is configured to determine the distance between the current vehicle and the vehicle driving safety boundary, so as to correct the driving direction of the current vehicle based on the distance between the current vehicle and the vehicle driving safety boundary.

[0103] As one possible implementation, the motion data of the current vehicle includes the first speed and first heading angle information of the current vehicle; the motion data of the target object in the environment where the current vehicle is located includes the second speed, second heading angle information and type information of the target object.

[0104] As one possible implementation, the same-direction vehicle determination unit 302 can also be configured to determine a relative speed difference based on the first speed and the second speed; determine a heading angle deviation based on the first heading angle information and the first heading angle information; and determine the target object as a vehicle traveling in the same direction when the relative speed difference is less than a speed difference threshold, the heading angle deviation is less than a heading angle deviation threshold, and the type information is a vehicle.

[0105] As one possible implementation, the security boundary determination unit 303 may include: The boundary curve determination subunit is configured to perform curve fitting on the driving trajectory information of the vehicles traveling in the same direction to obtain the vehicle driving boundary curve.

[0106] The safety boundary determination subunit is configured to determine the vehicle driving safety boundary based on the vehicle driving boundary curve.

[0107] Furthermore, as one possible implementation, the boundary curve determination sub-unit is specifically configured to: determine the Kalman filter residual of each trajectory point of the vehicles traveling in the same direction based on the trajectory information of the vehicles traveling in the same direction; determine the trajectory quality weight of each trajectory point of the vehicles traveling in the same direction based on the Kalman filter residual; obtain the position information of each trajectory point of the vehicles traveling in the same direction and the position information of the current vehicle; determine the trajectory target weight of each trajectory point of the vehicles traveling in the same direction based on the trajectory quality weight, the position information of each trajectory point of the vehicles traveling in the same direction, and the position information of the current vehicle; substitute the trajectory target weight of each trajectory point of the vehicles traveling in the same direction into the objective function of the weighted least squares method, and solve the objective function with the trajectory target weight substituted to obtain the vehicle driving boundary curve.

[0108] Furthermore, as one possible implementation, the safety boundary determination subunit is specifically configured to determine an average trajectory quality weight based on the trajectory quality weight of each travel trajectory point of the vehicles traveling in the same direction; determine a trajectory confidence level based on the average trajectory quality weight; determine a boundary safety offset based on the trajectory confidence level; and determine a vehicle driving safety boundary based on the vehicle driving boundary curve and the boundary safety offset.

[0109] As one possible implementation method, the driving direction correction unit 304 can be specifically configured to determine a correction threshold based on the trajectory confidence; if the distance between the current vehicle and the vehicle driving safety boundary is less than the correction threshold, then the steering wheel angle is obtained, and the driving direction of the current vehicle is corrected based on the steering wheel angle.

[0110] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the description of the method embodiments. The system and device embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

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

[0112] In addition, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method described in any of the foregoing method embodiments.

[0113] And an electronic device, comprising: One or more processors; and A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method described in any of the foregoing method embodiments.

[0114] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in any of the foregoing method embodiments.

[0115] in, Figure 4 An exemplary architecture of an electronic device is shown, which may include a processor 410, a video display adapter 411, a disk drive 412, an input / output interface 413, a network interface 414, and a memory 420. The processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, and memory 420 can communicate with each other via a communication bus 430.

[0116] The processor 410 can be implemented using a general-purpose CPU, microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits to execute relevant programs and implement the technical solution provided in this application.

[0117] The memory 420 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 420 can store the operating system 421 for controlling the operation of the electronic device 400, and the basic input / output system (BIOS) 422 for controlling the low-level operations of the electronic device 400. Additionally, it can store a web browser 423, a data storage management system 424, and a virtual lane keeping device 300, etc. The aforementioned virtual lane keeping device 300 can be the application program that specifically implements the aforementioned steps in this embodiment. In summary, when implementing the technical solution provided in this application through software or firmware, the relevant program code is stored in the memory 420 and executed by the processor 410.

[0118] Input / output interface 413 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.

[0119] Network interface 414 is used to connect a communication module (not shown in the figure) to enable communication and interaction between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0120] Bus 430 includes a pathway for transmitting information between various components of the device, such as processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, and memory 420.

[0121] It should be noted that although the above-described device only shows the processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, memory 420, bus 430, etc., in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the solution of this application, and does not necessarily include all the components shown in the figures.

[0122] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer program product. This computer program product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0123] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A virtual lane keeping method, characterized in that, The method includes: Acquire the motion data of the current vehicle and the motion data of target objects within the environment in which the current vehicle is located; Based on the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located, vehicles traveling in the same direction are determined. Obtain the driving trajectory information of the vehicles traveling in the same direction, and generate a vehicle driving safety boundary based on the driving trajectory information of the vehicles traveling in the same direction. The distance between the current vehicle and the vehicle driving safety boundary is determined, and the driving direction of the current vehicle is corrected based on the distance between the current vehicle and the vehicle driving safety boundary.

2. The method according to claim 1, characterized in that, The motion data of the current vehicle includes the first speed and first heading angle information of the current vehicle; the motion data of the target object in the environment where the current vehicle is located includes the second speed, second heading angle information and type information of the target object.

3. The method according to claim 2, characterized in that, The process of determining vehicles traveling in the same direction based on the motion data of the current vehicle and the motion data of target objects in the environment in which the current vehicle is located includes: The relative speed difference is determined based on the first speed and the second speed; Determine the heading angle deviation based on the first heading angle information and the first heading angle information; If the relative speed difference is less than the speed difference threshold, the heading angle deviation is less than the heading angle deviation threshold, and the type information is a vehicle, the target object is identified as a vehicle traveling in the same direction.

4. The method according to claim 1, characterized in that, The process of generating vehicle driving safety boundaries based on the driving trajectory information of the vehicles traveling in the same direction includes: The trajectory information of the vehicles traveling in the same direction is fitted with a curve to obtain the vehicle travel boundary curve; The vehicle driving safety boundary is determined based on the vehicle driving boundary curve.

5. The method according to claim 4, characterized in that, The step of curve fitting the trajectory information of the vehicles traveling in the same direction to obtain the vehicle travel boundary curve includes: The Kalman filter residual for each trajectory point of the vehicles traveling in the same direction is determined based on the trajectory information of the vehicles traveling in the same direction. The trajectory quality weight of each trajectory point of the vehicle traveling in the same direction is determined based on the Kalman filter residual of each trajectory point of the vehicle traveling in the same direction. Obtain the position information of each travel trajectory point of the vehicles traveling in the same direction and the position information of the current vehicle; The trajectory target weight of each travel trajectory point of the same-direction vehicle is determined based on the trajectory quality weight of each travel trajectory point of the same-direction vehicle, the position information of each travel trajectory point of the same-direction vehicle, and the position information of the current vehicle. Substitute the target weight of each travel trajectory point of the vehicles traveling in the same direction into the objective function of the weighted least squares method, and solve the objective function with the target weight of the trajectory to obtain the vehicle travel boundary curve.

6. The method according to claim 5, characterized in that, Determining the vehicle driving safety boundary based on the vehicle driving boundary curve includes: The average trajectory quality weight is determined based on the trajectory quality weight of each travel trajectory point of the vehicles traveling in the same direction. The trajectory confidence level is determined based on the average trajectory quality weight; The boundary safety offset is determined based on the trajectory confidence level; The vehicle driving safety boundary is determined based on the vehicle driving boundary curve and the boundary safety offset.

7. The method according to claim 6, characterized in that, The step of correcting the driving direction of the current vehicle based on the distance between the current vehicle and the vehicle driving safety boundary includes: The correction threshold is determined based on the trajectory confidence level; If the distance between the current vehicle and the vehicle driving safety boundary is less than the correction threshold, then the steering wheel angle is obtained, and the driving direction of the current vehicle is corrected based on the steering wheel angle.

8. A virtual lane keeping device, characterized in that, The device includes: The motion data acquisition unit is configured to acquire the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located; The same-direction vehicle determination unit is configured to determine the same-direction vehicles based on the motion data of the current vehicle and the motion data of target objects in the environment where the current vehicle is located. The safety boundary determination unit is configured to acquire the driving trajectory information of the vehicles traveling in the same direction, and generate a vehicle driving safety boundary based on the driving trajectory information of the vehicles traveling in the same direction. The driving direction correction unit is configured to determine the distance between the current vehicle and the vehicle driving safety boundary, so as to correct the driving direction of the current vehicle based on the distance between the current vehicle and the vehicle driving safety boundary.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that, include: One or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 7.