Data processing method and device, electronic equipment and storage medium

By setting the driving distance and duration of the trajectory segment in the vehicle trajectory data, and performing sampling processing to determine the lane direction, the problem of high cost and low efficiency of the existing vehicle lane change detection methods is solved, and fast and accurate lane change behavior detection is achieved. Suitable for real-time monitoring of intelligent transportation systems.

CN118538020APending Publication Date: 2024-08-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310189528.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing vehicle lane change detection methods are high in cost and low in efficiency. Computer vision-based methods require large amounts of calculations and poor timeliness, making it difficult to meet the needs of real-time monitoring.

Method used

By obtaining vehicle trajectory data, setting the driving distance and duration of the trajectory segment, performing sampling processing to determine the lane direction straight line, calculating the lateral distance, and determining whether the vehicle has lane changing behavior, it can achieve fast and accurate lane changing behavior detection.

Benefits of technology

It reduces detection costs, improves calculation speed and efficiency, realizes real-time monitoring of vehicle lane changing behavior, and supports the efficient operation of intelligent transportation systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118538020A
    Figure CN118538020A
Patent Text Reader

Abstract

The invention provides a data processing method and device based on a vehicle track, electronic equipment and a storage medium, and the method comprises the steps: obtaining the track data of a vehicle in a track segment, the driving distance of the track segment being smaller than a preset segmentation distance threshold value, and the driving duration of the track segment being smaller than a preset segmentation duration threshold value; sampling the trajectory data in the trajectory segment to obtain a plurality of sampling points and sampling trajectory data of each sampling point; based on the sampling track data of each sampling point, determining a straight line where the lane direction representing vehicle driving is located; according to the straight line where the lane direction is located and the sampling track data of each sampling point, obtaining a transverse distance between each sampling point and the straight line where the lane direction is located; and determining whether the vehicle has a target lane changing behavior in the trajectory segment based on the lateral distance. The technical scheme provided by the embodiment of the invention can be used in the traffic field, can display the time points and the positions of different lane changing behaviors in real time, and has very strong timeliness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a vehicle trajectory-based data processing method, device, electronic device and storage medium. Background Art

[0002] The lane changing behavior of vehicles while driving may lead to traffic accidents, such as frequent lane changing in a short period of time, lane changing in traffic jams, etc. Therefore, detecting and analyzing the lane changing behavior of vehicles and providing feedback to relevant drivers has become a research direction to ensure driving safety.

[0003] Existing vehicle lane change detection methods are mostly divided into two categories. One is manual judgment, that is, relevant staff judge whether the vehicle has performed certain lane change behaviors on site or by recording videos; the other is based on computer vision methods, which performs grayscale transformation, smoothing filtering and other processing on the images captured by the video, uses unsupervised learning models to model frequent lane change behaviors, and uses algorithm models to determine whether the vehicle has performed illegal lane change behaviors.

[0004] Obviously, the manual judgment method is costly and inefficient, while the computer vision-based method has problems such as large computational complexity and poor timeliness. Summary of the invention

[0005] To solve the above technical problems, the embodiments of the present application provide a vehicle trajectory-based data processing method and device, an electronic device, a computer-readable storage medium, and a computer program product.

[0006] According to one aspect of an embodiment of the present application, a data processing method based on a vehicle trajectory is provided, including: obtaining trajectory data of a vehicle within a trajectory segment, wherein the travel distance of the trajectory segment is less than a preset segment distance threshold, and the travel duration of the trajectory segment is less than a preset segment duration threshold; performing sampling processing on the trajectory data within the trajectory segment to obtain a plurality of sampling points and sampled trajectory data of each sampling point; determining a straight line representing a lane direction of the vehicle based on the sampled trajectory data of each sampling point; obtaining a lateral distance between each sampling point and the straight line where the lane direction is located based on the straight line where the lane direction is located and the sampled trajectory data of each sampling point; and determining whether the vehicle has a target lane change behavior within the trajectory segment based on the lateral distance.

[0007] According to one aspect of an embodiment of the present application, a data processing device based on a vehicle trajectory is provided, including: a trajectory data acquisition module, configured to acquire trajectory data of a vehicle within a trajectory segment, wherein the travel distance of the trajectory segment is less than a preset segment distance threshold, and the travel duration of the trajectory segment is less than a preset segment duration threshold; a sampling module, configured to perform sampling processing on the trajectory data within the trajectory segment to obtain a plurality of sampling points and sampled trajectory data of each sampling point; a lane direction straight line acquisition module, configured to determine a straight line representing the lane direction of the vehicle based on the sampled trajectory data of each sampling point; a lateral distance acquisition module, configured to acquire a lateral distance between each sampling point and the straight line where the lane direction is located according to the straight line where the lane direction is located and the sampled trajectory data of each sampling point; and a lane change analysis module, configured to determine whether the vehicle has a target lane change behavior within the trajectory segment based on the lateral distance.

[0008] In one embodiment, the sampling module includes: a sampling unit, configured to perform sampling processing on the trajectory data based on a preset sampling time interval or a preset sampling driving distance, to obtain a sampling point set and sampling trajectory data of each sampling point in the sampling point set, wherein the sampling trajectory data of each sampling point in the sampling point set includes the vehicle speed of the vehicle at the corresponding sampling point; a vehicle speed change value acquisition unit, configured to acquire the vehicle speed change value between two adjacent sampling points in the trajectory segment according to the vehicle speed of each sampling point in the sampling point set; a sampling data preprocessing unit, configured to remove two adjacent sampling points in the sampling point set whose vehicle speed change value is greater than a preset vehicle speed constant and the corresponding sampling trajectory data, to obtain the multiple sampling points and the sampling trajectory data of each sampling point.

[0009] In one embodiment, the data processing device based on the vehicle trajectory also includes: a driving data acquisition module, configured to determine the driving time and driving distance of the vehicle in the trajectory segment based on the trajectory data in the trajectory segment; a sampling data detection module, configured to execute the step of determining the straight line representing the lane direction of the vehicle based on the sampling trajectory data of each sampling point if the driving time is greater than a preset driving time threshold, the driving distance is greater than a preset driving distance threshold, and the number of sampling points of the multiple sampling points is greater than a preset sampling number threshold.

[0010] In one embodiment, the lane direction straight line acquisition module includes: a trajectory position acquisition unit, configured to acquire the trajectory position of each sampling point based on the sampling trajectory data of each sampling point; an average slope calculation unit, configured to calculate the average slope of the trajectory segment according to the trajectory position of each sampling point; and a lane direction straight line acquisition unit, configured to use the straight line where the average slope is located as the straight line where the lane direction is located.

[0011] In one embodiment, the lane change analysis module includes: a lane change data acquisition unit, configured to determine the lane change sampling point where the lane change behavior occurs based on the lateral distances corresponding to each sampling point, so as to obtain the lane change data of the lane change sampling point; a lane change analysis unit, configured to determine whether the vehicle has a target lane change behavior based on the lane change data.

[0012] In one embodiment, the lane change data acquisition unit includes: a lane change distance value acquisition module, configured to determine the lane change distance value based on the lane width in the trajectory segment; a lane change sampling point determination module, configured to use the sampling points whose lateral distances corresponding to the sampling points are greater than the lane change distance value as the lane change sampling points; and a lane change data acquisition module, configured to acquire the lane change data based on the lane change sampling points.

[0013] In one embodiment, the lane change data acquisition module includes: a lane change direction definition submodule, configured to use the lane direction as a reference to mark the two sides of the straight line where the lane direction is located as different lane change directions; a lane change direction determination submodule, configured to determine the lane change direction of the vehicle at the lane change sampling point based on the position of the vehicle on both sides of the lane direction at the lane change sampling point; and a lane change data acquisition submodule, configured to use the lane change direction of the lane change sampling point as the lane change data.

[0014] In one embodiment, the target lane change behavior includes an S-turn lane change behavior; the lane change analysis unit includes: a lane change direction analysis module, configured to determine whether there are lane change sampling points with different lane change directions in the lane change data based on the lane change data; an S-turn lane change behavior determination module, configured to determine that the vehicle has an S-turn lane change behavior in the trajectory segment if there are lane change sampling points with different lane change directions in the lane change data.

[0015] In one embodiment, the target lane change behavior includes a lane change behavior in a congested form; the trajectory data includes the driving distance and driving duration of the vehicle in the trajectory segment; the lane change analysis unit includes: a congestion index determination module, configured to determine the congestion index in the trajectory segment based on the driving distance and driving duration of the vehicle in the trajectory segment; a congested lane change determination module, configured to determine that the vehicle has a lane change behavior in a congested form if the congestion index is greater than a preset congestion value and the number of lane change sampling points in the lane change data is greater than a preset congestion lane change value.

[0016] In one embodiment, the target lane change behavior includes a lane change behavior with a sudden speed change; the lane change analysis unit includes: a vehicle speed acquisition module, configured to extract the vehicle speed of the lane change sampling point at a previous moment and the vehicle speed at a subsequent moment based on the trajectory data and the lane change data; a speed mutation value acquisition module, configured to determine the speed mutation value of the lane change sampling point based on the vehicle speed of the lane change sampling point at a previous moment and the vehicle speed at a subsequent moment; a sudden lane change determination module, configured to determine that the vehicle has a lane change behavior with a sudden speed change if the speed mutation value is greater than a preset mutation threshold.

[0017] In one embodiment, the target lane change behavior includes frequent lane change behavior; the lane change analysis unit includes: a sampling point quantity acquisition module, configured to obtain the number of lane change sampling points in the lane change data; a frequent lane change behavior determination module, configured to determine that the vehicle has frequent lane change behavior if the number of lane change sampling points is greater than a preset frequent lane change value.

[0018] In one embodiment, the sampling module includes: an error trajectory data determination unit, configured to determine, based on the trajectory position in the trajectory data, error trajectory data whose trajectory position does not match the position of the vehicle traveling in the trajectory segment; an error trajectory data clearing unit, configured to perform data clearing processing on the error trajectory data in the trajectory data, and perform sampling processing on the trajectory data subjected to data clearing processing, to obtain the multiple sampling points and the sampling trajectory data of each sampling point.

[0019] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors; a storage device for storing one or more computer programs, wherein when the one or more computer programs are executed by the one or more processors, the electronic device implements the vehicle trajectory-based data processing method as described above.

[0020] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the vehicle trajectory-based data processing method as described above.

[0021] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the vehicle trajectory-based data processing method provided in the above-mentioned various optional embodiments.

[0022] According to one aspect of an embodiment of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps in the vehicle trajectory-based data processing method as described above.

[0023] In the technical solution provided in the embodiments of the present application, by setting the driving distance and driving duration of the trajectory segment to match some lane changing behaviors that need to be generated within a shorter time and a shorter distance, the vehicle trajectory data of a shorter time and a shorter distance is processed to accurately detect some lane changing behaviors that need to be generated within a shorter time and a shorter distance. On the other hand, by sampling the trajectory data of the vehicle in the trajectory segment to obtain sampling points, the straight line where the lane direction of the vehicle in the trajectory segment is located is determined. In this way, the straight line where the lane direction is located can be used to determine whether the vehicle is traveling in the lane direction at different sampling points, so as to determine whether a lane changing behavior has occurred, thereby quickly and accurately acquiring the target lane changing behavior of the vehicle, with low cost, fast calculation speed and small calculation amount.

[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0026] Figure 1 It is a schematic diagram of an implementation environment involved in this application;

[0027] Figure 2 is a flow chart of a data processing method based on vehicle trajectory shown in an exemplary embodiment of the present application;

[0028] Figure 3 is a flow chart of a method for obtaining trajectory data of a trajectory segment shown in an exemplary embodiment of the present application;

[0029] Figure 4 is based on Figure 2 The illustrated embodiment is a flow chart of a vehicle trajectory-based data processing method in another exemplary embodiment;

[0030] Figure 5 is a flow chart of a data processing method based on vehicle trajectory shown in another exemplary embodiment of the present application;

[0031] Figure 6 is based on Figure 2 The illustrated embodiment is a flow chart of a vehicle trajectory-based data processing method in another exemplary embodiment;

[0032] Figure 7 is based on Figure 6 The illustrated embodiment is a flow chart of a vehicle trajectory-based data processing method in another exemplary embodiment;

[0033] Figure 8 is based on Figure 6 The illustrated embodiment is a flow chart of a vehicle trajectory-based data processing method in another exemplary embodiment;

[0034] Fig. 9 is a flow chart of a data processing method based on vehicle trajectory shown in another exemplary embodiment of the present application;

[0035] Fig.10 is a structural schematic diagram of a data processing device based on vehicle trajectory shown in an exemplary embodiment of the present application;

[0036] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0037] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

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

[0039] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0040] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.

[0041] It should be noted that in the specific implementation of this application, information such as trajectory data and vehicle-related data is involved. When the above embodiments of this application apply this information to specific products or technologies, it is necessary to obtain user permission or consent, or perform desensitization filtering of the relevant data, and the collection, use and processing of relevant information need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0042] Technical term description:

[0043] S-turn: When a vehicle changes lanes two or more times in different directions within a short period of time during driving, it is considered an S-turn.

[0044] Lane change behavior: The behavior of a vehicle changing from its current lane to an adjacent lane.

[0045] Holographic trajectory: Based on edge computing, high-precision positioning, and big data technology, it records the precise driving trajectory of each vehicle on the road at the sub-second and lane level.

[0046] Sub-second trajectory: The position information of the trajectory points is recorded every one tenth of a second.

[0047] TPI: Congestion Index, the ratio of the actual travel time of a vehicle through a road to the smooth travel time, the value range is generally 0-5, such as road clear state: TPI <1.5, road slow state: 1.5≤TPI<1.8; road congestion state: 1.8<TPI≤2.1; road severe congestion state: TPI≥2.1.

[0048] Sudden lane change due to speed change: When changing lanes, the change between the current speed and the previous speed is large, resulting in lane change behavior (such as changing lanes to overtake).

[0049] Smooth speed lane change: When changing lanes, the change between the current speed and the previous speed is small, resulting in lane change behavior.

[0050] Congestion lane change: The lane change behavior of a vehicle when the road is congested or severely congested.

[0051] Intelligent Traffic System (ITS), also known as Intelligent Transportation System, is an effective and comprehensive application of advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) to transportation, service control and vehicle manufacturing, strengthening the connection between vehicles, roads and users, thus forming a comprehensive transportation system that ensures safety, improves efficiency, improves the environment and saves energy. Or;

[0052] Intelligent Vehicle Infrastructure Cooperative Systems (IVICS), referred to as IVICS, is a development direction of Intelligent Transportation Systems (ITS). IVICS uses advanced wireless communications and new generation Internet technologies to implement all-round dynamic real-time information interaction between vehicles and roads, and conducts active vehicle safety control and road cooperative management based on the collection and integration of dynamic traffic information in all time and space, fully realizing the effective coordination of people, vehicles and roads, ensuring traffic safety, and improving traffic efficiency, thus forming a safe, efficient and environmentally friendly road traffic system.

[0053] Existing methods for judging whether a vehicle has changed lanes are mostly based on manual or machine learning. Manual judgment of whether a vehicle has changed lanes is very costly, time-consuming, labor-intensive, and has a low recall rate. It is easy to miss detections, and there is a lack of supervision of vehicles at night and on weekends when there is no manual supervision. Faced with the increasing number of vehicles on urban roads, manual judgment can no longer meet the requirements of all-weather monitoring of lane changes.

[0054] However, machine learning methods have problems such as large amount of computation and poor timeliness. Faced with dense high-precision lane-level trajectory data, the large number of vehicles during peak commuting hours means that the amount of data that needs to be calculated is very large. In this case, the real-time update of machine learning algorithms requires a lot of computing resources (such as graphics processors GPU), and the hardware cost is very high. Real-time monitoring of lane change behavior is a function that the traffic police department pays great attention to. Therefore, this method has shortcomings in terms of timeliness.

[0055] Based on this, the present application proposes a data processing method, device, electronic device, computer-readable storage medium and computer program product based on vehicle trajectory. The data processing method, device, electronic device, computer-readable storage medium and computer program product based on vehicle trajectory can be applied to intelligent vehicle-road cooperative systems and intelligent transportation systems. Specifically, the time points and locations of different lane changing behaviors can be displayed in real time around the clock, and the proportion of different lane changing behaviors that the staff is interested in can be given in a specified time period. It has strong timeliness, greatly improves computing efficiency and reduces time cost, thereby strengthening vehicle supervision, ensuring traffic safety, and forming an efficient integrated transportation system.

[0056] First see Figure 1 , Figure 1 1 is a schematic diagram of an implementation environment involved in the present application. The implementation environment includes a terminal 100 and a server 200, and the terminal 100 and the server 200 communicate with each other via a wired or wireless network.

[0057] certainly, Figure 1 The number of server ends 200 is only exemplary. In other embodiments, there may be other numbers of server ends 200. In this embodiment, the terminal 100 can be linked to a road monitoring system or a GPS (Global Positioning System) system to obtain trajectory data of the vehicle during operation.

[0058] The terminal 100 also sends the trajectory data to the server 200, so that the server 200 performs data processing based on the vehicle's trajectory data to detect the vehicle's lane changing behavior. The server 200 also returns the data processing result based on the vehicle's trajectory, that is, the vehicle's lane changing behavior, to the terminal 100, and displays it through the visualization module of the terminal 100.

[0059] Exemplarily, after obtaining the trajectory data of the vehicle, the terminal 100 sends the trajectory data of the vehicle to the server 200, and the server 200 obtains the trajectory data of the vehicle in the trajectory segment, the driving distance of the trajectory segment is less than the preset segment distance threshold, and the driving time of the trajectory segment is less than the preset segment time threshold; the trajectory data in the trajectory segment is sampled and processed to obtain multiple sampling points and the sampled trajectory data of each sampling point; based on the sampled trajectory data of each sampling point, the straight line representing the lane direction of the vehicle is determined; according to the straight line where the lane direction is located and the sampled trajectory data of each sampling point, the lateral distance between each sampling point and the straight line where the lane direction is located is obtained; based on the lateral distance, it is determined whether the vehicle has a target lane change behavior in the trajectory segment, and finally, the target lane change behavior of the vehicle is returned to the terminal 100 to be displayed through the visualization module of the terminal 100. Subsequently, the application party can push the recommended multimedia information to the recommended object.

[0060] Among them, the terminal 100 can be a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc., and there is no restriction here. The server end 200 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, wherein multiple servers can form a blockchain, and the server is a node on the blockchain. The server end 200 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and big data and artificial intelligence platforms, and there is no restriction here.

[0061] It should be noted that this embodiment is only an exemplary implementation environment proposed to facilitate understanding of the concept of the present application, and cannot be considered as providing any limitation on the scope of use of the present application.

[0062] Figure 2 is a flow chart of a data processing method based on vehicle trajectory according to an exemplary embodiment. The data processing method based on vehicle trajectory can be applied to Figure 1 The implementation environment in Figure 1 It should be understood that the method can also be used in other exemplary implementation environments and be specifically executed by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable.

[0063] In an exemplary embodiment, the method may include steps S210 to S290, which are described in detail as follows:

[0064] Step S210: Acquire the trajectory data of the vehicle in the trajectory segment, the travel distance of the trajectory segment is less than the preset segment distance threshold, and the travel time of the trajectory segment is less than the preset segment time threshold.

[0065] The trajectory data in this embodiment is sub-second precision data to ensure the accuracy of the data processing results based on the vehicle trajectory. At the same time, the trajectory data may include the vehicle's driving position, such as longitude and latitude values; the lane the vehicle is in; the time corresponding to the vehicle's position; driving duration; driving distance, etc., and no specific restrictions are made here.

[0066] In a specific embodiment, the trajectory data may be holographic trajectory data, so as to facilitate the subsequent confirmation of the lane direction within a certain trajectory segment. The lane direction may be considered as the lane in which the vehicle is traveling within the trajectory segment. A long deviation from the lane direction may be considered as traveling in other lanes, i.e., a lane change behavior has occurred.

[0067] The trajectory data of this embodiment can be obtained from a GPS positioning monitoring system, or through a vehicle-mounted positioning terminal installed on a vehicle, or through an electronic eye or monitoring system on the road, and no specific restrictions are made here.

[0068] In this embodiment, the trajectory segment can be considered as a certain section of the trajectory of the vehicle when it is running, and the trajectory data within the trajectory segment can be considered as the trajectory data generated when the vehicle is running within the trajectory.

[0069] The trajectory segment can be directly extracted from the vehicle's running trajectory. For example, when the vehicle is running in a high-accident stage or an uneven road stage, this stage can be extracted as a trajectory segment, and then the trajectory data of this stage can be extracted as the trajectory data of the trajectory segment. Of course, in other embodiments, it is also possible to directly obtain a longer running trajectory of the vehicle in a certain period of time, and then segment the running trajectory to obtain multiple trajectory segments, and then perform data processing based on the vehicle trajectory based on the trajectory data of the multiple trajectory segments. Of course, the above is only an exemplary trajectory segment acquisition method. In other embodiments, other methods can be used to obtain trajectory segments for data processing based on vehicle trajectories based on the trajectory data of the trajectory segment.

[0070] In some embodiments, the trajectory data of the obtained trajectory segment may have missing data or data errors. In this case, the trajectory data can be preprocessed. For example, when the trajectory data of the trajectory segment contains position point information that is irrelevant to the operating position of the vehicle, the erroneous position point that is irrelevant to the operating position of the vehicle can be cleared, and the erroneous position point and the trajectory data of the erroneous position point can be cleared.

[0071] In other embodiments, after the trajectory data is preprocessed, there may be serious data errors or data missing. In this case, a new trajectory segment and trajectory data of the new trajectory segment can also be obtained, so as to perform data processing based on the vehicle trajectory based on the trajectory data of the new trajectory segment to obtain the target lane change behavior of the new trajectory segment.

[0072] Figure 3 is a flow chart of a method for obtaining trajectory data of a trajectory segment proposed in an exemplary embodiment. Figure 3 As shown, the method for obtaining the trajectory data of the trajectory segment is to segment the initial trajectory data of the vehicle, and then obtain the trajectory segment and the trajectory data of the trajectory segment.

[0073] Specifically, Figure 3 The method for obtaining the trajectory data of the trajectory segment proposed in the above may be implemented before step S210, that is, by Figure 3 The segmentation process in is performed to obtain multiple trajectory segments, each of which corresponds to trajectory data, so that the trajectory data of each trajectory segment is executed as follows Figure 2 Steps S230 to S290 shown are used to obtain target lane change behavior related data for each trajectory segment.

[0074] Specifically, in step S31, the initial trajectory data of the vehicle is obtained. The initial trajectory data is data that has not been processed, and the driving distance corresponding to the initial trajectory data is relatively long. It can be the trajectory data of the vehicle in a certain time period or the trajectory data of the vehicle in a certain road section. No specific restrictions are made here.

[0075] Subsequently, in step S32, the initial trajectory data may be cleaned and preprocessed to exclude unreasonable trajectory positions (such as incorrect longitude and latitude values ​​and longitude and latitude values ​​outside the national border) and trajectory positions with missing data.

[0076] Of course, as mentioned above, step S32 can also be implemented after step S33, that is, pre-processing such as data cleaning is performed on the trajectory data of each segmented trajectory segment. Specifically, based on the trajectory position in the trajectory data, the erroneous trajectory data whose trajectory position does not match the vehicle's driving position in the trajectory segment is determined; data clearing processing is performed on the erroneous trajectory data in the trajectory data, and sampling processing is performed on the trajectory data subjected to data clearing processing to obtain multiple sampling points and sampled trajectory data of each sampling point.

[0077] In step S33, since the prerequisite for determining some lane change behaviors is within a relatively short time and distance range, such as the determination of S-curve lane change behaviors, it is necessary to segment the trajectory of the vehicle traveling for a longer time and distance, that is, segment the trajectory of the vehicle traveling for a longer time and distance corresponding to the initial trajectory data, and then perform a data processing method based on the vehicle trajectory for each trajectory segment.

[0078] Specifically, the principle after segmentation is that the travel distance of each trajectory segment is less than a preset segment distance threshold and the travel time of the trajectory segment is less than a preset segment time threshold, so that the trajectory after segmentation is approximately a straight line.

[0079] In this embodiment, when the vehicle is running, some dangerous lane changing behaviors mostly occur in a shorter driving distance and a shorter driving time, such as S-curve lane changing. In a longer driving distance, the vehicle's lane changing behaviors in different directions will not cause great driving risks. Therefore, the S-curve lane changing behaviors obtained within the longer formal distance are generally not subject to supervision by the transportation department. Therefore, in this embodiment, by setting the driving distance of each trajectory segment to be less than the preset segment distance threshold and the driving time of the trajectory segment to be less than the preset segment time threshold, each trajectory segment is matched with some dangerous lane changing behaviors generated within a shorter time and a shorter distance, thereby accurately obtaining the dangerous lane changing behaviors that need to be supervised.

[0080] The preset segment distance threshold and the preset segment duration threshold can be obtained through empirical parameters. For example, different data can be set corresponding to different driving environments. No specific restrictions are made here.

[0081] In addition, considering that there may be missing samples in the trajectory data during the subsequent sampling and processing of the trajectory data in the trajectory segment, the sampling time between adjacent sampling points in a trajectory segment of the same vehicle is greater than a certain time interval or the distance is greater than a certain distance interval. This can avoid the appearance of discrete points in each trajectory segment. Combining the two segmentation methods, a longer vehicle trajectory can be divided into several segments for mining the S-curve lane change algorithm.

[0082] Of course, in other embodiments, the segmentation method is different according to the different target lane changing behaviors to be determined. As mentioned above, when confirming an S-curve lane changing behavior, the required driving distance of the trajectory segment should not be too long, while when confirming other behaviors such as frequent lane changing behaviors, the required driving distance of the trajectory segment at this time may be slightly longer than the driving distance of the trajectory segment required for confirming the S-curve lane changing behavior. The segmentation method can be determined based on the analysis of different target lane changing behaviors to obtain trajectory segments with different driving distances, so as to perform efficient and accurate analysis of the corresponding target lane changing behaviors for the trajectory data of different trajectory pairs.

[0083] At the same time, when the trajectory segments and the trajectory data of the trajectory segments are obtained by other methods (except for the method of segmenting the initial trajectory data), the driving distance of the obtained trajectory segments should also match the type of the target lane change behavior.

[0084] Step S230: performing sampling processing on the trajectory data in the trajectory segment to obtain a plurality of sampling points and sampled trajectory data of each sampling point.

[0085] After obtaining multiple trajectory segments, the trajectory data in each trajectory segment can be sampled and processed to obtain multiple sampling points corresponding to each trajectory segment and the sampled trajectory data of each sampling point. Then, the lane change behavior analysis can be performed on the sampled data in each trajectory segment.

[0086] Step S250: Based on the sampling trajectory data of each sampling point, determine the straight line representing the lane direction of the vehicle.

[0087] Specifically, in step S250, the lane direction and the straight line where the lane direction is located are calculated. In this embodiment, the lane direction can be determined by analyzing the direction of the sampling points in each trajectory segment (determining the direction of the sampling points with time as the coordinate). The specific method is to calculate the average slope of the sampling points in each trajectory segment, and represent the lane direction with the straight line where the average slope is located and the direction of time. The straight line where the lane direction is located is determined by the straight line where the average slope is located. The straight line where the lane direction is located can represent the average driving lane of the vehicle in the corresponding trajectory segment. Since the driving distance and driving time of the trajectory segment are small enough, that is, the trajectory segment can be regarded as a straight line, then the lane direction can be regarded as the lane in which the vehicle travels on average in the trajectory segment. If the vehicle deviates from the lane corresponding to the lane direction by a large distance, it can be regarded that the vehicle is traveling in other lanes, that is, a lane change has occurred. The deviation value can be the lateral movement distance of the vehicle along the lane. Then, it can be determined whether the vehicle has changed lanes according to the lateral movement of the vehicle along the lane.

[0088] Specifically, based on the sampling trajectory data of each sampling point, the trajectory position of each sampling point is obtained; according to the trajectory position of each sampling point, the average slope of the trajectory segment is calculated; and the straight line where the average slope is located is used as the straight line where the lane direction is located.

[0089] Step S270: Obtain the lateral distance between each sampling point and the straight line where the lane direction is located according to the sampling trajectory data of each sampling point and the straight line where the lane direction is located.

[0090] Specifically, in this embodiment, for a certain sampling point, the sampling trajectory data corresponding to the sampling point includes the position of the sampling point, such as the latitude and longitude values. At the same time, for the trajectory segment where the sampling point is located, there is a lane direction and a straight line where the lane direction is located. In this way, the lateral distance between each sampling point and the straight line where the lane direction is located can be calculated, and the lateral distance can be used to determine whether the vehicle has changed lanes and the direction of the lane change.

[0091] Step S290: Determine whether the vehicle has a target lane change behavior within the trajectory segment based on the lateral distance.

[0092] In this embodiment, the larger the lateral distance is, the higher the probability that the vehicle will change lanes. Therefore, in each trajectory segment, the sampling point where the lane change occurs is extracted. At the same time, based on the positional relationship between the vehicle corresponding to the lane change sampling point and the straight line where the lane direction is located, the direction in which the vehicle changes lanes can be determined. Therefore, through these lane change sampling points, the direction in which the vehicle changes lanes at the lane change sampling points can be determined to determine whether the vehicle has certain target lane change behaviors.

[0093] In a specific embodiment, there may be multiple types of lane changing behaviors, such as S-curve lane changing behaviors, lane changing behaviors in congestion patterns, frequent lane changing behaviors, etc. For different lane changing behaviors, the vehicle changes lanes in different ways. For example, the S-curve lane changing behavior is a behavior in which the vehicle changes lanes two or more times in different directions within a short time distance during driving. In this way, it is possible to determine whether certain lane changing behaviors have occurred in each trajectory segment based on the obtained sampling points where lane changes occur and the directions in which the vehicle changes lanes at the sampling points where lane changes occur. For example, when there are multiple sampling points where lane changes occur in a trajectory segment, it can be considered that the vehicle has frequently changed lanes in the trajectory segment; when there are more than two sampling points where lane changes occur in a trajectory segment, and the lane change directions between the sampling points where lane changes occur are different, and the driving distance of the trajectory segment is small, it can be considered that the vehicle has S-curve lane changing behavior in the trajectory segment.

[0094] In this embodiment, the trajectory of the vehicle is segmented and samples are taken for each trajectory segment to determine the straight line where the lane direction of the vehicle is located in the trajectory segment based on the obtained sampling points. Thus, it can be determined whether a lane change has occurred at different sampling points through the straight line where the lane direction is located. The lane change behavior of the vehicle can be quickly mined with a relatively small computing cost to provide feedback to relevant staff members, and urban roads can be monitored around the clock, thereby playing a positive role in protecting the personal and property safety of drivers and pedestrians, reducing traffic accidents, alleviating traffic congestion, and improving urban smart transportation construction.

[0095] Figure 4 is based on Figure 2The embodiment shown is a flow chart of a data processing method based on vehicle trajectory in another exemplary embodiment. Figure 4 As shown, in an exemplary embodiment, Figure 2 Step S230 in the above process performs sampling processing on the trajectory data in the trajectory segment to obtain a plurality of sampling points and the sampled trajectory data of each sampling point may include the following steps: Figure 4 Steps S410 to S450 in the embodiment are described in detail as follows:

[0096] Step S410: based on a preset sampling time interval or a preset sampling travel distance, the trajectory data is sampled and processed to obtain a sampling point set and sampling trajectory data of each sampling point in the sampling point set.

[0097] In this embodiment, any trajectory segment can be sampled at a preset sampling time interval or a preset sampling travel distance to obtain a sampling set formed by multiple sampling points, and the sampling trajectory data of each sampling point in the sampling point set includes the vehicle speed at the corresponding sampling point.

[0098] The preset sampling time interval or the preset sampling driving distance can be set by yourself, such as according to the environment of the driving location or the driving regulations. For example, when the driving environment is relatively stable, the safety of lane changing in this environment is higher, so the preset sampling time interval or the preset sampling driving distance can be set to be larger; on the contrary, when the driving environment is relatively uneven or there are more bends, the safety of lane changing in this environment is lower, the lane changing conditions are poor, and the lane changing behavior should be reduced. Therefore, the preset sampling time interval or the preset sampling driving distance can be set to be smaller to obtain a better lane changing behavior under the poor lane changing environment.

[0099] It should be noted that, since the accuracy of data processing based on vehicle trajectories needs to be guaranteed, no matter how the sampling is performed, the time interval between adjacent sampling points in the time sequence of the final sampling points should be greater than or equal to sub-seconds.

[0100] Step S430: According to the vehicle speed of each sampling point in the sampling point set, a vehicle speed change value between two adjacent sampling points in the trajectory segment is obtained.

[0101] In this embodiment, since the track data may contain some erroneous data, such as the vehicle speed being wrong at certain moments, the data corresponding to the sampling point at this moment cannot be confirmed to be authentic, and therefore needs to be cleared.

[0102] For the sampling points where erroneous data appears, in this embodiment, by comparing the vehicle speed change values ​​between two adjacent sampling points in time sequence, it is determined whether the vehicle speed at the sampling point is normal.

[0103] Step S450: clearing two adjacent sampling points in the sampling point set whose vehicle speed change value is greater than a preset vehicle speed constant value and the corresponding sampling trajectory data, and obtaining a plurality of sampling points and the sampling trajectory data of each sampling point.

[0104] In this embodiment, a preset vehicle speed constant is set, and the preset vehicle speed constant is the vehicle speed change value that may be generated by the time interval corresponding to adjacent sampling points under actual circumstances. For example, when the time interval corresponding to adjacent sampling points is 1 second, the preset vehicle speed constant at this time is 1 second, and the vehicle speed can be changed to an actual value.

[0105] Therefore, when the vehicle speed change value is greater than the preset vehicle speed value, the vehicle speed change between the corresponding two adjacent sampling points exceeds the actual situation. For example, the vehicle speed changes from 35 kilometers per hour to 80 kilometers per hour within 1 second. At this time, it can be considered that there is an error in the vehicle speed of the two adjacent sampling points, and it can be considered that there is an error in the sampling trajectory data of the two adjacent sampling points, so that the two adjacent sampling points with a vehicle speed change value greater than the preset vehicle speed value and the corresponding sampling trajectory data in the sampling point set are cleared to obtain multiple sampling points and the sampling trajectory data of each sampling point.

[0106] In this embodiment, it is proposed to clear the erroneous data obtained by sampling when sampling the data in the trajectory segment, so as to improve the accuracy of subsequent target lane change trajectory analysis.

[0107] Figure 5 is a flow chart of a data processing method based on vehicle trajectory according to another exemplary embodiment. In an exemplary embodiment, Figure 5 The embodiment shown can be applied to Figure 2 Before step S250 in, or applied to Figure 4 Before step S250 and after step S450, specifically, the method may include steps S510 to S530, which are described in detail as follows:

[0108] Step S510: Determine the driving time and driving distance of the vehicle in the trajectory segment based on the trajectory data in the trajectory segment.

[0109] Since there is a small amount of sparse sampling in trajectory data, in order to ensure the accuracy of mining, each trajectory segment needs to be filtered according to the judgment conditions after sampling. Only when these conditions are met can the subsequent processing process be carried out.

[0110] In this embodiment, to determine the driving time and driving distance of the vehicle in each trajectory segment, it is necessary to ensure that the driving time and driving distance of the vehicle in the trajectory segment are greater than a certain value, otherwise, during subsequent sampling, the sampling point interval obtained is small, and the lane change behavior cannot be quickly obtained.

[0111] Step S530: If the driving time is greater than the preset driving time threshold, the driving distance is greater than the preset driving distance threshold, and the number of sampling points of the plurality of sampling points is greater than the preset sampling number threshold, then execute step S230.

[0112] In this embodiment, the judgment conditions for each trajectory segment are that the driving time is greater than a preset driving time threshold, the driving distance is greater than a preset driving distance threshold, and the number of sampling points of multiple sampling points is greater than a preset sampling number threshold. The driving time is greater than the preset driving time threshold and the driving distance is greater than the preset driving distance threshold to ensure that the obtained trajectory segment can obtain data for determining lane changing behavior. The number of sampling points is greater than the preset sampling number threshold to ensure the accuracy of the data processing method based on the vehicle trajectory, so as to avoid too few samples, which may lead to the inability to detect some lane changing behaviors.

[0113] In this embodiment, the driving time threshold, the preset driving distance threshold and the preset sampling quantity threshold can be set by oneself, such as setting according to actual conditions or setting according to empirical parameters, etc., and no specific restrictions are made here.

[0114] For each trajectory segment, data processing based on the vehicle trajectory is performed only if the trajectory segment meets the above conditions. If some trajectory segments fail to meet the above conditions, the trajectory segment and the trajectory data corresponding to the trajectory segment can be directly deleted, that is, the trajectory data of the trajectory segment will not be processed based on the vehicle trajectory.

[0115] In this embodiment, by setting a plurality of determination conditions, the trajectory segments that can be subjected to data processing based on the vehicle trajectory are screened to ensure the accuracy of the subsequent target lane change behavior detection based on the trajectory segments.

[0116] Figure 6 is based on Figure 2 The embodiment shown is a flow chart of a data processing method based on vehicle trajectory in another exemplary embodiment. Figure 6 As shown, in an exemplary embodiment, Figure 2 The process of determining whether the vehicle has a target lane change behavior within the trajectory segment based on the lateral distance in step S290 may include the following steps: Figure 6 Steps S610 to S630 in the embodiment are described in detail as follows:

[0117] Step S610: Based on the lateral distances corresponding to the sampling points, determine the lane change sampling points where the lane change behavior occurs, so as to obtain the lane change data of the lane change sampling points.

[0118] In this embodiment, according to the size of the lateral distance, it can be determined which sampling points have undergone lane change behavior. For example, when the lateral distance is greater than a certain value, it can be considered that the position of the vehicle corresponding to the sampling point has a large deviation from the straight line of the lane direction of the vehicle in the trajectory segment, that is, the sampling point is traveling in another lane. It can be considered that at this time, the vehicle at the sampling point has changed lanes, and the sampling point is confirmed as a lane change sampling point.

[0119] At the same time, the lane change direction of the vehicle at the lane change sampling point can be determined based on the position between the lane change sampling point and the straight line where the vehicle is traveling in the lane direction. For example, taking the straight line where the vehicle is traveling in the lane direction as a reference, a left lane change is to the left of the straight line where the vehicle is traveling in the lane direction, and a right lane change is to the right of the straight line where the vehicle is traveling in the lane direction. In this way, the lane change direction of the lane change sampling point is determined.

[0120] In this embodiment, the lane change sampling point of each trajectory segment and the lane change direction of the lane change sampling point are used as the lane change data of the trajectory segment.

[0121] Of course, the above lane change data is exemplary. In some embodiments, the lane change data may also include the trajectory data of the trajectory segment. For example, if it is necessary to confirm whether the vehicle has changed lanes at excessive speed, it is necessary to confirm it through the vehicle speed in the trajectory data. That is, the acquisition of lane change data may be determined based on the detection of different types of lane change behaviors, and no specific restrictions are imposed here.

[0122] Step S630: Determine whether the vehicle has a target lane-changing behavior based on the lane-changing data.

[0123] The lane changing data of a certain trajectory segment can be used to analyze the lane changing behavior that occurred in the trajectory segment. Of course, due to the different types of lane changing behaviors, the definitions of corresponding types of lane changing behaviors are also different. For example, whether speeding lane changing occurs can be determined based on the vehicle speed at the moment before and after the lane changing sampling point. However, no matter what kind of lane changing behavior needs to be checked, it can be determined through the lane changing data.

[0124] In this embodiment, the lane change sampling point where the lane change behavior occurs and the lane change direction occurring at the lane change sampling point are determined by the lateral distance corresponding to each sampling point, so that the lane change behavior is detected by the lane change data of the lane change sampling point.

[0125] Figure 7 is based on Figure 6 The embodiment shown is a flow chart of a data processing method based on vehicle trajectory in another exemplary embodiment. Figure 7 As shown, in an exemplary embodiment, Figure 6 Step S610 in the above method may include determining the lane change sampling point where the lane change behavior occurs based on the lateral distances corresponding to the sampling points to obtain the lane change data of the lane change sampling point. Figure 7 Steps S710 to S750 in the embodiment are described in detail as follows:

[0126] Step S710: Determine a lane change distance value based on the lane width within the trajectory segment.

[0127] In this embodiment, under normal circumstances, the lane width is 3.5 meters, and the lane change distance value can be determined based on the lane width, such as the lane change distance value is set to 3.5 / 2 meters, that is, 1.25 meters.

[0128] Of course, the lane width varies depending on the lane the vehicle is traveling in. Therefore, the lane change distance value is determined for lanes in different positions.

[0129] Step S730: The sampling points corresponding to the sampling points whose lateral distances are greater than the lane change distance value are used as lane change sampling points.

[0130] For the lane change distance value, if there is a sampling point whose lateral distance is greater than the lane change distance value, it can be considered that at the moment corresponding to the sampling point, the vehicle is traveling in another lane, that is, the sampling point represents that the vehicle has changed lanes, and the sampling point is used as the lane change sampling point.

[0131] Step S750: Acquire lane change data based on the lane change sampling point.

[0132] In this embodiment, for each lane change sampling point in each trajectory segment, the lane change direction of the vehicle at the lane change sampling point may also be obtained.

[0133] Specifically, with the lane direction as a reference, both sides of the straight line where the lane direction is located are marked as different lane change directions; based on the position of the lane change sampling point on both sides of the lane direction, the lane change direction of the lane change sampling point is determined; and the lane change direction of the lane change sampling point is used as the lane change data.

[0134] In a specific embodiment, the two sides of the straight line where the lane direction is located can be set as positive and negative directions respectively, and the corresponding lateral distance obtained is a positive and negative value, so as to determine the lane change direction by the positive and negative of the lateral distance.

[0135] Then, the lane changing direction of the lane changing sampling point can be used as the lane changing data. Of course, the lane changing data can also include the trajectory data in the trajectory segment to judge certain lane changing behaviors. For example, when judging the lane changing behavior with a sudden speed change, the vehicle speed before and after the lane changing sampling point is required.

[0136] In this embodiment, a method for acquiring lane change data is proposed, which specifically proposes to determine the sampling point through the lateral distance of the sampling point, whether the vehicle has changed lanes, and determine the lane change direction through the lateral distance based on the width of the lane and the lane direction. In this way, different lane change behaviors can be determined through the lane change direction and the lane change sampling point.

[0137] Figure 8 is based on Figure 6 The embodiment shown is a flow chart of a data processing method based on vehicle trajectory in another exemplary embodiment. Figure 8 As shown, in an exemplary embodiment, Figure 6 The process of determining whether the vehicle has a target lane changing behavior based on the lane changing data in step S630 may include the following steps: Figure 8 Steps S810 to S830 in the embodiment are described in detail as follows:

[0138] Step S810: Based on the lane change data, determine whether there are lane change sampling points with different lane change directions in the lane change data.

[0139] In this embodiment, since the lane change direction of each lane change sampling point exists in the lane change data, and the driving distance of the trajectory segment is less than the preset segment distance threshold and the driving time of the trajectory segment is less than the preset segment time threshold, that is, the trajectory segment meets the judgment conditions of the S-turn lane change behavior, therefore, whether an S-turn lane change occurs can be determined by the lane change direction in the lane change data.

[0140] Step S830: If there are lane change sampling points with different lane change directions in the lane change data, it is determined that the vehicle has an S-curve lane change behavior in the trajectory segment.

[0141] In this embodiment, if there are lane change sampling points of different lane change directions in the lane change data, that is, if there are multiple lane changes in different directions in the trajectory segment, it can be considered that the vehicle has an S-curve lane change behavior in the trajectory segment.

[0142] In some embodiments, there are other types of lane change behaviors to be determined, that is, the target lane change behavior can also be a lane change behavior in a congested state, a lane change behavior with a sudden speed change, etc., that is, the setting of the target lane change behavior is different, and the way of determining whether the target lane change behavior occurs is different.

[0143] In a specific embodiment, the trajectory data includes the driving distance and driving duration of the vehicle in the trajectory segment. Based on the driving distance and driving duration of the vehicle in the trajectory segment, a congestion index in the trajectory segment is determined; if the congestion index is greater than a preset congestion value and the number of lane change sampling points in the lane change data is greater than a preset congestion lane change value, it is determined that the vehicle has a lane change behavior in a congested form.

[0144] The congestion index is obtained by dividing the average speed limit of the vehicle in the trajectory segment by the average driving speed of the vehicle in the trajectory segment, and the average speed limit of the vehicle in the trajectory segment can be provided by unified road network data. The average driving speed of the vehicle in the trajectory segment is obtained by dividing the driving distance of the vehicle in the trajectory segment by the driving time of the vehicle in the trajectory segment.

[0145] The preset congestion value can be a judgment value of the congestion form, such as 1.8. When the congestion index is greater than 1.8, it is considered to be a congestion form. The preset congestion lane change value can also be obtained through empirical parameters. The larger the congestion index, the smaller the corresponding preset congestion lane change value. That is, the more congested, the greater the danger of lane changing. Therefore, the smaller the preset congestion lane change value is set to ensure lane change supervision under the congestion form.

[0146] In a specific embodiment, based on the track data and the lane change data, the vehicle speed at the previous moment and the vehicle speed at the next moment of the lane change sampling point are extracted; based on the vehicle speed at the previous moment and the vehicle speed at the next moment of the lane change sampling point, the speed mutation value of the lane change sampling point is determined; if the speed mutation value is greater than a preset mutation threshold, it is determined that the vehicle has a lane change behavior with a speed mutation.

[0147] The preset mutation threshold can be obtained through empirical parameters, and can be specifically determined by the speed mutation value that may be generated in the actual lane change, and the speed mutation value can be the ratio or difference between the vehicle speed at a previous moment and the vehicle speed at a later moment. No specific restriction is made here, and the corresponding preset mutation threshold is obtained in a manner corresponding to the speed mutation value, that is, the speed mutation value is obtained through a ratio, and the preset mutation threshold can be obtained through the actual vehicle speed ratio.

[0148] In a specific embodiment, the number of lane change sampling points in the lane change data is obtained; if the number of lane change sampling points is greater than a preset frequent lane change value, it is determined that the vehicle has frequent lane change behavior.

[0149] The preset frequent lane change value can also be obtained through empirical parameters, and can also assist in the driving distance, driving time and other values ​​of the trajectory segment. For example, the shorter the driving distance and the shorter the driving time, the smaller the preset frequent lane change value is.

[0150] Of course, in some embodiments, the risk of S-turn lane changing behavior is relatively high. Then, after detecting that the vehicle has S-turn lane changing behavior within a short-time and short-distance trajectory segment, it is possible to continue to evaluate whether the vehicle has frequent lane changing behaviors, lane changing behaviors with sudden speed changes, and lane changing behaviors in a congested manner while performing the S-turn lane changing behavior. Correspondingly, it can be obtained whether the vehicle has frequent S-turn lane changing behaviors, S-turn lane changing behaviors with sudden speed changes, and S-turn lane changing behaviors in a congested manner.

[0151] This embodiment proposes a method for determining different lane change behaviors, so that the lane change behavior of the vehicle can be detected through the lane change data, thereby providing reference data for vehicle lane change detection.

[0152] Fig. 9 is a flow chart of a vehicle trajectory-based data processing method according to another exemplary embodiment. Fig. 9 Corresponds to Figures 2 to 8 , specifically including steps S91 to S97.

[0153] Specifically, in step S91, initial trajectory data is obtained and data cleaning is performed; in step S92, the initial trajectory data after data cleaning is segmented to obtain multiple trajectory segments, the driving distance of each trajectory segment is less than a preset segment distance threshold and the driving time of the trajectory segment is less than a preset segment time threshold, in step S93, each trajectory segment is sampled respectively to obtain multiple sampling points of each trajectory segment, and each trajectory segment is screened based on a judgment condition, the judgment condition being that the driving time of each trajectory segment is greater than a preset driving time threshold, the driving distance is greater than a preset driving distance threshold and the number of sampling points of the multiple sampling points is greater than a preset sampling number threshold.

[0154] In step S94, the average slope of each trajectory segment after screening is calculated to obtain the straight line where the vehicle's lane direction is located; in step S95, the lane change sampling point is determined by the lateral distance between the sampling point and the straight line where the lane direction is located; in S96, the lane change data is obtained through the lane change sampling point, and in step S97, the lane change data is used to determine whether the vehicle has performed the target lane change behavior.

[0155] The vehicle trajectory-based data processing method proposed in this embodiment can be used in intelligent vehicle-road cooperative systems and intelligent transportation systems to display the time points and locations of different lane change behaviors to vehicle driving detection departments or staff in real time around the clock, and can give the proportion of target lane change behaviors of interest in a specified time period. It has strong timeliness and can be performed under a parallel computing framework, which greatly improves computing efficiency and reduces time cost.

[0156] For example, in one embodiment, the vehicle trajectory-based data processing method is used in the traffic department. When the staff needs to check the driving status of vehicle A in a certain time period and a certain road section, and detect whether the vehicle A has an S-turn lane change behavior, by setting corresponding parameters on the system carrying the vehicle trajectory-based data processing method, the system can automatically extract the trajectory data of vehicle A in a certain time period and a certain road section, and after processing, obtain one or more trajectory segments of a certain numerical driving distance that matches the S-turn lane change behavior, and then perform the following operations on each trajectory segment: Figures 2 to 9By processing the data based on the vehicle trajectory shown, it is possible to determine whether there is an S-curve lane change behavior in the one or more trajectory segments. If so, the relevant driver can be contacted to prompt safe driving.

[0157] According to the evaluation, when there are 10,000 vehicles driving on the city road at the same time, facing the dense trajectory data with a sampling rate of 0.1 seconds, the mining time cost of a 32-core CPU (Central Processing Unit) computer is only 0.8 minutes. The fast and efficient lane change behavior mining solution provides timely feedback to relevant departments, which can effectively reduce traffic safety accidents and alleviate traffic congestion, which is also an important part of building urban smart transportation.

[0158] Fig.10 FIG. 1 is a schematic diagram showing a structure of a data processing device based on vehicle trajectory according to an exemplary embodiment. Fig.10 As shown, in an exemplary embodiment, the data processing device based on the vehicle trajectory includes: a trajectory data acquisition module 1010, configured to acquire the trajectory data of the vehicle in a trajectory segment, the travel distance of the trajectory segment is less than a preset segment distance threshold, and the travel time of the trajectory segment is less than a preset segment time threshold; a sampling module 1030, configured to perform sampling processing on the trajectory data in the trajectory segment to obtain multiple sampling points and sampled trajectory data of each sampling point; a lane direction straight line acquisition module 1050, configured to determine the straight line representing the lane direction of the vehicle based on the sampled trajectory data of each sampling point; a lateral distance acquisition module 1070, configured to acquire the lateral distance between each sampling point and the straight line where the lane direction is located according to the straight line where the lane direction is located and the sampled trajectory data of each sampling point; a lane change analysis module 1090, configured to determine whether the vehicle has a target lane change behavior in the trajectory segment based on the lateral distance.

[0159] The vehicle trajectory-based data processing device in this embodiment can quickly obtain the lane changing behavior of the vehicle during operation, improve the efficiency of lane changing behavior detection, and reduce time cost.

[0160] In one embodiment, the sampling module includes: a sampling unit, configured to perform sampling processing on the trajectory data based on a preset sampling time interval or a preset sampling driving distance, to obtain a sampling point set and sampling trajectory data of each sampling point in the sampling point set, wherein the sampling trajectory data of each sampling point in the sampling point set includes the vehicle speed at the corresponding sampling point; a vehicle speed change value acquisition unit, configured to obtain the vehicle speed change value between two adjacent sampling points in the trajectory segment according to the vehicle speed of each sampling point in the sampling point set; a sampling data preprocessing unit, configured to remove two adjacent sampling points in the sampling point set whose vehicle speed change value is greater than a preset vehicle speed constant and the corresponding sampling trajectory data, to obtain multiple sampling points and sampling trajectory data of each sampling point.

[0161] In one embodiment, the data processing device based on the vehicle trajectory also includes: a driving data acquisition module, configured to determine the driving time and driving distance of the vehicle in the trajectory segment based on the trajectory data in the trajectory segment; a sampling data detection module, configured to execute the step of determining the straight line representing the lane direction of the vehicle based on the sampling trajectory data of each sampling point if the driving time is greater than a preset driving time threshold, the driving distance is greater than a preset driving distance threshold, and the number of sampling points of multiple sampling points is greater than a preset sampling number threshold.

[0162] In one embodiment, the lane direction straight line acquisition module includes: a trajectory position acquisition unit, configured to acquire the trajectory position of each sampling point based on the sampling trajectory data of each sampling point; an average slope calculation unit, configured to calculate the average slope of the trajectory segment according to the trajectory position of each sampling point; and a lane direction straight line acquisition unit, configured to use the straight line where the average slope is located as the straight line where the lane direction is located.

[0163] In one embodiment, the lane change analysis module includes: a lane change data acquisition unit, configured to determine the lane change sampling point where the lane change behavior occurs based on the lateral distance corresponding to each sampling point, so as to obtain the lane change data of the lane change sampling point; a lane change analysis unit, configured to determine whether the vehicle has a target lane change behavior based on the lane change data.

[0164] In one embodiment, the lane change data acquisition unit includes: a lane change distance value acquisition module, configured to determine the lane change distance value based on the lane width in the trajectory segment; a lane change sampling point determination module, configured to use the sampling points whose lateral distances corresponding to the sampling points are greater than the lane change distance value as lane change sampling points; and a lane change data acquisition module, configured to acquire lane change data based on the lane change sampling points.

[0165] In one embodiment, the lane change data acquisition module includes: a lane change direction definition submodule, which is configured to use the lane direction as a reference to mark the two sides of the straight line where the lane direction is located as different lane change directions; a lane change direction determination submodule, which is configured to determine the lane change direction of the lane change sampling point based on the position of the vehicle on both sides of the straight line where the lane direction is located at the lane change sampling point; and a lane change data acquisition submodule, which is configured to use the lane change direction of the lane change sampling point as the lane change data.

[0166] In one embodiment, the lane change analysis unit includes: the target lane change behavior includes an S-turn lane change behavior; a lane change direction analysis module, configured to determine whether there are lane change sampling points of different lane change directions in the lane change data based on the lane change data; and an S-turn lane change behavior determination module, configured to determine that the vehicle has an S-turn lane change behavior in the trajectory segment if there are lane change sampling points of different lane change directions in the lane change data.

[0167] In one embodiment, the target lane change behavior includes a lane change behavior in a congested form; the trajectory data includes a driving distance and a driving duration of the vehicle in the trajectory segment; the lane change analysis unit includes: a congestion index determination module, configured to determine the congestion index in the trajectory segment based on the driving distance and the driving duration of the vehicle in the trajectory segment; a congested lane change determination module, configured to determine that the vehicle has a lane change behavior in a congested form if the congestion index is greater than a preset congestion value and the number of lane change sampling points in the lane change data is greater than the preset congestion lane change value.

[0168] In one embodiment, the target lane change behavior includes a lane change behavior with a sudden speed change; the lane change analysis unit includes: a vehicle speed acquisition module, configured to extract the vehicle speed of the lane change sampling point at a previous moment and the vehicle speed at a subsequent moment based on trajectory data and lane change data; a speed mutation value acquisition module, configured to determine the speed mutation value of the lane change sampling point based on the vehicle speed of the lane change sampling point at a previous moment and the vehicle speed at a subsequent moment; a sudden lane change determination module, configured to determine that the vehicle has a lane change behavior with a sudden speed change if the speed mutation value is greater than a preset mutation threshold.

[0169] In one embodiment, the target lane change behavior includes frequent lane change behavior; the lane change analysis unit includes: a sampling point quantity acquisition module, configured to obtain the number of lane change sampling points in the lane change data; a frequent lane change behavior determination module, configured to determine that the vehicle has frequent lane change behavior if the number of lane change sampling points is greater than a preset frequent lane change value.

[0170] In one embodiment, the sampling module includes: an erroneous trajectory data determination unit, configured to determine, based on the trajectory position in the trajectory data, erroneous trajectory data whose trajectory position does not match the vehicle's driving position in the trajectory segment; an erroneous trajectory data clearing unit, configured to perform data clearing processing on the erroneous trajectory data in the trajectory data, and perform sampling processing on the trajectory data subjected to data clearing processing, to obtain multiple sampling points and sampled trajectory data of each sampling point.

[0171] It should be noted that the data processing device based on vehicle trajectory provided in the above embodiment and the data processing method based on vehicle trajectory provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0172] An embodiment of the present application also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the vehicle trajectory-based data processing method provided in the above-mentioned embodiments.

[0173] Fig.11A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0174] It should be noted that Fig.11 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0175] like Fig.11 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103, such as executing the method in the above embodiment. In the RAM 1103, various programs and data required for system operation are also stored. The CPU 1101, the ROM 1102 and the RAM 1103 are connected to each other through the bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.

[0176] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0177] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1109, and / or installed from a removable medium 1111. When the computer program is executed by a central processing unit (CPU) 1101, various functions defined in the system of the present application are executed.

[0178] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0179] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0180] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0181] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the data processing method based on vehicle trajectory as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0182] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the vehicle trajectory-based data processing method provided in each of the above embodiments.

[0183] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A data processing method based on vehicle trajectory, characterized in that: include: Acquiring trajectory data of a vehicle within a trajectory segment, wherein a travel distance of the trajectory segment is less than a preset segment distance threshold, and a travel duration of the trajectory segment is less than a preset segment duration threshold; Sampling the trajectory data in the trajectory segment to obtain a plurality of sampling points and sampling trajectory data of each sampling point; Based on the sampling trajectory data of each sampling point, a straight line representing the lane direction of the vehicle is determined; According to the sampling trajectory data of the straight line where the lane direction is located and the sampling points, a lateral distance between each sampling point and the straight line where the lane direction is located is obtained; It is determined whether the vehicle has a target lane change behavior within the trajectory segment based on the lateral distance.

2. The method according to claim 1, characterized in that The sampling process of the trajectory data in the trajectory segment to obtain a plurality of sampling points and the sampling trajectory data of each sampling point includes: Based on a preset sampling time interval or a preset sampling travel distance, the trajectory data is sampled and processed to obtain a sampling point set and sampling trajectory data of each sampling point in the sampling point set, wherein the sampling trajectory data of each sampling point in the sampling point set includes the speed of the vehicle at the corresponding sampling point; According to the vehicle speed of each sampling point in the sampling point set, a vehicle speed change value between two adjacent sampling points in the trajectory segment is obtained; Two adjacent sampling points whose vehicle speed change values ​​are greater than a preset vehicle speed constant value and corresponding sampling trajectory data in the sampling point set are cleared to obtain the plurality of sampling points and the sampling trajectory data of each sampling point.

3. The method according to claim 1, characterized in that The method further comprises: Determining the driving time and driving distance of the vehicle in the trajectory segment based on the trajectory data in the trajectory segment; If the driving duration is greater than a preset driving duration threshold, the driving distance is greater than a preset driving distance threshold, and the number of sampling points of the multiple sampling points is greater than a preset sampling number threshold, the step of determining a straight line representing the lane direction of the vehicle based on the sampling trajectory data of each sampling point is executed.

4. The method according to claim 1, characterized in that: The determining, based on the sampling trajectory data of each sampling point, a straight line representing the lane direction in which the vehicle is traveling, includes: Based on the sampling trajectory data of each sampling point, obtaining the trajectory position of each sampling point; Calculating the average slope of the trajectory segment according to the trajectory position of each sampling point; The straight line where the average slope lies is used as the straight line where the lane direction lies.

5. The method according to claim 1, characterized in that The determining, based on the lateral distance, whether the vehicle has a target lane change behavior within the trajectory segment comprises: Determining a lane change sampling point where a lane change behavior occurs based on the lateral distances corresponding to the sampling points, so as to obtain lane change data of the lane change sampling point; It is determined whether the vehicle has a target lane changing behavior based on the lane changing data.

6. The method according to claim 5, characterized in that The determining, based on the lateral distances corresponding to the sampling points, the lane change sampling point where the lane change behavior occurs, to obtain the lane change data of the lane change sampling point includes: determining a lane change distance value based on a lane width within the trajectory segment; The sampling points corresponding to the lateral distances of the sampling points are greater than the lane change distance value as the lane change sampling points; The lane change data is acquired based on the lane change sampling point.

7. The method according to claim 6, characterized in that The acquiring the lane change data based on the lane change sampling point includes: Taking the lane direction as a reference, marking two sides of the straight line where the lane direction is located as different lane change directions; Determining the lane change direction of the vehicle at the lane change sampling point based on the position of the vehicle on both sides of the straight line where the lane direction is located at the lane change sampling point; The lane changing direction of the lane changing sampling point is used as the lane changing data.

8. The method according to claim 5, characterized in that The target lane change behavior includes an S-curve lane change behavior; the lane change data includes a lane change direction of a lane change sampling point; and determining whether the vehicle has a target lane change behavior based on the lane change data includes: Based on the lane change data, determining whether there are lane change sampling points with different lane change directions in the lane change data; If the lane change sampling points of different lane change directions exist in the lane change data, it is determined that the vehicle has an S-curve lane change behavior in the trajectory segment.

9. The method according to claim 5, characterized in that The target lane change behavior includes a lane change behavior in a congested state; the trajectory data includes a driving distance and a driving time of the vehicle in the trajectory segment; and determining whether the vehicle has a target lane change behavior based on the lane change data includes: Determining a congestion index within the trajectory segment based on a travel distance and a travel time of the vehicle within the trajectory segment; If the congestion index is greater than a preset congestion value and the number of lane change sampling points in the lane change data is greater than a preset congestion lane change value, it is determined that the vehicle has a lane change behavior in a congested manner.

10. The method according to claim 5, characterized in that The target lane changing behavior includes a lane changing behavior with a sudden speed change; and determining whether the vehicle has a target lane changing behavior based on the lane changing data includes: Extracting the vehicle speed at a previous moment and the vehicle speed at a next moment of the lane change sampling point based on the trajectory data and the lane change data; Determining a speed mutation value of the lane change sampling point based on the vehicle speed at a previous moment and the vehicle speed at a next moment of the lane change sampling point; If the speed mutation value is greater than a preset mutation threshold, it is determined that the vehicle has a lane change behavior with a speed mutation.

11. The method according to claim 5, characterized in that The target lane changing behavior includes frequent lane changing behavior; and determining whether the vehicle has the target lane changing behavior based on the lane changing data includes: Obtaining the number of lane change sampling points in the lane change data; If the number of the lane change sampling points is greater than a preset frequent lane change value, it is determined that the vehicle has frequent lane change behavior.

12. The method according to claim 1, characterized in that The sampling process of the trajectory data in the trajectory segment to obtain a plurality of sampling points and the sampling trajectory data of each sampling point includes: Based on the trajectory position in the trajectory data, determining erroneous trajectory data where the trajectory position does not match the position of the vehicle traveling within the trajectory segment; The erroneous trajectory data in the trajectory data is cleared, and the trajectory data subjected to the data clearing process is sampled to obtain the plurality of sampling points and the sampled trajectory data of each sampling point.

13. A data processing device based on vehicle trajectory, characterized in that: include: a trajectory data acquisition module, configured to acquire trajectory data of a vehicle within a trajectory segment, wherein a travel distance of the trajectory segment is less than a preset segment distance threshold, and a travel duration of the trajectory segment is less than a preset segment duration threshold; A sampling module is configured to perform sampling processing on the trajectory data in the trajectory segment to obtain a plurality of sampling points and sampling trajectory data of each sampling point; A lane direction straight line acquisition module is configured to determine a straight line representing the lane direction of the vehicle based on the sampling trajectory data of each sampling point; A lateral distance acquisition module, configured to acquire a lateral distance between each sampling point and the straight line where the lane direction is located according to the sampling trajectory data of the straight line where the lane direction is located and each sampling point; The lane change analysis module is configured to determine whether the vehicle has a target lane change behavior within the trajectory segment based on the lateral distance.

14. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more computer programs, which, when executed by the one or more processors, enables the electronic device to implement the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: Computer readable instructions are stored thereon, and when the computer readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 12.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Cited By

  • High-precision map updating method and device, equipment and storage medium

    CN121048647A