WO2022141538A1 - Trajectory prediction method and apparatus - Google Patents
Trajectory prediction method and apparatus Download PDFInfo
- Publication number
- WO2022141538A1 WO2022141538A1 PCT/CN2020/142439 CN2020142439W WO2022141538A1 WO 2022141538 A1 WO2022141538 A1 WO 2022141538A1 CN 2020142439 W CN2020142439 W CN 2020142439W WO 2022141538 A1 WO2022141538 A1 WO 2022141538A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- lane
- trajectory
- target
- similarity
- predicted
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 230000015654 memory Effects 0.000 claims description 34
- 230000006870 function Effects 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 22
- 238000010801 machine learning Methods 0.000 claims description 11
- 238000007635 classification algorithm Methods 0.000 claims description 7
- 239000000523 sample Substances 0.000 description 57
- 238000013461 design Methods 0.000 description 32
- 238000010586 diagram Methods 0.000 description 26
- 238000004891 communication Methods 0.000 description 14
- 230000001133 acceleration Effects 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 7
- 238000005070 sampling Methods 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 230000006403 short-term memory Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000012549 training Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000001788 irregular Effects 0.000 description 2
- 230000001149 cognitive effect Effects 0.000 description 1
- 238000013527 convolutional neural network Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W60/00—Drive control systems specially adapted for autonomous road vehicles
- B60W60/001—Planning or execution of driving tasks
- B60W60/0027—Planning or execution of driving tasks using trajectory prediction for other traffic participants
- B60W60/00272—Planning or execution of driving tasks using trajectory prediction for other traffic participants relying on extrapolation of current movement
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W50/0097—Predicting future conditions
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W2554/00—Input parameters relating to objects
- B60W2554/40—Dynamic objects, e.g. animals, windblown objects
- B60W2554/404—Characteristics
- B60W2554/4042—Longitudinal speed
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W2556/00—Input parameters relating to data
- B60W2556/45—External transmission of data to or from the vehicle
Definitions
- the present application relates to the field of intelligent driving, in particular to a trajectory prediction method and device.
- Trajectory prediction refers to the prediction of other vehicles in the future in a short period of time after determining the positions of other vehicles around the vehicle through sensors or on-board cameras. The possible driving trajectory, and then planning and controlling its own driving behavior.
- the heading angle of the target vehicle is determined according to the current position of the target vehicle.
- a lane set including at least one lane is searched in the map, and for each lane in the found lane set, the vertical distance between the current position of the target vehicle and the lane is determined , a candidate lane set including at least one candidate lane is obtained after removing the lanes whose vertical distance is greater than the preset threshold in the lane set.
- each candidate lane For each candidate lane, determine the projection position of the current position of the target lane on the candidate lane, and determine the angle that the target vehicle needs to turn if the target vehicle travels to the candidate lane according to the projection position and the median line of the candidate lane, and then determine the heading angle.
- the angle difference between the angle difference and the included angle according to the order of the angle difference corresponding to the candidate lanes from small to large, select the first N candidate lanes to determine the predicted trajectory, each predicted trajectory contains a candidate lane, where N is greater than or equal to 1. positive integer.
- the target vehicle's driving trajectory is only predicted based on the current position of the target vehicle, the vehicle heading angle and other information.
- the target vehicle when the target vehicle is in a complex intersection scene, such as an overpass intersection, it may lead to Inaccurate lanes after projection and wrong predicted trajectories; and when the driver has irregular driving behavior, only predicting the trajectory based on the current position of the vehicle and the vehicle heading angle information may also lead to unreasonable predicted trajectories. The phenomenon. Therefore, the current trajectory prediction methods are not accurate enough.
- the present application provides a trajectory prediction method and device to improve the accuracy of trajectory prediction.
- an embodiment of the present application provides a trajectory prediction method.
- the method includes:
- the target predicted trajectory is at least one of at least one candidate predicted trajectory, and any candidate predicted trajectory in the at least one candidate predicted trajectory includes the first lane in the first lane set and the first lane in the second lane set.
- Two lanes, the first lane and the second lane are connected in the candidate predicted trajectory; wherein, the second lane set corresponds to a second position, and the second position is the target vehicle at the second moment.
- a predicted position, the second time instant is temporally behind the first time instant.
- the first position of the target vehicle corresponds to the first lane set
- the second position of the target vehicle corresponds to the second lane set
- the determined at least one candidate predicted trajectory includes the first lane and the second lane in the first lane set.
- the second lane in the lane set through this method, it can be determined according to the first lane set corresponding to the first position of the target vehicle at the first moment and the predicted second lane set corresponding to the second position of the target vehicle at the second moment
- At least one candidate prediction trajectory to improve the accuracy of the determined candidate prediction trajectory.
- the target predicted trajectory is at least one candidate predicted trajectory selected from at least one candidate predicted trajectory with a confidence greater than the first threshold.
- the trajectory prediction method provided in this application uses the confidence to measure the accuracy of the candidate predicted trajectory.
- At least one candidate predicted trajectory with a threshold is used as the target predicted trajectory, which further improves the accuracy of the predicted target predicted trajectory, and can provide a more credible target predicted trajectory for the downstream modules of trajectory prediction in intelligent driving, such as the planning control module, thereby improving the Intelligent driving performance.
- the first lane set is determined according to the first position and first lane information; and/or the second lane set is determined according to the second position and second lane information
- the first lane information includes the position information of all or part of the lanes in the area to which the first position belongs
- the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs.
- the first lane information and the second lane information are the same or different.
- the first lane set is determined based on the first position of the target vehicle
- the second lane set is determined based on the second position of the target vehicle
- the lane sets corresponding to the positions of the target vehicle at different times can be determined.
- the first lane information and/or the second lane information is pre-configured or acquired through vehicle communication or through sensors configured in the vehicle.
- lane information can be pre-configured in the vehicle, or the vehicle can acquire lane information through V2X communication with roadside units or monitoring centers, or detect and perceive lane information in real time through sensors such as on-board cameras and lidars.
- lane information can be pre-configured in the vehicle, acquired by the vehicle through vehicle communication, or detected in real time, providing multiple ways to acquire lane information.
- the method further includes: acquiring the first lane information according to a map of the area to which the first position of the target belongs, and acquiring the second lane information according to a map of the area to which the second position belongs; Taking at least one lane within a preset query radius from the first position as the first set of lanes, and/or taking at least one lane within a preset query radius from the second position as the first lane set Two-lane set.
- the first lane information can be obtained through the map of the area to which the first position belongs
- the second lane information can be obtained through the map of the area to which the second position belongs.
- the first lane set and/or the second lane set may be determined according to the preset query radius, so as to determine the lane sets corresponding to the positions of the target vehicle at different times.
- the at least one candidate predicted trajectory is determined according to the first lane set and the second lane set.
- At least one candidate predicted trajectory is determined according to the first set of lanes and the second set of lanes, and the obtained candidate predicted trajectory includes the lanes that the target vehicle may pass through at the first position and the lanes that the target vehicle may pass through at the second position. lanes, so that the determined candidate predicted trajectories are more accurate.
- the determining the at least one candidate predicted trajectory according to the first lane set and the second lane set includes: when the target second lane in the second lane set is the same as the second lane set When the target first lane in the first lane set has connectivity, a target candidate predicted trajectory including the target second lane and the target first lane is determined; wherein the target candidate predicted trajectory is included in the at least one target candidate predicted trajectory. candidate prediction trajectory.
- the candidate predicted trajectory can be determined according to the first lane and the second lane that has connectivity with the first lane, ensuring that the first lane and the second lane in the obtained candidate predicted trajectory are connected, and the determined candidate predicted trajectory It is the actual trajectory that the vehicle may travel.
- the confidence of the target predicted trajectory is obtained according to the first similarity, the second similarity and the connectivity information, where the first similarity is used to indicate the history of the target vehicle The similarity between the trajectory and the first lane in the target predicted trajectory, and the second similarity is used to indicate the difference between the predicted driving trajectory from the first position to the second position and the second lane.
- the connectivity information is used to indicate the connectivity between the first lane and the second lane.
- the first similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory is determined, and the second similarity between the predicted driving trajectory and the second lane in the target predicted trajectory is determined.
- the second similarity and the connectivity information between the first lane and the second lane are used to determine the confidence of the target predicted trajectory.
- the obtained confidence of the target predicted trajectory combines the historical trajectory of the target vehicle and the predicted driving trajectory in two stages. trajectories, and the connectivity information between lanes is introduced, so that the determined confidence level can better reflect the accuracy of the target predicted trajectory.
- the confidence of the target predicted trajectory is determined according to the following manner: according to the first similarity, the first weight corresponding to the first similarity, the second similarity, the first similarity For the second weight corresponding to the second similarity, the connectivity information, and the third weight corresponding to the connectivity information, the confidence of the target predicted trajectory is determined through an operation function; wherein, the first weight, the third weight The second weight, the third weight, and the operating function are preconfigured or derived from machine learning.
- weights when determining the confidence of the target predicted trajectory, weights can be configured for the first similarity, the second similarity and the connectivity information, so as to flexibly adjust the way of determining the confidence.
- the confidence level of the predicted target trajectory is obtained according to a first similarity degree and a second similarity degree, wherein the first similarity degree is used to indicate that the historical trajectory of the target vehicle is different from the target vehicle's historical trajectory.
- the similarity between the first lanes in the target predicted trajectory, the second similarity is used to indicate the similarity between the predicted driving trajectory from the first position to the second position and the second lane Spend.
- the confidence of the target predicted trajectory is determined according to the first similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory, and the second similarity between the predicted driving trajectory and the second lane in the target predicted trajectory , the confidence of the target predicted trajectory obtained from this combines the similarity between the target predicted trajectory and the historical trajectory of the target vehicle and the two-stage trajectory of the predicted driving trajectory, so that the determined confidence of the target predicted trajectory can better reflect the target predicted trajectory. accuracy.
- the first threshold is determined according to the following manner: acquiring a data set containing multiple trajectory prediction samples, and determining an end point position error value corresponding to the second position in each trajectory prediction sample of the data set; The first threshold is determined according to the confidence of each trajectory prediction sample, the end position error value corresponding to the second position in each trajectory prediction sample, and a preset value.
- an average value of confidence levels of at least one target trajectory prediction sample is determined, and the determined average value is used as the first threshold, wherein the at least one target trajectory prediction sample is the multiple At least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to the preset value; Set the value of at least one trajectory prediction sample as a positive sample set, and use at least one trajectory prediction sample whose error value of the end position corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value as a negative sample set, based on the binary classification
- the algorithm determines a metric value for distinguishing the positive sample set and the negative sample set, and uses the determined metric value as the first threshold.
- the first threshold can be determined according to the data set including multiple trajectory prediction samples, so that the target predicted trajectory obtained when candidate predicted trajectories are screened by the first threshold value is more suitable for the actual scene, and the accuracy of trajectory prediction is further improved.
- an embodiment of the present application provides a trajectory prediction method, the method includes:
- a first set of lanes when predicting the trajectory of the target vehicle, can be determined in the map according to the first position of the target vehicle, and the first set of lanes includes lanes where the target vehicle may travel from the first position. Then, a second lane set is determined according to the second position of the target vehicle predicted by the set trajectory prediction model, and the second lane set includes lanes where the target vehicle may travel from the second position.
- each candidate predicted trajectory includes a first lane in the first lane set and a second lane in the second lane set, and each candidate If the first lane and the second lane included in the predicted track are connected, the determined at least one candidate predicted track is determined according to the multi-stage position information of the target vehicle, and the accuracy is higher. Finally, the confidence of at least one candidate predicted trajectory is determined, and the candidate predicted trajectory whose confidence is greater than the first threshold is used as the target predicted trajectory. By selecting the target predicted trajectory, the candidate predicted trajectory that is more likely to be driven by the target vehicle can be selected, which further improves the accuracy of trajectory prediction.
- determining at least one candidate predicted trajectory according to the first lane set and the second lane set includes: when the target second lane in the second lane set is different from the first lane set When there is connectivity in the first target lane of the target, a target candidate predicted trajectory including the target second lane and the target first lane is determined; wherein the target candidate predicted trajectory is included in the at least one candidate predicted trajectory .
- the candidate predicted trajectory can be determined according to the first lane and the second lane that has connectivity with the first lane, ensuring that the first lane and the second lane in the obtained candidate predicted trajectory are connected, and the determined candidate predicted trajectory It is the actual trajectory that the vehicle may travel.
- determining the confidence level of the at least one candidate predicted trajectory includes:
- the confidence level of the first candidate prediction track in the at least one candidate prediction track is determined by the following steps, wherein the first candidate prediction track is any one of the at least one candidate prediction track: obtaining the first candidate prediction track Connectivity information between the first lane and the second lane included in the predicted track; obtain the historical track of the target vehicle, and determine the first track between the first lane included in the first candidate predicted track and the historical track. a similarity; determining the predicted driving trajectory of the target vehicle from the first position to the second position based on the trajectory prediction model; determining the second lane included in the first candidate predicted trajectory and the predicted trajectory a second similarity between the driving trajectories; according to the first similarity, the second similarity, and the connectivity information, determine the confidence of the first candidate predicted trajectory.
- the first similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory is determined, and the second similarity between the predicted driving trajectory and the second lane in the target predicted trajectory is determined.
- the second similarity and the connectivity information between the first lane and the second lane are used to determine the confidence of the target predicted trajectory.
- the obtained confidence of the target predicted trajectory combines the historical trajectory of the target vehicle and the predicted driving trajectory in two stages. trajectories, and the connectivity information between lanes is introduced, so that the determined confidence level can better reflect the accuracy of the target predicted trajectory.
- determining the confidence of the first candidate predicted trajectory according to the first similarity, the second similarity, and the connectivity information includes:
- the confidence level of the candidate predicted trajectory is determined according to the following formula:
- P is the confidence level of the first candidate predicted trajectory
- w 1 , w 2 , and w 3 are weight coefficients pre-configured or obtained according to machine learning, respectively
- P h is the first similarity
- P f is the second similarity
- EC is the connectivity information
- f( ) is an operation function preset or obtained according to machine learning.
- weights when determining the confidence of the target predicted trajectory, weights can be configured for the first similarity, the second similarity and the connectivity information, and the confidence can be determined by a preset or an operation function obtained by machine learning, thereby The way of determining the confidence can be flexibly adjusted.
- the determining the first set of lanes in the map according to the first position of the target vehicle includes: using at least one lane in the map that is within a preset query radius from the first position as the The first set of lanes; and the determining of a second set of lanes in the map according to the second position, comprising: using at least one lane in the map that is within a preset query radius from the second position as the second lane set.
- the first lane set and/or the second lane set can be determined according to the preset query radius, so as to determine the lane sets corresponding to the positions of the target vehicle at different times.
- the first threshold is determined according to the following methods: acquiring a data set containing a plurality of trajectory prediction samples, and determining an end point position error value corresponding to the second position in each trajectory prediction sample in the data set; The confidence of each trajectory prediction sample, the end point position error value corresponding to the second position in each trajectory prediction sample, and a preset value determine the first threshold.
- an average value of confidence levels of at least one target trajectory prediction sample is determined, and the determined average value is used as the first threshold, wherein the at least one target trajectory prediction sample is the multiple At least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to the preset value; Set the value of at least one trajectory prediction sample as a positive sample set, and use at least one trajectory prediction sample whose error value of the end position corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value as a negative sample set, based on the binary classification
- the algorithm determines a metric value for distinguishing the positive sample set and the negative sample set, and uses the determined metric value as the first threshold.
- the first threshold can be determined according to the data set including multiple trajectory prediction samples, so that the target predicted trajectory obtained when candidate predicted trajectories are screened by the first threshold value is more suitable for the actual scene, and the accuracy of trajectory prediction is further improved.
- an embodiment of the present application provides a trajectory prediction apparatus, including a unit for performing each step in any of the foregoing aspects.
- an embodiment of the present application provides a trajectory prediction apparatus, including a processor and a memory, where computer program instructions are stored in the memory, and when the trajectory prediction apparatus runs, the processor executes the method provided in any of the above aspects .
- the embodiments of the present application further provide a computer program, which, when the computer program runs on a computer, causes the computer to execute the method provided in any of the foregoing aspects.
- embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer is made to perform any of the above aspects provided method.
- an embodiment of the present application further provides a chip, where the chip is configured to read a computer program stored in a memory and execute the method provided in any one of the foregoing aspects.
- an embodiment of the present application further provides a chip system, where the chip system includes a processor for supporting a computer device to implement the method provided in any one of the foregoing aspects.
- the chip system further includes a memory for storing necessary programs and data of the computer device.
- the chip system can be composed of chips, and can also include chips and other discrete devices.
- an embodiment of the present application further provides a terminal, where the terminal may include the trajectory prediction apparatus described in the third aspect or the fourth aspect. Further, the terminal may be a vehicle.
- FIG. 1 is a schematic structural diagram of a system to which a trajectory prediction method provided by an embodiment of the present application is applicable;
- FIG. 2 is a schematic diagram of a lane provided by an embodiment of the present application.
- FIG. 3 is a flowchart of a trajectory prediction method provided by an embodiment of the present application.
- Fig. 4 is a kind of map that the embodiment of this application provides
- FIG. 5 is a schematic diagram of a lane connectivity relationship provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of a candidate prediction trajectory provided by an embodiment of the present application.
- FIG. 7 is a flowchart of a method for determining a confidence level of a first candidate prediction trajectory provided by an embodiment of the present application
- FIG. 8 is a schematic diagram of a method for determining a historical trajectory according to an embodiment of the present application.
- FIG. 9 is a schematic diagram of a predicted driving trajectory provided by an embodiment of the present application.
- FIG. 10 is a flowchart of a second trajectory prediction method provided by an embodiment of the present application.
- FIG. 11 is a schematic diagram of a map including multiple lanes provided by an embodiment of the present application.
- FIG. 12 is a schematic diagram of a first trajectory prediction method provided by an embodiment of the present application.
- FIG. 13 is a schematic diagram of a second trajectory prediction method provided by an embodiment of the present application.
- FIG. 14 is a schematic diagram of a third trajectory prediction method provided by an embodiment of the present application.
- FIG. 15 is a schematic structural diagram of a first trajectory prediction apparatus provided by an embodiment of the application.
- FIG. 16 is a schematic structural diagram of a second trajectory prediction apparatus provided by an embodiment of the present application.
- Intelligent driving refers to the fact that machines help people to drive, and completely replace human driving under special circumstances. Specifically, relevant audio-visual signals and information are obtained through sensors on the vehicle, and the corresponding follow-up system is controlled through cognitive computing, so as to realize the analysis of the driving state of the vehicle and the control of the subsequent driving of the vehicle.
- FIG. 1 is a schematic diagram of the architecture of a system to which a trajectory prediction method provided by an embodiment of the present application is applicable.
- the system architecture includes at least two vehicles (as shown in FIG. 1 by taking n vehicles as an example, vehicle 1 and vehicle 1). 2.
- Vehicle n where n is an integer greater than or equal to 2), and may also include a monitoring center.
- the monitoring center can receive the information or requests sent by the vehicle, monitor the vehicle, and control the driving of the vehicle by sending control instructions to the vehicle.
- any vehicle may include: sensors, in-vehicle communication equipment 105 , high-precision positioning equipment 106 , vehicle controller 107 , and trajectory prediction device 108 .
- the sensor includes one or more of the following devices: long- and short-range millimeter-wave radar 101 , ultrasonic radar 102 , laser radar 103 , and vehicle-mounted camera 104 . Specifically, only the vehicle 1 is shown in FIG. 1 .
- the long- and short-range millimeter wave radar 101 is a radar that works in the millimeter wave band (millimeter wave) for detection, and is used to collect the transmission time of light pulses reaching obstacles, and send the collected data to the trajectory prediction device 108; After the optical pulse transmission time is collected, data such as distance, speed, and azimuth angle of surrounding obstacles are calculated, and the calculated data is sent to the trajectory prediction device 108 .
- Ultrasonic radar 102 It is a radar that detects the position of a target using ultrasonic waves. Its working principle is that the ultrasonic generator generates ultrasonic waves, and the probe of the ultrasonic radar 102 receives the ultrasonic waves reflected by the obstacles, and calculates the distance to the obstacles according to the time difference between the transmitted ultrasonic waves and the received reflected ultrasonic waves. The radar 102 may send the collected data to the trajectory prediction device 108 .
- Lidar 103 a radar system that emits a laser beam to detect characteristic quantities such as the position and velocity of a target. Its working principle is to transmit a detection signal (laser beam) to the target, and then compare the received signal (target echo) reflected from the target with the transmitted detection signal, and after proper processing, the relevant data of the target can be obtained. Such as target distance, bearing, altitude, speed, attitude, and even shape and other parameters.
- the lidar 103 is used to collect the signal reflected from the obstacle, and send the reflected signal and the transmitted signal to the trajectory prediction device 108; Comparing the signals, data such as distance and speed of surrounding obstacles are obtained by processing, and the data obtained by processing are sent to the trajectory prediction device 108 .
- Vehicle-mounted camera 104 used to collect surrounding images or videos, and send the collected images or videos to the trajectory prediction device 108; wherein, the vehicle-mounted camera may be a monocular camera, a binocular camera, a depth camera, etc. No restrictions. In this application, the vehicle-mounted camera 104 can analyze the vehicle information such as the speed and distance of surrounding obstacles in the image or video after collecting the image or video, or analyze the lane information in the image or video, etc., and send the data obtained by the analysis. to the trajectory prediction device 108 .
- In-vehicle communication device 105 a device used to communicate with other vehicles or monitoring centers, specifically, it can be used to receive vehicle information sent by other vehicles, such as the driving trajectories of other vehicles, or send its own trajectory to other surrounding vehicles, or communicate with the monitoring center. Interact, send vehicle information to the monitoring center or receive control commands sent by the monitoring center.
- the in-vehicle communication device 105 may be a telematics BOX (TBOX).
- High-precision positioning device 106 collect the precise position information of the current vehicle (with an error of less than 20cm), and the global positioning system (global positioning system, GPS) time information corresponding to the precise position information, and send the collected information to the track Prediction device 108 .
- the high-precision positioning device 108 may be a combined positioning system or a combined positioning module.
- the high-precision positioning device 108 may include a global navigation satellite system (GNSS), an inertial measurement unit (inertial measurement unit, IMU) and other devices and sensors.
- GNSS global navigation satellite system
- IMU inertial measurement unit
- the global navigation satellite system can output global positioning information with a certain accuracy (eg, 5-10 Hz), and the frequency of the inertial measurement unit is generally high (eg, 1000 Hz).
- System information, output high-frequency precise positioning information generally requires more than 200Hz).
- Vehicle controller 107 executes control commands to control vehicle steering, acceleration, deceleration, start, stop, and the like.
- Trajectory prediction device 108 It can be set in the vehicle.
- the trajectory prediction device 108 is specifically implemented by a processor and a memory.
- the processor includes a central processing unit (CPU) or a device or module with processing functions.
- the trajectory prediction device 108 may be an intelligent driving fusion perception module in the form of an intelligent driving domain controller, an in-vehicle electronic control unit (ECU), an in-vehicle mobile data center (Mobile Data Center, MDC), and the like.
- the trajectory prediction device 108 receives the target vehicle information sent by the sensor, such as target vehicle speed, target vehicle position information, etc., and the trajectory prediction device 108 obtains lane information, which can be specifically received through the in-vehicle communication device 105.
- the trajectory prediction device 108 determines the target predicted trajectory of the target vehicle according to the target vehicle information and the lane information, and performs planning and control on the driving route of the first vehicle according to the target predicted trajectory, The control command is generated and sent to the vehicle controller 107, so that the vehicle controller 107 controls the first vehicle to execute the control command. Or, after receiving the vehicle information of the first vehicle sent by the sensor or the high-precision positioning device 106, the trajectory prediction device 108 sends the vehicle information of the first vehicle to the monitoring center through the in-vehicle communication device 105.
- Vehicle information and lane information of the area where the first vehicle is currently located determine the predicted trajectory of the first vehicle, and send control commands to the first vehicle or other vehicles around the first vehicle according to the determined predicted trajectory, so that the monitoring center can monitor the traffic on the road. monitoring and control of vehicles.
- vehicle 1 determines the current position (x, y) of vehicle 2, and takes the current position (x, y) of vehicle 2 as the origin, according to the prediction Set the query radius R to search for a lane set including at least one lane in the map, and for each lane in the found lane set, determine the vertical distance between the current position of the vehicle 2 and the lane, except that the vertical distance in the lane set is greater than the predetermined distance.
- a candidate lane set including at least one candidate lane is obtained. For example, the vehicle shown in FIG.
- the vehicle 1 determines that the candidate lanes corresponding to vehicle 2 are lane A and lane B as shown in FIG. 2 .
- vehicle 1 determines that the candidate lanes corresponding to vehicle 2 are lane A and lane B as shown in FIG. 2 .
- For each candidate lane determine the projection position of the current position of the target vehicle projected to the candidate lane, and determine the angle that the target vehicle needs to turn if it travels to the candidate lane according to the projection position and the median line of the candidate lane, and then determine the target vehicle's position.
- the heading angle is determined, and the angle difference between the heading angle and the included angle is determined.
- the first N candidate lanes are selected to determine the predicted trajectory.
- Each predicted trajectory contains a candidate lane. Among them, N is a positive integer greater than or equal to 1. For example, if it is finally determined that the angle difference corresponding to lane A is smaller than the angle difference corresponding to lane B, the predicted trajectory of vehicle 2 can be determined according to lane A, such as the predicted trajectory
- an embodiment of the present application provides a trajectory prediction method, which can be applied to any vehicle in the system shown in FIG. 1 , and can also be applied to a monitoring center in the system shown in FIG. 1 .
- the trajectory prediction method provided by the present application is applied to any vehicle, taking the first vehicle as an example, the first vehicle can determine the target predicted trajectory of the target vehicle according to the trajectory prediction method, and the target vehicle can be a vehicle on the current road. Any other vehicle other than the first vehicle, or the first vehicle can also predict the target predicted trajectory of the vehicle according to the trajectory prediction method provided in this application, and the first vehicle can adjust the driving trajectory or speed of the vehicle according to the target predicted trajectory. , to achieve intelligent driving.
- the monitoring center can predict the trajectory of the target vehicle.
- the target vehicle can be any vehicle on the current road.
- the monitoring center determines the target predicted trajectory of the target vehicle.
- the target predicted trajectory of the target vehicle sends control commands to the target vehicle and the surrounding vehicles of the target vehicle, and flexibly controls and monitors the vehicles driving on the road.
- the trajectory prediction method provided by the embodiment of the present application is further introduced by taking the application of the trajectory prediction method to the first vehicle as an example.
- the first vehicle may be any vehicle in the system shown in FIG. 1 .
- FIG. 3 is a flowchart of a trajectory prediction method provided by an embodiment of the present application, and the trajectory prediction method includes the following steps:
- S301 Acquire a first position of the target vehicle at a first moment, and determine a first lane set corresponding to the first position.
- the first moment can be the moment when the first vehicle triggers the trajectory prediction of the target vehicle, or the preset specified moment when the first vehicle performs trajectory prediction on the target vehicle, or can be the system time when S301 is executed ( referred to as the current moment).
- the first vehicle obtains the first position of the target vehicle through a sensor, or the first vehicle receives the first position sent by the target vehicle through the in-vehicle communication device, and the first position sent by the target vehicle may be the target vehicle. Obtained through a device such as a high-precision positioning device in the target vehicle, and this application does not specifically limit the obtaining method.
- the first vehicle After determining the first position of the target vehicle, the first vehicle acquires first lane information, where the first lane information includes position information of all or part of the lanes in the area to which the first position belongs.
- the first lane information may be preconfigured in the first vehicle, or the first vehicle may acquire the first lane information through vehicle to everything (V2X) communication, for example, the first vehicle communicates with the roadside unit through an in-vehicle communication device.
- the monitoring center communicates to obtain the first lane information; or the first vehicle obtains the first lane information through sensors in the first vehicle, for example, the first vehicle detects and perceives the first lane information in real time through sensors such as on-board cameras and lidars.
- V2X vehicle to everything
- the first vehicle determines a first set of lanes according to the first location and the first lane information.
- the first vehicle obtains a map of the area to which the first position belongs, obtains first lane information according to the map, and obtains at least a distance from the first position within a preset query radius according to the first lane information.
- One lane is set as the first lane. For example, referring to the map shown in FIG. 4 , obtain the first lane information according to the map, and take the first position of the target vehicle as the origin to determine the lane within the preset query radius, such as lane A, If both lane B and lane C are within the preset query radius, it is determined that the first lane set includes three first lanes, lane A, lane B, and lane C.
- S302 Predict the second position of the target vehicle at the second moment, and determine the second lane set corresponding to the second position.
- the second time is located after the first time in time, for example, the second time is a time t seconds later than the first time.
- the second position of the target vehicle is predicted by a set trajectory prediction model, wherein the set trajectory prediction model can be a constant velocity motion model (Constant Velocity Model, CV), a constant velocity constant rotation rate model ( Constant Turn Rate and Velocity, CTRV), Long Short-Term Memory Neural Network (Long Short-Term Memory, LSTM).
- the running speed and acceleration of the target vehicle are obtained, specifically, the running speed and acceleration of the target vehicle may be determined by a sensor in the first vehicle, and the first position, running speed and acceleration of the target vehicle are used as the set trajectory prediction model.
- the input feature of obtains the second position of the output of the set trajectory prediction model.
- a trajectory prediction model can be selected as the set trajectory prediction model, and the set trajectory prediction model can predict at least one first position of the target vehicle.
- Two positions, or multiple trajectory prediction models may be selected to predict multiple second positions of the target vehicle, which is not limited in this application.
- the first vehicle After determining the second position of the target vehicle, the first vehicle determines a second set of lanes according to the second lane information, where the second lane information includes position information of all or part of the lanes in the area to which the second position belongs.
- the first vehicle obtains a map of the area to which the second position belongs, obtains second lane information according to the map, and obtains at least a distance from the second position within a preset query radius according to the second lane information.
- One lane is set as the second lane.
- first vehicle determines the second lane set
- first lane set and the second lane set may be the same or different.
- the first position and the second position belong to the same area, the acquired first lane set and the second lane set are the same, or the first position Different from the area to which the second position belongs, the acquired first lane set and the second lane set are different.
- S303 Determine at least one candidate predicted trajectory according to the first lane set and the second lane set.
- the candidate predicted track includes a first lane in the first lane set and a second lane in the second lane set, and the first lane and the second lane included in the candidate predicted track have connectivity.
- the connectivity between the first lane and the second lane means that the first lane and the second lane are connected, and it can be understood that when the target vehicle is driving in the first lane, it can pass to the second lane.
- the connectivity between lanes is a lane attribute, which can be obtained through lane information. For example, after the first vehicle obtains a map of the area to which the first position belongs, lane information including lane connectivity information is obtained from the map.
- the connectivity relationship between lanes can be direct connectivity, lane change connectivity, ramp connectivity, straight lane change, etc.
- Figure 5 shows several common lane connectivity relationships.
- the numbers 1, 2, 3, 4, 5, 6, and 7 in Figure 5 correspond to a lane, respectively.
- the directly connected lanes are: 1 and lane 3, lane 3 and lane 6, lane 2 and lane 4, lane 4 and lane 7;
- the lanes with lane change connections are: lane 6 and lane 7;
- the lanes with ramp connections are lane 4 and lane 5; there are
- the lanes for straight lane change are lane 1 and lane 2, lane 3 and lane 4.
- the connectivity information between lanes can be represented by a connectivity coefficient between lanes, for example, the connectivity coefficient between two directly connected lanes is 1, and the two lanes connected by changing lanes The connectivity coefficient between is 0.8 etc.
- the first vehicle determines at least one candidate predicted trajectory according to the following methods:
- the first vehicle determines, for each first lane in the first lane set, a second lane that has connectivity with the first lane in the second lane set according to the connectivity between the lanes.
- the first vehicle determines at least one candidate predicted trajectory from each of the first lanes and the second lane with connectivity to the first lane.
- the first set of lanes includes lane D, lane E, and the second set of lanes includes lane F, lane G, and lane H; for lane D, there is connectivity with lane D
- the second lane is lane G and lane H, then the candidate predicted trajectories determined according to lane D and lane G are shown in Figure 6 as track 1, and the candidate predicted trajectories determined according to lane D and lane H are shown in Figure 6 track 2.
- the second lane that has connectivity with the lane E is the lane F
- the candidate predicted trajectory determined according to the lane E and the lane F is the trajectory 3 shown in FIG. 6 .
- S304 Determine the confidence level of the at least one candidate predicted trajectory.
- the confidence level of any candidate predicted trajectory is used to indicate the similarity between the candidate predicted trajectory and the target trajectory expected to travel by the target vehicle, wherein the target trajectory expected to travel by the target vehicle is the driver expected to drive the target vehicle.
- the first vehicle determines a confidence level for each candidate predicted trajectory in the at least one candidate predicted trajectory.
- the first candidate predicted trajectory is: Any one of the at least one candidate prediction trajectory, FIG. 7 is a flowchart of a method for determining the confidence of the first candidate prediction trajectory, the method comprising the following steps:
- S701 Acquire connectivity information between a first lane and a second lane included in the first candidate predicted trajectory.
- connectivity information between lanes may be preconfigured in the first vehicle, or the first vehicle may acquire connectivity information between lanes through V2X communication.
- the roadside unit or the monitoring center obtains the connectivity information between the lanes; or, the first vehicle obtains the connectivity information between the lanes through a sensor in the first vehicle, for example, the first vehicle is detected in real time by sensors such as an on-board camera and lidar Connectivity between lanes to obtain connectivity information between lanes.
- the lane information may also include connectivity information between lanes.
- S702 Determine the first similarity between the first lane included in the first candidate predicted track and the historical track.
- the historical trajectory is the trajectory that the target vehicle has traveled within the preset historical period.
- the historical trajectory of the target vehicle can be obtained according to the following methods:
- Method 1 The first vehicle obtains N frames of historical position information of the target vehicle within a historical preset time period.
- the first vehicle obtains N frames of historical position information of the target vehicle within a historical preset time period through a sensor or a vehicle-mounted camera.
- the vehicle fits the acquired historical position information of the target vehicle N frames to obtain the historical trajectory
- Figure 8 is a schematic diagram of a historical trajectory determination method, the rectangle in Figure 8 is the acquired target vehicle within the historical time period
- the N frame position information of and the historical trajectory shown in Figure 8 is obtained by fitting the N frame position information.
- Mode 2 The first vehicle receives the historical track sent by the target vehicle through V2X communication.
- the first lane can be determined by calculating any one of the Euclidean distance, cosine similarity, Pearson parameter or Tanimoto similarity between the first lane in the first candidate predicted trajectory and the historical trajectory.
- a similarity for example, when the first similarity is determined by calculating the Euclidean distance between the first lane and the historical track, the first similarity can be determined according to the following formula 1:
- the first similarity is determined by calculating the cosine similarity between the first lane and the historical trajectory, the first similarity can be determined according to the following formula 2:
- the first similarity is determined by calculating the Pearson parameter between the first lane and the historical track, the first similarity can be determined according to the following formula 3:
- the first similarity is determined by calculating the Tanimoto similarity between the first lane and the historical track, the first similarity can be determined according to the following formula 4:
- P h is the first similarity between the first lane and the historical track
- xi is the ith sampling point after sampling the median line of the first lane
- y i is the historical track.
- n is the number of sampling points.
- the Euclidean distance between the lane I and the historical trajectory is calculated. , and determine the first similarity according to the Euclidean distance.
- S703 Determine the second similarity between the second lane included in the first candidate predicted trajectory and the predicted driving trajectory.
- the predicted travel trajectory is the predicted travel trajectory of the target vehicle from the first position to the second position.
- the first vehicle determines the predicted travel trajectory through a set trajectory prediction model.
- the set trajectory prediction model can be a constant velocity model (Constant Velocity Model, CV), a constant velocity constant rate model (Constant Turn Rate and Velocity, CTRV), and a long short-term memory neural network (Long Short-Term Memory, LSTM).
- the running speed and acceleration of the target vehicle are obtained, specifically, the running speed and acceleration of the target vehicle may be determined by a sensor in the first vehicle, and the first position, running speed and acceleration of the target vehicle are used as the set trajectory prediction model. to obtain the predicted driving trajectory output by the set trajectory prediction model.
- a trajectory prediction model can be selected as the set trajectory prediction model, and the set trajectory prediction model can predict at least one prediction of the target vehicle.
- the driving trajectory, or a plurality of trajectory prediction models may be selected to predict the plurality of predicted driving trajectories of the target vehicle, which is not limited in this application.
- the predicted driving trajectory of the target vehicle may be determined through the same or different trajectory prediction models.
- the second position corresponding to the predicted driving trajectory may be used as the input of the trajectory prediction model when determining the predicted driving trajectory.
- the second similarity may be determined by calculating any one of Euclidean distance, cosine similarity or Pearson parameter between the second lane in the first candidate predicted trajectory and the predicted driving trajectory.
- Euclidean distance any one of Euclidean distance, cosine similarity or Pearson parameter between the second lane in the first candidate predicted trajectory and the predicted driving trajectory.
- the predicted driving trajectory obtained based on CTRV is the trajectory F1 shown in Figure 9
- the predicted driving trajectory obtained based on LSTM is
- the second similarity between the lane J and the track F1 and the second similarity between the lane J and the track F2 are calculated respectively, and the second similarity between the lane J and the track F1 is selected.
- the second similarity with a larger numerical value among the similarity and the second similarity between the lane J and the trajectory F2 is used as the second similarity between the lane J and the predicted travel trajectory.
- the method for calculating the similarity in the embodiment of the present application is not limited to the above-mentioned method for obtaining the similarity by calculating the Euclidean distance, the cosine similarity or the Pearson parameter. Any method for calculating the similarity between two trajectories or line segments. methods are applicable.
- S704 According to the first similarity between the first lane in the first candidate predicted track and the historical track, the second similarity between the second lane in the first candidate predicted track and the predicted driving track, and the first lane and the The connectivity information between the second lanes determines the confidence of the first candidate predicted trajectory.
- the confidence level of the first candidate predicted trajectory can be determined according to the following formula 5:
- P is the confidence level of the first candidate predicted trajectory
- w 1 , w 2 , and w 3 are weight coefficients pre-configured or obtained according to machine learning, respectively
- P h is the first lane in the first candidate predicted trajectory The first similarity with the historical trajectory
- P f is the second similarity between the second lane in the first candidate predicted trajectory and the predicted driving trajectory
- EC is the connectivity between the first lane and the second lane information
- f() is an operation function that is preset or obtained according to machine learning.
- the operation function in the above formula 4 can be a function preset by the technician, such as multiplication, then the confidence level of the first candidate predicted trajectory can be determined according to formula 6:
- the operation function in the above formula 4 may be a pooling operation in a convolutional neural network, and only data larger than a preset value is calculated.
- the operation function in the above formula 4 may be a machine learning model. Specifically, the P f , P h and EC corresponding to the first candidate prediction trajectory are input into the confidence calculation model, and the confidence is obtained. The degree of confidence of the first candidate predicted trajectory output by the model is calculated.
- the confidence calculation model can be trained in the following ways:
- the initial confidence calculation model is trained according to the data set.
- the data set contains multiple training samples, wherein each training sample includes the predicted trajectory, the actual driving trajectory, the first and second lanes included in the predicted trajectory, and the first and second lanes corresponding to the predicted trajectory. At least one feature among a similarity, a second similarity and connectivity information, a predicted similarity between the actual driving track and the predicted track, and the like.
- the first similarity, second similarity and connectivity information corresponding to the predicted trajectory in each training sample are used as the input of the initial confidence calculation model, the initial confidence calculation model is trained, and the confidence of the predicted trajectory output by the model is calculated. and the loss value between the predicted similarity, and adjust the model parameters according to the loss value obtained after each round of training until the loss value converges in the preset range.
- the first lane in the candidate predicted trajectory can also be calculated only according to the The confidence is determined by the first similarity with the historical trajectory and the second similarity between the second lane in the candidate predicted trajectory and the predicted driving trajectory, so as to simplify the calculation of the confidence and improve the trajectory prediction efficiency.
- S305 Use the candidate predicted trajectory with the confidence greater than the first threshold as the target predicted trajectory.
- the first threshold may be an empirical value preset by the technician, or the first threshold may be determined according to the following methods:
- a data set including multiple trajectory prediction samples is obtained, and each trajectory prediction sample includes a historical trajectory, a second position and a predicted driving trajectory, a candidate predicted trajectory and its confidence level, and the actual driving of the vehicle. track and other data; determine the end position error value corresponding to the second position in each trajectory prediction sample in the data set; specifically, determine the actual position of the vehicle at the second moment according to the actual driving trajectory of the vehicle, and determine the first position according to the second position and the actual position.
- the first threshold is determined according to the confidence of each trajectory prediction sample, the end point position error value corresponding to the second position in each trajectory prediction sample, and a preset value.
- At least one target trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples of the data set is less than or equal to a preset value is determined, and at least one target trajectory prediction sample is determined.
- the average value of the confidence level of , and the determined average value is used as the first threshold.
- At least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples of the data set is less than or equal to a preset value is used as a positive sample set, and the data set At least one trajectory prediction sample whose end position error value corresponding to the second position is greater than the preset value among the plurality of trajectory prediction samples is regarded as a negative sample set, and is determined based on a binary classification algorithm for distinguishing the positive sample set and the negative sample set.
- the metric value is determined, and the determined metric value is used as the first threshold.
- the binary classification algorithm may be a classification algorithm or a clustering algorithm.
- the preset value corresponding to the high-speed driving scene is 5 meters
- the preset value corresponding to the daily driving scene is 2 meters.
- Different preset values may determine first thresholds corresponding to different application scenarios or functional modules.
- the first lane set when the first vehicle predicts the trajectory of the target vehicle, the first lane set can be determined in the map according to the first position of the target vehicle, and the first lane set includes lanes where the target vehicle may travel from the first position. Then, a second lane set is determined according to the second position of the target vehicle predicted by the set trajectory prediction model, and the second lane set includes lanes where the target vehicle may travel from the second position.
- the first vehicle determines at least one candidate predicted trajectory according to the first lane set and the second lane set, each candidate predicted trajectory includes a first lane in the first lane set and a second lane in the second lane set, and The first lane and the second lane included in each candidate predicted trajectory are connected, and the determined at least one candidate predicted trajectory is determined according to the multi-stage position information of the target vehicle, and the accuracy is higher.
- the first vehicle determines the confidence of at least one candidate predicted trajectory, and uses the candidate predicted trajectory whose confidence is greater than the first threshold as the target predicted trajectory, and uses the confidence to represent the similarity between the candidate predicted trajectory and the target trajectory that the target vehicle expects to travel,
- the target predicted trajectory is selected according to the confidence, and the candidate predicted trajectory that is more likely to be driven by the target vehicle can be selected, which further improves the accuracy of trajectory prediction.
- trajectory prediction method includes the following steps:
- S1001 Acquire a first position of the target vehicle at a first moment, and determine a first lane set corresponding to the first position.
- S1002 Predict the second position of the target vehicle at the second moment, and determine a second lane set corresponding to the second position.
- S1003 Determine at least a pair of lane combinations according to the first lane set and the second lane set.
- the at least one pair of lane combinations includes a first lane in the first lane set and a second lane in the second lane set.
- S1004 Determine the confidence of at least one pair of lane combinations.
- the connectivity coefficient between the first and second lanes can be set to 0, or the first and second lanes are opposite lanes to each other
- the connectivity coefficient between the first lane and the second lane can be set to -1 to further reduce the confidence of the lane combination that does not have a connectivity relationship.
- S1005 Determine the target predicted trajectory according to the lane combination with the confidence greater than the first threshold.
- a lane combination with a confidence greater than the first threshold may be used as the target predicted trajectory.
- the confidence can be determined for all lane combinations in the first lane set and the second lane set, without the need to filter the lanes that can form candidate predicted trajectories according to the lane connectivity relationship, but by setting the absence of connectivity relationship.
- the connectivity coefficient between the lanes is set to 0 or a negative value, and when selecting a lane combination with a confidence greater than the first threshold, the lane combination that does not have a connectivity relationship is filtered, and then the target prediction trajectory is determined to improve the trajectory prediction. s efficiency.
- the confidence level of the candidate predicted trajectory calculated in the trajectory prediction method provided in the embodiment of the present application can be used to select the target predicted trajectory, and can also be used to select the target of interest. For example, after the confidence of at least one candidate predicted lane is determined for the target vehicle, if the proportion of the confidence of at least one candidate predicted trajectory of the target vehicle that is lower than the preset value is greater than the preset ratio, it means that it is difficult to predict the driving of the target vehicle track, select the target vehicle as the object of interest. If it is believed that the target vehicle has a problem of ambiguous driving behavior and may violate traffic rules, it is necessary to pay attention to the target vehicle.
- the above description of the trajectory prediction method provided by the embodiment of the present application takes the application of the trajectory prediction method to the first vehicle as an example. It can be understood that the trajectory prediction method provided by the embodiment of the present application can also be It is applied to one or more functional modules in the vehicle, or, the trajectory prediction method provided in the embodiment of the present application can also be applied to the monitoring center in the system shown in FIG. 1 . For specific implementation, see the trajectory prediction method shown in FIG. , and the repetition will not be repeated.
- Figure 11 shows a schematic diagram of a map containing multiple lanes, and the map includes lanes 1-6. Assuming that the connectivity coefficient between lanes is used as the connectivity information between lanes, the connectivity between some lanes The coefficients are shown in the table below:
- Lane Connectivity Coefficient Lane 1 and Lane 2 1 Lane 1 and Lane 4 0.8 Lane 4 and Lane 5 0.8 Lane 4 and Lane 6 0.6
- Fig. 12 is a schematic diagram of the first kind of trajectory prediction method when the target vehicle travels on the lane included in the map shown in Fig. 11 , Fig. 12 shows the historical trajectory of the target vehicle and the predicted travel based on the set trajectory prediction model Track, the first vehicle determines that the first lane set includes lane 1, where the first similarity between lane 1 and track 1 is 0.7, the second lane set includes lane 2 and lane 4, and the second similarity between lane 2 and track 2 is 0.5, and the second similarity between lane 4 and track 2 is 0.8.
- the first vehicle determines at least one candidate predicted trajectory according to the connected first lane and the second lane, respectively candidate predicted trajectory 1 (including lane 1 and lane 2) and candidate predicted trajectory 2 (including lane 1 and lane 4).
- the candidate predicted trajectory 1 and the candidate predicted trajectory 2 with confidence greater than the first threshold are determined as the target predicted trajectory.
- FIG. 13 is a schematic diagram of the trajectory prediction method when the second target vehicle is driving on the lane included in the map shown in FIG. 10 .
- FIG. 13 shows the historical trajectory of the target vehicle and the trajectory obtained based on the set trajectory prediction model.
- the first vehicle determines that the first set of lanes includes lane 1, where the first similarity between lane 1 and the historical track is 0.9, the second set of lanes includes lane 2, the second similarity between lane 2 and track F1 is 0.8, and the second similarity between lane 2 and the track F1 is 0.8.
- the second similarity of track F2 is 0.9, and the second similarity between lane 2 and track F3 is 0.7.
- the confidence of the candidate predicted track 1 is greater than the first threshold, and the candidate predicted track 1 is used as the target predicted track.
- FIG. 14 is a schematic diagram of the driving trajectory of the third target vehicle when driving on the lane included in the map shown in FIG. 10 .
- FIG. 14 shows the historical trajectory of the target vehicle and the predicted driving based on the set trajectory prediction model. Track, the first vehicle determines that the first set of lanes includes lane 4, where the first similarity between lane 4 and the historical track is 0.4, the second set of lanes includes lane 5 and lane 6, and the second similarity between lane 5 and the predicted driving trajectory is is 0.8, and the second similarity between lane 6 and the predicted driving trajectory is 0.6.
- the first vehicle determines at least one candidate predicted trajectory according to the connected first lane and the second lane, respectively candidate predicted trajectory 1 (including lane 4 and lane 5) and candidate predicted trajectory 2 (including lane 4 and lane 6).
- the candidate predicted trajectory 2 whose confidence is greater than the first threshold is determined to be the target predicted trajectory.
- the present application also provides a trajectory prediction device 1500, the trajectory prediction device 1500 can be applied to any vehicle or monitoring center in the system shown in FIG. 1, and FIG. 15 is the trajectory prediction device A schematic structural diagram of the apparatus 1500 , the trajectory prediction apparatus 1500 includes an acquisition unit 1501 and a processing unit 1502 . The functions of each unit in the trajectory prediction apparatus 1500 will be introduced below.
- the obtaining unit 1501 is configured to obtain a first position of the target vehicle at a first moment, where the first position corresponds to a first lane set including at least one first lane;
- the processing unit 1502 is configured to determine a target predicted trajectory, the confidence of the target predicted trajectory is greater than or equal to a first threshold, the target predicted trajectory is at least one of at least one candidate predicted trajectory, the at least one candidate predicted trajectory Any candidate predicted trajectory in the trajectory includes a first lane in the first lane set and a second lane in the second lane set, and the first lane and the second lane are connected in the candidate predicted trajectory;
- the second lane set corresponds to a second position
- the second lane set includes at least one second lane
- the second position is the predicted position of the target vehicle at a second moment, the second moment After the first instant in time.
- the first set of lanes is determined according to the first position and first lane information; and/or the second set of lanes is determined according to the second position and second lane information
- the first lane information includes the position information of all or part of the lanes in the area to which the first position belongs
- the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs.
- the first lane information and the second lane information are the same or different.
- processing unit 1502 is further configured to:
- processing unit 1502 is further configured to:
- the at least one candidate predicted trajectory is determined according to the first lane set and the second lane set.
- the processing unit 1502 is specifically configured to: when there is connectivity between the target second lane in the second lane set and the target first lane in the first lane set, determine whether to include the target second lane in the first lane set. target candidate predicted trajectories of the target second lane and the target first lane; wherein the target candidate predicted trajectory is included in the at least one candidate predicted trajectory.
- the confidence of the target predicted trajectory is obtained according to a first similarity, a second similarity and connectivity information, where the first similarity is used to indicate the history of the target vehicle The similarity between the trajectory and the first lane in the target predicted trajectory, and the second similarity is used to indicate the difference between the predicted driving trajectory from the first position to the second position and the second lane.
- the connectivity information is used to indicate the connectivity between the first lane and the second lane.
- the processing unit 1502 is specifically configured to determine the confidence of the target predicted trajectory according to the following manner: according to the first similarity, the first weight corresponding to the first similarity, the The second similarity, the second weight corresponding to the second similarity, the connectivity information, and the third weight corresponding to the connectivity information are used to determine the confidence of the target predicted trajectory through an operation function; The first weight, the second weight, the third weight and the operation function are pre-configured or obtained according to machine learning.
- the processing unit 1502 is specifically configured to determine the first threshold according to the following manner:
- the first threshold is determined by predicting the end position error value corresponding to the second position in the sample and the preset value.
- the processing unit 1502 is specifically configured to: determine the average value of the confidence levels of at least one target trajectory prediction sample, and use the determined average value as the first threshold, wherein the at least one One target trajectory prediction sample is at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to a preset value; or the second position in the plurality of trajectory prediction samples corresponding to At least one trajectory prediction sample whose end position error value is less than or equal to a preset value is used as a positive sample set, and at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value is used.
- the sample is taken as a set of negative samples, and a metric value for distinguishing the set of positive samples from the set of negative samples is determined based on a binary classification algorithm, and the determined metric value is used as the first threshold.
- FIG. 16 is a schematic structural diagram of a trajectory prediction apparatus 1600 provided by an embodiment of the present application.
- the trajectory prediction apparatus 1600 may be applied to the apparatus shown in FIG. 1 . any vehicle or monitoring center in the system.
- the trajectory prediction apparatus 1600 includes: a processor 1601 , a memory 1602 and a bus 1603 .
- the processor 1601 and the memory 1602 communicate through the bus 1603, and the communication can also be realized through other means such as wireless transmission.
- the memory 1602 is used for storing instructions, and the processor 1601 is used for executing the instructions stored in the memory 1602 .
- the memory 1602 stores program codes, and the processor 1601 can call the program codes stored in the memory 1602 to perform the following operations:
- the first set of lanes is determined according to the first position and first lane information; and/or the second set of lanes is determined according to the second position and second lane information
- the first lane information includes the position information of all or part of the lanes in the area to which the first position belongs
- the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs.
- the first lane information and the second lane information are the same or different.
- the processor 1601 is further configured to:
- first lane information according to the map of the area to which the first position belongs, and obtain the second lane information according to the map of the area to which the second position belongs; At least one first lane is used as the first set of lanes, and/or at least one lane within a preset query radius from the second position is used as the second set of lanes.
- the processor 1601 is further configured to:
- the at least one candidate predicted trajectory is determined according to the first lane set and the second lane set.
- the processor 1601 is specifically configured to: when there is connectivity between the target second lane in the second lane set and the target first lane in the first lane set, determine whether to include the target candidate predicted trajectories of the target second lane and the target first lane; wherein the target candidate predicted trajectory is included in the at least one candidate predicted trajectory.
- the confidence of the target predicted trajectory is obtained according to a first similarity, a second similarity and connectivity information, where the first similarity is used to indicate the history of the target vehicle The similarity between the trajectory and the first lane in the target predicted trajectory, and the second similarity is used to indicate the difference between the predicted driving trajectory from the first position to the second position and the second lane.
- the connectivity information is used to indicate the connectivity between the first lane and the second lane.
- the processor 1601 is specifically configured to determine the confidence of the target predicted trajectory according to the following manner: according to the first similarity, the first weight corresponding to the first similarity, the The second similarity, the second weight corresponding to the second similarity, the connectivity information, and the third weight corresponding to the connectivity information are used to determine the confidence of the target predicted trajectory through an operation function; The first weight, the second weight, the third weight and the operation function are pre-configured or obtained according to machine learning.
- the processor 1601 is specifically configured to determine the first threshold according to the following manner:
- the first threshold is determined by predicting the end position error value corresponding to the second position in the sample and the preset value.
- the processor 1601 is specifically configured to: determine an average value of the confidence level of at least one target trajectory prediction sample, and use the determined average value as the first threshold, wherein the at least one One target trajectory prediction sample is at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to a preset value; or the second position in the plurality of trajectory prediction samples corresponding to At least one trajectory prediction sample whose end position error value is less than or equal to a preset value is used as a positive sample set, and at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value is used.
- the sample is taken as a set of negative samples, and a metric value for distinguishing the set of positive samples from the set of negative samples is determined based on a binary classification algorithm, and the determined metric value is used as the first threshold.
- the memory 1602 in FIG. 16 of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
- the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically programmable read-only memory (Erasable PROM, EPROM). Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
- Volatile memory may be Random Access Memory (RAM), which acts as an external cache.
- RAM Static RAM
- DRAM Dynamic RAM
- SDRAM Synchronous DRAM
- SDRAM double data rate synchronous dynamic random access memory
- Double Data Rate SDRAM DDR SDRAM
- enhanced SDRAM ESDRAM
- synchronous link dynamic random access memory Synchlink DRAM, SLDRAM
- Direct Rambus RAM Direct Rambus RAM
- the embodiments of the present application further provide a computer program, when the computer program runs on a computer, the computer causes the computer to execute the trajectory prediction method provided by the embodiment shown in FIG. 3 or FIG. 4 .
- the embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes the program shown in FIG. 3 or FIG. 4 .
- the storage medium may be any available medium that the computer can access.
- computer readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or be capable of carrying or storing instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer.
- an embodiment of the present application further provides a chip for reading a computer program stored in a memory to implement the trajectory prediction method provided by the embodiment shown in FIG. 3 or FIG. 4 .
- an embodiment of the present application provides a chip system, where the chip system includes a processor for supporting a computer device to implement the trajectory prediction method shown in FIG. 3 or FIG. 4 .
- the chip system further includes a memory for storing necessary programs and data of the computer device.
- the chip system may be composed of chips, or may include chips and other discrete devices.
- the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
- computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
- the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Traffic Control Systems (AREA)
Abstract
A trajectory prediction method and apparatus. The method comprises: obtaining a first position of a target vehicle at a first moment, the first position corresponding to a first lane set comprising at least one first lane; and then determining a target predicted trajectory, the confidence level of the target predicted trajectory being greater than or equal to a first threshold, the target predicted trajectory being at least one of at least one candidate predicted trajectory, any candidate predicted trajectory comprising a first lane and a second lane that are connected, and a second lane set corresponding to a predicted second position of a target lane at a second moment. By means of the solution, a set of lanes can be determined according to different positions of the target vehicle at different moments, so as to determine at least one candidate predicted trajectory. The present solution can achieve a higher accuracy than the existing methods of only determining a predicted trajectory according to a current position of a vehicle. Then, at least one candidate predicted trajectory having a confidence level greater than the first threshold is used as the target predicted trajectory, such that trajectory prediction accuracy is further improved.
Description
本申请涉及智能驾驶领域,具体涉及一种轨迹预测方法与装置。The present application relates to the field of intelligent driving, in particular to a trajectory prediction method and device.
随着轨迹预测技术的发展,轨迹预测在智能驾驶领域的作用日益凸显,轨迹预测是指在车辆行驶过程中,通过传感器或车载摄像头确定自身周围的其它车辆位置后,预测其它车辆未来短时间内可能行驶的轨迹,进而规划控制自身的行驶行为。With the development of trajectory prediction technology, the role of trajectory prediction in the field of intelligent driving has become increasingly prominent. Trajectory prediction refers to the prediction of other vehicles in the future in a short period of time after determining the positions of other vehicles around the vehicle through sensors or on-board cameras. The possible driving trajectory, and then planning and controlling its own driving behavior.
目前在对目标车辆进行轨迹预测时,根据目标车辆的当前位置确定目标车辆的航向角。根据目标车辆的当前位置以及预设的查询半径在地图中查找包括至少一个车道的车道集合,对查找到的车道集合中的每个车道,确定目标车辆的当前位置与该车道之间的垂直距离,除去车道集合中垂直距离大于预设阈值的车道后得到包括至少一个候选车道的候选车道集合。针对每个候选车道,确定目标车道当前位置投影到候选车道上的投影位置,并根据投影位置以及候选车道的中位线确定目标车辆若行驶到候选车道需要转过的夹角,然后确定航向角与夹角之间的角度差,按照候选车道对应的角度差从小到大的顺序,选择前N个候选车道确定预测轨迹,每个预测轨迹中包含一个候选车道,其中,N为大于等于1的正整数。At present, when the trajectory prediction of the target vehicle is performed, the heading angle of the target vehicle is determined according to the current position of the target vehicle. According to the current position of the target vehicle and the preset query radius, a lane set including at least one lane is searched in the map, and for each lane in the found lane set, the vertical distance between the current position of the target vehicle and the lane is determined , a candidate lane set including at least one candidate lane is obtained after removing the lanes whose vertical distance is greater than the preset threshold in the lane set. For each candidate lane, determine the projection position of the current position of the target lane on the candidate lane, and determine the angle that the target vehicle needs to turn if the target vehicle travels to the candidate lane according to the projection position and the median line of the candidate lane, and then determine the heading angle. The angle difference between the angle difference and the included angle, according to the order of the angle difference corresponding to the candidate lanes from small to large, select the first N candidate lanes to determine the predicted trajectory, each predicted trajectory contains a candidate lane, where N is greater than or equal to 1. positive integer.
由上述介绍可知,目前在进行车道预测时,仅根据目标车辆的当前位置、车辆航向角等信息对目标车辆行驶轨迹进行预测,但当目标车辆处于复杂的路口场景,如立交桥路口时,可能导致投影后车道不准确、预测轨迹错误的情况;以及当驾驶人员存在操作不规范的驾驶行为时,仅根据车辆的当前位置以及车辆航向角信息进行轨迹预测,也可能会导致预测得到的轨迹不合理的现象。因此,目前的轨迹预测方法不够准确。It can be seen from the above introduction that at present, when performing lane prediction, the target vehicle's driving trajectory is only predicted based on the current position of the target vehicle, the vehicle heading angle and other information. However, when the target vehicle is in a complex intersection scene, such as an overpass intersection, it may lead to Inaccurate lanes after projection and wrong predicted trajectories; and when the driver has irregular driving behavior, only predicting the trajectory based on the current position of the vehicle and the vehicle heading angle information may also lead to unreasonable predicted trajectories. The phenomenon. Therefore, the current trajectory prediction methods are not accurate enough.
发明内容SUMMARY OF THE INVENTION
本申请提供一种轨迹预测方法与装置,用以提高轨迹预测的准确性。The present application provides a trajectory prediction method and device to improve the accuracy of trajectory prediction.
第一方面,本申请实施例提供一种轨迹预测方法。该方法包括:In a first aspect, an embodiment of the present application provides a trajectory prediction method. The method includes:
获取目标车辆在第一时刻的第一位置,所述第一位置对应包含至少一个第一车道的第一车道集合;确定目标预测轨迹,所述目标预测轨迹的置信度大于或等于第一阈值,所述目标预测轨迹为至少一个候选预测轨迹中的至少一个,所述至少一个候选预测轨迹中的任一个候选预测轨迹包含所述第一车道集合中的第一车道以及第二车道集合中的第二车道,所述第一车道和第二车道在所述候选预测轨迹中连通;其中,所述第二车道集合与第二位置对应,所述第二位置为所述目标车辆在第二时刻的预测位置,所述第二时刻在时间上位于所述第一时刻之后。obtaining a first position of the target vehicle at a first moment, the first position corresponding to a first lane set including at least one first lane; determining a target predicted trajectory, the confidence of the target predicted trajectory is greater than or equal to a first threshold, The target predicted trajectory is at least one of at least one candidate predicted trajectory, and any candidate predicted trajectory in the at least one candidate predicted trajectory includes the first lane in the first lane set and the first lane in the second lane set. Two lanes, the first lane and the second lane are connected in the candidate predicted trajectory; wherein, the second lane set corresponds to a second position, and the second position is the target vehicle at the second moment. A predicted position, the second time instant is temporally behind the first time instant.
在以上方法中,目标车辆的第一位置对应第一车道集合,目标车辆的第二位置对应第二车道集合,确定出的至少一个候选预测轨迹包括第一车道集合中的第一车道以及第二车道集合中的第二车道,通过该方法,能够根据目标车辆在第一时刻的第一位置对应的第一车道集合和预测的目标车辆在第二时刻的第二位置对应的第二车道集合确定至少一个候选预测轨迹,提升确定出的候选预测轨迹的准确度。目标预测轨迹是从至少一个候选预测 轨迹中选择的置信度大于第一阈值的至少一个候选预测轨迹,本申请提供的轨迹预测方法使用置信度衡量候选预测轨迹的准确性,通过选择置信度大于第一阈值的至少一个候选预测轨迹作为目标预测轨迹,进一步提高预测得到的目标预测轨迹的准确性,可以为智能驾驶中轨迹预测的下游模块如规划控制模块提供更可信的目标预测轨迹,进而提升智能驾驶性能。In the above method, the first position of the target vehicle corresponds to the first lane set, the second position of the target vehicle corresponds to the second lane set, and the determined at least one candidate predicted trajectory includes the first lane and the second lane in the first lane set. The second lane in the lane set, through this method, it can be determined according to the first lane set corresponding to the first position of the target vehicle at the first moment and the predicted second lane set corresponding to the second position of the target vehicle at the second moment At least one candidate prediction trajectory, to improve the accuracy of the determined candidate prediction trajectory. The target predicted trajectory is at least one candidate predicted trajectory selected from at least one candidate predicted trajectory with a confidence greater than the first threshold. The trajectory prediction method provided in this application uses the confidence to measure the accuracy of the candidate predicted trajectory. At least one candidate predicted trajectory with a threshold is used as the target predicted trajectory, which further improves the accuracy of the predicted target predicted trajectory, and can provide a more credible target predicted trajectory for the downstream modules of trajectory prediction in intelligent driving, such as the planning control module, thereby improving the Intelligent driving performance.
在一个可能的设计中,所述第一车道集合是根据所述第一位置和第一车道信息确定的;和/或,所述第二车道集合是根据所述第二位置和第二车道信息确定的;其中,所述第一车道信息包括所述第一位置所属区域的全部或部分车道的位置信息,所述第二车道信息包括所述第二位置所属区域的全部或部分车道的位置信息,所述第一车道信息和所述第二车道信息相同或不同。In a possible design, the first lane set is determined according to the first position and first lane information; and/or the second lane set is determined according to the second position and second lane information The first lane information includes the position information of all or part of the lanes in the area to which the first position belongs, and the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs. , the first lane information and the second lane information are the same or different.
通过该设计,基于目标车辆的第一位置确定第一车道集合,基于目标车辆的第二位置确定第二车道集合,可以确定目标车辆不同时刻所处位置对应的车道集合。Through this design, the first lane set is determined based on the first position of the target vehicle, the second lane set is determined based on the second position of the target vehicle, and the lane sets corresponding to the positions of the target vehicle at different times can be determined.
在一个可能的设计中,所述第一车道信息和/或所述第二车道信息为预配置或通过车辆通信或通过车辆配置的传感器获取到的。举例来说,可以将车道信息预配置在车辆中,或车辆通过与路侧单元或监控中心进行V2X通信获取车道信息,或通过车载摄像头、激光雷达等传感器实时检测和感知车道信息。In a possible design, the first lane information and/or the second lane information is pre-configured or acquired through vehicle communication or through sensors configured in the vehicle. For example, lane information can be pre-configured in the vehicle, or the vehicle can acquire lane information through V2X communication with roadside units or monitoring centers, or detect and perceive lane information in real time through sensors such as on-board cameras and lidars.
通过该设计,车道信息可以为预配置在车辆中的,可以是车辆通过车辆通信获取到的,也可以是实时检测的,提供了车道信息的多种获取方式。Through this design, lane information can be pre-configured in the vehicle, acquired by the vehicle through vehicle communication, or detected in real time, providing multiple ways to acquire lane information.
在一个可能的设计中,所述方法还包括:根据所述目标第一位置所属区域的地图获取所述第一车道信息,根据所述第二位置所属区域的地图获取所述第二车道信息;将距离所述第一位置在预设查询半径内的至少一个车道作为所述第一车道集合,和/或,将距离所述第二位置在预设查询半径内的至少一个车道作为所述第二车道集合。In a possible design, the method further includes: acquiring the first lane information according to a map of the area to which the first position of the target belongs, and acquiring the second lane information according to a map of the area to which the second position belongs; Taking at least one lane within a preset query radius from the first position as the first set of lanes, and/or taking at least one lane within a preset query radius from the second position as the first lane set Two-lane set.
通过该设计,可以通过第一位置所属区域的地图获取第一车道信息,并通过第二位置所属区域的地图获取第二车道信息。在获取到第一车道信息和第二车道信息后,可以根据预设查询半径确定第一车道集合和/或第二车道集合,从而确定出目标车辆在不同时刻所处位置对应的车道集合。Through this design, the first lane information can be obtained through the map of the area to which the first position belongs, and the second lane information can be obtained through the map of the area to which the second position belongs. After acquiring the first lane information and the second lane information, the first lane set and/or the second lane set may be determined according to the preset query radius, so as to determine the lane sets corresponding to the positions of the target vehicle at different times.
在一个可能的设计中,在确定所述目标预测轨迹之前,根据所述第一车道集合以及所述第二车道集合,确定所述至少一个候选预测轨迹。In a possible design, before the target predicted trajectory is determined, the at least one candidate predicted trajectory is determined according to the first lane set and the second lane set.
通过该设计,根据第一车道集合和第二车道集合确定至少一个候选预测轨迹,得到的候选预测轨迹包含了目标车辆在第一位置时可能通行的车道和目标车辆在第二位置时可能通行的车道,从而使确定出的候选预测轨迹更加准确。Through this design, at least one candidate predicted trajectory is determined according to the first set of lanes and the second set of lanes, and the obtained candidate predicted trajectory includes the lanes that the target vehicle may pass through at the first position and the lanes that the target vehicle may pass through at the second position. lanes, so that the determined candidate predicted trajectories are more accurate.
在一个可能的设计中,所述根据所述第一车道集合以及所述第二车道集合,确定所述至少一个候选预测轨迹,包括:当所述第二车道集合中目标第二车道与所述第一车道集合中的目标第一车道存在连通性时,确定包含所述目标第二车道与所述目标第一车道的目标候选预测轨迹;其中,所述目标候选预测轨迹包含在所述至少一个候选预测轨迹中。In a possible design, the determining the at least one candidate predicted trajectory according to the first lane set and the second lane set includes: when the target second lane in the second lane set is the same as the second lane set When the target first lane in the first lane set has connectivity, a target candidate predicted trajectory including the target second lane and the target first lane is determined; wherein the target candidate predicted trajectory is included in the at least one target candidate predicted trajectory. candidate prediction trajectory.
通过该设计,可以根据第一车道以及与该第一车道存在连通性的第二车道确定候选预测轨迹,保证得到的候选预测轨迹中的第一车道和第二车道连通,确定出的候选预测轨迹为实际中车辆可能会行驶的轨迹。Through this design, the candidate predicted trajectory can be determined according to the first lane and the second lane that has connectivity with the first lane, ensuring that the first lane and the second lane in the obtained candidate predicted trajectory are connected, and the determined candidate predicted trajectory It is the actual trajectory that the vehicle may travel.
在一个可能的设计中,所述目标预测轨迹的置信度是根据第一相似度、第二相似度以及连通性信息得到的,其中,所述第一相似度用于指示所述目标车辆的历史轨迹与所述目 标预测轨迹中的第一车道之间的相似度,所述第二相似度用于指示从所述第一位置到所述第二位置的预测行驶轨迹与所述第二车道之间的相似度,所述连通性信息用于指示所述第一车道和第二车道之间的连通性。In a possible design, the confidence of the target predicted trajectory is obtained according to the first similarity, the second similarity and the connectivity information, where the first similarity is used to indicate the history of the target vehicle The similarity between the trajectory and the first lane in the target predicted trajectory, and the second similarity is used to indicate the difference between the predicted driving trajectory from the first position to the second position and the second lane. The connectivity information is used to indicate the connectivity between the first lane and the second lane.
通过该设计,确定目标车辆的历史轨迹和目标预测轨迹中的第一车道的第一相似度,以及确定预测行驶轨迹与目标预测轨迹中第二车道的第二相似度,根据第一相似度、第二相似度和第一车道和第二车道之间的连通性信息,确定目标预测轨迹的置信度,由此得到的目标预测轨迹的置信度结合了目标车辆的历史轨迹和预测行驶轨迹两阶段的轨迹,并且引入车道之间的连通性信息,使得确定出的置信度更能体现目标预测轨迹的准确性。Through this design, the first similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory is determined, and the second similarity between the predicted driving trajectory and the second lane in the target predicted trajectory is determined. According to the first similarity, The second similarity and the connectivity information between the first lane and the second lane are used to determine the confidence of the target predicted trajectory. The obtained confidence of the target predicted trajectory combines the historical trajectory of the target vehicle and the predicted driving trajectory in two stages. trajectories, and the connectivity information between lanes is introduced, so that the determined confidence level can better reflect the accuracy of the target predicted trajectory.
在一个可能的设计中,根据下列方式确定所述目标预测轨迹的置信度:根据所述第一相似度、所述第一相似度对应的第一权重、所述第二相似度、所述第二相似度对应的第二权重、所述连通性信息以及所述连通性信息对应的第三权重,通过操作函数确定所述目标预测轨迹的置信度;其中,所述第一权重、所述第二权重、所述第三权重以及所述操作函数为预配置或根据机器学习得到的。In a possible design, the confidence of the target predicted trajectory is determined according to the following manner: according to the first similarity, the first weight corresponding to the first similarity, the second similarity, the first similarity For the second weight corresponding to the second similarity, the connectivity information, and the third weight corresponding to the connectivity information, the confidence of the target predicted trajectory is determined through an operation function; wherein, the first weight, the third weight The second weight, the third weight, and the operating function are preconfigured or derived from machine learning.
通过该设计,在确定目标预测轨迹的置信度时,可以为第一相似度、第二相似度和连通性信息配置权重,从而灵活调整置信度的确定方式。Through this design, when determining the confidence of the target predicted trajectory, weights can be configured for the first similarity, the second similarity and the connectivity information, so as to flexibly adjust the way of determining the confidence.
在一种可能的设计中,所述目标预测轨迹的置信度是根据第一相似度和第二相似度得到的,其中,所述第一相似度用于指示所述目标车辆的历史轨迹与所述目标预测轨迹中的第一车道之间的相似度,所述第二相似度用于指示从所述第一位置到所述第二位置的预测行驶轨迹与所述第二车道之间的相似度。In a possible design, the confidence level of the predicted target trajectory is obtained according to a first similarity degree and a second similarity degree, wherein the first similarity degree is used to indicate that the historical trajectory of the target vehicle is different from the target vehicle's historical trajectory. the similarity between the first lanes in the target predicted trajectory, the second similarity is used to indicate the similarity between the predicted driving trajectory from the first position to the second position and the second lane Spend.
通过该设计,根据目标车辆的历史轨迹和目标预测轨迹中的第一车道的第一相似度,以及预测行驶轨迹与目标预测轨迹中第二车道的第二相似度,确定目标预测轨迹的置信度,由此得到的目标预测轨迹的置信度结合了目标预测轨迹与目标车辆的历史轨迹和预测行驶轨迹两阶段的轨迹的相似度,使得确定出的目标预测轨迹的置信度更能够体现目标预测轨迹的准确性。Through this design, the confidence of the target predicted trajectory is determined according to the first similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory, and the second similarity between the predicted driving trajectory and the second lane in the target predicted trajectory , the confidence of the target predicted trajectory obtained from this combines the similarity between the target predicted trajectory and the historical trajectory of the target vehicle and the two-stage trajectory of the predicted driving trajectory, so that the determined confidence of the target predicted trajectory can better reflect the target predicted trajectory. accuracy.
在一个可能的设计中,根据下列方式确定所述第一阈值:获取包含多个轨迹预测样本的数据集,确定所述数据集的每个轨迹预测样本中第二位置对应的终点位置误差值;根据所述每个轨迹预测样本的置信度、所述每个轨迹预测样本中第二位置对应的终点位置误差值以及预设值,确定所述第一阈值。In a possible design, the first threshold is determined according to the following manner: acquiring a data set containing multiple trajectory prediction samples, and determining an end point position error value corresponding to the second position in each trajectory prediction sample of the data set; The first threshold is determined according to the confidence of each trajectory prediction sample, the end position error value corresponding to the second position in each trajectory prediction sample, and a preset value.
在一个可能的设计中,确定至少一个目标轨迹预测样本的置信度的平均值,将确定出的所述平均值作为所述第一阈值,其中,所述至少一个目标轨迹预测样本为所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本;或者将所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本作为正样本集合,以及将所述多个轨迹预测样本中第二位置对应的终点位置误差值大于预设值的至少一个轨迹预测样本作为负样本集合,基于二分类算法确定用于区分所述正样本集合和所述负样本集合的度量值,将确定出的所述度量值作为所述第一阈值。In a possible design, an average value of confidence levels of at least one target trajectory prediction sample is determined, and the determined average value is used as the first threshold, wherein the at least one target trajectory prediction sample is the multiple At least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to the preset value; Set the value of at least one trajectory prediction sample as a positive sample set, and use at least one trajectory prediction sample whose error value of the end position corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value as a negative sample set, based on the binary classification The algorithm determines a metric value for distinguishing the positive sample set and the negative sample set, and uses the determined metric value as the first threshold.
通过以上设计,可以根据包括多个轨迹预测样本的数据集确定第一阈值,从而在通过第一阈值筛选候选预测轨迹时得到的目标预测轨迹更贴合实际场景,进一步提升轨迹预测的准确性。Through the above design, the first threshold can be determined according to the data set including multiple trajectory prediction samples, so that the target predicted trajectory obtained when candidate predicted trajectories are screened by the first threshold value is more suitable for the actual scene, and the accuracy of trajectory prediction is further improved.
第二方面,本申请实施例提供了一种轨迹预测方法,该方法包括:In a second aspect, an embodiment of the present application provides a trajectory prediction method, the method includes:
根据目标车辆的第一位置,在地图中确定第一车道集合;其中,所述第一位置为所述目标车辆在第一时刻的位置,所述第一车道集合中包含至少一个第一车道;基于设定的轨迹预测模型,预测所述目标车辆的第二位置;其中,所述第二位置为所述目标车辆在第二时刻的位置,所述第二时刻位于所述第一时刻之后;根据所述第二位置在所述地图中确定第二车道集合;其中,所述第二车道集合中包含至少一个第二车道;根据所述第一车道集合和所述第二车道集合,确定至少一个候选预测轨迹;其中,任一个候选预测轨迹包含所述第一车道集合中的一个第一车道和所述第二车道集合中的一个第二车道,且任一个候选预测轨迹包含的第一车道与第二车道具有连通性;确定所述至少一个候选预测轨迹的置信度,任一个候选预测轨迹的置信度用于表示所述候选预测轨迹与所述目标车辆期望行驶的目标轨迹的相似度;将置信度大于第一阈值的候选预测轨迹作为目标预测轨迹。determining a first set of lanes in the map according to the first position of the target vehicle; wherein the first position is the position of the target vehicle at a first moment, and the first set of lanes includes at least one first lane; Predict the second position of the target vehicle based on the set trajectory prediction model; wherein, the second position is the position of the target vehicle at a second moment, and the second moment is located after the first moment; A second set of lanes is determined in the map according to the second position; wherein, the second set of lanes includes at least one second lane; according to the first set of lanes and the second set of lanes, at least one set of lanes is determined A candidate predicted trajectory; wherein any candidate predicted trajectory includes a first lane in the first lane set and a second lane in the second lane set, and any candidate predicted trajectory includes a first lane Having connectivity with the second lane; determining the confidence of the at least one candidate predicted trajectory, and the confidence of any candidate predicted trajectory is used to indicate the similarity between the candidate predicted trajectory and the target trajectory expected to travel by the target vehicle ; Take the candidate predicted trajectory with the confidence greater than the first threshold as the target predicted trajectory.
通过上述方法,在对目标车辆进行轨迹预测时,可以根据目标车辆的第一位置在地图中确定第一车道集合,第一车道集合中包括目标车辆从第一位置可能行驶的车道。然后根据设定的轨迹预测模型预测的目标车辆的第二位置确定第二车道集合,第二车道集合中包括目标车辆从第二位置可能行驶的车道。再根据第一车道集合和第二车道集合确定至少一个候选预测轨迹,每个候选预测轨迹包含第一车道集合中的一个第一车道和第二车道集合中的一个第二车道,且每个候选预测轨迹包含的第一车道与第二车道具有连通性,则确定出的至少一个候选预测轨迹是根据目标车辆的多阶段的位置信息确定出来的,准确性更高。最后确定至少一个候选预测轨迹的置信度,并将置信度大于第一阈值的候选预测轨迹作为目标预测轨迹,使用置信度代表候选预测轨迹与目标车辆期望行驶的目标轨迹的相似度,并根据置信度选择目标预测轨迹,可以挑选出目标车辆更有可能行驶的候选预测轨迹,进一步提升了轨迹预测的准确性。Through the above method, when predicting the trajectory of the target vehicle, a first set of lanes can be determined in the map according to the first position of the target vehicle, and the first set of lanes includes lanes where the target vehicle may travel from the first position. Then, a second lane set is determined according to the second position of the target vehicle predicted by the set trajectory prediction model, and the second lane set includes lanes where the target vehicle may travel from the second position. Then determine at least one candidate predicted trajectory according to the first lane set and the second lane set, each candidate predicted trajectory includes a first lane in the first lane set and a second lane in the second lane set, and each candidate If the first lane and the second lane included in the predicted track are connected, the determined at least one candidate predicted track is determined according to the multi-stage position information of the target vehicle, and the accuracy is higher. Finally, the confidence of at least one candidate predicted trajectory is determined, and the candidate predicted trajectory whose confidence is greater than the first threshold is used as the target predicted trajectory. By selecting the target predicted trajectory, the candidate predicted trajectory that is more likely to be driven by the target vehicle can be selected, which further improves the accuracy of trajectory prediction.
在一个可能的设计中,根据所述第一车道集合和所述第二车道集合,确定至少一个候选预测轨迹,包括:当所述第二车道集合中目标第二车道与所述第一车道集合中的目标第一车道存在连通性时,确定包含所述目标第二车道与所述目标第一车道的目标候选预测轨迹;其中,所述目标候选预测轨迹包含在所述至少一个候选预测轨迹中。In a possible design, determining at least one candidate predicted trajectory according to the first lane set and the second lane set includes: when the target second lane in the second lane set is different from the first lane set When there is connectivity in the first target lane of the target, a target candidate predicted trajectory including the target second lane and the target first lane is determined; wherein the target candidate predicted trajectory is included in the at least one candidate predicted trajectory .
通过该设计,可以根据第一车道以及与该第一车道存在连通性的第二车道确定候选预测轨迹,保证得到的候选预测轨迹中的第一车道和第二车道连通,确定出的候选预测轨迹为实际中车辆可能会行驶的轨迹。Through this design, the candidate predicted trajectory can be determined according to the first lane and the second lane that has connectivity with the first lane, ensuring that the first lane and the second lane in the obtained candidate predicted trajectory are connected, and the determined candidate predicted trajectory It is the actual trajectory that the vehicle may travel.
在一个可能的设计中,确定所述至少一个候选预测轨迹的置信度,包括:In a possible design, determining the confidence level of the at least one candidate predicted trajectory includes:
通过以下步骤,确定所述至少一个候选预测轨迹中第一候选预测轨迹的置信度,其中,所述第一候选预测轨迹为所述至少一个候选预测轨迹中的任一个:获取所述第一候选预测轨迹包含的第一车道与第二车道之间的连通性信息;获取所述目标车辆的历史轨迹,确定所述第一候选预测轨迹中包含的第一车道与所述历史轨迹之间的第一相似度;基于所述轨迹预测模型,确定所述目标车辆从所述第一位置到所述第二位置的预测行驶轨迹;确定所述第一候选预测轨迹包含的第二车道与所述预测行驶轨迹之间的第二相似度;根据所述第一相似度、所述第二相似度,以及所述连通性信息,确定所述第一候选预测轨迹的置信度。The confidence level of the first candidate prediction track in the at least one candidate prediction track is determined by the following steps, wherein the first candidate prediction track is any one of the at least one candidate prediction track: obtaining the first candidate prediction track Connectivity information between the first lane and the second lane included in the predicted track; obtain the historical track of the target vehicle, and determine the first track between the first lane included in the first candidate predicted track and the historical track. a similarity; determining the predicted driving trajectory of the target vehicle from the first position to the second position based on the trajectory prediction model; determining the second lane included in the first candidate predicted trajectory and the predicted trajectory a second similarity between the driving trajectories; according to the first similarity, the second similarity, and the connectivity information, determine the confidence of the first candidate predicted trajectory.
通过该设计,确定目标车辆的历史轨迹和目标预测轨迹中的第一车道的第一相似度,以及确定预测行驶轨迹与目标预测轨迹中第二车道的第二相似度,根据第一相似度、第二相似度和第一车道和第二车道之间的连通性信息,确定目标预测轨迹的置信度,由此得到的目标预测轨迹的置信度结合了目标车辆的历史轨迹和预测行驶轨迹两阶段的轨迹,并且 引入车道之间的连通性信息,使得确定出的置信度更能体现目标预测轨迹的准确性。Through this design, the first similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory is determined, and the second similarity between the predicted driving trajectory and the second lane in the target predicted trajectory is determined. According to the first similarity, The second similarity and the connectivity information between the first lane and the second lane are used to determine the confidence of the target predicted trajectory. The obtained confidence of the target predicted trajectory combines the historical trajectory of the target vehicle and the predicted driving trajectory in two stages. trajectories, and the connectivity information between lanes is introduced, so that the determined confidence level can better reflect the accuracy of the target predicted trajectory.
在一个可能的设计中,所述根据所述第一相似度、所述第二相似度,以及所述连通性信息,确定所述第一候选预测轨迹的置信度,包括:In a possible design, determining the confidence of the first candidate predicted trajectory according to the first similarity, the second similarity, and the connectivity information includes:
根据下列公式确定所述候选预测轨迹的置信度:The confidence level of the candidate predicted trajectory is determined according to the following formula:
P=f(w
1,P
h)*f(w
2,P
f)*f(w
3,EC)
P=f(w 1 , P h )*f(w 2 , P f )*f(w 3 , EC)
其中,上述公式中P为所述第一候选预测轨迹的置信度,w
1、w
2、w
3分别为预先配置或根据机器学习得到的权重系数;P
h为所述第一相似度;P
f为所述第二相似度;EC为所述连通性信息,f()为预先设定或根据机器学习得到的操作函数。
Wherein, in the above formula, P is the confidence level of the first candidate predicted trajectory, w 1 , w 2 , and w 3 are weight coefficients pre-configured or obtained according to machine learning, respectively; P h is the first similarity; P f is the second similarity; EC is the connectivity information, and f( ) is an operation function preset or obtained according to machine learning.
通过该设计,在确定目标预测轨迹的置信度时,可以为第一相似度、第二相似度和连通性信息配置权重,以及通过预先设定或根据机器学习得到的操作函数确定置信度,从而能够灵活调整置信度的确定方式。Through this design, when determining the confidence of the target predicted trajectory, weights can be configured for the first similarity, the second similarity and the connectivity information, and the confidence can be determined by a preset or an operation function obtained by machine learning, thereby The way of determining the confidence can be flexibly adjusted.
在一个可能的设计中,所述根据目标车辆的第一位置,在地图中确定第一车道集合,包括:将所述地图中距离所述第一位置在预设查询半径内的至少一个车道作为所述第一车道集合;所述根据所述第二位置在所述地图中确定第二车道集合,包括:将所述地图中距离所述第二位置在预设查询半径内的至少一个车道作为所述第二车道集合。In a possible design, the determining the first set of lanes in the map according to the first position of the target vehicle includes: using at least one lane in the map that is within a preset query radius from the first position as the The first set of lanes; and the determining of a second set of lanes in the map according to the second position, comprising: using at least one lane in the map that is within a preset query radius from the second position as the second lane set.
通过该设计,可以根据预设查询半径确定第一车道集合和/或第二车道集合,从而确定出目标车辆在不同时刻所处位置对应的车道集合。Through this design, the first lane set and/or the second lane set can be determined according to the preset query radius, so as to determine the lane sets corresponding to the positions of the target vehicle at different times.
在一个可能的设计中,根据下列方式确定所述第一阈值:获取包含多个轨迹预测样本的数据集,确定所述数据集中每个轨迹预测样本中第二位置对应的终点位置误差值;根据所述每个轨迹预测样本的置信度、所述每个轨迹预测样本中第二位置对应的终点位置误差值以及预设值,确定所述第一阈值。In a possible design, the first threshold is determined according to the following methods: acquiring a data set containing a plurality of trajectory prediction samples, and determining an end point position error value corresponding to the second position in each trajectory prediction sample in the data set; The confidence of each trajectory prediction sample, the end point position error value corresponding to the second position in each trajectory prediction sample, and a preset value determine the first threshold.
在一个可能的设计中,确定至少一个目标轨迹预测样本的置信度的平均值,将确定出的所述平均值作为所述第一阈值,其中,所述至少一个目标轨迹预测样本为所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本;或者将所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本作为正样本集合,以及将所述多个轨迹预测样本中第二位置对应的终点位置误差值大于预设值的至少一个轨迹预测样本作为负样本集合,基于二分类算法确定用于区分所述正样本集合和所述负样本集合的度量值,将确定出的所述度量值作为所述第一阈值。In a possible design, an average value of confidence levels of at least one target trajectory prediction sample is determined, and the determined average value is used as the first threshold, wherein the at least one target trajectory prediction sample is the multiple At least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to the preset value; Set the value of at least one trajectory prediction sample as a positive sample set, and use at least one trajectory prediction sample whose error value of the end position corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value as a negative sample set, based on the binary classification The algorithm determines a metric value for distinguishing the positive sample set and the negative sample set, and uses the determined metric value as the first threshold.
通过以上设计,可以根据包括多个轨迹预测样本的数据集确定第一阈值,从而在通过第一阈值筛选候选预测轨迹时得到的目标预测轨迹更贴合实际场景,进一步提升轨迹预测的准确性。Through the above design, the first threshold can be determined according to the data set including multiple trajectory prediction samples, so that the target predicted trajectory obtained when candidate predicted trajectories are screened by the first threshold value is more suitable for the actual scene, and the accuracy of trajectory prediction is further improved.
第三方面,本申请实施例提供一种轨迹预测装置,包括用于执行上述任一方面中各个步骤的单元。In a third aspect, an embodiment of the present application provides a trajectory prediction apparatus, including a unit for performing each step in any of the foregoing aspects.
第四方面,本申请实施例提供一种轨迹预测装置,包括处理器和存储器,所述存储器中存储计算机程序指令,所述轨迹预测装置运行时,所述处理器执行上述任一方面提供的方法。In a fourth aspect, an embodiment of the present application provides a trajectory prediction apparatus, including a processor and a memory, where computer program instructions are stored in the memory, and when the trajectory prediction apparatus runs, the processor executes the method provided in any of the above aspects .
第五方面,本申请实施例还提供一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一方面提供的方法。In a fifth aspect, the embodiments of the present application further provide a computer program, which, when the computer program runs on a computer, causes the computer to execute the method provided in any of the foregoing aspects.
第六方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质 中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述任一方面提供的方法。In a sixth aspect, embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer is made to perform any of the above aspects provided method.
第七方面,本申请实施例还提供一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述任一方面提供的方法。In a seventh aspect, an embodiment of the present application further provides a chip, where the chip is configured to read a computer program stored in a memory and execute the method provided in any one of the foregoing aspects.
第八方面,本申请实施例还提供一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面提供的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In an eighth aspect, an embodiment of the present application further provides a chip system, where the chip system includes a processor for supporting a computer device to implement the method provided in any one of the foregoing aspects. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system can be composed of chips, and can also include chips and other discrete devices.
第九方面,本申请实施例还提供一种终端,所述终端可以包括上述第三方面或第四方面所述的轨迹预测装置。进一步地,所述终端可以为车辆。In a ninth aspect, an embodiment of the present application further provides a terminal, where the terminal may include the trajectory prediction apparatus described in the third aspect or the fourth aspect. Further, the terminal may be a vehicle.
图1为本申请实施例提供的一种轨迹预测法适用的系统的架构示意图;1 is a schematic structural diagram of a system to which a trajectory prediction method provided by an embodiment of the present application is applicable;
图2为本申请实施例提供的一种车道示意图;FIG. 2 is a schematic diagram of a lane provided by an embodiment of the present application;
图3为本申请实施例提供的一种轨迹预测方法流程图;3 is a flowchart of a trajectory prediction method provided by an embodiment of the present application;
图4为本申请实施例提供的一种地图;Fig. 4 is a kind of map that the embodiment of this application provides;
图5为本申请实施例提供的一种车道连通性关系示意图;FIG. 5 is a schematic diagram of a lane connectivity relationship provided by an embodiment of the present application;
图6为本申请实施例提供的一种候选预测轨迹示意图;FIG. 6 is a schematic diagram of a candidate prediction trajectory provided by an embodiment of the present application;
图7为本申请实施例提供的一种确定第一候选预测轨迹的置信度的方法的流程图;7 is a flowchart of a method for determining a confidence level of a first candidate prediction trajectory provided by an embodiment of the present application;
图8为本申请实施例提供的一种历史轨迹确定方式的示意图;FIG. 8 is a schematic diagram of a method for determining a historical trajectory according to an embodiment of the present application;
图9为本申请实施例提供的一种预测行驶轨迹示意图;9 is a schematic diagram of a predicted driving trajectory provided by an embodiment of the present application;
图10为本申请实施例提供的第二种轨迹预测方法的流程图;10 is a flowchart of a second trajectory prediction method provided by an embodiment of the present application;
图11为本申请实施例提供的一种包含多个车道的地图示意图;11 is a schematic diagram of a map including multiple lanes provided by an embodiment of the present application;
图12为本申请实施例提供的第一种轨迹预测方法示意图;12 is a schematic diagram of a first trajectory prediction method provided by an embodiment of the present application;
图13为本申请实施例提供的第二种轨迹预测方法示意图;13 is a schematic diagram of a second trajectory prediction method provided by an embodiment of the present application;
图14为本申请实施例提供的第三种轨迹预测方法示意图;14 is a schematic diagram of a third trajectory prediction method provided by an embodiment of the present application;
图15为本申请实施例提供的第一种轨迹预测装置的结构示意图;FIG. 15 is a schematic structural diagram of a first trajectory prediction apparatus provided by an embodiment of the application;
图16为本申请实施例提供的第二种轨迹预测装置的结构示意图。FIG. 16 is a schematic structural diagram of a second trajectory prediction apparatus provided by an embodiment of the present application.
为了方便理解本申请实施例,下面介绍与本申请实施例相关的术语:For the convenience of understanding the embodiments of the present application, terms related to the embodiments of the present application are introduced below:
智能驾驶,指机器帮助人进行驾驶,以及在特殊情况下完全取代人驾驶。具体的,通过车辆上的传感器获得相关视听觉信号和信息,并通过认知计算控制相应的随动系统,实现对车辆行驶状态的分析以及对车辆后续行驶的控制。Intelligent driving refers to the fact that machines help people to drive, and completely replace human driving under special circumstances. Specifically, relevant audio-visual signals and information are obtained through sensors on the vehicle, and the corresponding follow-up system is controlled through cognitive computing, so as to realize the analysis of the driving state of the vehicle and the control of the subsequent driving of the vehicle.
下面将结合附图对本申请实施例作进一步地描述说明。The embodiments of the present application will be further described below with reference to the accompanying drawings.
图1为本申请实施例提供的一种轨迹预测法适用的系统的架构示意图,所述系统架构中包括至少两辆车辆(如图1中以n辆车辆为例示出,分别为车辆1、车辆2、车辆n,n为大于或者等于2的整数),还可以包括监控中心。所述监控中心可以接收车辆发送的信 息或请求,对车辆进行监测,并通过向车辆发送控制指令控制车辆行驶。FIG. 1 is a schematic diagram of the architecture of a system to which a trajectory prediction method provided by an embodiment of the present application is applicable. The system architecture includes at least two vehicles (as shown in FIG. 1 by taking n vehicles as an example, vehicle 1 and vehicle 1). 2. Vehicle n, where n is an integer greater than or equal to 2), and may also include a monitoring center. The monitoring center can receive the information or requests sent by the vehicle, monitor the vehicle, and control the driving of the vehicle by sending control instructions to the vehicle.
参阅图1,任一辆车辆可以包括:传感器、车载通信设备105、高精度定位设备106、车辆控制器107、轨迹预测装置108。其中,传感器包括以下器件中一种或多种:长短距毫米波雷达101、超声波雷达102、激光雷达103、车载摄像头104。具体地,在图1中仅以车辆1示出。Referring to FIG. 1 , any vehicle may include: sensors, in-vehicle communication equipment 105 , high-precision positioning equipment 106 , vehicle controller 107 , and trajectory prediction device 108 . The sensor includes one or more of the following devices: long- and short-range millimeter-wave radar 101 , ultrasonic radar 102 , laser radar 103 , and vehicle-mounted camera 104 . Specifically, only the vehicle 1 is shown in FIG. 1 .
下面对车辆包含的上述模块的功能进行详细解释:The functions of the above modules included in the vehicle are explained in detail below:
长短距毫米波雷达101:是工作在毫米波段(millimeter wave)探测的雷达,用于采集到达障碍物的光脉冲传输时间,并将采集的数据发送给所述轨迹预测装置108;或者用于在采集光脉冲传输时间后,计算周围障碍物的距离、速度、方位角等数据,并将计算得到的数据发送给所述轨迹预测装置108。The long- and short-range millimeter wave radar 101 is a radar that works in the millimeter wave band (millimeter wave) for detection, and is used to collect the transmission time of light pulses reaching obstacles, and send the collected data to the trajectory prediction device 108; After the optical pulse transmission time is collected, data such as distance, speed, and azimuth angle of surrounding obstacles are calculated, and the calculated data is sent to the trajectory prediction device 108 .
超声波雷达102:是利用超声波探测目标位置的雷达。其工作原理是超声波发生器产生超声波,超声波雷达102的探头接收障碍物反射的超声波,并根据发送超声波以及接收到反射的超声波的时差计算出与障碍物之间的距离,在本申请中,超声波雷达102可以将采集到的数据发送给轨迹预测装置108。Ultrasonic radar 102: It is a radar that detects the position of a target using ultrasonic waves. Its working principle is that the ultrasonic generator generates ultrasonic waves, and the probe of the ultrasonic radar 102 receives the ultrasonic waves reflected by the obstacles, and calculates the distance to the obstacles according to the time difference between the transmitted ultrasonic waves and the received reflected ultrasonic waves. The radar 102 may send the collected data to the trajectory prediction device 108 .
激光雷达103:是以发射激光束探测目标的位置、速度等特征量的雷达系统。其工作原理是向目标发射探测信号(激光束),然后将接收到的从目标反射回来的信号(目标回波)与发射探测信号进行比较,作适当处理后,就可获得目标的有关数据,如目标距离、方位、高度、速度、姿态、甚至形状等参数。在本申请中,激光雷达103用于采集从障碍物反射回来的信号,并将反射回来的信号和发射信号发送给所述轨迹预测装置108;或者采集从障碍物反射回来的信号后,与发射信号对比,处理得到周围障碍物的距离、速度等数据,并将处理得到的数据发送给所述轨迹预测装置108。Lidar 103 : a radar system that emits a laser beam to detect characteristic quantities such as the position and velocity of a target. Its working principle is to transmit a detection signal (laser beam) to the target, and then compare the received signal (target echo) reflected from the target with the transmitted detection signal, and after proper processing, the relevant data of the target can be obtained. Such as target distance, bearing, altitude, speed, attitude, and even shape and other parameters. In this application, the lidar 103 is used to collect the signal reflected from the obstacle, and send the reflected signal and the transmitted signal to the trajectory prediction device 108; Comparing the signals, data such as distance and speed of surrounding obstacles are obtained by processing, and the data obtained by processing are sent to the trajectory prediction device 108 .
车载摄像头104:用于采集周围图像或视频,并将采集的图像或视频发送给所述轨迹预测装置108;其中,车载摄像头可以为单目摄像头、双目摄像头、深度摄像头等,本申请对此不做限制。在本申请中,车载摄像头104可以采集图像或视频后,分析图像或视频中的周围障碍物的速度和距离等车辆信息,或分析图像或视频中的车道信息等,并将分析得到的数据发送给所述轨迹预测装置108。Vehicle-mounted camera 104: used to collect surrounding images or videos, and send the collected images or videos to the trajectory prediction device 108; wherein, the vehicle-mounted camera may be a monocular camera, a binocular camera, a depth camera, etc. No restrictions. In this application, the vehicle-mounted camera 104 can analyze the vehicle information such as the speed and distance of surrounding obstacles in the image or video after collecting the image or video, or analyze the lane information in the image or video, etc., and send the data obtained by the analysis. to the trajectory prediction device 108 .
车载通信设备105:用于与其它车辆或监控中心进行通信的设备,具体可以用于接收其它车辆发送的车辆信息,如其它车辆的行驶轨迹,或者发送自身轨迹给周围其它车辆,或者与监控中心进行交互,将车辆信息发送给监控中心或接收监控中心发送的控制指令。例如车载通信设备105可以是远程信息处理器(telematics BOX,TBOX)。In-vehicle communication device 105: a device used to communicate with other vehicles or monitoring centers, specifically, it can be used to receive vehicle information sent by other vehicles, such as the driving trajectories of other vehicles, or send its own trajectory to other surrounding vehicles, or communicate with the monitoring center. Interact, send vehicle information to the monitoring center or receive control commands sent by the monitoring center. For example, the in-vehicle communication device 105 may be a telematics BOX (TBOX).
高精度定位设备106:采集当前车辆的精确位置信息(误差小于20cm),及所述精确位置信息对应的全球定位系统(global positioning system,GPS)时间信息,并将采集的信息发送给所述轨迹预测装置108。其中,所述高精度定位设备108可以是组合定位系统或组合定位模块。所述高精度定位设备108可以包括全球导航卫星系统(global navigation satellite system,GNSS)、惯性测量单元(inertial measurement unit,IMU)等设备和传感器。全球导航卫星系统能够输出一定精度(例如,5-10Hz)的全局定位信息,惯性测量单元频率一般较高(例如,1000Hz),所述高精度定位设备106可以通过融合惯性测量单元和全球导航卫星系统的信息,输出高频的精准定位信息(一般要求200Hz以上)。High-precision positioning device 106: collect the precise position information of the current vehicle (with an error of less than 20cm), and the global positioning system (global positioning system, GPS) time information corresponding to the precise position information, and send the collected information to the track Prediction device 108 . The high-precision positioning device 108 may be a combined positioning system or a combined positioning module. The high-precision positioning device 108 may include a global navigation satellite system (GNSS), an inertial measurement unit (inertial measurement unit, IMU) and other devices and sensors. The global navigation satellite system can output global positioning information with a certain accuracy (eg, 5-10 Hz), and the frequency of the inertial measurement unit is generally high (eg, 1000 Hz). System information, output high-frequency precise positioning information (generally requires more than 200Hz).
车辆控制器107:执行控制命令,控制车辆转向、加速、减速、启动、停止等。Vehicle controller 107 : executes control commands to control vehicle steering, acceleration, deceleration, start, stop, and the like.
轨迹预测装置108:可以设置于车辆内,轨迹预测装置108具体由处理器和存储器实 现,处理器包括中央处理器(central processing unit,CPU)或者具备处理功能的设备或模块。例如,轨迹预测装置108可以是智能驾驶域控制器、车载电子控制单元(Electronic Control Unit,ECU)、车载移动数据中心(Mobile Data Center,MDC)等形式的智能驾驶融合感知模块。在本申请中,轨迹预测装置108接收传感器发送的目标车辆信息,如目标车辆速度、目标车辆位置信息等,以及轨迹预测装置108获取车道信息,具体可以为通过车载通信设备105接收路边单元或监控中心发送的车道信息。以轨迹预测装置为第一车辆的轨迹预测装置为例,轨迹预测装置108根据目标车辆信息以及车道信息确定目标车辆的目标预测轨迹,并根据目标预测轨迹对第一车辆的行驶路线进行规划控制,生成控制命令并下发给车辆控制器107,使车辆控制器107控制第一车辆执行控制命令。或者轨迹预测装置108接收传感器或高精度定位设备106发送的第一车辆的车辆信息后,通过车载通信设备105将第一车辆的车辆信息发送至监控中心,监控中心根据接收到的第一车辆的车辆信息以及第一车辆当前所处区域的车道信息,确定第一车辆的预测轨迹,并根据确定的预测轨迹向第一车辆或第一车辆周围的其它车辆发送控制命令,实现监控中心对道路上的车辆的监测与控制。Trajectory prediction device 108: It can be set in the vehicle. The trajectory prediction device 108 is specifically implemented by a processor and a memory. The processor includes a central processing unit (CPU) or a device or module with processing functions. For example, the trajectory prediction device 108 may be an intelligent driving fusion perception module in the form of an intelligent driving domain controller, an in-vehicle electronic control unit (ECU), an in-vehicle mobile data center (Mobile Data Center, MDC), and the like. In this application, the trajectory prediction device 108 receives the target vehicle information sent by the sensor, such as target vehicle speed, target vehicle position information, etc., and the trajectory prediction device 108 obtains lane information, which can be specifically received through the in-vehicle communication device 105. Roadside units or Lane information sent by the monitoring center. Taking the trajectory prediction device of the first vehicle as an example, the trajectory prediction device 108 determines the target predicted trajectory of the target vehicle according to the target vehicle information and the lane information, and performs planning and control on the driving route of the first vehicle according to the target predicted trajectory, The control command is generated and sent to the vehicle controller 107, so that the vehicle controller 107 controls the first vehicle to execute the control command. Or, after receiving the vehicle information of the first vehicle sent by the sensor or the high-precision positioning device 106, the trajectory prediction device 108 sends the vehicle information of the first vehicle to the monitoring center through the in-vehicle communication device 105. Vehicle information and lane information of the area where the first vehicle is currently located, determine the predicted trajectory of the first vehicle, and send control commands to the first vehicle or other vehicles around the first vehicle according to the determined predicted trajectory, so that the monitoring center can monitor the traffic on the road. monitoring and control of vehicles.
需要说明的是,上述涉及的周围障碍物在这里指的是其他车辆。It should be noted that the surrounding obstacles mentioned above refer to other vehicles here.
在图1示出的系统中,以车辆1对车辆2进行轨迹预测为例,车辆1确定车辆2的当前位置(x,y),以车辆2当前位置(x,y)为原点,根据预设查询半径R在地图中查找包括至少一个车道的车道集合,对查找到的车道集合中的每个车道,确定车辆2的当前位置与车道之间的垂直距离,除去车道集合中垂直距离大于预设阈值的车道后得到包括至少一个候选车道的候选车道集合。例如,图2中示出车辆为车辆2,车辆1确定出车辆2对应的候选车道如图2中示出的车道A和车道B。对每个候选车道,确定目标车辆当前位置投影到候选车道的投影位置,并根据投影位置以及候选车道的中位线确定目标车辆若行驶到候选车道需要转过的夹角,然后确定目标车辆的航向角,并确定航向角与该夹角之间的角度差,按照候选车道对应的角度差从小到大的顺序,选择前N个候选车道确定预测轨迹,每个预测轨迹中包含一个候选车道,其中,N为大于等于1的正整数。例如,最终确定车道A对应的角度差小于车道B对应的角度差,则可以根据车道A确定车辆2的预测轨迹,如图2中示出的预测轨迹。In the system shown in Fig. 1, taking the trajectory prediction of vehicle 1 to vehicle 2 as an example, vehicle 1 determines the current position (x, y) of vehicle 2, and takes the current position (x, y) of vehicle 2 as the origin, according to the prediction Set the query radius R to search for a lane set including at least one lane in the map, and for each lane in the found lane set, determine the vertical distance between the current position of the vehicle 2 and the lane, except that the vertical distance in the lane set is greater than the predetermined distance. After setting the thresholded lanes, a candidate lane set including at least one candidate lane is obtained. For example, the vehicle shown in FIG. 2 is vehicle 2 , and vehicle 1 determines that the candidate lanes corresponding to vehicle 2 are lane A and lane B as shown in FIG. 2 . For each candidate lane, determine the projection position of the current position of the target vehicle projected to the candidate lane, and determine the angle that the target vehicle needs to turn if it travels to the candidate lane according to the projection position and the median line of the candidate lane, and then determine the target vehicle's position. The heading angle is determined, and the angle difference between the heading angle and the included angle is determined. According to the order of the angle difference corresponding to the candidate lanes from small to large, the first N candidate lanes are selected to determine the predicted trajectory. Each predicted trajectory contains a candidate lane. Among them, N is a positive integer greater than or equal to 1. For example, if it is finally determined that the angle difference corresponding to lane A is smaller than the angle difference corresponding to lane B, the predicted trajectory of vehicle 2 can be determined according to lane A, such as the predicted trajectory shown in FIG. 2 .
从上述内容可知,一个车辆对目标车辆进行轨迹预测时,仅根据目标车辆的当前位置、车辆航向角等信息对目标车辆行驶轨迹进行预测,但当目标车辆处于复杂的路口场景,如存在立交桥的路口时,可能导致投影后车道不准确、预测轨迹错误的情况;以及当驾驶人员存在操作不规范的驾驶行为时,仅根据目标车辆的当前位置以及车辆航向角信息进行轨迹预测,也可能会导致预测得到的轨迹不合理的现象。因此,目前的轨迹预测方法不够准确。It can be seen from the above that when a vehicle predicts the trajectory of the target vehicle, it only predicts the trajectory of the target vehicle based on the current position of the target vehicle, the vehicle heading angle and other information. At intersections, the projected lanes may be inaccurate and the predicted trajectory may be wrong; and when the driver has irregular driving behavior, the trajectory prediction is only based on the current position of the target vehicle and the vehicle heading angle information, which may also lead to The phenomenon that the predicted trajectory is unreasonable. Therefore, the current trajectory prediction methods are not accurate enough.
基于上述问题,本申请实施例提供一种轨迹预测方法,该方法可以应用于如图1所示的系统中的任一辆车辆,还可以应用于如图1所示的系统中的监控中心。当本申请提供的轨迹预测方法应用于任一辆车辆时,以第一车辆为例,第一车辆可以根据所述轨迹预测方法确定目标车辆的目标预测轨迹,此时目标车辆可以为当前道路上除第一车辆以外的其它任意车辆,或者第一车辆还可以根据本申请提供的轨迹预测方法预测本车辆的目标预测轨迹,第一车辆可以根据目标预测轨迹调整本车辆的行驶轨迹或行驶速度等,以实现智能驾驶。当本申请提供的轨迹预测方法应用于监控中心时,监控中心可对目标车辆进行轨迹预 测,此时目标车辆可以为当前道路上的任意车辆,监控中心确定目标车辆的目标预测轨迹,根据目标车辆的目标预测轨迹向目标车辆以及目标车辆的周围车辆发送控制指令,灵活控制监控道路上行驶的车辆。Based on the above problems, an embodiment of the present application provides a trajectory prediction method, which can be applied to any vehicle in the system shown in FIG. 1 , and can also be applied to a monitoring center in the system shown in FIG. 1 . When the trajectory prediction method provided by the present application is applied to any vehicle, taking the first vehicle as an example, the first vehicle can determine the target predicted trajectory of the target vehicle according to the trajectory prediction method, and the target vehicle can be a vehicle on the current road. Any other vehicle other than the first vehicle, or the first vehicle can also predict the target predicted trajectory of the vehicle according to the trajectory prediction method provided in this application, and the first vehicle can adjust the driving trajectory or speed of the vehicle according to the target predicted trajectory. , to achieve intelligent driving. When the trajectory prediction method provided by this application is applied to the monitoring center, the monitoring center can predict the trajectory of the target vehicle. At this time, the target vehicle can be any vehicle on the current road. The monitoring center determines the target predicted trajectory of the target vehicle. The target predicted trajectory of the target vehicle sends control commands to the target vehicle and the surrounding vehicles of the target vehicle, and flexibly controls and monitors the vehicles driving on the road.
下面以轨迹预测方法应用于第一车辆为例,对本申请实施例提供的轨迹预测方法进行进一步介绍,第一车辆可以为图1所示系统中的任意一辆车辆。图3为本申请实施例提供的一种轨迹预测方法流程图,所述轨迹预测方法包括以下步骤:The trajectory prediction method provided by the embodiment of the present application is further introduced by taking the application of the trajectory prediction method to the first vehicle as an example. The first vehicle may be any vehicle in the system shown in FIG. 1 . FIG. 3 is a flowchart of a trajectory prediction method provided by an embodiment of the present application, and the trajectory prediction method includes the following steps:
S301:获取目标车辆在第一时刻的第一位置,并确定第一位置对应的第一车道集合。S301: Acquire a first position of the target vehicle at a first moment, and determine a first lane set corresponding to the first position.
可选的,第一时刻可以为第一车辆触发对目标车辆进行轨迹预测的时刻,或者为预设的第一车辆对目标车辆进行轨迹预测的指定时刻,还可以为执行S301时的系统时间(简称当前时刻)。Optionally, the first moment can be the moment when the first vehicle triggers the trajectory prediction of the target vehicle, or the preset specified moment when the first vehicle performs trajectory prediction on the target vehicle, or can be the system time when S301 is executed ( referred to as the current moment).
一种可选的实施方式中,第一车辆通过传感器获取目标车辆的第一位置,或者第一车辆通过车载通信设备接收目标车辆发送的第一位置,目标车辆发送的第一位置可以是目标车辆通过目标车辆中的高精度定位设备等设备获取的,本申请不对获取方式做具体限定。In an optional implementation manner, the first vehicle obtains the first position of the target vehicle through a sensor, or the first vehicle receives the first position sent by the target vehicle through the in-vehicle communication device, and the first position sent by the target vehicle may be the target vehicle. Obtained through a device such as a high-precision positioning device in the target vehicle, and this application does not specifically limit the obtaining method.
第一车辆在确定目标车辆的第一位置后,获取第一车道信息,第一车道信息包括第一位置所属区域的全部或部分车道的位置信息。可选的,可以在第一车辆中预配置第一车道信息,或者第一车辆通过车联网(vehicle to everything,V2X)通信获取第一车道信息,例如第一车辆通过车载通信设备与路侧单元或监控中心通信,获取第一车道信息;或者第一车辆通过第一车辆中的传感器获取第一车道信息,例如第一车辆通过车载摄像头、激光雷达等传感器实时检测和感知第一车道信息。After determining the first position of the target vehicle, the first vehicle acquires first lane information, where the first lane information includes position information of all or part of the lanes in the area to which the first position belongs. Optionally, the first lane information may be preconfigured in the first vehicle, or the first vehicle may acquire the first lane information through vehicle to everything (V2X) communication, for example, the first vehicle communicates with the roadside unit through an in-vehicle communication device. Or the monitoring center communicates to obtain the first lane information; or the first vehicle obtains the first lane information through sensors in the first vehicle, for example, the first vehicle detects and perceives the first lane information in real time through sensors such as on-board cameras and lidars.
第一车辆根据第一位置和第一车道信息确定第一车道集合。The first vehicle determines a first set of lanes according to the first location and the first lane information.
一种可选的实施方式中,第一车辆获取第一位置所属区域的地图,并根据该地图获取第一车道信息,根据第一车道信息,获取距离第一位置在预设查询半径内的至少一个车道作为第一车道集合。举例来说,参考图4示出的地图,根据该地图获取第一车道信息,以目标车辆的第一位置为原点,确定预设查询半径内的车道,如图4中示出的车道A、车道B以及车道C均在预设查询半径内,则确定第一车道集合中包括车道A、车道B以及车道C三个第一车道。In an optional embodiment, the first vehicle obtains a map of the area to which the first position belongs, obtains first lane information according to the map, and obtains at least a distance from the first position within a preset query radius according to the first lane information. One lane is set as the first lane. For example, referring to the map shown in FIG. 4 , obtain the first lane information according to the map, and take the first position of the target vehicle as the origin to determine the lane within the preset query radius, such as lane A, If both lane B and lane C are within the preset query radius, it is determined that the first lane set includes three first lanes, lane A, lane B, and lane C.
S302:预测所述目标车辆在第二时刻的第二位置,并确定第二位置对应的第二车道集合。S302: Predict the second position of the target vehicle at the second moment, and determine the second lane set corresponding to the second position.
其中,第二时刻在时间上位于第一时刻之后,如第二时刻为比第一时刻晚t秒的时刻。Wherein, the second time is located after the first time in time, for example, the second time is a time t seconds later than the first time.
一种可选的实施方式中,通过设定的轨迹预测模型预测目标车辆的第二位置,其中设定的轨迹预测模型可以为匀速运动模型(Constant Velocity Model,CV),匀速定转率模型(Constant Turn Rate and Velocity,CTRV),长短期记忆神经网络(Long Short-Term Memory,LSTM)。可选的,获取目标车辆的行驶速度、加速度,具体可以通过第一车辆中的传感器确定目标车辆的行驶速度以及加速度,将目标车辆的第一位置、行驶速度以及加速度作为设定的轨迹预测模型的输入特征,获取设定的轨迹预测模型输出的第二位置。In an optional embodiment, the second position of the target vehicle is predicted by a set trajectory prediction model, wherein the set trajectory prediction model can be a constant velocity motion model (Constant Velocity Model, CV), a constant velocity constant rotation rate model ( Constant Turn Rate and Velocity, CTRV), Long Short-Term Memory Neural Network (Long Short-Term Memory, LSTM). Optionally, the running speed and acceleration of the target vehicle are obtained, specifically, the running speed and acceleration of the target vehicle may be determined by a sensor in the first vehicle, and the first position, running speed and acceleration of the target vehicle are used as the set trajectory prediction model. The input feature of , obtains the second position of the output of the set trajectory prediction model.
需要说明的是,本申请实施例第一车辆在确定目标车辆的第二位置时,可以选用一个轨迹预测模型作为设定的轨迹预测模型,设定的轨迹预测模型可以预测目标车辆的至少一个第二位置,或者可以选用多个轨迹预测模型模型预测目标车辆的多个第二位置,本申请对此不做限制。It should be noted that, when the first vehicle in the embodiment of the present application determines the second position of the target vehicle, a trajectory prediction model can be selected as the set trajectory prediction model, and the set trajectory prediction model can predict at least one first position of the target vehicle. Two positions, or multiple trajectory prediction models may be selected to predict multiple second positions of the target vehicle, which is not limited in this application.
第一车辆在确定目标车辆的第二位置之后,根据第二车道信息确定第二车道集合,其中,第二车道信息包括第二位置所属区域的全部或部分车道的位置信息。After determining the second position of the target vehicle, the first vehicle determines a second set of lanes according to the second lane information, where the second lane information includes position information of all or part of the lanes in the area to which the second position belongs.
一种可选的实施方式为,第一车辆获取第二位置所属区域的地图,并根据该地图获取第二车道信息,根据第二车道信息,获取距离第二位置在预设查询半径内的至少一个车道作为第二车道集合。An optional implementation is that the first vehicle obtains a map of the area to which the second position belongs, obtains second lane information according to the map, and obtains at least a distance from the second position within a preset query radius according to the second lane information. One lane is set as the second lane.
第一车辆具体确定第二车道集合的方式可以参见S301中第一车辆确定第一车道集合的方式,重复之处不再赘述。需要说明的是,第一车道集合与第二车道集合可以相同或不同,例如第一位置和第二位置所属区域相同,则获取到的第一车道集合和第二车道集合相同,或者第一位置与第二位置所属区域不同,则获取到的第一车道集合和第二车道集合不同。For the specific manner in which the first vehicle determines the second lane set, reference may be made to the manner in which the first vehicle determines the first lane set in S301 , and the repetition will not be repeated. It should be noted that the first lane set and the second lane set may be the same or different. For example, the first position and the second position belong to the same area, the acquired first lane set and the second lane set are the same, or the first position Different from the area to which the second position belongs, the acquired first lane set and the second lane set are different.
S303:根据第一车道集合和第二车道集合,确定至少一个候选预测轨迹。S303: Determine at least one candidate predicted trajectory according to the first lane set and the second lane set.
可选的,候选预测轨迹包含第一车道集合中的一个第一车道和第二车道集合中的一个第二车道,且候选预测轨迹包含的第一车道和第二车道具有连通性。其中,第一车道与第二车道具有连通性为第一车道与第二车道之间连通,可以理解为,目标车辆在第一车道上行驶时,可以通行到第二车道。车道之间的连通性为一种车道属性,可以通过车道信息获取,如第一车辆获取到第一位置所属区域的地图后,从该地图中获取包含车道连通性信息的车道信息。车道之间存在连通性时,车道之间的连通性关系可以为直接连通、变道连通、匝道连通、直线变道等。举例来说,图5示出了几种常见的车道连通性关系,图5中编号1、2、3、4、5、6、7分别对应一个车道,其中,存在直接连通的车道有:车道1和车道3、车道3和车道6、车道2和车道4、车道4和车道7;存在变道连通的车道为:车道6和车道7;存在匝道连通的车道为车道4和车道5;存在直线变道的车道为车道1和车道2、车道3和车道4。Optionally, the candidate predicted track includes a first lane in the first lane set and a second lane in the second lane set, and the first lane and the second lane included in the candidate predicted track have connectivity. The connectivity between the first lane and the second lane means that the first lane and the second lane are connected, and it can be understood that when the target vehicle is driving in the first lane, it can pass to the second lane. The connectivity between lanes is a lane attribute, which can be obtained through lane information. For example, after the first vehicle obtains a map of the area to which the first position belongs, lane information including lane connectivity information is obtained from the map. When there is connectivity between lanes, the connectivity relationship between lanes can be direct connectivity, lane change connectivity, ramp connectivity, straight lane change, etc. For example, Figure 5 shows several common lane connectivity relationships. The numbers 1, 2, 3, 4, 5, 6, and 7 in Figure 5 correspond to a lane, respectively. The directly connected lanes are: 1 and lane 3, lane 3 and lane 6, lane 2 and lane 4, lane 4 and lane 7; the lanes with lane change connections are: lane 6 and lane 7; the lanes with ramp connections are lane 4 and lane 5; there are The lanes for straight lane change are lane 1 and lane 2, lane 3 and lane 4.
一种可选的实施方式中,车道之间的连通性信息可以用车道之间的连通性系数表示,例如直接连通的两个车道之间的连通性系数为1,变道连通的两个车道之间的连通性系数为0.8等。In an optional implementation manner, the connectivity information between lanes can be represented by a connectivity coefficient between lanes, for example, the connectivity coefficient between two directly connected lanes is 1, and the two lanes connected by changing lanes The connectivity coefficient between is 0.8 etc.
具体实施中,第一车辆根据下列方式确定至少一个候选预测轨迹:In a specific implementation, the first vehicle determines at least one candidate predicted trajectory according to the following methods:
第一车辆根据各车道之间的连通性,针对第一车道集合中的每个第一车道,在第二车道集合中确定与该第一车道存在连通性的第二车道。第一车辆根据每个第一车道以及与该第一车道存在连通性的第二车道,确定至少一个候选预测轨迹。举例来说,在图6中示出的地图中,第一车道集合包含车道D、车道E,第二车道集合包含了车道F、车道G和车道H;对于车道D,与车道D存在连通性的第二车道为车道G和车道H,则根据车道D和车道G确定的候选预测轨迹如图6中所示的轨迹1,根据车道D和车道H确定的候选预测轨迹如图6中所示的轨迹2。对于车道E,与车道E存在连通性的第二车道为车道F,则根据车道E和车道F确定的候选预测轨迹如图6中所示的轨迹3。The first vehicle determines, for each first lane in the first lane set, a second lane that has connectivity with the first lane in the second lane set according to the connectivity between the lanes. The first vehicle determines at least one candidate predicted trajectory from each of the first lanes and the second lane with connectivity to the first lane. For example, in the map shown in Figure 6, the first set of lanes includes lane D, lane E, and the second set of lanes includes lane F, lane G, and lane H; for lane D, there is connectivity with lane D The second lane is lane G and lane H, then the candidate predicted trajectories determined according to lane D and lane G are shown in Figure 6 as track 1, and the candidate predicted trajectories determined according to lane D and lane H are shown in Figure 6 track 2. For the lane E, the second lane that has connectivity with the lane E is the lane F, then the candidate predicted trajectory determined according to the lane E and the lane F is the trajectory 3 shown in FIG. 6 .
S304:确定所述至少一个候选预测轨迹的置信度。S304: Determine the confidence level of the at least one candidate predicted trajectory.
可选的,任一个候选预测轨迹的置信度用于表示所述候选预测轨迹与目标车辆期望行驶的目标轨迹的相似度,其中,目标车辆期望行驶的目标轨迹为驾驶目标车辆的驾驶人员期望行驶的轨迹或目标车辆中的轨迹预测装置确定的未来预设时长内目标车辆的行驶轨迹。Optionally, the confidence level of any candidate predicted trajectory is used to indicate the similarity between the candidate predicted trajectory and the target trajectory expected to travel by the target vehicle, wherein the target trajectory expected to travel by the target vehicle is the driver expected to drive the target vehicle. The trajectory of the target vehicle or the running trajectory of the target vehicle within a preset time period in the future determined by the trajectory prediction device in the target vehicle.
一种可选的实施方式中,第一车辆对至少一个候选预测轨迹中的每个候选预测轨迹确定置信度,以至少一个候选预测轨迹中第一候选预测轨迹为例,第一候选预测轨迹为至少一个候选预测轨迹中的任一个,图7为一种确定第一候选预测轨迹的置信度的方法的流程 图,该方法包括以下步骤:In an optional embodiment, the first vehicle determines a confidence level for each candidate predicted trajectory in the at least one candidate predicted trajectory. Taking the first candidate predicted trajectory in the at least one candidate predicted trajectory as an example, the first candidate predicted trajectory is: Any one of the at least one candidate prediction trajectory, FIG. 7 is a flowchart of a method for determining the confidence of the first candidate prediction trajectory, the method comprising the following steps:
S701:获取第一候选预测轨迹包含的第一车道和第二车道之间的连通性信息。S701: Acquire connectivity information between a first lane and a second lane included in the first candidate predicted trajectory.
一种可选的实施方式中,可以在第一车辆中预配置车道之间的连通性信息,或第一车辆通过V2X通信获取车道之间的连通性信息,例如,第一车辆通过V2X通信从路侧单元或监控中心获取车道之间的连通性信息;或者,第一车辆通过第一车辆中的传感器获取车道之间的连通性信息,例如第一车辆通过车载摄像头、激光雷达等传感器实时检测车道之间的连通性,获取车道之间的连通性信息。可选的,车道信息也可以包括车道之间的连通性信息。In an optional implementation manner, connectivity information between lanes may be preconfigured in the first vehicle, or the first vehicle may acquire connectivity information between lanes through V2X communication. The roadside unit or the monitoring center obtains the connectivity information between the lanes; or, the first vehicle obtains the connectivity information between the lanes through a sensor in the first vehicle, for example, the first vehicle is detected in real time by sensors such as an on-board camera and lidar Connectivity between lanes to obtain connectivity information between lanes. Optionally, the lane information may also include connectivity information between lanes.
S702:确定第一候选预测轨迹中包含的第一车道与历史轨迹之间的第一相似度。S702: Determine the first similarity between the first lane included in the first candidate predicted track and the historical track.
历史轨迹为目标车辆在历史预设时长内行驶过的轨迹,可选的,根据下列方式获取目标车辆的历史轨迹:The historical trajectory is the trajectory that the target vehicle has traveled within the preset historical period. Optionally, the historical trajectory of the target vehicle can be obtained according to the following methods:
方式1、第一车辆获取目标车辆在历史预设时间段内的N帧历史位置信息,可选的,第一车辆通过传感器或车载摄像头获取目标车辆在历史预设时间段内的N帧历史位置信息,车辆对获取到的目标车辆的N帧历史位置信息拟合得到历史轨迹,例如,图8为一种历史轨迹确定方式的示意图,图8中矩形为获取到的目标车辆在历史时间段内的N帧位置信息,对N帧位置信息拟合得到如图8中所示的历史轨迹。 Method 1. The first vehicle obtains N frames of historical position information of the target vehicle within a historical preset time period. Optionally, the first vehicle obtains N frames of historical position information of the target vehicle within a historical preset time period through a sensor or a vehicle-mounted camera. information, the vehicle fits the acquired historical position information of the target vehicle N frames to obtain the historical trajectory, for example, Figure 8 is a schematic diagram of a historical trajectory determination method, the rectangle in Figure 8 is the acquired target vehicle within the historical time period The N frame position information of , and the historical trajectory shown in Figure 8 is obtained by fitting the N frame position information.
方式2、第一车辆接收目标车辆通过V2X通信发送的历史轨迹。Mode 2: The first vehicle receives the historical track sent by the target vehicle through V2X communication.
在获取到目标车辆的历史轨迹后,可以通过计算第一候选预测轨迹中的第一车道与历史轨迹之间的欧氏距离、余弦相似度、皮尔逊参数或Tanimoto相似度中的任意一个确定第一相似度,例如,通过计算第一车道与历史轨迹之间的欧氏距离确定第一相似度时,可以根据下列公式1确定第一相似度:After the historical trajectory of the target vehicle is obtained, the first lane can be determined by calculating any one of the Euclidean distance, cosine similarity, Pearson parameter or Tanimoto similarity between the first lane in the first candidate predicted trajectory and the historical trajectory. A similarity, for example, when the first similarity is determined by calculating the Euclidean distance between the first lane and the historical track, the first similarity can be determined according to the following formula 1:
通过计算第一车道与历史轨迹之间的余弦相似度确定第一相似度时,可以根据下列公式2确定第一相似度:When the first similarity is determined by calculating the cosine similarity between the first lane and the historical trajectory, the first similarity can be determined according to the following formula 2:
通过计算第一车道与历史轨迹之间的皮尔逊参数确定第一相似度时,可以根据下列公式3确定第一相似度:When the first similarity is determined by calculating the Pearson parameter between the first lane and the historical track, the first similarity can be determined according to the following formula 3:
通过计算第一车道与历史轨迹之间的Tanimoto相似度确定第一相似度时,可以根据下列公式4确定第一相似度:When the first similarity is determined by calculating the Tanimoto similarity between the first lane and the historical track, the first similarity can be determined according to the following formula 4:
其中,上述公式中,P
h为第一车道与历史轨迹之间的第一相似度,x
i为对第一车道中位线进行采样后的第i个采样点,y
i为对历史轨迹进行采样后的第i个采样点,n为采样点个数。
Among them, in the above formula, P h is the first similarity between the first lane and the historical track, xi is the ith sampling point after sampling the median line of the first lane, and y i is the historical track. The i-th sampling point after sampling, n is the number of sampling points.
举例来说,假设第一候选预测轨迹中的第一车道为图8所示的车道I,确定出的历史轨迹如图8所示的历史轨迹,则计算车道I与历史轨迹之间的欧式距离,并根据欧式距离确定第一相似度。For example, assuming that the first lane in the first candidate predicted trajectory is the lane I shown in FIG. 8 , and the determined historical trajectory is the historical trajectory shown in FIG. 8 , the Euclidean distance between the lane I and the historical trajectory is calculated. , and determine the first similarity according to the Euclidean distance.
S703:确定第一候选预测轨迹中包含的第二车道与预测行驶轨迹之间的第二相似度。S703: Determine the second similarity between the second lane included in the first candidate predicted trajectory and the predicted driving trajectory.
其中,预测行驶轨迹为预测得到的目标车辆从第一位置到第二位置的行驶轨迹。The predicted travel trajectory is the predicted travel trajectory of the target vehicle from the first position to the second position.
一种可选的实施方式中,第一车辆通过设定的轨迹预测模型确定预测行驶轨迹。其中设定的轨迹预测模型可以为匀速运动模型(Constant Velocity Model,CV),匀速定转率模型(Constant Turn Rate and Velocity,CTRV),长短期记忆神经网络(Long Short-Term Memory,LSTM)。可选的,获取目标车辆的行驶速度、加速度,具体可以通过第一车辆中的传感器确定目标车辆的行驶速度以及加速度,将目标车辆的第一位置、行驶速度以及加速度作为设定的轨迹预测模型的输入特征,获取设定的轨迹预测模型输出的预测行驶轨迹。In an optional implementation manner, the first vehicle determines the predicted travel trajectory through a set trajectory prediction model. The set trajectory prediction model can be a constant velocity model (Constant Velocity Model, CV), a constant velocity constant rate model (Constant Turn Rate and Velocity, CTRV), and a long short-term memory neural network (Long Short-Term Memory, LSTM). Optionally, the running speed and acceleration of the target vehicle are obtained, specifically, the running speed and acceleration of the target vehicle may be determined by a sensor in the first vehicle, and the first position, running speed and acceleration of the target vehicle are used as the set trajectory prediction model. to obtain the predicted driving trajectory output by the set trajectory prediction model.
需要说明的是,本申请实施例第一车辆在确定目标车辆的预测行驶轨迹时,可以选用一个轨迹预测模型作为设定的轨迹预测模型,设定的轨迹预测模型可以预测目标车辆的至少一个预测行驶轨迹,或者可以选用多个轨迹预测模型预测目标车辆的多个预测行驶轨迹,本申请对此不做限制。另外,本申请实施例中第一车辆通过设定的轨迹预测模型确定目标车辆的第二位置时,可以通过相同或不同的轨迹预测模型确定目标车辆的预测行驶轨迹,当第一车辆确定预测行驶轨迹的轨迹预测模型与确定第二位置的轨迹预测模型不同时,在确定预测行驶轨迹时可以将预测行驶轨迹对应的第二位置作为轨迹预测模型的输入。It should be noted that when the first vehicle in the embodiment of the present application determines the predicted driving trajectory of the target vehicle, a trajectory prediction model can be selected as the set trajectory prediction model, and the set trajectory prediction model can predict at least one prediction of the target vehicle. The driving trajectory, or a plurality of trajectory prediction models may be selected to predict the plurality of predicted driving trajectories of the target vehicle, which is not limited in this application. In addition, in the embodiment of the present application, when the first vehicle determines the second position of the target vehicle through the set trajectory prediction model, the predicted driving trajectory of the target vehicle may be determined through the same or different trajectory prediction models. When the first vehicle determines the predicted driving trajectory When the trajectory prediction model of the trajectory is different from the trajectory prediction model for determining the second position, the second position corresponding to the predicted driving trajectory may be used as the input of the trajectory prediction model when determining the predicted driving trajectory.
可选的,可以通过计算第一候选预测轨迹中的第二车道与预测行驶轨迹之间的欧氏距离、余弦相似度或皮尔逊参数中的任意一个确定第二相似度。具体计算方式可以参见S702中计算第一相似度的实施,重复之处不再赘述。Optionally, the second similarity may be determined by calculating any one of Euclidean distance, cosine similarity or Pearson parameter between the second lane in the first candidate predicted trajectory and the predicted driving trajectory. For a specific calculation method, reference may be made to the implementation of calculating the first similarity in S702, and repeated details will not be repeated.
举例来说,假设第一候选预测轨迹中包含的第二车道如图9所示的车道J,基于CTRV得到的预测行驶轨迹为图9中示出的轨迹F1,基于LSTM得到的预测行驶轨迹为图9中示出的轨迹F2,则分别计算车道J和轨迹F1之间的第二相似度、车道J和轨迹F2之间的第二相似度,并选择车道J和轨迹F1之间的第二相似度以及车道J和轨迹F2之间的第二相似度之中数值更大的第二相似度作为车道J与预测行驶轨迹的第二相似度。For example, assuming that the second lane included in the first candidate predicted trajectory is lane J as shown in Figure 9, the predicted driving trajectory obtained based on CTRV is the trajectory F1 shown in Figure 9, and the predicted driving trajectory obtained based on LSTM is For the track F2 shown in FIG. 9, the second similarity between the lane J and the track F1 and the second similarity between the lane J and the track F2 are calculated respectively, and the second similarity between the lane J and the track F1 is selected. The second similarity with a larger numerical value among the similarity and the second similarity between the lane J and the trajectory F2 is used as the second similarity between the lane J and the predicted travel trajectory.
需要说明的是,本申请实施例计算相似度的方式并不限于上述的通过计算欧氏距离、余弦相似度或皮尔逊参数得到相似度的方法,任何计算两个轨迹或线段之间相似度的方式均适用。It should be noted that the method for calculating the similarity in the embodiment of the present application is not limited to the above-mentioned method for obtaining the similarity by calculating the Euclidean distance, the cosine similarity or the Pearson parameter. Any method for calculating the similarity between two trajectories or line segments. methods are applicable.
S704:根据第一候选预测轨迹中的第一车道与历史轨迹之间的第一相似度、第一候选预测轨迹中的第二车道与预测行驶轨迹之间的第二相似度以及第一车道与第二车道之间的连通性信息,确定第一候选预测轨迹的置信度。S704: According to the first similarity between the first lane in the first candidate predicted track and the historical track, the second similarity between the second lane in the first candidate predicted track and the predicted driving track, and the first lane and the The connectivity information between the second lanes determines the confidence of the first candidate predicted trajectory.
可选的,可以根据下列公式5确定第一候选预测轨迹的置信度:Optionally, the confidence level of the first candidate predicted trajectory can be determined according to the following formula 5:
P=f(w
1,P
h)*f(w
2,P
f)*f(w
3,EC) 公式5
P=f(w 1 , P h )*f(w 2 , P f )*f(w 3 , EC) Equation 5
其中,上述公式中P为第一候选预测轨迹的置信度,w
1、w
2、w
3分别为预先配置或根据机器学习得到的权重系数;P
h为第一候选预测轨迹中的第一车道与历史轨迹之间的第一相似度;P
f为第一候选预测轨迹中的第二车道与预测行驶轨迹之间的第二相似度;EC为第一车道与第二车道之间的连通性信息,f()为预先设定或根据机器学习得到的操作函数。
Among them, in the above formula, P is the confidence level of the first candidate predicted trajectory, w 1 , w 2 , and w 3 are weight coefficients pre-configured or obtained according to machine learning, respectively; P h is the first lane in the first candidate predicted trajectory The first similarity with the historical trajectory; P f is the second similarity between the second lane in the first candidate predicted trajectory and the predicted driving trajectory; EC is the connectivity between the first lane and the second lane information, f() is an operation function that is preset or obtained according to machine learning.
一种可能的实施方式中,上述公式4中的操作函数可以为技术人员预先设置的函数,如乘法运算,则可以根据公式6确定第一候选预测轨迹的置信度:In a possible implementation manner, the operation function in the above formula 4 can be a function preset by the technician, such as multiplication, then the confidence level of the first candidate predicted trajectory can be determined according to formula 6:
P=(w
1*P
h)*(w
2*P
f)*(w
3*EC) 公式5
P=(w 1 *P h )*(w 2 *P f )*(w 3 *EC) Equation 5
另一种可能的实施方式中,上述公式4中的操作函数可以为卷积神经网络中的pooling操作,仅对大于预设值的数据进行计算。In another possible implementation manner, the operation function in the above formula 4 may be a pooling operation in a convolutional neural network, and only data larger than a preset value is calculated.
再一种可能的实施方式中,上述公式4中的操作函数可以为机器学习模型,具体的, 将第一候选预测轨迹对应的P
f、P
h以及EC输入到置信度计算模型中,获取置信度计算模型输出的第一候选预测轨迹的置信度。可选的,该置信度计算模型可以通过以下方式进行训练:
In yet another possible implementation, the operation function in the above formula 4 may be a machine learning model. Specifically, the P f , P h and EC corresponding to the first candidate prediction trajectory are input into the confidence calculation model, and the confidence is obtained. The degree of confidence of the first candidate predicted trajectory output by the model is calculated. Optionally, the confidence calculation model can be trained in the following ways:
根据数据集对初始置信度计算模型进行训练,数据集中包含多个训练样本,其中每个训练样本包括预测轨迹、实际行驶轨迹、预测轨迹包含的第一车道、第二车道,预测轨迹对应的第一相似度、第二相似度和连通性信息,实际行驶轨迹与预测轨迹的预测相似度等中的至少一个特征。将每个训练样本中预测轨迹对应的第一相似度、第二相似度和连通性信息作为初始置信度计算模型的输入,对初始置信度计算模型进行训练,计算模型输出的预测轨迹的置信度和预测相似度之间的损失值,根据每轮训练后得到的损失值调整模型参数,直至所述损失值收敛在预设范围中。The initial confidence calculation model is trained according to the data set. The data set contains multiple training samples, wherein each training sample includes the predicted trajectory, the actual driving trajectory, the first and second lanes included in the predicted trajectory, and the first and second lanes corresponding to the predicted trajectory. At least one feature among a similarity, a second similarity and connectivity information, a predicted similarity between the actual driving track and the predicted track, and the like. The first similarity, second similarity and connectivity information corresponding to the predicted trajectory in each training sample are used as the input of the initial confidence calculation model, the initial confidence calculation model is trained, and the confidence of the predicted trajectory output by the model is calculated. and the loss value between the predicted similarity, and adjust the model parameters according to the loss value obtained after each round of training until the loss value converges in the preset range.
需要说明的是,由于本申请实施例中候选预测轨迹包括的第一车道与第二车道存在连通性,则在计算候选预测轨迹的置信度时,也可以仅根据候选预测轨迹中的第一车道与历史轨迹之间的第一相似度和候选预测轨迹中的第二车道与预测行驶轨迹之间的第二相似度确定置信度,以简化置信度计算方式,提升轨迹预测效率。It should be noted that, since the first lane and the second lane included in the candidate predicted trajectory in the embodiment of the present application have connectivity, when calculating the confidence level of the candidate predicted trajectory, the first lane in the candidate predicted trajectory can also be calculated only according to the The confidence is determined by the first similarity with the historical trajectory and the second similarity between the second lane in the candidate predicted trajectory and the predicted driving trajectory, so as to simplify the calculation of the confidence and improve the trajectory prediction efficiency.
S305:将置信度大于第一阈值的候选预测轨迹作为目标预测轨迹。S305: Use the candidate predicted trajectory with the confidence greater than the first threshold as the target predicted trajectory.
其中,第一阈值可以为技术人员预先设置的经验数值,或者根据下列方式确定第一阈值:Wherein, the first threshold may be an empirical value preset by the technician, or the first threshold may be determined according to the following methods:
基于本申请实施例提供的轨迹预测方法获取包含多个轨迹预测样本的数据集,每个轨迹预测样本中包括历史轨迹、第二位置及预测行驶轨迹、候选预测轨迹及其置信度、车辆实际行驶轨迹等数据;确定数据集中每个轨迹预测样本中第二位置对应的终点位置误差值;具体的,根据车辆实际行驶轨迹确定第二时刻时车辆的实际位置,根据第二位置及实际位置确定第二位置对应的终点位置误差值。根据每个轨迹预测样本的置信度、每个轨迹预测样本中第二位置对应的终点位置误差值以及预设值,确定第一阈值。Based on the trajectory prediction method provided by the embodiment of the present application, a data set including multiple trajectory prediction samples is obtained, and each trajectory prediction sample includes a historical trajectory, a second position and a predicted driving trajectory, a candidate predicted trajectory and its confidence level, and the actual driving of the vehicle. track and other data; determine the end position error value corresponding to the second position in each trajectory prediction sample in the data set; specifically, determine the actual position of the vehicle at the second moment according to the actual driving trajectory of the vehicle, and determine the first position according to the second position and the actual position. The error value of the end position corresponding to the two positions. The first threshold is determined according to the confidence of each trajectory prediction sample, the end point position error value corresponding to the second position in each trajectory prediction sample, and a preset value.
一种可选的实施方式中,确定数据集的多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个目标轨迹预测样本,并确定至少一个目标轨迹预测样本的置信度的平均值,将确定出的平均值作为第一阈值。In an optional embodiment, at least one target trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples of the data set is less than or equal to a preset value is determined, and at least one target trajectory prediction sample is determined. The average value of the confidence level of , and the determined average value is used as the first threshold.
另一种可选的实施方式中,将数据集的多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本作为正样本集合,以及将数据集的多个轨迹预测样本中第二位置对应的终点位置误差值大于预设值的至少一个轨迹预测样本作为负样本集合,基于二分类算法确定用于区分所述正样本集合和所述负样本集合的度量值,将确定出的度量值作为第一阈值。其中,二分类算法可以为分类算法或聚类算法。In another optional implementation, at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples of the data set is less than or equal to a preset value is used as a positive sample set, and the data set At least one trajectory prediction sample whose end position error value corresponding to the second position is greater than the preset value among the plurality of trajectory prediction samples is regarded as a negative sample set, and is determined based on a binary classification algorithm for distinguishing the positive sample set and the negative sample set. The metric value is determined, and the determined metric value is used as the first threshold. The binary classification algorithm may be a classification algorithm or a clustering algorithm.
需要说明的是,预设值可以有多个,分别对应不同的应用场景或功能模块,如高速驾驶场景对应的预设值为5米,日常驾驶场景对应的预设值为2米,则根据不同预设值可以确定不同应用场景或功能模块对应的第一阈值。It should be noted that there can be multiple preset values, which correspond to different application scenarios or functional modules. For example, the preset value corresponding to the high-speed driving scene is 5 meters, and the preset value corresponding to the daily driving scene is 2 meters. Different preset values may determine first thresholds corresponding to different application scenarios or functional modules.
通过上述方法,第一车辆在对目标车辆进行轨迹预测时,可以根据目标车辆的第一位置在地图中确定第一车道集合,第一车道集合中包括目标车辆从第一位置可能行驶的车道。然后根据设定的轨迹预测模型预测的目标车辆的第二位置确定第二车道集合,第二车道集合中包括目标车辆从第二位置可能行驶的车道。第一车辆再根据第一车道集合和第二车道集合确定至少一个候选预测轨迹,每个候选预测轨迹包含第一车道集合中的一个第一车道 和第二车道集合中的一个第二车道,且每个候选预测轨迹包含的第一车道与第二车道具有连通性,则确定出的至少一个候选预测轨迹是根据目标车辆的多阶段的位置信息确定出来的,准确性更高。最后第一车辆确定至少一个候选预测轨迹的置信度,并将置信度大于第一阈值的候选预测轨迹作为目标预测轨迹,使用置信度代表候选预测轨迹与目标车辆期望行驶的目标轨迹的相似度,并根据置信度选择目标预测轨迹,可以挑选出目标车辆更有可能行驶的候选预测轨迹,进一步提升了轨迹预测的准确性。Through the above method, when the first vehicle predicts the trajectory of the target vehicle, the first lane set can be determined in the map according to the first position of the target vehicle, and the first lane set includes lanes where the target vehicle may travel from the first position. Then, a second lane set is determined according to the second position of the target vehicle predicted by the set trajectory prediction model, and the second lane set includes lanes where the target vehicle may travel from the second position. The first vehicle then determines at least one candidate predicted trajectory according to the first lane set and the second lane set, each candidate predicted trajectory includes a first lane in the first lane set and a second lane in the second lane set, and The first lane and the second lane included in each candidate predicted trajectory are connected, and the determined at least one candidate predicted trajectory is determined according to the multi-stage position information of the target vehicle, and the accuracy is higher. Finally, the first vehicle determines the confidence of at least one candidate predicted trajectory, and uses the candidate predicted trajectory whose confidence is greater than the first threshold as the target predicted trajectory, and uses the confidence to represent the similarity between the candidate predicted trajectory and the target trajectory that the target vehicle expects to travel, The target predicted trajectory is selected according to the confidence, and the candidate predicted trajectory that is more likely to be driven by the target vehicle can be selected, which further improves the accuracy of trajectory prediction.
图10为本申请实施例提供的另一种轨迹预测方法流程图,所述轨迹预测方法包括以下步骤:10 is a flowchart of another trajectory prediction method provided by an embodiment of the present application, and the trajectory prediction method includes the following steps:
S1001:获取目标车辆在第一时刻的第一位置,并确定第一位置对应的第一车道集合。S1001: Acquire a first position of the target vehicle at a first moment, and determine a first lane set corresponding to the first position.
S1002:预测所述目标车辆在第二时刻的第二位置,并确定第二位置对应的第二车道集合。S1002: Predict the second position of the target vehicle at the second moment, and determine a second lane set corresponding to the second position.
需要说明的是,S1001~S1002具体实施可以参见本申请实施例中图3的S301~S302,重复之处不再赘述。It should be noted that, for the specific implementation of S1001 to S1002, reference may be made to S301 to S302 of FIG. 3 in the embodiment of the present application, and repeated details will not be repeated.
S1003:根据第一车道集合和第二车道集合,确定至少一对车道组合。S1003: Determine at least a pair of lane combinations according to the first lane set and the second lane set.
其中,至少一对车道组合中包含第一车道集合中的一个第一车道和第二车道集合中的一个第二车道。The at least one pair of lane combinations includes a first lane in the first lane set and a second lane in the second lane set.
S1004:确定至少一对车道组合的置信度。S1004: Determine the confidence of at least one pair of lane combinations.
具体实施中,可以参见图7示出的确定候选预测轨迹的置信度的方式,需要说明的是,由于本实施方式中在S1004中确定的车道组合中的第一车道和第二车道可能不存在连通性,对于这类不存在连通性的第一车道和第二车道,可以将第一车道和第二车道之间的连通性系数设置为0,或者第一车道和第二车道互为逆向车道时,可以将第一车道和第二车道之间的连通性系数设置为-1,进而进一步减小不存在连通性关系的车道组合的置信度。In the specific implementation, reference may be made to the method of determining the confidence level of the candidate predicted trajectory shown in FIG. 7 . It should be noted that since the first lane and the second lane in the lane combination determined in S1004 in this embodiment may not exist Connectivity, for the first and second lanes that do not have connectivity, the connectivity coefficient between the first and second lanes can be set to 0, or the first and second lanes are opposite lanes to each other When , the connectivity coefficient between the first lane and the second lane can be set to -1 to further reduce the confidence of the lane combination that does not have a connectivity relationship.
S1005:根据置信度大于第一阈值的车道组合确定目标预测轨迹。S1005: Determine the target predicted trajectory according to the lane combination with the confidence greater than the first threshold.
具体实施中,可以将置信度大于第一阈值的车道组合作为目标预测轨迹。In a specific implementation, a lane combination with a confidence greater than the first threshold may be used as the target predicted trajectory.
通过上述方法,可以对第一车道集合和第二车道集合中的所有车道组合确定置信度,而不需要根据车道连通性关系筛选可组成候选预测轨迹的车道,而是通过将不存在连通性关系的车道之间的连通性系数设置为0值或负数值,在选择置信度大于第一阈值的车道组合时将不存在连通性关系的车道组合进行过滤,进而确定出目标预测轨迹,提高轨迹预测的效率。Through the above method, the confidence can be determined for all lane combinations in the first lane set and the second lane set, without the need to filter the lanes that can form candidate predicted trajectories according to the lane connectivity relationship, but by setting the absence of connectivity relationship. The connectivity coefficient between the lanes is set to 0 or a negative value, and when selecting a lane combination with a confidence greater than the first threshold, the lane combination that does not have a connectivity relationship is filtered, and then the target prediction trajectory is determined to improve the trajectory prediction. s efficiency.
本申请实施例提供的轨迹预测方法中计算得到的候选预测轨迹的置信度可以用于选择目标预测轨迹,还可以用于选择关注目标。例如,针对目标车辆确定至少一个候选预测车道的置信度后,若目标车辆的至少一个候选预测轨迹的置信度中低于预设值的比例大于预设比例,表示较难预测该目标车辆的行驶轨迹,则选择该目标车辆为关注对象,认为该目标车辆存在驾驶行为模糊的问题,有可能违反交通规则,则需要关注目标车辆。The confidence level of the candidate predicted trajectory calculated in the trajectory prediction method provided in the embodiment of the present application can be used to select the target predicted trajectory, and can also be used to select the target of interest. For example, after the confidence of at least one candidate predicted lane is determined for the target vehicle, if the proportion of the confidence of at least one candidate predicted trajectory of the target vehicle that is lower than the preset value is greater than the preset ratio, it means that it is difficult to predict the driving of the target vehicle track, select the target vehicle as the object of interest. If it is believed that the target vehicle has a problem of ambiguous driving behavior and may violate traffic rules, it is necessary to pay attention to the target vehicle.
需要说明的是,为便于描述,上述对本申请实施例提供的轨迹预测方法的介绍以将轨迹预测方法应用于第一车辆为例,可以理解的是,本申请实施例提供的轨迹预测方式还可以应用于车辆中的一个或多个功能模块,或者,本申请实施例提供的轨迹预测方式还可以应用于图1所示的系统中的监控中心,具体实施可以参见图3示出的轨迹预测方法,重复 之处不再赘述。It should be noted that, for the convenience of description, the above description of the trajectory prediction method provided by the embodiment of the present application takes the application of the trajectory prediction method to the first vehicle as an example. It can be understood that the trajectory prediction method provided by the embodiment of the present application can also be It is applied to one or more functional modules in the vehicle, or, the trajectory prediction method provided in the embodiment of the present application can also be applied to the monitoring center in the system shown in FIG. 1 . For specific implementation, see the trajectory prediction method shown in FIG. , and the repetition will not be repeated.
下面以几个实例对本申请实施例提供的轨迹预测方法进行进一步介绍:The trajectory prediction method provided by the embodiment of the present application is further introduced below with several examples:
图11示出了一张包含多个车道的地图示意图,该地图中包括车道1-6,假设使用车道之间的连通性系数作为各车道之间的连通性信息,则部分车道之间的连通性系数如下表所示:Figure 11 shows a schematic diagram of a map containing multiple lanes, and the map includes lanes 1-6. Assuming that the connectivity coefficient between lanes is used as the connectivity information between lanes, the connectivity between some lanes The coefficients are shown in the table below:
车道Lane |
连通性系数 |
车道1和车道2Lane 1 and |
11 |
车道1和车道4 |
0.80.8 |
车道4和车道5 |
0.80.8 |
车道4和车道6 |
0.60.6 |
图12为第一种目标车辆行驶在图11所示的地图包含的车道上时的轨迹预测方法示意图,图12中示出了目标车辆的历史轨迹以及基于设定的轨迹预测模型得到的预测行驶轨迹,第一车辆确定第一车道集合包括车道1,其中车道1与轨迹1的第一相似度为0.7,第二车道集合包括车道2和车道4,车道2与轨迹2的第二相似度为0.5,车道4与轨迹2的第二相似度为0.8。Fig. 12 is a schematic diagram of the first kind of trajectory prediction method when the target vehicle travels on the lane included in the map shown in Fig. 11 , Fig. 12 shows the historical trajectory of the target vehicle and the predicted travel based on the set trajectory prediction model Track, the first vehicle determines that the first lane set includes lane 1, where the first similarity between lane 1 and track 1 is 0.7, the second lane set includes lane 2 and lane 4, and the second similarity between lane 2 and track 2 is 0.5, and the second similarity between lane 4 and track 2 is 0.8.
第一车辆根据存在连通性的第一车道和第二车道确定至少一个候选预测轨迹,分别为候选预测轨迹1(包含车道1和车道2)和候选预测轨迹2(包含车道1和车道4)。The first vehicle determines at least one candidate predicted trajectory according to the connected first lane and the second lane, respectively candidate predicted trajectory 1 (including lane 1 and lane 2) and candidate predicted trajectory 2 (including lane 1 and lane 4).
1、计算候选预测轨迹1的置信度:1. Calculate the confidence of the candidate predicted trajectory 1:
P1=0.7*0.5*1=0.35P1=0.7*0.5*1=0.35
2、计算候选预测轨迹2的置信度:2. Calculate the confidence of the candidate predicted trajectory 2:
P1=0.7*0.8*0.8=0.448P1=0.7*0.8*0.8=0.448
假设第一阈值为0.3,则确定置信度大于第一阈值的候选预测轨迹1和候选预测轨迹2为目标预测轨迹。Assuming that the first threshold value is 0.3, the candidate predicted trajectory 1 and the candidate predicted trajectory 2 with confidence greater than the first threshold are determined as the target predicted trajectory.
图13为第二种目标车辆行驶在图10所示的地图包含的车道上时的轨迹预测方法示意图,图13中示出了目标车辆的历史轨迹,以及基于设定的轨迹预测模型得到的轨迹F1、轨迹F2和轨迹F3。第一车辆确定第一车道集合包括车道1,其中车道1与历史轨迹的第一相似度为0.9,第二车道集合包括车道2,车道2与轨迹F1的第二相似度为0.8,车道2与轨迹F2的第二相似度为0.9,车道2与轨迹F3的第二相似度为0.7。FIG. 13 is a schematic diagram of the trajectory prediction method when the second target vehicle is driving on the lane included in the map shown in FIG. 10 . FIG. 13 shows the historical trajectory of the target vehicle and the trajectory obtained based on the set trajectory prediction model. F1, track F2 and track F3. The first vehicle determines that the first set of lanes includes lane 1, where the first similarity between lane 1 and the historical track is 0.9, the second set of lanes includes lane 2, the second similarity between lane 2 and track F1 is 0.8, and the second similarity between lane 2 and the track F1 is 0.8. The second similarity of track F2 is 0.9, and the second similarity between lane 2 and track F3 is 0.7.
第一车辆根据存在连通性的第一车道和第二车道确定出一个候选预测轨迹1(包括车道1和车道2),确定候选预测轨迹1的置信度:P1=0.9*max(0.8,0.9,0.7)*1=0.81。The first vehicle determines a candidate predicted trajectory 1 (including lane 1 and lane 2) according to the first and second lanes with connectivity, and determines the confidence level of the candidate predicted trajectory 1: P1=0.9*max(0.8,0.9, 0.7)*1=0.81.
假设第一阈值为0.8,则候选预测轨迹1的置信度大于第一阈值,将候选预测轨迹1作为目标预测轨迹。Assuming that the first threshold is 0.8, the confidence of the candidate predicted track 1 is greater than the first threshold, and the candidate predicted track 1 is used as the target predicted track.
图14为第三种目标车辆行驶在图10所示的地图包含的车道上时的行驶轨迹示意图,图14中示出了目标车辆的历史轨迹,以及基于设定的轨迹预测模型得到的预测行驶轨迹,第一车辆确定第一车道集合包括车道4,其中车道4与历史轨迹的第一相似度为0.4,第二车道集合包括车道5和车道6,车道5与预测行驶轨迹的第二相似度为0.8,车道6与预测行驶轨迹的第二相似度为0.6。FIG. 14 is a schematic diagram of the driving trajectory of the third target vehicle when driving on the lane included in the map shown in FIG. 10 . FIG. 14 shows the historical trajectory of the target vehicle and the predicted driving based on the set trajectory prediction model. Track, the first vehicle determines that the first set of lanes includes lane 4, where the first similarity between lane 4 and the historical track is 0.4, the second set of lanes includes lane 5 and lane 6, and the second similarity between lane 5 and the predicted driving trajectory is is 0.8, and the second similarity between lane 6 and the predicted driving trajectory is 0.6.
第一车辆根据存在连通性的第一车道和第二车道确定至少一个候选预测轨迹,分别为 候选预测轨迹1(包含车道4和车道5)和候选预测轨迹2(包含车道4和车道6)。The first vehicle determines at least one candidate predicted trajectory according to the connected first lane and the second lane, respectively candidate predicted trajectory 1 (including lane 4 and lane 5) and candidate predicted trajectory 2 (including lane 4 and lane 6).
1、计算候选预测轨迹1的置信度:1. Calculate the confidence of the candidate predicted trajectory 1:
P1=0.4*0.6*0.8=0.192P1=0.4*0.6*0.8=0.192
2、计算候选预测轨迹2的置信度:2. Calculate the confidence of the candidate predicted trajectory 2:
P1=0.4*0.9*0.6=0.216P1=0.4*0.9*0.6=0.216
假设第一阈值为0.2,则确定置信度大于第一阈值的候选预测轨迹2为目标预测轨迹。Assuming that the first threshold is 0.2, the candidate predicted trajectory 2 whose confidence is greater than the first threshold is determined to be the target predicted trajectory.
基于相同的技术构思,本申请还提供了一种轨迹预测装置1500,所述轨迹预测装置1500可以应用于图1所示的系统中的任意一辆车辆或监控中心,图15为所述轨迹预测装置1500的结构示意图,所述轨迹预测装置1500包括获取单元1501和处理单元1502。下面对轨迹预测装置1500中的各个单元的功能进行介绍。Based on the same technical concept, the present application also provides a trajectory prediction device 1500, the trajectory prediction device 1500 can be applied to any vehicle or monitoring center in the system shown in FIG. 1, and FIG. 15 is the trajectory prediction device A schematic structural diagram of the apparatus 1500 , the trajectory prediction apparatus 1500 includes an acquisition unit 1501 and a processing unit 1502 . The functions of each unit in the trajectory prediction apparatus 1500 will be introduced below.
所述获取单元1501,用于获取目标车辆在第一时刻的第一位置,所述第一位置对应包含至少一个第一车道的第一车道集合;The obtaining unit 1501 is configured to obtain a first position of the target vehicle at a first moment, where the first position corresponds to a first lane set including at least one first lane;
所述处理单元1502,用于确定目标预测轨迹,所述目标预测轨迹的置信度大于或等于第一阈值,所述目标预测轨迹为至少一个候选预测轨迹中的至少一个,所述至少一个候选预测轨迹中的任一个候选预测轨迹包含所述第一车道集合中的第一车道以及第二车道集合中的第二车道,所述第一车道和第二车道在所述候选预测轨迹中连通;The processing unit 1502 is configured to determine a target predicted trajectory, the confidence of the target predicted trajectory is greater than or equal to a first threshold, the target predicted trajectory is at least one of at least one candidate predicted trajectory, the at least one candidate predicted trajectory Any candidate predicted trajectory in the trajectory includes a first lane in the first lane set and a second lane in the second lane set, and the first lane and the second lane are connected in the candidate predicted trajectory;
其中,所述第二车道集合与第二位置对应,所述第二车道集合包括至少一个第二车道,所述第二位置为所述目标车辆在第二时刻的预测位置,所述第二时刻在时间上位于所述第一时刻之后。Wherein, the second lane set corresponds to a second position, the second lane set includes at least one second lane, and the second position is the predicted position of the target vehicle at a second moment, the second moment After the first instant in time.
在一种实施方式中,所述第一车道集合是根据所述第一位置和第一车道信息确定的;和/或,所述第二车道集合是根据所述第二位置和第二车道信息确定的;其中,所述第一车道信息包括所述第一位置所属区域的全部或部分车道的位置信息,所述第二车道信息包括所述第二位置所属区域的全部或部分车道的位置信息,所述第一车道信息和所述第二车道信息相同或不同。In one embodiment, the first set of lanes is determined according to the first position and first lane information; and/or the second set of lanes is determined according to the second position and second lane information The first lane information includes the position information of all or part of the lanes in the area to which the first position belongs, and the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs. , the first lane information and the second lane information are the same or different.
在一种实施方式中,所述处理单元1502,还用于:In one embodiment, the processing unit 1502 is further configured to:
根据所述第一位置所属区域的地图获取所述第一车道信息,根据所述第二位置所属区域的地图获取所述第二车道信息;将距离所述第一位置在预设查询半径内的至少一个车道作为所述第一车道集合,和/或,将距离所述第二位置在预设查询半径内的至少一个车道作为所述第二车道集合。Obtain the first lane information according to the map of the area to which the first position belongs, and obtain the second lane information according to the map of the area to which the second position belongs; At least one lane is used as the first set of lanes, and/or at least one lane within a preset query radius from the second position is used as the second set of lanes.
在一种实施方式中,所述处理单元1502,还用于:In one embodiment, the processing unit 1502 is further configured to:
在确定所述目标预测轨迹之前,根据所述第一车道集合以及所述第二车道集合,确定所述至少一个候选预测轨迹。Before determining the target predicted trajectory, the at least one candidate predicted trajectory is determined according to the first lane set and the second lane set.
在一种实施方式中,所述处理单元1502,具体用于:当所述第二车道集合中目标第二车道与所述第一车道集合中的目标第一车道存在连通性时,确定包含所述目标第二车道与所述目标第一车道的目标候选预测轨迹;其中,所述目标候选预测轨迹包含在所述至少一个候选预测轨迹中。In one embodiment, the processing unit 1502 is specifically configured to: when there is connectivity between the target second lane in the second lane set and the target first lane in the first lane set, determine whether to include the target second lane in the first lane set. target candidate predicted trajectories of the target second lane and the target first lane; wherein the target candidate predicted trajectory is included in the at least one candidate predicted trajectory.
在一种实施方式中,所述目标预测轨迹的置信度是根据第一相似度、第二相似度以及连通性信息得到的,其中,所述第一相似度用于指示所述目标车辆的历史轨迹与所述目标预测轨迹中的第一车道之间的相似度,所述第二相似度用于指示从所述第一位置到所述第二位置的预测行驶轨迹与所述第二车道之间的相似度,所述连通性信息用于指示所述第一 车道和第二车道之间的连通性。In one embodiment, the confidence of the target predicted trajectory is obtained according to a first similarity, a second similarity and connectivity information, where the first similarity is used to indicate the history of the target vehicle The similarity between the trajectory and the first lane in the target predicted trajectory, and the second similarity is used to indicate the difference between the predicted driving trajectory from the first position to the second position and the second lane. The connectivity information is used to indicate the connectivity between the first lane and the second lane.
在一种实施方式中,所述处理单元1502具体用于根据下列方式确定所述目标预测轨迹的置信度:根据所述第一相似度、所述第一相似度对应的第一权重、所述第二相似度、所述第二相似度对应的第二权重、所述连通性信息以及所述连通性信息对应的第三权重,通过操作函数确定所述目标预测轨迹的置信度;其中,所述第一权重、所述第二权重、所述第三权重以及所述操作函数为预配置或根据机器学习得到的。In an implementation manner, the processing unit 1502 is specifically configured to determine the confidence of the target predicted trajectory according to the following manner: according to the first similarity, the first weight corresponding to the first similarity, the The second similarity, the second weight corresponding to the second similarity, the connectivity information, and the third weight corresponding to the connectivity information are used to determine the confidence of the target predicted trajectory through an operation function; The first weight, the second weight, the third weight and the operation function are pre-configured or obtained according to machine learning.
在一种实施方式中,所述处理单元1502具体用于根据下列方式确定所述第一阈值:In an implementation manner, the processing unit 1502 is specifically configured to determine the first threshold according to the following manner:
获取包含多个轨迹预测样本的数据集,确定所述数据集的每个轨迹预测样本中第二位置对应的终点位置误差值;根据所述每个轨迹预测样本的置信度、所述每个轨迹预测样本中第二位置对应的终点位置误差值以及预设值,确定所述第一阈值。Obtain a data set containing multiple trajectory prediction samples, and determine the end position error value corresponding to the second position in each trajectory prediction sample of the data set; The first threshold is determined by predicting the end position error value corresponding to the second position in the sample and the preset value.
在一种实施方式中,所述处理单元1502具体用于:确定至少一个目标轨迹预测样本的置信度的平均值,将确定出的所述平均值作为所述第一阈值,其中,所述至少一个目标轨迹预测样本为所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本;或者将所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本作为正样本集合,以及将所述多个轨迹预测样本中第二位置对应的终点位置误差值大于预设值的至少一个轨迹预测样本作为负样本集合,基于二分类算法确定用于区分所述正样本集合和所述负样本集合的度量值,将确定出的所述度量值作为所述第一阈值。In an embodiment, the processing unit 1502 is specifically configured to: determine the average value of the confidence levels of at least one target trajectory prediction sample, and use the determined average value as the first threshold, wherein the at least one One target trajectory prediction sample is at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to a preset value; or the second position in the plurality of trajectory prediction samples corresponding to At least one trajectory prediction sample whose end position error value is less than or equal to a preset value is used as a positive sample set, and at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value is used. The sample is taken as a set of negative samples, and a metric value for distinguishing the set of positive samples from the set of negative samples is determined based on a binary classification algorithm, and the determined metric value is used as the first threshold.
基于相同的技术构思,本申请还提供了一种轨迹预测装置1600,图16为本申请实施例提供的一种轨迹预测装置1600的结构示意图,所述轨迹预测装置1600可以应用于图1所示的系统中的任意一辆车辆或监控中心。参阅图16所示,所述轨迹预测装置1600包括:处理器1601、存储器1602和总线1603。其中,处理器1601和存储器1602通过总线1603进行通信,也可以通过无线传输等其他手段实现通信。该存储器1602用于存储指令,该处理器1601用于执行该存储器1602存储的指令。该存储器1602存储程序代码,且处理器1601可以调用存储器1602中存储的程序代码执行以下操作:Based on the same technical concept, the present application also provides a trajectory prediction apparatus 1600. FIG. 16 is a schematic structural diagram of a trajectory prediction apparatus 1600 provided by an embodiment of the present application. The trajectory prediction apparatus 1600 may be applied to the apparatus shown in FIG. 1 . any vehicle or monitoring center in the system. Referring to FIG. 16 , the trajectory prediction apparatus 1600 includes: a processor 1601 , a memory 1602 and a bus 1603 . Among them, the processor 1601 and the memory 1602 communicate through the bus 1603, and the communication can also be realized through other means such as wireless transmission. The memory 1602 is used for storing instructions, and the processor 1601 is used for executing the instructions stored in the memory 1602 . The memory 1602 stores program codes, and the processor 1601 can call the program codes stored in the memory 1602 to perform the following operations:
获取目标车辆在第一时刻的第一位置,所述第一位置对应包含至少一个第一车道的第一车道集合;确定目标预测轨迹,所述目标预测轨迹的置信度大于或等于第一阈值,所述目标预测轨迹为至少一个候选预测轨迹中的至少一个,所述至少一个候选预测轨迹中的任一个候选预测轨迹包含所述第一车道集合中的第一车道以及第二车道集合中的第二车道,所述第一车道和第二车道在所述候选预测轨迹中连通;其中,所述第二车道集合与第二位置对应,所述第二车道集合包括至少一个第二车道,所述第二位置为所述目标车辆在第二时刻的预测位置,所述第二时刻在时间上位于所述第一时刻之后。obtaining a first position of the target vehicle at a first moment, the first position corresponding to a first lane set including at least one first lane; determining a target predicted trajectory, the confidence of the target predicted trajectory is greater than or equal to a first threshold, The target predicted trajectory is at least one of at least one candidate predicted trajectory, and any candidate predicted trajectory in the at least one candidate predicted trajectory includes the first lane in the first lane set and the first lane in the second lane set. Two lanes, the first lane and the second lane are connected in the candidate predicted trajectory; wherein the second lane set corresponds to a second position, the second lane set includes at least one second lane, the The second position is the predicted position of the target vehicle at a second time, which is located after the first time in time.
在一种实施方式中,所述第一车道集合是根据所述第一位置和第一车道信息确定的;和/或,所述第二车道集合是根据所述第二位置和第二车道信息确定的;其中,所述第一车道信息包括所述第一位置所属区域的全部或部分车道的位置信息,所述第二车道信息包括所述第二位置所属区域的全部或部分车道的位置信息,所述第一车道信息和所述第二车道信息相同或不同。In one embodiment, the first set of lanes is determined according to the first position and first lane information; and/or the second set of lanes is determined according to the second position and second lane information The first lane information includes the position information of all or part of the lanes in the area to which the first position belongs, and the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs. , the first lane information and the second lane information are the same or different.
在一种实施方式中,所述处理器1601,还用于:In one embodiment, the processor 1601 is further configured to:
根据所述第一位置所属区域的地图获取所述第一车道信息,根据所述第二位置所属区 域的地图获取所述第二车道信息;将距离所述第一位置在预设查询半径内的至少一个第一车道作为所述第一车道集合,和/或,将距离所述第二位置在预设查询半径内的至少一个车道作为所述第二车道集合。Obtain the first lane information according to the map of the area to which the first position belongs, and obtain the second lane information according to the map of the area to which the second position belongs; At least one first lane is used as the first set of lanes, and/or at least one lane within a preset query radius from the second position is used as the second set of lanes.
在一种实施方式中,所述处理器1601,还用于:In one embodiment, the processor 1601 is further configured to:
在确定所述目标预测轨迹之前,根据所述第一车道集合以及所述第二车道集合,确定所述至少一个候选预测轨迹。Before determining the target predicted trajectory, the at least one candidate predicted trajectory is determined according to the first lane set and the second lane set.
在一种实施方式中,所述处理器1601,具体用于:当所述第二车道集合中目标第二车道与所述第一车道集合中的目标第一车道存在连通性时,确定包含所述目标第二车道与所述目标第一车道的目标候选预测轨迹;其中,所述目标候选预测轨迹包含在所述至少一个候选预测轨迹中。In an implementation manner, the processor 1601 is specifically configured to: when there is connectivity between the target second lane in the second lane set and the target first lane in the first lane set, determine whether to include the target candidate predicted trajectories of the target second lane and the target first lane; wherein the target candidate predicted trajectory is included in the at least one candidate predicted trajectory.
在一种实施方式中,所述目标预测轨迹的置信度是根据第一相似度、第二相似度以及连通性信息得到的,其中,所述第一相似度用于指示所述目标车辆的历史轨迹与所述目标预测轨迹中的第一车道之间的相似度,所述第二相似度用于指示从所述第一位置到所述第二位置的预测行驶轨迹与所述第二车道之间的相似度,所述连通性信息用于指示所述第一车道和第二车道之间的连通性。In one embodiment, the confidence of the target predicted trajectory is obtained according to a first similarity, a second similarity and connectivity information, where the first similarity is used to indicate the history of the target vehicle The similarity between the trajectory and the first lane in the target predicted trajectory, and the second similarity is used to indicate the difference between the predicted driving trajectory from the first position to the second position and the second lane. The connectivity information is used to indicate the connectivity between the first lane and the second lane.
在一种实施方式中,所述处理器1601具体用于根据下列方式确定所述目标预测轨迹的置信度:根据所述第一相似度、所述第一相似度对应的第一权重、所述第二相似度、所述第二相似度对应的第二权重、所述连通性信息以及所述连通性信息对应的第三权重,通过操作函数确定所述目标预测轨迹的置信度;其中,所述第一权重、所述第二权重、所述第三权重以及所述操作函数为预配置或根据机器学习得到的。In an implementation manner, the processor 1601 is specifically configured to determine the confidence of the target predicted trajectory according to the following manner: according to the first similarity, the first weight corresponding to the first similarity, the The second similarity, the second weight corresponding to the second similarity, the connectivity information, and the third weight corresponding to the connectivity information are used to determine the confidence of the target predicted trajectory through an operation function; The first weight, the second weight, the third weight and the operation function are pre-configured or obtained according to machine learning.
在一种实施方式中,所述处理器1601具体用于根据下列方式确定所述第一阈值:In an implementation manner, the processor 1601 is specifically configured to determine the first threshold according to the following manner:
获取包含多个轨迹预测样本的数据集,确定所述数据集的每个轨迹预测样本中第二位置对应的终点位置误差值;根据所述每个轨迹预测样本的置信度、所述每个轨迹预测样本中第二位置对应的终点位置误差值以及预设值,确定所述第一阈值。Obtain a data set containing multiple trajectory prediction samples, and determine the end position error value corresponding to the second position in each trajectory prediction sample of the data set; The first threshold is determined by predicting the end position error value corresponding to the second position in the sample and the preset value.
在一种实施方式中,所述处理器1601具体用于:确定至少一个目标轨迹预测样本的置信度的平均值,将确定出的所述平均值作为所述第一阈值,其中,所述至少一个目标轨迹预测样本为所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本;或者将所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本作为正样本集合,以及将所述多个轨迹预测样本中第二位置对应的终点位置误差值大于预设值的至少一个轨迹预测样本作为负样本集合,基于二分类算法确定用于区分所述正样本集合和所述负样本集合的度量值,将确定出的所述度量值作为所述第一阈值。In an embodiment, the processor 1601 is specifically configured to: determine an average value of the confidence level of at least one target trajectory prediction sample, and use the determined average value as the first threshold, wherein the at least one One target trajectory prediction sample is at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to a preset value; or the second position in the plurality of trajectory prediction samples corresponding to At least one trajectory prediction sample whose end position error value is less than or equal to a preset value is used as a positive sample set, and at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is greater than the preset value is used. The sample is taken as a set of negative samples, and a metric value for distinguishing the set of positive samples from the set of negative samples is determined based on a binary classification algorithm, and the determined metric value is used as the first threshold.
可以理解,本申请图16中的存储器1602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机 存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It will be appreciated that the memory 1602 in FIG. 16 of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically programmable read-only memory (Erasable PROM, EPROM). Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory may be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (Direct Rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.
基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行图3或图4所示的实施例提供的轨迹预测方法。Based on the above embodiments, the embodiments of the present application further provide a computer program, when the computer program runs on a computer, the computer causes the computer to execute the trajectory prediction method provided by the embodiment shown in FIG. 3 or FIG. 4 .
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行图3或图4所示的实施例提供的轨迹预测方法。其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。Based on the above embodiments, the embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes the program shown in FIG. 3 or FIG. 4 . The trajectory prediction method provided by the illustrated embodiment. The storage medium may be any available medium that the computer can access. By way of example and not limitation, computer readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or be capable of carrying or storing instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer.
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现图3或图4所示的实施例提供的轨迹预测方法。Based on the above embodiments, an embodiment of the present application further provides a chip for reading a computer program stored in a memory to implement the trajectory prediction method provided by the embodiment shown in FIG. 3 or FIG. 4 .
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现图3或图4所示的轨迹预测方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, an embodiment of the present application provides a chip system, where the chip system includes a processor for supporting a computer device to implement the trajectory prediction method shown in FIG. 3 or FIG. 4 . In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system may be composed of chips, or may include chips and other discrete devices.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the protection scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims (21)
- 一种轨迹预测方法,其特征在于,该方法包括:A trajectory prediction method, characterized in that the method comprises:获取目标车辆在第一时刻的第一位置,所述第一位置对应包含至少一个第一车道的第一车道集合;acquiring a first position of the target vehicle at a first moment, where the first position corresponds to a first lane set including at least one first lane;确定目标预测轨迹,所述目标预测轨迹的置信度大于或等于第一阈值,所述目标预测轨迹为至少一个候选预测轨迹中的至少一个,所述至少一个候选预测轨迹中的任一个候选预测轨迹包含所述第一车道集合中的第一车道以及第二车道集合中的第二车道,所述第一车道和第二车道在所述候选预测轨迹中连通;Determine a target predicted trajectory, the confidence level of the target predicted trajectory is greater than or equal to the first threshold, the target predicted trajectory is at least one of at least one candidate predicted trajectory, and any candidate predicted trajectory in the at least one candidate predicted trajectory Including the first lane in the first lane set and the second lane in the second lane set, the first lane and the second lane are connected in the candidate predicted trajectory;其中,所述第二车道集合与第二位置对应,所述第二车道集合包括至少一个第二车道,所述第二位置为所述目标车辆在第二时刻的预测位置,所述第二时刻在时间上位于所述第一时刻之后。Wherein, the second lane set corresponds to a second position, the second lane set includes at least one second lane, and the second position is the predicted position of the target vehicle at a second moment, the second moment After the first instant in time.
- 如权利要求1所述的方法,其特征在于,所述第一车道集合是根据所述第一位置和第一车道信息确定的;和/或The method of claim 1, wherein the first set of lanes is determined according to the first location and first lane information; and/or所述第二车道集合是根据所述第二位置和第二车道信息确定的;the second set of lanes is determined according to the second position and second lane information;其中,所述第一车道信息包括所述第一位置所属区域的全部或部分车道的位置信息,所述第二车道信息包括所述第二位置所属区域的全部或部分车道的位置信息,所述第一车道信息和所述第二车道信息相同或不同。Wherein, the first lane information includes the position information of all or part of the lanes in the area to which the first position belongs, the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs, and the The first lane information and the second lane information are the same or different.
- 如权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:根据所述第一位置所属区域的地图获取所述第一车道信息,根据所述第二位置所属区域的地图获取所述第二车道信息;Obtain the first lane information according to the map of the area to which the first position belongs, and obtain the second lane information according to the map of the area to which the second position belongs;将距离所述第一位置在预设查询半径内的至少一个车道作为所述第一车道集合,和/或,将距离所述第二位置在预设查询半径内的至少一个车道作为所述第二车道集合。Taking at least one lane within a preset query radius from the first position as the first set of lanes, and/or taking at least one lane within a preset query radius from the second position as the first lane set Two-lane collection.
- 如权利要求1至3任一项所述的方法,其特征在于,在确定所述目标预测轨迹之前,还包括:The method according to any one of claims 1 to 3, characterized in that before determining the predicted target trajectory, the method further comprises:根据所述第一车道集合以及所述第二车道集合,确定所述至少一个候选预测轨迹。The at least one candidate predicted trajectory is determined from the first set of lanes and the second set of lanes.
- 如权利要求4所述的方法,其特征在于,所述根据所述第一车道集合以及所述第二车道集合,确定所述至少一个候选预测轨迹,包括:The method of claim 4, wherein the determining the at least one candidate predicted trajectory according to the first lane set and the second lane set comprises:当所述第二车道集合中目标第二车道与所述第一车道集合中的目标第一车道存在连通性时,确定包含所述目标第二车道与所述目标第一车道的目标候选预测轨迹;其中,所述目标候选预测轨迹包含在所述至少一个候选预测轨迹中。When there is connectivity between the target second lane in the second lane set and the target first lane in the first lane set, determine a target candidate predicted trajectory including the target second lane and the target first lane ; wherein the target candidate prediction track is included in the at least one candidate prediction track.
- 如权利要求1至5任一项所述的方法,其特征在于,所述目标预测轨迹的置信度是根据第一相似度、第二相似度以及连通性信息得到的,其中,所述第一相似度用于指示所述目标车辆的历史轨迹与所述目标预测轨迹中的第一车道之间的相似度,所述第二相似度用于指示从所述第一位置到所述第二位置的预测行驶轨迹与所述第二车道之间的相似度,所述连通性信息用于指示所述第一车道和第二车道之间的连通性。The method according to any one of claims 1 to 5, wherein the confidence of the target predicted trajectory is obtained according to a first similarity, a second similarity and connectivity information, wherein the first The similarity is used to indicate the similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory, and the second similarity is used to indicate the distance from the first position to the second position The similarity between the predicted driving trajectory and the second lane, and the connectivity information is used to indicate the connectivity between the first lane and the second lane.
- 如权利要求6所述的方法,其特征在于,根据下列方式确定所述目标预测轨迹的置信度:The method of claim 6, wherein the confidence of the target predicted trajectory is determined according to the following methods:根据所述第一相似度、所述第一相似度对应的第一权重、所述第二相似度、所述第二相似度对应的第二权重、所述连通性信息以及所述连通性信息对应的第三权重,通过操作 函数确定所述目标预测轨迹的置信度;According to the first similarity, the first weight corresponding to the first similarity, the second similarity, the second weight corresponding to the second similarity, the connectivity information, and the connectivity information The corresponding third weight is used to determine the confidence of the target predicted trajectory through the operation function;其中,所述第一权重、所述第二权重、所述第三权重以及所述操作函数为预配置或根据机器学习得到的。Wherein, the first weight, the second weight, the third weight and the operation function are pre-configured or obtained according to machine learning.
- 如权利要求1至7任一项所述的方法,其特征在于,根据下列方式确定所述第一阈值:The method according to any one of claims 1 to 7, wherein the first threshold is determined according to the following manner:获取包含多个轨迹预测样本的数据集,确定所述数据集的每个轨迹预测样本中第二位置对应的终点位置误差值;Acquire a data set containing multiple trajectory prediction samples, and determine the end position error value corresponding to the second position in each trajectory prediction sample of the data set;根据所述每个轨迹预测样本的置信度、所述每个轨迹预测样本中第二位置对应的终点位置误差值以及预设值,确定所述第一阈值。The first threshold is determined according to the confidence of each trajectory prediction sample, the end position error value corresponding to the second position in each trajectory prediction sample, and a preset value.
- 如权利要求8所述的方法,其特征在于,所述方法还包括:The method of claim 8, wherein the method further comprises:确定至少一个目标轨迹预测样本的置信度的平均值,将确定出的所述平均值作为所述第一阈值,其中,所述至少一个目标轨迹预测样本为所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本;或者Determine the average value of the confidence of at least one target trajectory prediction sample, and use the determined average value as the first threshold, wherein the at least one target trajectory prediction sample is the second of the plurality of trajectory prediction samples At least one trajectory prediction sample whose end point position error value corresponding to the position is less than or equal to the preset value; or将所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本作为正样本集合,以及将所述多个轨迹预测样本中第二位置对应的终点位置误差值大于预设值的至少一个轨迹预测样本作为负样本集合,基于二分类算法确定用于区分所述正样本集合和所述负样本集合的度量值,将确定出的所述度量值作为所述第一阈值。Take at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to the preset value as the positive sample set, and use the trajectory prediction sample corresponding to the second position in the plurality of trajectory prediction samples. At least one trajectory prediction sample whose end position error value is greater than a preset value is used as a negative sample set, and a metric value for distinguishing the positive sample set and the negative sample set is determined based on a binary classification algorithm, and the determined metric value is as the first threshold.
- 一种轨迹预测装置,其特征在于,包括:A trajectory prediction device, comprising:获取单元,用于获取目标车辆在第一时刻的第一位置,所述第一位置对应包含至少一个第一车道的第一车道集合;an obtaining unit, configured to obtain a first position of the target vehicle at a first moment, where the first position corresponds to a first lane set including at least one first lane;处理单元,用于确定目标预测轨迹,所述目标预测轨迹的置信度大于或等于第一阈值,所述目标预测轨迹为至少一个候选预测轨迹中的至少一个,所述至少一个候选预测轨迹中的任一个候选预测轨迹包含所述第一车道集合中的第一车道以及第二车道集合中的第二车道,所述第一车道和第二车道在所述候选预测轨迹中连通;A processing unit, configured to determine a target predicted trajectory, the confidence level of the target predicted trajectory is greater than or equal to a first threshold, the target predicted trajectory is at least one of at least one candidate predicted trajectory, and the at least one candidate predicted trajectory Any candidate predicted trajectory includes a first lane in the first lane set and a second lane in the second lane set, and the first lane and the second lane are connected in the candidate predicted trajectory;其中,所述第二车道集合与第二位置对应,所述第二车道集合包括至少一个第二车道,所述第二位置为所述目标车辆在第二时刻的预测位置,所述第二时刻在时间上位于所述第一时刻之后。Wherein, the second lane set corresponds to a second position, the second lane set includes at least one second lane, and the second position is the predicted position of the target vehicle at a second moment, the second moment After the first instant in time.
- 如权利要求10所述的装置,其特征在于,所述第一车道集合是根据所述第一位置和第一车道信息确定的;和/或The apparatus of claim 10, wherein the first set of lanes is determined according to the first location and first lane information; and/or所述第二车道集合是根据所述第二位置和第二车道信息确定的;the second set of lanes is determined according to the second position and second lane information;其中,所述第一车道信息包括所述第一位置所属区域的全部或部分车道的位置信息,所述第二车道信息包括所述第二位置所属区域的全部或部分车道的位置信息,所述第一车道信息和所述第二车道信息相同或不同。Wherein, the first lane information includes the position information of all or part of the lanes in the area to which the first position belongs, the second lane information includes the position information of all or part of the lanes in the area to which the second position belongs, and the The first lane information and the second lane information are the same or different.
- 如权利要求11所述的装置,其特征在于,所述处理单元还用于:The apparatus of claim 11, wherein the processing unit is further configured to:根据所述第一位置所属区域的地图获取所述第一车道信息,根据所述第二位置所属区域的地图获取所述第二车道信息;Obtain the first lane information according to the map of the area to which the first position belongs, and obtain the second lane information according to the map of the area to which the second position belongs;将距离所述第一位置在预设查询半径内的至少一个车道作为所述第一车道集合,和/或,将距离所述第二位置在预设查询半径内的至少一个车道作为所述第二车道集合。Taking at least one lane within a preset query radius from the first position as the first set of lanes, and/or taking at least one lane within a preset query radius from the second position as the first lane set Two-lane collection.
- 如权利要求10至12任一项所述的装置,其特征在于,所述处理单元还用于:The device according to any one of claims 10 to 12, wherein the processing unit is further configured to:在确定所述目标预测轨迹之前,根据所述第一车道集合以及所述第二车道集合,确定所述至少一个候选预测轨迹。Before determining the target predicted trajectory, the at least one candidate predicted trajectory is determined according to the first lane set and the second lane set.
- 如权利要求13所述的装置,其特征在于,所述处理单元具体用于:The apparatus of claim 13, wherein the processing unit is specifically configured to:当所述第二车道集合中目标第二车道与所述第一车道集合中的目标第一车道存在连通性时,确定包含所述目标第二车道与所述目标第一车道的目标候选预测轨迹;其中,所述目标候选预测轨迹包含在所述至少一个候选预测轨迹中。When there is connectivity between the target second lane in the second lane set and the target first lane in the first lane set, determine a target candidate predicted trajectory including the target second lane and the target first lane ; wherein the target candidate prediction track is included in the at least one candidate prediction track.
- 如权利要求14所述的装置,其特征在于,所述目标预测轨迹的置信度是根据第一相似度、第二相似度以及连通性信息得到的,其中,所述第一相似度用于指示所述目标车辆的历史轨迹与所述目标预测轨迹中的第一车道之间的相似度,所述第二相似度用于指示从所述第一位置到所述第二位置的预测行驶轨迹与所述第二车道之间的相似度,所述连通性信息用于指示所述第一车道和第二车道之间的连通性。The apparatus according to claim 14, wherein the confidence of the target predicted trajectory is obtained according to a first similarity, a second similarity and connectivity information, wherein the first similarity is used to indicate The similarity between the historical trajectory of the target vehicle and the first lane in the target predicted trajectory, and the second similarity is used to indicate that the predicted driving trajectory from the first position to the second position is the same as the predicted driving trajectory. the similarity between the second lanes, and the connectivity information is used to indicate the connectivity between the first lane and the second lane.
- 如权利要求15所述的装置,其特征在于,所述处理单元具体用于根据下列方式确定所述目标预测轨迹的置信度:The apparatus according to claim 15, wherein the processing unit is specifically configured to determine the confidence level of the predicted target trajectory according to the following manner:根据所述第一相似度、所述第一相似度对应的第一权重、所述第二相似度、所述第二相似度对应的第二权重、所述连通性信息以及所述连通性信息对应的第三权重,通过操作函数确定所述目标预测轨迹的置信度;According to the first similarity, the first weight corresponding to the first similarity, the second similarity, the second weight corresponding to the second similarity, the connectivity information, and the connectivity information The corresponding third weight is used to determine the confidence of the target predicted trajectory through the operation function;其中,所述第一权重、所述第二权重、所述第三权重以及所述操作函数为预配置或根据机器学习得到的。Wherein, the first weight, the second weight, the third weight and the operation function are pre-configured or obtained according to machine learning.
- 如权利要求10至16任一项所述的装置,其特征在于,所述处理单元具体用于根据下列方式确定所述第一阈值:The apparatus according to any one of claims 10 to 16, wherein the processing unit is specifically configured to determine the first threshold according to the following manner:获取包含多个轨迹预测样本的数据集,确定所述数据集的每个轨迹预测样本中第二位置对应的终点位置误差值;Acquire a data set containing multiple trajectory prediction samples, and determine the end point position error value corresponding to the second position in each trajectory prediction sample of the data set;根据所述每个轨迹预测样本的置信度、所述每个轨迹预测样本中第二位置对应的终点位置误差值以及预设值,确定所述第一阈值。The first threshold is determined according to the confidence of each trajectory prediction sample, the end position error value corresponding to the second position in each trajectory prediction sample, and a preset value.
- 如权利要求17所述的装置,其特征在于,所述处理单元具体用于:The apparatus of claim 17, wherein the processing unit is specifically configured to:确定至少一个目标轨迹预测样本的置信度的平均值,将确定出的所述平均值作为所述第一阈值,其中,所述至少一个目标轨迹预测样本为所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本;或者Determine the average value of the confidence of at least one target trajectory prediction sample, and use the determined average value as the first threshold, wherein the at least one target trajectory prediction sample is the second of the plurality of trajectory prediction samples At least one trajectory prediction sample whose end point position error value corresponding to the position is less than or equal to the preset value; or将所述多个轨迹预测样本中第二位置对应的终点位置误差值小于或等于预设值的至少一个轨迹预测样本作为正样本集合,以及将所述多个轨迹预测样本中第二位置对应的终点位置误差值大于预设值的至少一个轨迹预测样本作为负样本集合,基于二分类算法确定用于区分所述正样本集合和所述负样本集合的度量值,将确定出的所述度量值作为所述第一阈值。Take at least one trajectory prediction sample whose end position error value corresponding to the second position in the plurality of trajectory prediction samples is less than or equal to the preset value as a positive sample set, and use the trajectory prediction sample corresponding to the second position in the plurality of trajectory prediction samples. At least one trajectory prediction sample whose end position error value is greater than a preset value is used as a negative sample set, and a metric value for distinguishing the positive sample set and the negative sample set is determined based on a binary classification algorithm, and the determined metric value is as the first threshold.
- 一种轨迹预测装置,其特征在于,包括处理器和存储器,所述存储器中存储计算机程序指令,所述轨迹预测装置运行时,所述处理器执行所述存储器中存储的所述计算机程序指令以实现上述权利要求1至9中任一所述的方法的操作步骤。A trajectory prediction apparatus, characterized in that it includes a processor and a memory, wherein computer program instructions are stored in the memory, and when the trajectory prediction apparatus runs, the processor executes the computer program instructions stored in the memory to The operational steps of the method of any one of the preceding claims 1 to 9 are implemented.
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在被处理器运行时,使得读写器执行如权利要求1至9任一项所述的方法。A computer-readable storage medium, characterized by comprising computer instructions, which, when executed by a processor, cause a reader/writer to perform the method according to any one of claims 1 to 9.
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在处理器上运行时,使得车载设备执行如权利要求1至9任一项所述的方法。A computer program product, characterized in that, when the computer program product runs on a processor, the in-vehicle device is made to execute the method according to any one of claims 1 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202080005125.7A CN112839855B (en) | 2020-12-31 | 2020-12-31 | Trajectory prediction method and device |
PCT/CN2020/142439 WO2022141538A1 (en) | 2020-12-31 | 2020-12-31 | Trajectory prediction method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/142439 WO2022141538A1 (en) | 2020-12-31 | 2020-12-31 | Trajectory prediction method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022141538A1 true WO2022141538A1 (en) | 2022-07-07 |
Family
ID=75926571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/142439 WO2022141538A1 (en) | 2020-12-31 | 2020-12-31 | Trajectory prediction method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112839855B (en) |
WO (1) | WO2022141538A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220355805A1 (en) * | 2021-05-04 | 2022-11-10 | Hyundai Motor Company | Vehicle position correction apparatus and method thereof |
CN118364314A (en) * | 2024-06-19 | 2024-07-19 | 四川汉科计算机信息技术有限公司 | Multi-dimensional evaluation method, system, equipment and medium for flight trajectory fitting degree |
CN118396188A (en) * | 2024-06-24 | 2024-07-26 | 长沙智能驾驶研究院有限公司 | Operation state prediction method and device for manned mining card and terminal equipment |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113313182B (en) * | 2021-06-07 | 2023-10-17 | 北博(厦门)智能科技有限公司 | Target identification method and terminal based on radar and video fusion |
CN113291320A (en) * | 2021-06-15 | 2021-08-24 | 苏州智加科技有限公司 | Vehicle track prediction method, device, equipment and storage medium |
CN113734198B (en) * | 2021-09-03 | 2023-04-07 | 智己汽车科技有限公司 | Method and device for acquiring relative course of target |
CN113682318B (en) * | 2021-09-30 | 2022-09-06 | 阿波罗智能技术(北京)有限公司 | Vehicle running control method and device |
CN115230688B (en) * | 2021-12-07 | 2023-08-25 | 上海仙途智能科技有限公司 | Obstacle trajectory prediction method, system, and computer-readable storage medium |
CN114872735B (en) * | 2022-07-10 | 2022-10-04 | 成都工业职业技术学院 | Neural network algorithm-based decision-making method and device for automatically-driven logistics vehicles |
CN115293301B (en) * | 2022-10-09 | 2023-01-31 | 腾讯科技(深圳)有限公司 | Estimation method and device for lane change direction of vehicle and storage medium |
CN115540893B (en) * | 2022-11-30 | 2023-03-14 | 广汽埃安新能源汽车股份有限公司 | Vehicle path planning method and device, electronic equipment and computer readable medium |
CN116543356B (en) * | 2023-07-05 | 2023-10-27 | 青岛国际机场集团有限公司 | Track determination method, track determination equipment and track determination medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140278052A1 (en) * | 2013-03-15 | 2014-09-18 | Caliper Corporation | Lane-level vehicle navigation for vehicle routing and traffic management |
CN106384540A (en) * | 2016-10-20 | 2017-02-08 | 深圳市元征科技股份有限公司 | Vehicle real-time track prediction method and prediction system |
CN108550279A (en) * | 2018-04-03 | 2018-09-18 | 同济大学 | Vehicle drive behavior prediction method based on machine learning |
CN110111566A (en) * | 2019-04-19 | 2019-08-09 | 腾讯科技(深圳)有限公司 | Trajectory predictions method, apparatus and storage medium |
CN111422204A (en) * | 2020-03-24 | 2020-07-17 | 北京京东乾石科技有限公司 | Automatic driving vehicle passing judgment method and related equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105667518B (en) * | 2016-02-25 | 2018-07-24 | 福州华鹰重工机械有限公司 | The method and device of lane detection |
CN108303103B (en) * | 2017-02-07 | 2020-02-07 | 腾讯科技(深圳)有限公司 | Method and device for determining target lane |
US20190051174A1 (en) * | 2017-08-11 | 2019-02-14 | Lyft, Inc. | Travel path and location predictions |
KR102675523B1 (en) * | 2018-09-28 | 2024-06-14 | 삼성전자주식회사 | Method and apparatus of determining lane |
WO2020135881A1 (en) * | 2018-12-29 | 2020-07-02 | 长城汽车股份有限公司 | Lane selecting method and system for self-driving vehicle, and vehicle |
-
2020
- 2020-12-31 WO PCT/CN2020/142439 patent/WO2022141538A1/en active Application Filing
- 2020-12-31 CN CN202080005125.7A patent/CN112839855B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140278052A1 (en) * | 2013-03-15 | 2014-09-18 | Caliper Corporation | Lane-level vehicle navigation for vehicle routing and traffic management |
CN106384540A (en) * | 2016-10-20 | 2017-02-08 | 深圳市元征科技股份有限公司 | Vehicle real-time track prediction method and prediction system |
CN108550279A (en) * | 2018-04-03 | 2018-09-18 | 同济大学 | Vehicle drive behavior prediction method based on machine learning |
CN110111566A (en) * | 2019-04-19 | 2019-08-09 | 腾讯科技(深圳)有限公司 | Trajectory predictions method, apparatus and storage medium |
CN111422204A (en) * | 2020-03-24 | 2020-07-17 | 北京京东乾石科技有限公司 | Automatic driving vehicle passing judgment method and related equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220355805A1 (en) * | 2021-05-04 | 2022-11-10 | Hyundai Motor Company | Vehicle position correction apparatus and method thereof |
US11821995B2 (en) * | 2021-05-04 | 2023-11-21 | Hyundai Motor Company | Vehicle position correction apparatus and method thereof |
CN118364314A (en) * | 2024-06-19 | 2024-07-19 | 四川汉科计算机信息技术有限公司 | Multi-dimensional evaluation method, system, equipment and medium for flight trajectory fitting degree |
CN118396188A (en) * | 2024-06-24 | 2024-07-26 | 长沙智能驾驶研究院有限公司 | Operation state prediction method and device for manned mining card and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112839855B (en) | 2022-07-12 |
CN112839855A (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022141538A1 (en) | Trajectory prediction method and apparatus | |
CN111123933B (en) | Vehicle track planning method and device, intelligent driving area controller and intelligent vehicle | |
US20220051035A1 (en) | Object Detection and Property Determination for Autonomous Vehicles | |
RU2767955C1 (en) | Methods and systems for determining the presence of dynamic objects by a computer | |
US10324469B2 (en) | System and method for controlling motion of vehicle in shared environment | |
US11545033B2 (en) | Evaluation framework for predicted trajectories in autonomous driving vehicle traffic prediction | |
CN109085829B (en) | Dynamic and static target identification method | |
DE102016119130A1 (en) | Probabilistic deduction using weighted integrals and hashing for object tracking | |
CN109767619B (en) | Intelligent networking pure electric vehicle running condition prediction method | |
US12085403B2 (en) | Vehicle localisation | |
Liu et al. | Precise Positioning and Prediction System for Autonomous Driving Based on Generative Artificial Intelligence | |
CN114426030A (en) | Pedestrian passing intention estimation method, device and equipment and automobile | |
US20220163970A1 (en) | Map-information obstacle-tracking system and method | |
US11983918B2 (en) | Platform for perception system development for automated driving system | |
US20230202497A1 (en) | Hypothesis inference for vehicles | |
US11433923B2 (en) | Systems and methods for long-term prediction of lane change maneuver | |
EP4279869A1 (en) | Determining a state of a vehicle on a road | |
CN114581865A (en) | Confidence measure in deep neural networks | |
US12147232B2 (en) | Method, system and computer program product for the automated locating of a vehicle | |
KR102678602B1 (en) | Apparatus and method for guiding the optimal route to transport vehicles in a port cooperation autonomous cargo transportation system using hybrid v2x communication system | |
US20230024799A1 (en) | Method, system and computer program product for the automated locating of a vehicle | |
EP4357944A1 (en) | Identification of unknown traffic objects | |
US20240298294A1 (en) | System And Method For Road Monitoring | |
US20230025579A1 (en) | High-definition mapping | |
Craven et al. | How Car Autopilot Works |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20967876 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20967876 Country of ref document: EP Kind code of ref document: A1 |