CN109697875B - Method and device for planning driving track - Google Patents
Method and device for planning driving track Download PDFInfo
- Publication number
- CN109697875B CN109697875B CN201710993734.8A CN201710993734A CN109697875B CN 109697875 B CN109697875 B CN 109697875B CN 201710993734 A CN201710993734 A CN 201710993734A CN 109697875 B CN109697875 B CN 109697875B
- Authority
- CN
- China
- Prior art keywords
- driving
- vehicle
- neural network
- network model
- vehicles
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/09—Arrangements for giving variable traffic instructions
- G08G1/0962—Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
- G08G1/0967—Systems involving transmission of highway information, e.g. weather, speed limits
- G08G1/096708—Systems involving transmission of highway information, e.g. weather, speed limits where the received information might be used to generate an automatic action on the vehicle control
- G08G1/096725—Systems involving transmission of highway information, e.g. weather, speed limits where the received information might be used to generate an automatic action on the vehicle control where the received information generates an automatic action on the vehicle control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/16—Anti-collision systems
- G08G1/166—Anti-collision systems for active traffic, e.g. moving vehicles, pedestrians, bikes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Life Sciences & Earth Sciences (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Biomedical Technology (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Atmospheric Sciences (AREA)
- Biophysics (AREA)
- General Health & Medical Sciences (AREA)
- Development Economics (AREA)
- Artificial Intelligence (AREA)
- Game Theory and Decision Science (AREA)
- Health & Medical Sciences (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Traffic Control Systems (AREA)
Abstract
本申请涉及人工智能,公开了一种规划行驶轨迹的方法及装置,属于数据处理技术、自动驾驶以及物联网等领域。所述方法包括:服务器确定与第一车辆当前所处的目标位置所在的路段对应的目标神经网络模型,并向第一车辆发送该目标神经网络模型,以使第一车辆通过该目标神经网络模型确定行驶轨迹。由于该目标神经网络模型是服务器根据多个第二车辆的行驶轨迹训练得到,而该多个第二车辆是指当前时间之前经过第一车辆当前所处的目标位置所在的路段的车辆。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,提高了该确定出的行驶轨迹的可行性。
The present application relates to artificial intelligence, and discloses a method and device for planning a driving trajectory, belonging to the fields of data processing technology, automatic driving, and the Internet of Things. The method includes: the server determines a target neural network model corresponding to the road section where the target position of the first vehicle is currently located, and sends the target neural network model to the first vehicle, so that the first vehicle passes through the target neural network model Determine the driving path. Since the target neural network model is obtained by the server training according to the travel trajectories of multiple second vehicles, the multiple second vehicles refer to vehicles passing through the road section where the current target position of the first vehicle is located before the current time. That is, when the first vehicle determines its own driving trajectory at the target position through the target neural network model, it refers to the driving trajectories of a plurality of second vehicles passing through the road section where the target position is located before the current time, which improves the determination of the driving trajectory. the feasibility of the driving trajectory.
Description
技术领域technical field
本申请涉及人工智能、数据处理技术、自动驾驶以及物联网等领域,特别涉及一种规划行驶轨迹的方法及装置。The present application relates to the fields of artificial intelligence, data processing technology, automatic driving, and the Internet of Things, and in particular, to a method and device for planning a driving trajectory.
背景技术Background technique
自动驾驶,也即,在车辆行驶的过程中,由车辆自身规划行驶轨迹,并按照规划的行驶轨迹行驶。然而在实际应用中,若车辆规划的行驶轨迹不合适,则容易对其他车辆以及自身的安全造成影响,因此如何规划行驶轨迹就显得尤为重要。Automatic driving, that is, in the process of vehicle driving, the vehicle itself plans the driving trajectory, and drives according to the planned driving trajectory. However, in practical applications, if the planned driving trajectory of the vehicle is not suitable, it will easily affect the safety of other vehicles and itself. Therefore, how to plan the driving trajectory is particularly important.
相关技术中,当需要规划行驶轨迹时,车辆确定需要执行的行驶任务和在当前道路中所处的车道位置,并根据确定的行驶任务和在当前道路中所处的车道位置规划行驶轨迹。其中,行驶任务包括直行、左转、右转和掉头,在当前道路中所处的车道位置包括直行车道、左转车道和右转车道。比如,确定的行驶任务为右转,在当前道路中所处的车道位置为直行车道,此时规划的行驶轨迹可以为:从当前所处车道的中心线出发,沿着当前所处车道的中心线与右侧车道中心线之间的连接线行驶,直至到达右侧车道的中心线。In the related art, when planning a driving trajectory, the vehicle determines the driving task to be performed and the lane position on the current road, and plans the driving trajectory according to the determined driving task and the lane position on the current road. Among them, the driving tasks include going straight, turning left, turning right, and turning around, and the lane positions on the current road include going straight, turning left, and turning right. For example, if the determined driving task is a right turn, and the current lane position on the current road is the straight lane, the planned driving trajectory at this time can be: starting from the center line of the current lane, along the center of the current lane Drive on the connecting line between the line and the centerline of the right lane until you reach the centerline of the right lane.
然而,当车辆按照上述方法确定的行驶轨迹行驶时,很容易发生事故,也即是,车辆按照上述方法确定的行驶轨迹行驶时事故发生率较高,因此,按照上述方法规划的行驶轨迹的可行性较低。However, when the vehicle travels according to the travel trajectory determined by the above method, accidents are likely to occur, that is, the accident rate is high when the vehicle travels according to the travel trajectory determined by the above method. low sex.
发明内容SUMMARY OF THE INVENTION
为了解决相关技术中规划的行驶轨迹可行性较低的问题,本申请提供了一种规划行驶轨迹的方法及装置。所述技术方案如下:In order to solve the problem of low feasibility of the planned travel trajectory in the related art, the present application provides a method and device for planning a travel trajectory. The technical solution is as follows:
第一方面,提供了一种规划行驶轨迹的方法,应用于第一车辆,该方法包括:In a first aspect, a method for planning a driving trajectory is provided, applied to a first vehicle, and the method includes:
接收服务器发送的目标神经网络模型,所述目标神经网络模型是指与所述第一车辆当前所处的目标位置所在的路段对应的神经网络模型,且所述目标神经网络模型是所述服务器根据多个第二车辆的行驶轨迹训练得到的,所述多个第二车辆是指当前时间之前经过所述目标位置所在的路段的车辆;Receive the target neural network model sent by the server, where the target neural network model refers to the neural network model corresponding to the road section where the target position of the first vehicle is currently located, and the target neural network model is the obtained by training the driving trajectories of a plurality of second vehicles, where the plurality of second vehicles refer to vehicles passing through the road section where the target position is located before the current time;
根据所述第一车辆的行驶任务和行驶信息,以及第一障碍车辆的行驶信息,通过所述目标神经网络模型确定所述第一车辆的行驶轨迹;According to the driving task and driving information of the first vehicle, and the driving information of the first obstacle vehicle, determine the driving trajectory of the first vehicle through the target neural network model;
其中,所述行驶任务包括直行、左转、右转和掉头,所述行驶信息包括当前所处的位置的位置信息、行驶方向和行驶速度,所述第一障碍车辆为与所述第一车辆之间的距离小于预设距离阈值的车辆。Wherein, the driving task includes going straight, turning left, turning right, and making a U-turn, the driving information includes position information of the current location, driving direction and driving speed, and the first obstacle vehicle is the same as the first vehicle. The distance between the vehicles is less than the preset distance threshold.
在本申请中,由于该目标神经网络模型是服务器根据多个第二车辆的行驶轨迹训练得到,而该多个第二车辆是指当前时间之前经过第一车辆当前所处的目标位置所在的路段的车辆。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,不仅考虑了该第一车辆和第一障碍车辆的行驶信息,还参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,以降低第一车辆按照确定出的行驶轨迹行驶时的事故发生率,也即,提高了该确定出的行驶轨迹的可行性。In this application, since the target neural network model is obtained by the server training according to the driving trajectories of a plurality of second vehicles, and the plurality of second vehicles refer to the road segment where the target position where the first vehicle is currently located before the current time Vehicles. That is, when the first vehicle determines its own driving trajectory through the target neural network model at the target position, it not only considers the driving information of the first vehicle and the first obstacle vehicle, but also refers to the location where the target position passed before the current time. The driving trajectories of a plurality of second vehicles on the road segment are determined, so as to reduce the accident rate when the first vehicle travels according to the determined driving trajectory, that is, to improve the feasibility of the determined driving trajectory.
可选地,所述目标位置所在的路段为路口;Optionally, the road section where the target position is located is an intersection;
所述根据所述第一车辆的行驶任务和行驶信息,以及第一障碍车辆的行驶信息,通过所述目标神经网络模型确定所述第一车辆的行驶轨迹,包括:According to the driving task and driving information of the first vehicle, and the driving information of the first obstacle vehicle, the driving trajectory of the first vehicle is determined by the target neural network model, including:
将所述第一车辆的行驶任务和行驶信息、所述第一障碍车辆的行驶信息以及所述路口处与所述目标位置对应的信号灯状态作为所述目标神经网络模型的输入,通过所述目标神经网络模型确定所述第一车辆的行驶轨迹。Taking the driving task and driving information of the first vehicle, the driving information of the first obstacle vehicle and the signal light state corresponding to the target position at the intersection as the input of the target neural network model, through the target The neural network model determines the travel trajectory of the first vehicle.
具体地,当该目标位置所在的路段为路口时,此时通过目标神经网络模型确定第一车辆的行驶轨迹时,还需考虑该路口处与该目标位置对应的信号灯状态,以进一步提高确定出的行驶轨迹的可行性。Specifically, when the road section where the target position is located is an intersection, when determining the driving trajectory of the first vehicle through the target neural network model, the signal light state corresponding to the target position at the intersection also needs to be considered, so as to further improve the determination of the target position. the feasibility of the driving trajectory.
可选地,所述目标神经网络模型是指与所述目标位置所在的路段和所述第一车辆的行驶任务均对应的神经网络模型,且所述多个第二车辆是指当前时间之前经过所述目标位置所在的路段且行驶任务与所述第一车辆的行驶任务相同的车辆。Optionally, the target neural network model refers to a neural network model corresponding to both the road section where the target position is located and the driving task of the first vehicle, and the plurality of second vehicles refers to the number of second vehicles that have passed before the current time. The road section where the target position is located and the vehicle having the same driving task as the driving task of the first vehicle.
进一步地,在某个路段处,服务器可以针对不同的行驶任务训练不同的神经网络模型,此时,第一车辆可以根据与该目标位置所在的路段和第一车辆的行驶任务均对应的目标神经网络模型确定行驶轨迹。Further, at a certain road section, the server can train different neural network models for different driving tasks. At this time, the first vehicle can use the target neural network corresponding to both the road section where the target position is located and the driving task of the first vehicle. The network model determines the driving trajectory.
第二方面,提供了另一种规划行驶轨迹的方法,应用于服务器,该方法包括:In a second aspect, another method for planning a driving trajectory is provided, which is applied to a server, and the method includes:
从存储的神经网络模型中确定与第一车辆当前所处的目标位置所在的路段对应的目标神经网络模型,所述目标神经网络模型是根据多个第二车辆的行驶轨迹训练得到的,所述多个第二车辆是指当前时间之前经过所述目标位置所在的路段的车辆;A target neural network model corresponding to the road section where the target position of the first vehicle is currently located is determined from the stored neural network model, and the target neural network model is obtained by training according to the driving trajectories of a plurality of second vehicles. The plurality of second vehicles refer to vehicles passing through the road section where the target position is located before the current time;
向所述第一车辆发送所述目标神经网络模型,以使所述第一车辆通过所述目标神经网络模型确定所述第一车辆的行驶轨迹。The target neural network model is sent to the first vehicle, so that the first vehicle determines the driving trajectory of the first vehicle through the target neural network model.
在本申请中,当第一车辆行驶至目标位置时,服务器可以直接确定与该目标位置所在的路段对应的目标神经网络模型,并向第一车辆发送该目标神经网络模型,以使第一车辆通过该目标神经网络模型确定行驶轨迹。由于该目标神经网络模型是服务器根据多个第二车辆的行驶轨迹训练得到,而该多个第二车辆是指当前时间之前经过该目标位置所在的路段的车辆。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,以降低第一车辆按照确定出的行驶轨迹行驶时的事故发生率,也即,提高了该确定出的行驶轨迹的可行性。In this application, when the first vehicle travels to the target position, the server can directly determine the target neural network model corresponding to the road section where the target position is located, and send the target neural network model to the first vehicle, so that the first vehicle The driving trajectory is determined by the target neural network model. Because the target neural network model is obtained by the server training according to the travel trajectories of a plurality of second vehicles, and the plurality of second vehicles refer to vehicles passing through the road section where the target position is located before the current time. That is, when the first vehicle determines its own travel trajectory at the target position through the target neural network model, it refers to the travel trajectories of multiple second vehicles passing through the road section where the target position is located before the current time, so as to reduce the speed of the first vehicle. The accident occurrence rate when driving according to the determined driving trajectory, that is, the feasibility of the determined driving trajectory is improved.
可选地,所述从存储的神经网络模型中确定与第一车辆当前所处的目标位置所在的路段对应的目标神经网络模型之前,还包括:Optionally, before determining the target neural network model corresponding to the road section where the target position of the first vehicle is currently located from the stored neural network model, the method further includes:
确定预设时间段内经过所述目标位置所在的路段的所有第二车辆的行驶轨迹和每个第二车辆的行驶轨迹的评分;determining the driving trajectories of all the second vehicles passing through the road section where the target position is located within the preset time period and the score of the driving trajectories of each second vehicle;
从获取到的所有行驶轨迹中选择评分大于预设评分的N个行驶轨迹,所述N大于1且小于或等于获取到的行驶轨迹的总数量;Selecting N driving trajectories with a score greater than a preset score from all the acquired driving trajectories, where N is greater than 1 and less than or equal to the total number of the acquired driving trajectories;
通过所述N个行驶轨迹对初始化的神经网络模型进行训练,得到所述目标神经网络模型。The initialized neural network model is trained through the N driving trajectories to obtain the target neural network model.
由于第一车辆是按照服务器发送的目标神经网络模型确定行驶轨迹的,因此,在本申请中,服务器还需预先确定该目标神经网络模型。进一步地,为了通过该目标神经网络模型确定出的行驶轨迹的可行性,服务器可以根据各个行驶轨迹的评分从多个行驶轨迹中选择出优秀的行驶轨迹,并通过选择出的优秀的行驶轨迹训练目标神经网络模型。Since the driving trajectory of the first vehicle is determined according to the target neural network model sent by the server, in this application, the server also needs to predetermine the target neural network model. Further, in order to determine the feasibility of the driving trajectory determined by the target neural network model, the server can select an excellent driving trajectory from a plurality of driving trajectories according to the scores of each driving trajectory, and train the selected excellent driving trajectory through the selected excellent driving trajectory. target neural network model.
可选地,所述通过所述N个行驶轨迹对初始化的神经网络模型进行训练,得到所述目标神经网络模型,包括:Optionally, the initialized neural network model is trained through the N driving trajectories to obtain the target neural network model, including:
确定N个第二车辆的行驶任务和行驶信息,以及N个第二障碍车辆的行驶信息;determining the driving tasks and driving information of the N second vehicles, and the driving information of the N second obstacle vehicles;
其中,所述N个第二车辆为所述N个行驶轨迹对应的车辆,所述N个第二障碍车辆与所述N个第二车辆一一对应,且第二障碍车辆为与对应的第二车辆之间的距离小于预设距离阈值的车辆,所述行驶任务包括直行、左转、右转和掉头,所述行驶信息包括当前所处的位置、行驶方向和行驶速度;Wherein, the N second vehicles are vehicles corresponding to the N driving trajectories, the N second obstacle vehicles are in one-to-one correspondence with the N second vehicles, and the second obstacle vehicles are vehicles corresponding to the corresponding No. The distance between the two vehicles is less than the preset distance threshold value, the driving task includes going straight, turning left, turning right and U-turn, and the driving information includes the current position, driving direction and driving speed;
根据所述N个第二车辆的行驶任务和行驶信息、所述N个第二障碍车辆的行驶信息以及所述N个第二车辆的行驶轨迹,对初始化的神经网络模型进行训练,得到所述目标神经网络模型。According to the driving tasks and driving information of the N second vehicles, the driving information of the N second obstacle vehicles, and the driving trajectories of the N second vehicles, the initialized neural network model is trained to obtain the target neural network model.
其中,对目标神经网络模型进行训练的过程,也即,确定样本数据,之后通过确定出的样本数据对初始化的神经网络模型进行训练,以得到该目标神经网络模型。The process of training the target neural network model, that is, determining sample data, and then training the initialized neural network model through the determined sample data to obtain the target neural network model.
可选地,所述目标位置所在的路段为路口;Optionally, the road section where the target position is located is an intersection;
所述确定N个第二车辆的行驶任务和行驶信息,以及N个第二障碍车辆的行驶信息之后,还包括:After determining the driving tasks and driving information of the N second vehicles and the driving information of the N second obstacle vehicles, the method further includes:
确定N个信号灯状态,所述N个信号灯状态与所述N个第二车辆一一对应,每个信号灯状态是指对应的第二车辆在经过所述路口时所述路口处对应的信号灯状态;Determine N signal light states, the N signal light states are in one-to-one correspondence with the N second vehicles, and each signal light state refers to the signal light state corresponding to the intersection when the corresponding second vehicle passes through the intersection;
相应地,所述根据所述N个第二车辆的行驶任务和行驶信息、所述N个第二障碍车辆的行驶信息以及所述N个第二车辆的行驶轨迹,对初始化的神经网络模型进行训练,得到所述目标神经网络模型,包括:Correspondingly, the initialized neural network model is performed according to the driving tasks and driving information of the N second vehicles, the driving information of the N second obstacle vehicles, and the driving trajectories of the N second vehicles. Training to obtain the target neural network model, including:
将所述N个第二车辆的行驶任务和行驶信息、所述N个第二障碍车辆的行驶信息以及所述N个信号灯状态作为所述初始化的神经网络模型的输入,将所述N个第二车辆的行驶轨迹作为所述初始化的神经网络模型的输出,对所述初始化的神经网络模型进行训练,得到所述目标神经网络模型。The driving tasks and driving information of the N second vehicles, the driving information of the N second obstacle vehicles, and the N signal light states are used as the input of the initialized neural network model, and the Nth The driving trajectory of the second vehicle is used as the output of the initialized neural network model, and the initialized neural network model is trained to obtain the target neural network model.
进一步地,当目标位置所在的路段为路口时,此时服务器确定训练该目标神经网络模型的样本数据,该样本数据还可以包括每个第二车辆在经过该路口时该路口处对应的信号灯状态。Further, when the road section where the target position is located is an intersection, the server determines the sample data for training the target neural network model at this time, and the sample data may also include the signal light state corresponding to the intersection when each second vehicle passes through the intersection. .
可选地,所述确定每个第二车辆的行驶轨迹的评分,包括:Optionally, the determining the score of the driving trajectory of each second vehicle includes:
对于所有第二车辆中的任一第二车辆,根据所述第二车辆的行驶轨迹确定所述第二车辆在行驶过程中的行驶状况,所述行驶状况包括发生碰撞的次数、是否遵守交通规则、变道次数、行驶时长以及是否为平稳驾驶;For any second vehicle among all the second vehicles, determine the driving condition of the second vehicle during the driving process according to the driving track of the second vehicle, where the driving condition includes the number of collisions and whether the traffic rules are complied with. , the number of lane changes, the driving time and whether it is a smooth driving;
根据所述第二车辆在行驶过程中的行驶状况,确定所述第二车辆的行驶轨迹的评分。The score of the driving trajectory of the second vehicle is determined according to the driving condition of the second vehicle during the driving process.
其中,服务器可以通过第二车辆在经过该路口处时的发生碰撞的次数、是否遵守交通规则、变道次数、行驶时长以及是否为平稳驾驶等因素确定该第二车辆的行驶轨迹的评分。Wherein, the server may determine the score of the driving trajectory of the second vehicle according to factors such as the number of collisions when the second vehicle passes through the intersection, whether it complies with traffic rules, the number of lane changes, the driving time, and whether it is a smooth driving.
可选地,所述根据所述第二车辆的行驶轨迹确定所述第二车辆在行驶过程中的行驶状况,包括:Optionally, the determining of the driving condition of the second vehicle during the driving process according to the driving trajectory of the second vehicle includes:
确定第三障碍车辆在经过所述路口的行驶轨迹,所述第三障碍车辆为在所述第二车辆经过所述路口时与所述第二车辆的距离小于预设距离阈值的车辆;determining a travel trajectory of a third obstacle vehicle passing through the intersection, where the third obstacle vehicle is a vehicle whose distance from the second vehicle is less than a preset distance threshold when the second vehicle passes through the intersection;
根据所述第二车辆的行驶轨迹和所述第三障碍车辆的行驶轨迹,确定所述第二车辆与所述第三障碍车辆之间发生碰撞的次数;determining the number of collisions between the second vehicle and the third obstacle vehicle according to the travel trajectory of the second vehicle and the third obstacle vehicle;
确定所述第二车辆经过所述路口的过程中所述路口对应的信号灯状态;determining a signal light state corresponding to the intersection during the process of the second vehicle passing through the intersection;
根据所述第二车辆的行驶轨迹和所述第二车辆经过所述路口的过程中所述路口处的信号灯状态,确定所述第二车辆是否遵守交通规则;determining whether the second vehicle complies with the traffic rules according to the driving track of the second vehicle and the state of the signal light at the intersection when the second vehicle passes through the intersection;
根据所述第二车辆的行驶轨迹,确定所述第二车辆的变道次数、行驶时长以及是否为平稳驾驶。According to the driving trajectory of the second vehicle, the number of lane changes, the driving time and whether the second vehicle is driving smoothly is determined.
具体地,服务器可以通过上述方法确定第二车辆在经过该路口处时的发生碰撞的次数、是否遵守交通规则、变道次数、行驶时长以及是否为平稳驾驶。Specifically, the server may use the above method to determine the number of collisions, whether the second vehicle complies with traffic rules, the number of lane changes, the driving time, and whether it is a smooth driving when the second vehicle passes through the intersection.
可选地,所述根据所述第二车辆在行驶过程中的行驶状况,确定所述第二车辆的行驶轨迹的评分,包括:Optionally, the determining the score of the driving trajectory of the second vehicle according to the driving condition of the second vehicle during driving includes:
如果所述第二车辆在行驶过程中发生碰撞的次数大于或等于预设碰撞次数,则确定碰撞评分为第一评分,否则,确定所述碰撞评分为第二评分,其中,碰撞评分与发生碰撞的次数呈负相关关系;If the number of collisions of the second vehicle during driving is greater than or equal to the preset number of collisions, the collision score is determined to be the first score, otherwise, the collision score is determined to be the second score, where the collision score is related to the collision occurrence The number of times is negatively correlated;
如果所述第二车辆遵守交通规则,则确定交通规则评分为第三评分,否则,确定所述交通规则评分为第四评分;If the second vehicle complies with the traffic rules, determine the traffic rule score as the third score, otherwise, determine the traffic rule score as the fourth score;
如果所述第二车辆在行驶过程中的变道次数大于或等于所述第二车辆经过所述路口所需的最小变道次数,则确定变道评分为第五评分,否则,确定所述变道评分为第六评分,其中,变道评分与变道次数呈负相关关系;If the number of lane changes of the second vehicle during driving is greater than or equal to the minimum number of lane changes required for the second vehicle to pass through the intersection, determine the lane change score as the fifth score, otherwise, determine the lane change score The lane score is the sixth score, and the lane change score is negatively correlated with the number of lane changes;
如果所述第二车辆经过所述路口的行驶时长大于或等于预设行驶时长,则确定时长评分为第七评分,否则,确定所述时长评分为第八评分,其中,时长评分与行驶时长呈负相关关系;If the driving duration of the second vehicle through the intersection is greater than or equal to the preset driving duration, the duration score is determined to be the seventh score, otherwise, the duration score is determined to be the eighth score, wherein the duration score and the driving duration are in the same negative correlation;
如果所述第二车辆是平稳驾驶,则确定驾驶评分为第九评分,否则,确定所述驾驶评分为第十评分;If the second vehicle drives smoothly, determining the driving score as the ninth score, otherwise, determining the driving score as the tenth score;
将所述碰撞评分、所述交通规则评分、所述变道评分、所述时长评分和所述驾驶评分之和确定为所述第二车辆的行驶轨迹的评分。A sum of the collision score, the traffic rule score, the lane change score, the duration score and the driving score is determined as a score of the driving trajectory of the second vehicle.
进一步地,服务器在确定出该第二车辆在经过该路口处时的发生碰撞的次数、是否遵守交通规则、变道次数、行驶时长以及是否为平稳驾驶时,可以分别确定碰撞评分、交通规则评分、变道评分、时长评分和驾驶评分,以根据确定出的碰撞评分、交通规则评分、变道评分、时长评分和驾驶评分确定该第二车辆的行驶轨迹的评分。Further, when the server determines the number of collisions, whether the second vehicle complies with the traffic rules, the number of lane changes, the driving time and whether it is a smooth driving when the second vehicle passes through the intersection, the collision score and the traffic rule score can be determined respectively. , a lane change score, a duration score, and a driving score to determine a score of the driving trajectory of the second vehicle according to the determined collision score, traffic rule score, lane change score, duration score, and driving score.
可选地,所述从存储的神经网络模型中确定与第一车辆当前所处的目标位置所在的路段对应的目标神经网络模型,包括:Optionally, determining the target neural network model corresponding to the road section where the target position of the first vehicle is currently located from the stored neural network model includes:
根据所述目标位置的位置信息和所述第一车辆的行驶任务,从存储的神经网络模型中确定与所述目标位置所在的路段和所述第一车辆的行驶任务均对应的目标神经网络模型;According to the position information of the target position and the driving task of the first vehicle, a target neural network model corresponding to both the road section where the target position is located and the driving task of the first vehicle is determined from the stored neural network model ;
相应地,所述多个第二车辆是指当前时间之前经过所述目标位置所在的路段且行驶任务与所述第一车辆的行驶任务相同的车辆。Correspondingly, the plurality of second vehicles refer to vehicles that have passed through the road section where the target position is located before the current time and have the same driving task as the driving task of the first vehicle.
进一步地,在某个路段处,服务器可以针对不同的行驶任务训练不同的神经网络模型,此时,服务器可以向第一车辆发送与该目标位置所在的路段和第一车辆的行驶任务均对应的目标神经网络模型。Further, at a certain road section, the server can train different neural network models for different driving tasks, and at this time, the server can send to the first vehicle the road section where the target position is located and the driving task of the first vehicle. target neural network model.
可选地,所述确定预设时间段内经过所述目标位置所在的路段的所有第二车辆的行驶轨迹,包括:Optionally, the determining of travel trajectories of all second vehicles passing through the road section where the target position is located within a preset time period includes:
确定在第一时刻经过所述目标位置所在的路段的第二车辆,所述第一时刻是指所述预设时间段内的任一时刻;determining a second vehicle passing through the road section where the target position is located at a first moment, where the first moment refers to any moment within the preset time period;
对于确定得到的任一第二车辆,确定所述第二车辆经过所述目标位置所在的路段的行驶过程中的多个第二时刻;For any determined second vehicle, determining a plurality of second moments during the driving process of the second vehicle passing through the road section where the target position is located;
基于在每个第二时刻时所述第二车辆的行驶信息确定所述第二车辆的行驶轨迹。The driving trajectory of the second vehicle is determined based on the driving information of the second vehicle at each second time.
其中,服务器确定第二车辆的行驶轨迹,也即,确定第二车辆在经过该目标位置所在的路段的过程中的各个第二时刻时的行驶信息。Wherein, the server determines the driving trajectory of the second vehicle, that is, determines the driving information of the second vehicle at each second moment in the process of passing through the road section where the target position is located.
第三方面,提供了一种规划行驶轨迹的装置,应用于第一车辆,该规划行驶轨迹的装置具有实现上述第一方面中规划行驶轨迹的方法的功能。所述规划行驶轨迹的装置包括至少一个单元,该至少一个单元用于实现上述第一方面所提供的规划行驶轨迹的方法。A third aspect provides an apparatus for planning a driving trajectory, which is applied to a first vehicle, and the apparatus for planning a driving trajectory has the function of implementing the method for planning a driving trajectory in the first aspect. The apparatus for planning a driving trajectory includes at least one unit, and the at least one unit is configured to implement the method for planning a driving trajectory provided in the first aspect.
第四方面,提供了另一种规划行驶轨迹的装置,应用于服务器,该规划行驶轨迹的装置具有实现上述第二方面中规划行驶轨迹的方法的功能。所述规划行驶轨迹的装置包括至少一个单元,该至少一个单元用于实现上述第二方面所提供的规划行驶轨迹的方法。In a fourth aspect, another apparatus for planning a driving trajectory is provided, which is applied to a server, and the apparatus for planning a driving trajectory has the function of implementing the method for planning a driving trajectory in the second aspect. The apparatus for planning a driving trajectory includes at least one unit, and the at least one unit is configured to implement the method for planning a driving trajectory provided in the second aspect above.
第五方面,提供了一种规划行驶轨迹的装置,所述规划行驶轨迹的装置的结构中包括处理器和存储器,所述存储器用于存储支持波束赋形装置执行上述第一方面所提供的规划行驶轨迹的方法的程序,以及存储用于实现上述第一方面所提供的规划行驶轨迹的方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述存储设备的操作装置还可以包括通信总线,该通信总线用于该处理器与存储器之间建立连接。In a fifth aspect, a device for planning a driving trajectory is provided. The structure of the device for planning a driving trajectory includes a processor and a memory, and the memory is used for storing and supporting the beamforming device to perform the planning provided in the first aspect. A program of the method for driving a trajectory, and storing data involved in implementing the method for planning a driving trajectory provided in the first aspect. The processor is configured to execute programs stored in the memory. The operating means of the storage device may further include a communication bus for establishing a connection between the processor and the memory.
第六方面,提供了另一种规划行驶轨迹的装置,所述规划行驶轨迹的装置的结构中包括处理器和存储器,所述存储器用于存储支持波束赋形装置执行上述第二方面所提供的规划行驶轨迹的方法的程序,以及存储用于实现上述第二方面所提供的规划行驶轨迹的方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述存储设备的操作装置还可以包括通信总线,该通信总线用于该处理器与存储器之间建立连接。In a sixth aspect, another device for planning a driving trajectory is provided. The structure of the device for planning a driving trajectory includes a processor and a memory, and the memory is used for storing and supporting the beamforming device to perform the above-mentioned second aspect. A program of a method for planning a driving trajectory, and storing data involved in implementing the method for planning a driving trajectory provided by the second aspect. The processor is configured to execute programs stored in the memory. The operating means of the storage device may further include a communication bus for establishing a connection between the processor and the memory.
第七方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的规划行驶轨迹的方法。In a seventh aspect, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium runs on a computer, the computer executes the method for planning a driving trajectory described in the first aspect.
第八方面,提供了另一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第二方面所述的规划行驶轨迹的方法。In an eighth aspect, another computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer executes the method for planning a travel trajectory described in the second aspect above. .
第九方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的规划行驶轨迹的方法。In a ninth aspect, there is provided a computer program product containing instructions, which, when executed on a computer, cause the computer to execute the method for planning a driving trajectory described in the first aspect above.
第十方面,提供了另一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面所述的规划行驶轨迹的方法。In a tenth aspect, there is provided another computer program product containing instructions, which, when executed on a computer, cause the computer to execute the method for planning a travel trajectory described in the second aspect above.
上述第三方面、第五方面、第七方面和第九方面所获得的技术效果与第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。上述第四方面、第六方面、第八方面和第十方面所获得的技术效果与第二方面中对应的技术手段获得的技术效果近似,在这里同样不再赘述。The technical effects obtained by the third aspect, the fifth aspect, the seventh aspect and the ninth aspect are similar to the technical effects obtained by the corresponding technical means in the first aspect, and will not be repeated here. The technical effects obtained by the fourth aspect, the sixth aspect, the eighth aspect and the tenth aspect are similar to the technical effects obtained by the corresponding technical means in the second aspect, and will not be repeated here.
本申请提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the application are:
在本申请中,当第一车辆当前处于目标位置时,服务器可以直接确定与该目标位置所在的路段对应的目标神经网络模型,并向第一车辆发送该目标神经网络模型,以使第一车辆通过该目标神经网络模型确定行驶轨迹。由于该目标神经网络模型是服务器根据多个第二车辆的行驶轨迹训练得到,而该多个第二车辆是指当前时间之前经过第一车辆当前所处的目标位置所在的路段的车辆。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,不仅考虑了该第一车辆和第一障碍车辆的行驶信息,还参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,以降低第一车辆按照确定出的行驶轨迹行驶时的事故发生率,也即,提高了该确定出的行驶轨迹的可行性。In this application, when the first vehicle is currently at the target position, the server may directly determine the target neural network model corresponding to the road section where the target position is located, and send the target neural network model to the first vehicle, so that the first vehicle The driving trajectory is determined by the target neural network model. Because the target neural network model is obtained by the server training according to the travel trajectories of a plurality of second vehicles, and the plurality of second vehicles refer to vehicles passing through the road section where the current target position of the first vehicle is located before the current time. That is, when the first vehicle determines its own driving trajectory through the target neural network model at the target position, it not only considers the driving information of the first vehicle and the first obstacle vehicle, but also refers to the location where the target position passed before the current time. The driving trajectories of a plurality of second vehicles on the road segment are determined, so as to reduce the accident rate when the first vehicle travels according to the determined driving trajectory, that is, to improve the feasibility of the determined driving trajectory.
附图说明Description of drawings
图1是本发明实施例提供的一种规划行驶轨迹的系统示意图;1 is a schematic diagram of a system for planning a driving trajectory according to an embodiment of the present invention;
图2是本发明实施例提供的一种服务器示意图;2 is a schematic diagram of a server according to an embodiment of the present invention;
图3是本发明实施例提供的一种服务器的结构示意图;3 is a schematic structural diagram of a server provided by an embodiment of the present invention;
图4是本发明实施例提供的一种车辆示意图;4 is a schematic diagram of a vehicle provided by an embodiment of the present invention;
图5是本发明实施例提供的一种车辆的结构示意图;5 is a schematic structural diagram of a vehicle according to an embodiment of the present invention;
图6A是本发明实施例提供的一种规划行驶轨迹的方法流程图;6A is a flowchart of a method for planning a driving trajectory provided by an embodiment of the present invention;
图6B是本发明实施例提供的一种路口示意图;6B is a schematic diagram of an intersection provided by an embodiment of the present invention;
图7是本发明实施例提供的另一种规划行驶轨迹的方法流程图;7 is a flowchart of another method for planning a driving trajectory provided by an embodiment of the present invention;
图8是本发明实施例提供的一种规划行驶轨迹的装置框图;8 is a block diagram of a device for planning a driving trajectory provided by an embodiment of the present invention;
图9A是本发明实施例提供的一种规划行驶轨迹的装置框图;9A is a block diagram of a device for planning a driving trajectory provided by an embodiment of the present invention;
图9B是本发明实施例提供的另一种规划行驶轨迹的装置框图。FIG. 9B is a block diagram of another apparatus for planning a driving trajectory provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
为了便于理解,首先对本发明实施例所涉及的应用场景做简单介绍。For ease of understanding, firstly, the application scenarios involved in the embodiments of the present invention are briefly introduced.
对于自动驾驶的车辆,车辆是按照预先规划的行驶轨迹行驶的,而不是像有司机驾驶的车辆那样实时根据司机下发的指令行驶,致使自动驾驶的车辆不能像有司机驾驶的车辆那样实时根据车辆当前所处的环境对行驶方向或行驶速度做适应性调整。比如,车辆当前的行驶任务为右转,在当前道路中所处的车道位置为直行车道,此时规划的行驶轨迹为:从当前所处车道的中心线出发,沿着当前所处车道的中心线与右侧车道中心线之间的连接线行驶,直至到达右侧车道的中心线。而实际在车辆右转行驶的过程中,车辆周围可能存在其他车辆有变道行为,此时若继续按照上述规划的行驶轨迹行驶,很容易对其他车辆以及自身的安全造成影响。因此,如何规划行驶轨迹就显得尤为重要。而本发明实施例就应用于如何规划车辆的行驶轨迹的场景中。For self-driving vehicles, the vehicle drives according to the pre-planned driving trajectory, rather than driving according to the instructions issued by the driver in real time like a driver-driven vehicle, so that the self-driving vehicle cannot be driven by a driver. The current environment of the vehicle makes adaptive adjustments to the driving direction or driving speed. For example, the current driving task of the vehicle is to turn right, and the position of the lane on the current road is the straight lane. At this time, the planned driving trajectory is: starting from the center line of the current lane, along the center of the current lane. Drive on the connecting line between the line and the centerline of the right lane until you reach the centerline of the right lane. In fact, when the vehicle is turning right, there may be other vehicles around the vehicle changing lanes. At this time, if you continue to drive according to the above planned driving trajectory, it will easily affect the safety of other vehicles and your own. Therefore, how to plan the driving trajectory is particularly important. However, the embodiment of the present invention is applied to the scenario of how to plan the driving trajectory of the vehicle.
在对本发明实施例的应用场景进行介绍之后,下面对本发明实施例提供的规划行驶轨迹的系统进行简单介绍。After the application scenarios of the embodiments of the present invention are introduced, the following briefly introduces the system for planning a driving trajectory provided by the embodiments of the present invention.
如图1所示,本发明实施例提供了一种规划行驶轨迹的系统,该规划行驶轨迹的系统100包括服务器101和至少一个车辆102,且服务器101和每个车辆102之间通过无线方式连接以进行通信。As shown in FIG. 1 , an embodiment of the present invention provides a system for planning a driving trajectory. The system 100 for planning a driving trajectory includes a
其中,服务器101用于对历史行驶轨迹进行统计,以通过历史行驶轨迹训练神经网络模型。车辆102用于从服务器101处获取该预先训练的神经网络模型,并通过该预先训练的神经网络规划行驶轨迹。Wherein, the
可选地,服务器101还用于通过广播方式向至少一个车辆102推送该预先训练的神经网络模型,此时车辆102无需主动从服务器101处获取该预先训练的神经网络模型。Optionally, the
图2是本发明实施例提供的一种服务器200的示意图。参见图2,该服务器200包括数据采集模块201、数据存储模块202、任务分析模块203、时间轨迹分析模块204、信号灯分析模块205、轨迹评分模块206、模型训练模块207以及模型推送模块208。FIG. 2 is a schematic diagram of a server 200 according to an embodiment of the present invention. 2 , the server 200 includes a
其中,数据采集模块201用于采集数据,该采集的数据可以是在预设路段上安装的多个固定安装的摄像头上报的数据,也可以是经过该预设路段的车辆向服务器上报的数据。如果该采集的数据为多个摄像头上报的数据,则该采集的数据应至少包括:采集的视频、该视频对应的时间、摄像头的地理位置、摄像头的高度以及摄像头的朝向等信息。如果该采集的数据是经过该预设路段的车辆上报的数据,则采集的数据应至少包括:该车辆所处的位置、行驶方向、速度以及对应的时间信息。可选地,该采集的数据还可以包括安装在该车辆的车载摄像头拍摄的视频,或通过安装在该车辆上的车载软件对该拍摄的视频处理之后的信息。其中,该车载摄像头拍摄的视频中可以包括信号灯信息,以及周边动态障碍物的位置、行驶方向和速度等信息。The
数据存储模块202用于将数据采集模块201采集的数据进行存储。The
任务分析模块203用于从数据存储模块202中读取存储的数据,并通过预设视频处理技术,确定每个车辆的行驶轨迹,根据每个车辆的行驶轨迹,分析该车辆在该预设路段的行驶任务。比如,左转、直行、右转或掉头等。The
时间轨迹分析模块204从数据存储模块202中读取存储的数据,并通过预设视频处理技术,确定每个车辆的行驶轨迹,该车辆的行驶轨迹包括在一定时间序列下,该车辆所处的位置、行驶方向、车速等信息,也即,该车辆的行驶轨迹是由该车辆行驶在该预设路段的不同时刻时该车辆所处的位置、行驶方向以及车速等信息组成。The time
信号灯分析模块205从数据存储模块202中读取存储的数据,同样地,通过预设视频处理技术,分析该预设路段的信号灯随时间变化的信息。比如,分析出在时间段t0至t1,西向东方向的直行信号灯为绿色。The signal
轨迹评分模块206用于读取上述任务分析模块203、时间轨迹分析模块204以及信号灯分析模块205处理后的数据,将这些数据按照时间相互关联,并将预设距离阈值内的不同车辆视为互为障碍车辆,以对所有的行驶轨迹进行评分,该评分的标准可包含:是否遵守交通规则、通过该预设路段时间、变道次数、与障碍车辆之间的碰撞次数等。The
模型训练模块207根据上述任务分析模块203、时间轨迹分析模块204、信号灯分析模块205以及轨迹评分模块的评分数据,使用初始化的神经网络模型对历史行驶轨迹进行训练,以使神经网络模型学习具有较高评分的行驶轨迹的特征,得到神经网络模型,并存储训练之后的神经网络模型。The
模型推送模块208用于当接收到车辆的模型请求时,将存储的神经网络模型推送至车辆,该模型推送模块208还用于以广播的方式向一定范围内的车辆推送该神经网络模型。The
图3是本发明实施例提供的另一种服务器300的结构示意图。该服务器300用于实现图2所示的服务器200包括的各个模块的功能。具体地,如图3所示,该服务器300包括至少一个处理器301,通信总线302,存储器303以及至少一个通信接口304。FIG. 3 is a schematic structural diagram of another server 300 provided by an embodiment of the present invention. The server 300 is used to implement the functions of each module included in the server 200 shown in FIG. 2 . Specifically, as shown in FIG. 3 , the server 300 includes at least one
处理器301可以是一个通用中央处理器(Central Processing Unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The
通信总线302可包括一通路,在上述组件之间传送信息。
存储器303可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM))或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器303可以是独立存在,通过通信总线302与处理器301相连接。存储器303也可以和处理器301集成在一起。
通信接口304,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The
在具体实现中,作为一种实施例,处理器301可以包括一个或多个CPU。In a specific implementation, as an embodiment, the
在具体实现中,作为一种实施例,服务器可以包括多个处理器。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。比如,对于上述图2所示的任务分析模块203、时间轨迹分析模块204、信号灯分析模块205、轨迹评分模块206以及模型训练模块207中的每个模块,该模块均可以由一个处理器来实现该模块的功能。In a specific implementation, as an embodiment, the server may include multiple processors. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions). For example, for each module in the
在具体实现中,作为一种实施例,服务器300还可以包括输出设备和输入设备。输出设备和处理器301通信,可以以多种方式来显示信息。例如,输出设备可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备和处理器301通信,可以以多种方式接收用户的输入。例如,输入设备可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the server 300 may further include an output device and an input device. The output device communicates with the
在具体实现中,服务器可以是台式机、便携式电脑、网络服务器、掌上电脑(Personal Digital Assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备或者嵌入式设备。本发明实施例不限定服务器的类型。In a specific implementation, the server may be a desktop computer, a portable computer, a network server, a PDA (Personal Digital Assistant, PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. The embodiment of the present invention does not limit the type of the server.
其中,存储器303用于存储执行本申请方案的程序代码,并由处理器301来控制执行,以实现根据历史行驶轨迹训练神经网络模型。处理器301用于执行存储器303中存储的程序代码。程序代码中可以包括一个或多个软件模块。Wherein, the
图4为本发明实施例提供的一种车辆400的示意图,该车辆400包括定位模块401、模型请求模块402、车载通信模块403、任务规划模块404、感知模块405、轨迹计算模块406以及车辆控制模块407。4 is a schematic diagram of a vehicle 400 according to an embodiment of the present invention. The vehicle 400 includes a
其中,定位模块401实时采集车辆当前所处的位置信息,并以一定的频率将采集到的位置信息发送至模型请求模块402。The
模型请求模块402用于通过车载通信模块403向服务器请求神经网络模型,也即,模型请求模块402用于通过车载通信模块403向服务器发送模型获取请求,该模型获取请求包括车辆当前所处的目标位置。当模型请求模块402通过车载通信模块403接收到服务器返回的神经网络模型时,存储该神经网络模型。The
可选地,当上述图2所示的服务器中的模型推送模块208通过广播的方式向一定范围内的车辆推送神经网络模型时,该模型请求模块402用于直接通过车载通信模块403接收服务器推送的神经网络模型,并存储该神经网络模型。Optionally, when the
另外,由于不同的路段对应不同的神经网络模型时,该模型请求模块402还用于根据采集到的位置信息检查本地是否具有当前行驶路段对应的神经网络模型,当发现本地不存在该神经网络模型时,再通过服务器获取该神经网络模型。In addition, since different road sections correspond to different neural network models, the
任务规划模块404用于确定车辆的行驶任务。感知模块405用于确定车辆的行驶信息、障碍车辆的行驶信息以及信号灯状态等信息。其中,行驶信息包括当前所处的位置、行驶方向和行驶速度等信息。The
轨迹计算模块406用于根据任务规划模块404和感知模块405确定的数据,通过模型请求模块402获取的神经网络模型,确定车辆的行驶轨迹。车辆控制模块407用于控制车辆按照轨迹计算模块406确定的行驶轨迹行驶。The
图5为本发明实施例提供的另一种车辆500的结构示意图,该车辆500用于实现上述图4所示的车辆400包括的各个模块的功能。具体地,如图5所示,该车辆500包括至少一个处理器501,通信总线502,存储器503以及至少一个通信接口504。FIG. 5 is a schematic structural diagram of another vehicle 500 according to an embodiment of the present invention, where the vehicle 500 is used to implement the functions of each module included in the vehicle 400 shown in FIG. 4 . Specifically, as shown in FIG. 5 , the vehicle 500 includes at least one
其中,处理器501和图3所示的处理器301的结构以及功能基本相同,通信总线502和图3所示的通信总线502的结构以及功能基本相同,存储器503和图3所示的存储器503的结构以及功能基本相同,通信接口504和图3所示的通信接口504的结构以及功能基本相同,在此不再详细阐述。,The structure and functions of the
不同之处在于,存储器503用于存储执行本申请方案的程序代码,并由处理器501来控制执行,以实现根据训练的神经网络模型为车辆规划行驶轨迹。The difference is that the
下面将结合附图对本发明实施例作进一步地详细描述。The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
图6A是本发明实施例提供的一种规划行驶轨迹的方法流程图,该方法应用于图1所示的系统中,为了后续便于说明,将当前需要规划行驶轨迹的车辆称为第一车辆。如图6A所示,该方法包括如下步骤:6A is a flowchart of a method for planning a driving trajectory provided by an embodiment of the present invention. The method is applied to the system shown in FIG. 1 . For the convenience of subsequent description, the vehicle that currently needs to plan a driving trajectory is referred to as the first vehicle. As shown in Figure 6A, the method includes the following steps:
步骤601:服务器从存储的神经网络模型中确定与第一车辆当前所处的目标位置所在的路段对应的目标神经网络模型,该目标神经网络模型是服务器根据多个第二车辆的行驶轨迹训练得到的,该多个第二车辆是指当前时间之前经过该目标位置所在的路段的车辆。Step 601: The server determines, from the stored neural network model, a target neural network model corresponding to the road section where the target position of the first vehicle is currently located. Yes, the plurality of second vehicles refer to vehicles passing through the road section where the target position is located before the current time.
由于实际应用中,不同路段的地理形势差距很大,比如不同路段的道路平整程度以及道路上的固定障碍物都有可能不同,因此,在本发明实施例中,服务器可以预先针对不同的路段训练不同的神经网络模型。由于不同的路段对应不同的神经网络模型,因此,当第一车辆当前处于目标位置时,服务器可以确定与该目标位置所在的路段对应的目标神经网络模型。In practical applications, the geographical situation of different road sections is very different, for example, the road leveling degree and the fixed obstacles on the road may be different for different road sections. Therefore, in this embodiment of the present invention, the server can be trained for different road sections in advance. Different neural network models. Since different road sections correspond to different neural network models, when the first vehicle is currently at the target position, the server may determine the target neural network model corresponding to the road section where the target position is located.
特别地,由于路口处的地理形势较为复杂,第一车辆经过路口处的事故发生率较高,而其他非路口处的路段的地理形势则相对简单些,因此,在本发明实施例中,服务器可以仅仅针对不同的路口训练不同的神经网络模型。也即,当目标位置所在的路段为路口时,此时该目标神经网络模型是与该路口对应的神经网络模型。In particular, since the geographical situation at the intersection is relatively complex, the accident rate of the first vehicle passing through the intersection is relatively high, while the geographical situation of other road sections not at the intersection is relatively simple. Therefore, in this embodiment of the present invention, the server Different neural network models can be trained just for different intersections. That is, when the road section where the target position is located is an intersection, the target neural network model is the neural network model corresponding to the intersection at this time.
需要说明的是,在本发明实施例中,该路口可以为两条不同的道路交叉处所有分支路口,也可以为该两条不同的道路交叉处所有分支路口的任一分支路口。比如,如图6B所示,道路1和道路2在交叉处形成一个十字路口,该十字路口在东南西北四个朝向上分别包括四个不同的分支路口。It should be noted that, in this embodiment of the present invention, the intersection may be all branch intersections at the intersection of two different roads, or may be any branch intersection of all branch intersections at the intersection of the two different roads. For example, as shown in FIG. 6B , road 1 and road 2 form an intersection at the intersection, and the intersection includes four different branch intersections in four directions of south, east, and northwest respectively.
其中,当本发明实施例中的路口为该十字路口时,此时服务器是根据经过该十字路口包括的所有分支路口的历史行驶轨迹确定与该路口对应的神经网络模型。当本发明实施例中的路口可以为该十字路口中的任一朝向的分支路口时,此时服务器是根据经过该十分支路口的历史行驶轨迹确定与该分支路口对应的神经网络模型,也即,在该十字路口上,可以针对每个朝向上的分支路口,训练4个不同的神经网络模型。Wherein, when the intersection in the embodiment of the present invention is the intersection, the server determines the neural network model corresponding to the intersection according to the historical driving trajectories of all branch intersections included in the intersection. When the intersection in the embodiment of the present invention can be a branch intersection in any direction of the intersection, at this time, the server determines the neural network model corresponding to the branch intersection according to the historical driving trajectory passing through the branch intersection, that is, At this intersection, 4 different neural network models can be trained for each branched intersection that faces upwards.
另外,对于同一个路段,不同的行驶任务在该路段处对应的行驶轨迹之间的差距较大。而在训练神经网络的过程中,是需要针对一类具有某个统一规律的训练样本进行分析,因此,在本发明实施例中,为了便于神经网络模型能够学习训练样本中的数据的规律,对于同一个路段,可以按照行驶任务分别训练不同的神经网络模型。也即在该路段处,针对每个行驶任务训练一个神经网络模型。In addition, for the same road segment, the difference between the corresponding driving trajectories of different driving tasks at the road segment is relatively large. In the process of training the neural network, it is necessary to analyze a class of training samples with a certain uniform rule. Therefore, in this embodiment of the present invention, in order to facilitate the neural network model to learn the rules of the data in the training samples, for For the same road section, different neural network models can be trained according to the driving task. That is, at this road segment, a neural network model is trained for each driving task.
此时,当第一车辆需确定行驶轨迹时,服务器确定的是与第一车辆行驶任务和目标位置所在的路段均对应的目标神经网络模型。相应地,服务器在根据多个第二车辆的行驶轨迹训练该目标神经网络模型时,该多个第二车辆是指当前时间之前经过该目标位置所在的路段且行驶任务与该第一车辆的行驶任务相同的车辆。At this time, when the first vehicle needs to determine the driving trajectory, the server determines the target neural network model corresponding to both the driving task of the first vehicle and the road section where the target position is located. Correspondingly, when the server trains the target neural network model according to the driving trajectories of a plurality of second vehicles, the plurality of second vehicles refer to the road section where the target position is located before the current time and the driving task is the same as the driving of the first vehicle. Vehicles with the same mission.
其中,服务器根据多个第二车辆的行驶轨迹训练得到目标神经网络模型的实现方式将在下述实施例中进行详细说明,在此先不阐述。The implementation manner of the server obtaining the target neural network model by training according to the driving trajectories of a plurality of second vehicles will be described in detail in the following embodiments, and will not be described here.
步骤602:服务器向第一车辆发送该目标神经网络模型。Step 602: The server sends the target neural network model to the first vehicle.
服务器在通过步骤601确定出该目标神经网络模型之后,向第一车辆发送该目标神经网络模型,以便于第一车辆通过下述步骤603和步骤604根据该目标神经网络模型确定第一车辆的行驶轨迹。After determining the target neural network model in
步骤603:第一车辆接收服务器发送的目标神经网络模型。Step 603: The first vehicle receives the target neural network model sent by the server.
当第一车辆接收到服务器发送的目标神经网络模型时,可以通过下述步骤604确定第一车辆的行驶轨迹。When the first vehicle receives the target neural network model sent by the server, the following
步骤604:第一车辆根据第一车辆的行驶任务和行驶信息,以及第一障碍车辆的行驶信息,通过该目标神经网络模型确定第一车辆的行驶轨迹,其中,行驶任务包括直行、左转、右转和掉头,行驶信息包括当前所处的位置、行驶方向和行驶速度,第一障碍车辆为与第一车辆之间的距离小于预设距离阈值的车辆。Step 604: The first vehicle determines the driving trajectory of the first vehicle through the target neural network model according to the driving task and driving information of the first vehicle and the driving information of the first obstacle vehicle, wherein the driving tasks include going straight, turning left, Right turn and U-turn, the travel information includes current location, travel direction and travel speed, and the first obstacle vehicle is a vehicle whose distance from the first vehicle is less than a preset distance threshold.
在本发明实施例中,服务器可以根据在预设时间段内经过该目标位置所在的路段的所有第二车辆的行驶轨迹,训练初始化的神经网络模型,得到与该目标位置所在的路段对应的目标神经网络模型,以便于第一车辆根据该目标神经网络模型确定行驶轨迹。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,不仅考虑了该第一车辆和第一障碍车辆的行驶信息,还参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,以降低第一车辆按照确定出的行驶轨迹行驶时的事故发生率,也即,提高了该确定出的行驶轨迹的可行性。In the embodiment of the present invention, the server may train the initialized neural network model according to the travel trajectories of all second vehicles passing through the road section where the target position is located within a preset time period, and obtain the target corresponding to the road section where the target position is located A neural network model, so that the first vehicle can determine the driving trajectory according to the target neural network model. That is, when the first vehicle determines its own driving trajectory through the target neural network model at the target position, it not only considers the driving information of the first vehicle and the first obstacle vehicle, but also refers to the location where the target position passed before the current time. The driving trajectories of a plurality of second vehicles on the road segment are determined, so as to reduce the accident rate when the first vehicle travels according to the determined driving trajectory, that is, to improve the feasibility of the determined driving trajectory.
图7是本发明实施例提供的另一种规划行驶轨迹的方法流程图,该方法应用于图1所示的系统中。其中,图7所示的实施例是对图6A所示的实施例的进一步详细说明,如图7所示,该方法包括以下步骤:FIG. 7 is a flowchart of another method for planning a driving trajectory provided by an embodiment of the present invention, and the method is applied to the system shown in FIG. 1 . The embodiment shown in FIG. 7 is a further detailed description of the embodiment shown in FIG. 6A . As shown in FIG. 7 , the method includes the following steps:
步骤701:服务器确定预设时间段内经过该目标位置所在的路段的所有第二车辆的行驶轨迹,目标位置为第一车辆当前所处的位置。Step 701: The server determines the travel trajectories of all the second vehicles passing through the road section where the target position is located within a preset time period, where the target position is the current position of the first vehicle.
在本发明实施例中,由于目标神经网络模型是服务器根据多个第二车辆的行驶轨迹训练得到的,因此服务器在向第一车辆发送该目标神经网络模型之前,还需对该多个第二车辆的行驶轨迹进行训练,以确定该目标神经网络模型。具体地,可以通过步骤701至步骤705确定该目标神经网络模型。In this embodiment of the present invention, since the target neural network model is obtained by the server through training according to the driving trajectories of multiple second vehicles, before the server sends the target neural network model to the first vehicle, the The driving trajectory of the vehicle is trained to determine the target neural network model. Specifically, the target neural network model can be determined through
另外,为了便于神经网络模型能够学习训练样本中的数据的规律,对于同一个路段,可以按照行驶任务分别训练不同的神经网络模型。由于训练不同的神经网络模型的区别在于训练样本的不同,因此,在本发明实施例中,以训练与该目标位置所在的路段对应的神经网络模型为例进行说明,其他类型的神经网络模型的训练过程不再详细说明。In addition, in order to facilitate the neural network model to learn the law of the data in the training samples, for the same road section, different neural network models can be trained separately according to the driving task. Since the difference between training different neural network models lies in the different training samples, in this embodiment of the present invention, the training of the neural network model corresponding to the road section where the target position is located is taken as an example for description. The training process is no longer detailed.
值得注意的是,训练神经网络的关键在于确定训练样本,当需要训练与该目标位置所在的路段对应的神经网络模型时,需根据当前时间之前经过该目标位置所在的路段的行驶轨迹确定训练样本。It is worth noting that the key to training the neural network is to determine the training samples. When training the neural network model corresponding to the road section where the target position is located, the training sample needs to be determined according to the driving trajectory of the road section where the target position is located before the current time. .
另外,由于当前时间之前经过该目标位置所在的路段的行驶轨迹可能数量较多,且在当前时间之前该目标位置所在的路段的地理形势也可能发生变化,也即距离当前时间较长时发生的行驶轨迹的数据可能已经失效,因此,只需根据预设时间段内的历史行驶轨迹训练神经网络模型即可。In addition, since there may be a large number of driving trajectories passing through the road section where the target position is located before the current time, and the geographical situation of the road section where the target position is located before the current time may also change, that is, the situation that occurs when the distance from the current time is long. The data of the driving trajectories may have become invalid, so it is only necessary to train the neural network model according to the historical driving trajectories within a preset time period.
比如,该预设时间段可以为当前时间之前的1个月,此时只需根据当前时间之前的1个月内经过该目标位置所在的路段的第二车辆的行驶轨迹确定神经网络模型即可。For example, the preset time period may be one month before the current time, and in this case, the neural network model only needs to be determined according to the driving trajectory of the second vehicle passing through the road section where the target position is located within one month before the current time. .
具体地,确定在第一时刻经过该目标位置所在的路段的第二车辆,该第一时刻是指该预设时间段内的任一时刻,对于确定得到的任一第二车辆,确定该第二车辆经过该目标位置所在的路段的行驶过程中的多个第二时刻,基于在每个第二时刻时该第二车辆的行驶信息确定该第二车辆的行驶轨迹。Specifically, determine the second vehicle that passes through the road section where the target position is located at the first moment, where the first moment refers to any moment within the preset time period, and for any second vehicle that is determined to be obtained, determine the second vehicle. The driving track of the second vehicle is determined based on the driving information of the second vehicle at each of the second moments during the driving process of the two vehicles passing through the road section where the target position is located.
在一种可能的实现方式中,为了确定在该预设时间段内经过该目标位置所在的路段的所有的行驶轨迹,可以将该预设时间段内划分出多个第一时刻,确定每个第一时刻经过该目标位置所在的路段的第二车辆,所有第一时刻经过该目标位置所在的路段的第二车辆即为在预设时间段内经过该目标位置所在的路段的所有车辆。In a possible implementation manner, in order to determine all the driving trajectories passing through the road section where the target position is located within the preset time period, the preset time period may be divided into a plurality of first moments, and each The second vehicles passing through the road section where the target position is located at the first moment, all the second vehicles passing through the road section where the target position is located at the first moment are all vehicles passing through the road section where the target position is located within the preset time period.
其中,每个第二车辆的行驶轨迹是由该第二车辆经过该路口的各个第二时刻的行驶信息组成,该行驶信息包括该第二车辆在该第二时刻时当前所处的位置、行驶方向以及行驶速度等信息。Wherein, the driving track of each second vehicle is composed of driving information at each second moment when the second vehicle passes through the intersection, and the driving information includes the current position of the second vehicle at the second moment, and the driving information. information such as direction and driving speed.
具体地,通过图2所示的数据存储模块确定数据采集模块在预设时间段内的在该目标位置所在的路段处采集的视频,并通过图2所示的时间轨迹分析确定每个第二车辆的行驶轨迹。Specifically, the video collected by the data acquisition module at the road section where the target position is located within a preset time period is determined by the data storage module shown in FIG. 2, and each second is determined by the time trajectory analysis shown in FIG. 2. The trajectory of the vehicle.
在本发明实施例中,为了实现通过神经网络模型得到可行的行驶轨迹,应采用历史行驶轨迹中比较优秀的行驶轨迹训练神经网络模型。也即,在确定预设时间段内经过该目标位置所在的路段的所有第二车辆的行驶轨迹之后,还需确定其中优秀的行驶轨迹。In the embodiment of the present invention, in order to obtain a feasible driving trajectory through the neural network model, the neural network model should be trained by using a relatively excellent driving trajectory in the historical driving trajectory. That is, after determining the driving trajectories of all the second vehicles passing through the road section where the target position is located within the preset time period, it is also necessary to determine the excellent driving trajectories among them.
其中,当该目标位置所在的路段为路口时,服务器具体可以通过下述步骤702和步骤703来确定每个行驶轨迹的评分,以便于通过下述步骤704根据每个行驶轨迹的评分确定其中优秀的行驶轨迹。Wherein, when the road section where the target position is located is an intersection, the server can specifically determine the score of each driving track through the following
可选地,当该目标位置所在的路段为其他类型的路段时,同样可以参考下述步骤702至步骤704确定其中优秀的行驶轨迹,在此不再详细阐述。Optionally, when the road segment where the target position is located is another type of road segment, the following
步骤702:服务器对于所有第二车辆中的任一第二车辆,根据该第二车辆的行驶轨迹确定该第二车辆在行驶过程中的行驶状况,该行驶状况包括发生碰撞的次数、是否遵守交通规则、变道次数、行驶时长以及是否为平稳驾驶。Step 702: For any second vehicle among all the second vehicles, the server determines the driving condition of the second vehicle during the driving process according to the driving track of the second vehicle, and the driving condition includes the number of collisions and whether the traffic is obeyed. The rules, the number of lane changes, the duration of the drive, and whether it was a smooth ride.
其中,确定发生碰撞次数具体可以为:确定第三障碍车辆在经过该路口时的行驶轨迹,该第三障碍车辆为与该第二车辆的距离小于预设距离阈值的车辆。根据该第二车辆的行驶轨迹和该第三障碍车辆的行驶轨迹,确定该第二车辆与该第三障碍车辆之间发生碰撞的次数。Wherein, determining the number of collisions may specifically include: determining a driving trajectory of a third obstacle vehicle when passing through the intersection, where the third obstacle vehicle is a vehicle whose distance from the second vehicle is less than a preset distance threshold. The number of collisions between the second vehicle and the third obstacle vehicle is determined according to the travel trajectory of the second vehicle and the travel trajectory of the third obstacle vehicle.
由于第二车辆的行驶轨迹为由该第二车辆经过该路口的各个第二时刻的行驶信息组成,因此,第三障碍车辆的行驶轨迹也是由该第三障碍车辆的各个第二时刻的行驶信息组成,也即,第二车辆的行驶轨迹和第三障碍车辆的行驶轨迹中的时刻一一对应。此时,确定该第二车辆与该第三障碍车辆之间发生碰撞的次数的实现方式可以为:对于每个第二时刻,确定第二车辆当前所处的位置和第三障碍车辆当前所处的位置,若第二车辆当前所处的位置与第三障碍车辆当前所处的位置之间的距离小于预设碰撞距离,则确定在该第二时刻,第二车辆与该第三障碍车辆之间发生碰撞。Since the driving track of the second vehicle is composed of the driving information of the second vehicle at each second time when the second vehicle passes the intersection, the driving track of the third obstacle vehicle is also composed of the driving information of the third obstacle vehicle at each second time. The composition, that is, the travel trajectory of the second vehicle and the time instants in the travel trajectory of the third obstacle vehicle are in one-to-one correspondence. At this time, an implementation manner of determining the number of collisions between the second vehicle and the third obstacle vehicle may be: for each second moment, determining the current position of the second vehicle and the current position of the third obstacle vehicle If the distance between the current position of the second vehicle and the current position of the third obstacle vehicle is less than the preset collision distance, it is determined that at the second moment, the distance between the second vehicle and the third obstacle vehicle is collision occurs.
其中,预设碰撞距离为预先设置的距离,该预设碰撞距离可以为0.1m、0.15m或0.2m等。The preset collision distance is a preset distance, and the preset collision distance may be 0.1m, 0.15m, or 0.2m.
其次,确定第二车辆是否遵守交通规则具体可以为:确定该第二车辆经过该路口的过程中该路口对应的信号灯状态,根据该第二车辆的行驶轨迹和该第二车辆经过该路口的过程中该路口处对应的信号灯状态,确定该第二车辆是否遵守交通规则。Secondly, determining whether the second vehicle complies with the traffic rules may specifically include: determining the state of the signal light corresponding to the intersection during the process of the second vehicle passing through the intersection, and according to the driving track of the second vehicle and the process of the second vehicle passing through the intersection It is determined whether the second vehicle complies with the traffic rules according to the state of the corresponding signal light at the intersection.
也即,在第二车辆在各个第二时刻行驶的过程中,确定该各个第二时刻该路口处对应的信号灯状态,对于每个第二时刻,在该第二时刻时,若与该路口处对应的信号灯状态为红灯,则表明此时该第二车辆没有遵守交通规则,若与该路口处对应的信号灯状态为绿灯,则表明此时该第二车辆遵守交通规则。That is, in the process of the second vehicle traveling at each second time, the state of the signal light corresponding to the intersection at each second time is determined, and for each second time, at the second time, if it is the same as the intersection If the state of the corresponding signal light is red, it means that the second vehicle is not complying with the traffic rules. If the state of the signal light corresponding to the intersection is green, it means that the second vehicle is complying with the traffic rules.
另外,根据该第二车辆的行驶轨迹,确定该第二车辆的变道次数、行驶时长以及是否为平稳驾驶。In addition, according to the driving track of the second vehicle, determine the number of lane changes, the driving time and whether the second vehicle is driving smoothly.
其中,为了使该行驶时长可以准确描述该第二车辆经过该路口的时长,确定行驶时长具体可以为:确定第二车辆经过该路口的时间,根据该时间内对应的信号灯状态,确定信号灯为红灯时的禁止通行时长,从第二车辆经过该路口的时间中减去该禁止通信时长,得到的时间即为该行驶时长。Wherein, in order for the driving duration to accurately describe the duration of the second vehicle passing through the intersection, determining the driving duration may specifically include: determining the time for the second vehicle to pass through the intersection, and determining that the signal light is red according to the corresponding signal light status during the time. For the prohibition time of traffic when the light is on, the time for prohibition of communication is subtracted from the time when the second vehicle passes through the intersection, and the obtained time is the driving time.
确定第二车辆是否为平稳驾驶具体可以为:确定各个第二时刻该第二车辆的行驶速度,对各个第二时刻该第二车辆的行驶速度进行方差计算,得到速度方差。由于方差可以描述一组数据的离散程度,因此,若该速度方差大于预设方差,表明第二车辆的速度不稳定,也即第二车辆不是平稳驾驶,若该速度方差小于预设方差,表明第二车辆的速度稳定,也即第二车辆是平稳驾驶。Determining whether the second vehicle drives smoothly may specifically include: determining the traveling speed of the second vehicle at each second moment, and performing variance calculation on the traveling speed of the second vehicle at each second moment to obtain the speed variance. Since the variance can describe the degree of dispersion of a set of data, if the speed variance is greater than the preset variance, it indicates that the speed of the second vehicle is unstable, that is, the second vehicle is not driving smoothly. If the speed variance is less than the preset variance, it indicates that The speed of the second vehicle is stable, ie the second vehicle is driving smoothly.
步骤703:服务器根据该第二车辆在行驶过程中的行驶状况,确定该第二车辆的行驶轨迹的评分。Step 703: The server determines the score of the driving track of the second vehicle according to the driving condition of the second vehicle during the driving process.
为了确定所有第二车辆的行驶轨迹中优秀的行驶轨迹,可以对每个第二车辆的行驶轨迹进行评分。其中,评分的标准即为该第二车辆在行驶过程中的行驶状况。In order to determine the best travel trajectory among the travel trajectories of all the second vehicles, the travel trajectory of each second vehicle may be scored. Wherein, the scoring standard is the driving condition of the second vehicle during the driving process.
具体地,如果该第二车辆在行驶过程中发生碰撞的次数大于或等于预设碰撞次数,则确定碰撞评分为第一评分,否则,确定该碰撞评分为第二评分,其中,碰撞评分与发生碰撞的次数呈负相关关系。Specifically, if the number of collisions of the second vehicle during driving is greater than or equal to the preset number of collisions, the collision score is determined to be the first score; otherwise, the collision score is determined to be the second score, where the collision score and the occurrence The number of collisions is negatively correlated.
如果该第二车辆遵守交通规则,则确定交通规则评分为第三评分,否则,确定该交通规则评分为第四评分。If the second vehicle complies with the traffic rules, the traffic rule score is determined to be the third score, otherwise, the traffic rule score is determined to be the fourth score.
如果该第二车辆在行驶过程中的变道次数大于或等于该第二车辆经过该路口所需的最小变道次数,则确定变道评分为第五评分,否则,确定该变道评分为第六评分,其中,变道评分与变道次数呈负相关关系。If the number of lane changes of the second vehicle during driving is greater than or equal to the minimum number of lane changes required for the second vehicle to pass through the intersection, the lane change score is determined to be the fifth score; otherwise, the lane change score is determined to be the fifth score. Six scores, of which the lane change score was negatively correlated with the number of lane changes.
如果该第二车辆经过该路口的行驶时长大于或等于预设行驶时长,则确定时长评分为第七评分,否则,确定该时长评分为第八评分,其中,时长评分与行驶时长呈负相关关系。If the driving duration of the second vehicle passing through the intersection is greater than or equal to the preset driving duration, the duration score is determined to be the seventh score, otherwise, the duration score is determined to be the eighth score, wherein the duration score is negatively correlated with the driving duration .
如果该第二车辆是平稳驾驶,则确定驾驶评分为第九评分,否则,确定该驾驶评分为第十评分。If the second vehicle is driving smoothly, the driving score is determined to be the ninth score, otherwise, the driving score is determined to be the tenth score.
将该碰撞评分、该交通规则评分、该变道评分、该时长评分和该驾驶评分之和确定为该第二车辆的行驶轨迹的评分。The sum of the collision score, the traffic rule score, the lane change score, the duration score and the driving score is determined as the score of the driving trajectory of the second vehicle.
其中,第一评分、第二评分、第三评分、第四评分、第五评分、第六评分、第七评分、第八评分、第九评分和第十评分为预设设置的分数,该预设设置的分数可以为任意分数,只需满足上述条件即可。Among them, the first score, the second score, the third score, the fourth score, the fifth score, the sixth score, the seventh score, the eighth score, the ninth score and the tenth score are preset scores. The set score can be any score, as long as the above conditions are met.
比如,第二评分、第三评分、第六评分、第八评分以及第九评分设置为+5分,第一评分、第四评分、第五评分以及第十评分设置为-5分。如果该第二车辆在行驶过程中发生碰撞的次数大于或等于预设碰撞次数,则确定碰撞评分为+5分,也即,此时该第二车辆的行驶轨迹的评分将加5分。如果该第二车辆没有遵守交通规则,则确定交通规则评分为-5分,也即,此时该第二车辆的行驶轨迹的评分将减5分。For example, the second score, the third score, the sixth score, the eighth score and the ninth score are set as +5 points, and the first score, the fourth score, the fifth score and the tenth score are set as -5 points. If the number of collisions of the second vehicle during driving is greater than or equal to the preset number of collisions, the collision score is determined to be +5 points, that is, the score of the driving track of the second vehicle will be increased by 5 points at this time. If the second vehicle does not comply with the traffic rules, it is determined that the traffic rule score is -5 points, that is, the score of the driving track of the second vehicle will be reduced by 5 points at this time.
也即,在本发明实施例中,可以通过上述步骤701至步骤703确定预设时间段内经过该目标位置所在的路段的所有第二车辆的行驶轨迹和每个行驶轨迹的评分。That is, in this embodiment of the present invention, the
例如,将预设时间段内划分出多个第一时刻标记为t0、t1、t2、…、tm,从第一个第一时刻t0开始,确定该第一时刻t0通过该路口的第二车辆以及第二车辆的行驶轨迹,并通过上述步骤802和步骤803确定该行驶轨迹的评分。继续下一个时刻t1,重复上述过程,确定该第一时刻t1通过该路口的第二车辆的行驶轨迹评分,…,依次类推,直至确定出最后一个第一时刻tm通过该路口的第二车辆的行驶轨迹评分。For example, a plurality of first moments in a preset time period are divided and marked as t0, t1, t2, ..., tm, and starting from the first first moment t0, determine the second vehicle passing through the intersection at the first moment t0 and the driving track of the second vehicle, and determine the score of the driving track through the
步骤704:服务器从获取到的所有行驶轨迹中选择评分大于预设评分的N个行驶轨迹,N大于1且小于或等于获取到的行驶轨迹的总数量。Step 704: The server selects N driving trajectories with a score greater than a preset score from all the acquired driving trajectories, where N is greater than 1 and less than or equal to the total number of the acquired driving trajectories.
由于行驶轨迹的评分是根据第二车辆在行驶过程中的行驶状况确定的,因此行驶轨迹的评分可以用于描述该行驶轨迹的优秀程度,也即,该行驶轨迹的评分越高,表明该行驶轨迹越优秀。因此,通过步骤704可以得到历史行驶轨迹中比较优秀的行驶轨迹。Since the score of the driving track is determined according to the driving condition of the second vehicle during the driving process, the score of the driving track can be used to describe the excellent degree of the driving track, that is, the higher the score of the driving track, the higher the score of the driving track is. The better the track. Therefore, through
其中,预设评分为预先设置的评分,该预设评分可以为80分、90分或95分等。The preset score is a preset score, and the preset score may be 80 points, 90 points, or 95 points.
步骤705:服务器通过N个行驶轨迹对初始化的神经网络模型进行训练,得到目标神经网络模型。Step 705: The server trains the initialized neural network model through the N driving trajectories to obtain the target neural network model.
对于本发明实施例中的神经网络模型的训练样本,该训练样本包括多个自变量和与多个自变量一一对应的多个因变量,为了便于说明,将多个自变量标记为x1、x2、…、xn,将与多个自变量一一对应的多个因变量标记为y1、y2、…、yn。训练神经网络模型,也即,使初始化的神经网络模型学习该多个自变量和与多个自变量一一对应的多个因变量之间的映射关系,得到y=f(x),该y=f(x)即为训练之后的神经网络模型。For the training sample of the neural network model in the embodiment of the present invention, the training sample includes multiple independent variables and multiple dependent variables corresponding to the multiple independent variables one-to-one. For the convenience of description, the multiple independent variables are marked as x1, x2,...,xn, mark multiple dependent variables corresponding to multiple independent variables as y1, y2,...,yn. Train the neural network model, that is, make the initialized neural network model learn the mapping relationship between the multiple independent variables and the multiple dependent variables corresponding to the multiple independent variables one-to-one to obtain y=f(x), the y =f(x) is the neural network model after training.
因此,上述步骤705具体可以为,确定该N个第二车辆的行驶任务和行驶信息,以及N个第三障碍车辆的行驶信息,该N个第二车辆为该N个行驶轨迹对应的车辆,该N个第二障碍车辆与该N个第二车辆一一对应,且第二障碍车辆为与对应的第二车辆之间的距离小于预设距离阈值的车辆。Therefore, the
将该N个第二车辆的行驶任务和行驶信息,以及该N个第二障碍车辆的行驶信息作为该初始化的神经网络模型的输入,将该N个第二车辆的行驶轨迹作为该初始化的神经网络模型的输出,对该初始化的神经网络模型进行训练,得到与该目标位置所在的路段对应的神经网络模型。The driving tasks and driving information of the N second vehicles and the driving information of the N second obstacle vehicles are used as the input of the initialized neural network model, and the driving trajectories of the N second vehicles are used as the initialized neural network model. The output of the network model is used to train the initialized neural network model to obtain a neural network model corresponding to the road section where the target position is located.
进一步地,当该目标位置所在的路段为路口时,上述步骤705具体可以为:确定该N个第二车辆的行驶任务和行驶信息,该路口处与该N个第二车辆一一对应的N个信号灯状态,以及N个第二障碍车辆的行驶信息Further, when the road section where the target position is located is an intersection, the
将该N个第二车辆的行驶任务和行驶信息、该N个信号灯状态,以及该N个第二障碍车辆的行驶信息作为该初始化的神经网络模型的输入,将该N个第二车辆的行驶轨迹作为该初始化的神经网络模型的输出,对该初始化的神经网络模型进行训练,得到与该路口对应的神经网络模型。The driving tasks and driving information of the N second vehicles, the state of the N signal lights, and the driving information of the N second obstacle vehicles are used as the input of the initialized neural network model, and the driving of the N second vehicles The trajectory is used as the output of the initialized neural network model, and the initialized neural network model is trained to obtain the neural network model corresponding to the intersection.
也即,将该N个第三车辆的行驶任务和行驶信息、该路口处与该N个第二车辆一一对应的信号灯状态,以及该N个第二障碍车辆的行驶信息作为训练样本中的自变量,将该N个第二车辆的行驶轨迹作为训练样本的因变量,以确定自变量和因变量之间的映射关系y=f(x),也即,确定神经网络模型。That is, the driving tasks and driving information of the N third vehicles, the signal light states at the intersection and the N second vehicles corresponding to each other, and the driving information of the N second obstacle vehicles are used as the training samples. As independent variables, the driving trajectories of the N second vehicles are used as the dependent variables of the training samples to determine the mapping relationship y=f(x) between the independent variables and the dependent variables, that is, to determine the neural network model.
由于训练样本的数据是从在预设时间段内经过该路口的所有第二车辆的行驶轨迹中确定的,因此得到的神经网络模型为与该路口对应的神经网络模型。Since the data of the training samples are determined from the travel trajectories of all the second vehicles passing through the intersection within the preset time period, the obtained neural network model is the neural network model corresponding to the intersection.
需要说明的是,服务器在确定出为与该目标位置所在的路段对应的神经网络模型之后,可以存储该神经网络模型,也即,在服务器中存储有神经网络模型与该目标位置所在的路段之间的对应关系,也即,一个路段对应一个神经网络模型。It should be noted that after the server determines the neural network model corresponding to the road section where the target position is located, the neural network model can be stored, that is, the server stores the neural network model and the road section where the target position is located. The corresponding relationship between, that is, a road segment corresponds to a neural network model.
之后,服务器可以根据第一车辆发送的模型获取请求向第一车辆发送与该第一车辆当前所处的目标位置对应的目标神经网络模型。或者,服务器以广播的方式向经过该路段的车辆推送该路段对应的神经网络模型。Afterwards, the server may send the target neural network model corresponding to the target position where the first vehicle is currently located to the first vehicle according to the model acquisition request sent by the first vehicle. Alternatively, the server pushes the neural network model corresponding to the road segment to vehicles passing through the road segment in a broadcast manner.
由上述步骤701至步骤705可知,为了得到与该目标位置所在的路段对应的神经网络模型,可以根据该预设时间段内经过该目标位置所在的路段的行驶轨迹确定训练样本。因此,对于某个路段,若想得到与某个行驶任务对应的神经网络模型,则可以根据经过该路段且行驶任务为该行驶任务的行驶轨迹确定训练样本,在得到训练样本之后,通过训练样本训练对应的神经网络模型的过程则和上述训练神经网络模型的过程基本相同,本发明实施例在此不再详细说明。As can be seen from the
也即,通过上述步骤701至步骤705,服务器可以预先针对不同的路段训练不同的神经网络模型,以便于第一车辆通过当前所处的目标位置所在的路段对应的目标神经网络模型确定行驶轨迹。具体地,可以通过下述步骤706至步骤707确定第一车辆的行驶轨迹。That is, through the
步骤706:服务器从存储的神经网络模型中确定与第一车辆当前所处的目标位置所在的路段对应的目标神经网络模型。Step 706: The server determines, from the stored neural network model, a target neural network model corresponding to the road section where the target position of the first vehicle is currently located.
在一种可能的实现方式中,当服务器接收到第一车辆发送的模型获取请求时,根据该模型获取请求中携带的第一车辆当前所处的目标位置,从存储的不同路段对应的神经网络模型中确定该目标位置所在的路段对应的目标神经网络模型,并通过下述步骤707向该第一车辆发送该目标神经网路模型。In a possible implementation manner, when the server receives a model acquisition request sent by the first vehicle, the server stores the neural network corresponding to different road sections according to the current target position of the first vehicle carried in the model acquisition request. The target neural network model corresponding to the road section where the target position is located is determined in the model, and the target neural network model is sent to the first vehicle through the following
在另一种可能的实现方式中,对于该目标位置所在的路段,服务器从存储的不同路段对应的神经网络模型中确定该目标位置所在的路段对应的目标神经网络模型,并通过下述步骤707以广播的方式向处于该路段所在的范围内的车辆推送该目标神经网络模型。相应地,当前处于该目标位置的第一车辆可以直接接收到该目标神经网络模型。In another possible implementation manner, for the road section where the target position is located, the server determines the target neural network model corresponding to the road section where the target position is located from the stored neural network models corresponding to different road sections, and passes the following
步骤707:服务器向第一车辆发送该目标神经网络模型,以使第一车辆通过该目标神经网络模型确定该第一车辆的行驶轨迹。Step 707: The server sends the target neural network model to the first vehicle, so that the first vehicle can determine the travel trajectory of the first vehicle through the target neural network model.
其中,第一车辆具体可以通过下述步骤708和步骤709根据该目标神经网络模型确定行驶轨迹。Wherein, the first vehicle may specifically determine the driving trajectory according to the target neural network model through the following
步骤708:第一车辆接收服务器发送的目标神经网络模型。Step 708: The first vehicle receives the target neural network model sent by the server.
由步骤707可知,在本发明实施例中,第一车辆可以通过两种不同的实现方式从服务器处接收该目标神经网络模型。在此不再详细阐述。It can be known from
步骤709:第一车辆根据第一车辆的行驶任务和行驶信息,以及第一障碍车辆的行驶信息,通过该目标神经网络模型确定第一车辆的行驶轨迹,其中,行驶任务包括直行、左转、右转和掉头,行驶信息包括当前所处的位置、行驶方向和行驶速度,第一障碍车辆为与第一车辆之间的距离小于预设距离阈值的车辆。Step 709: The first vehicle determines the driving trajectory of the first vehicle through the target neural network model according to the driving task and driving information of the first vehicle and the driving information of the first obstacle vehicle, wherein the driving tasks include going straight, turning left, Right turn and U-turn, the travel information includes current location, travel direction and travel speed, and the first obstacle vehicle is a vehicle whose distance from the first vehicle is less than a preset distance threshold.
具体地,步骤709可以通过以下两个步骤来实现:Specifically, step 709 can be implemented by the following two steps:
(1)获取第一车辆的行驶任务、第一车辆的行驶信息,以及第一障碍车辆的行驶信息。(1) Acquire the driving task of the first vehicle, the driving information of the first vehicle, and the driving information of the first obstacle vehicle.
具体地,第一车辆可以通过图4所示的任务规划模块确定自身当前的行驶任务,得到第一车辆的行驶任务。通过定位模块确定自身当前所处的位置,并通过感知模块确定自身的行驶方向和行驶速度,以及第一障碍车辆当前所处的位置、行驶方向和行驶速度等信息,得到第一车辆和第一障碍车辆的行驶信息。Specifically, the first vehicle may determine its current driving task through the task planning module shown in FIG. 4 to obtain the driving task of the first vehicle. Determine your current position through the positioning module, and determine your own driving direction and driving speed through the perception module, as well as the current position, driving direction and driving speed of the first obstacle vehicle, and obtain the first vehicle and the first vehicle. Driving information of obstacle vehicles.
其中,任务规划模块根据预先确定的导航路径和当前所处的位置,确定当前行驶任务为直行、左转、右转还是掉头。定位模块可以通过GPS(Global Positioning System,全球定位系统)技术确定第一车辆当前所处的位置。感知模块可以通过安装于第一车辆的摄像头采集的视频确定第一车辆的行驶方向、行驶速度以及第一障碍车辆的行驶信息。Among them, the task planning module determines whether the current driving task is going straight, turning left, turning right or turning around according to the predetermined navigation path and the current position. The positioning module may determine the current position of the first vehicle through GPS (Global Positioning System, global positioning system) technology. The perception module may determine the driving direction, the driving speed of the first vehicle and the driving information of the first obstacle vehicle through the video collected by the camera installed on the first vehicle.
另外,预设距离阈值为预先设置的距离,当两个车辆之间的距离小于该预设距离阈值时,其中一个车辆的行驶情况可能会对另一个车辆的行驶情况造成影响,此时这两个车辆互为障碍车辆。该预设距离阈值可以为1米、0.75米或0.5米等。In addition, the preset distance threshold is a preset distance. When the distance between two vehicles is less than the preset distance threshold, the driving situation of one vehicle may affect the driving situation of the other vehicle. Each vehicle is an obstacle vehicle. The preset distance threshold may be 1 meter, 0.75 meters, or 0.5 meters.
可选地,当第一车辆当前所处的目标位置所在的路段为路口时,为了减少第一车辆在该路口处行驶时出现交通事故的概率,在确定第一车辆的行驶轨迹时,还需考虑该路口处与该目标位置对应的信号灯状态。Optionally, when the road segment where the target position of the first vehicle is currently located is an intersection, in order to reduce the probability of a traffic accident when the first vehicle is driving at the intersection, when determining the driving trajectory of the first vehicle, it is also necessary to Consider the signal light state at the intersection corresponding to the target location.
因此,第一车辆在获取第一车辆的行驶任务、第一车辆的行驶信息,以及第一障碍车辆的行驶信息之后,还需获取该路口处与该目标位置对应的信号灯状态。Therefore, after acquiring the driving task of the first vehicle, the driving information of the first vehicle, and the driving information of the first obstacle vehicle, the first vehicle also needs to acquire the signal light state corresponding to the target position at the intersection.
(2)根据第一车辆的行驶任务和行驶信息,以及第一障碍车辆的行驶信息,通过该目标神经网络模型确定第一车辆的行驶轨迹。(2) According to the driving task and driving information of the first vehicle, and the driving information of the first obstacle vehicle, determine the driving trajectory of the first vehicle through the target neural network model.
具体地,第一车辆可以将第一车辆的行驶任务、第一车辆的行驶信息、第一障碍车辆的行驶信息作为该神经网络模型的输入,通过与该路段对应的神经网络模型确定第一车辆的行驶轨迹。Specifically, the first vehicle may use the driving task of the first vehicle, the driving information of the first vehicle, and the driving information of the first obstacle vehicle as the input of the neural network model, and determine the first vehicle through the neural network model corresponding to the road section. 's driving trajectory.
由于该目标神经网络模型为根据当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹训练得到的,因此,该目标神经网络模型已经学习到历史行驶轨迹的特征,所以,当将第一车辆的行驶任务、第一车辆的行驶信息和第一障碍车辆的行驶信息作为该目标神经网络模型的输入时,该目标神经网络模型可以通过已经学习到的历史行驶轨迹的特征,确定第一车辆的行驶轨迹。Since the target neural network model is trained according to the driving trajectories of a plurality of second vehicles passing through the road section where the target position is located before the current time, the target neural network model has learned the characteristics of the historical driving trajectories, so when When the driving task of the first vehicle, the driving information of the first vehicle and the driving information of the first obstacle vehicle are used as the input of the target neural network model, the target neural network model can determine the characteristics of the historical driving trajectory that have been learned. The travel trajectory of the first vehicle.
进一步地,当第一车辆当前所处的目标位置所在的路段为路口时,此时,第一车辆可以将第一车辆的行驶任务、第一车辆的行驶信息、第一障碍车辆的行驶信息以及该路口处与该目标位置对应的信号灯状态作为该神经网络模型的输入,通过与该路段对应的神经网络模型确定第一车辆的行驶轨迹。Further, when the road segment where the target position of the first vehicle is currently located is an intersection, at this time, the first vehicle can combine the driving task of the first vehicle, the driving information of the first vehicle, the driving information of the first obstacle vehicle, and the The signal light state corresponding to the target position at the intersection is used as the input of the neural network model, and the driving trajectory of the first vehicle is determined through the neural network model corresponding to the road section.
其中,与该目标位置所在的路段对应的神经网络模型是服务器预先根据经过该路段的历史车辆的历史行驶轨迹训练得到。服务器训练与该目标位置所在的路段对应的神经网络模型将在下述实施例中详细介绍,在此先不解释说明。Wherein, the neural network model corresponding to the road section where the target position is located is obtained by the server through training in advance according to the historical travel trajectories of historical vehicles passing through the road section. The neural network model trained by the server corresponding to the road section where the target position is located will be described in detail in the following embodiments, and will not be explained here.
在本发明实施例中,服务器可以根据在预设时间段内经过该目标位置所在的路段的所有第二车辆的行驶轨迹,训练初始化的神经网络模型,得到与该目标位置所在的路段对应的目标神经网络模型,以便于第一车辆根据该目标神经网络模型确定行驶轨迹。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,不仅考虑了该第一车辆和第一障碍车辆的行驶信息,还参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,以降低第一车辆按照确定出的行驶轨迹行驶时的事故发生率,也即,提高了该确定出的行驶轨迹的可行性。In the embodiment of the present invention, the server may train the initialized neural network model according to the travel trajectories of all second vehicles passing through the road section where the target position is located within a preset time period, and obtain the target corresponding to the road section where the target position is located A neural network model, so that the first vehicle can determine the driving trajectory according to the target neural network model. That is, when the first vehicle determines its own driving trajectory through the target neural network model at the target position, it not only considers the driving information of the first vehicle and the first obstacle vehicle, but also refers to the location where the target position passed before the current time. The driving trajectories of a plurality of second vehicles on the road segment are determined, so as to reduce the accident rate when the first vehicle travels according to the determined driving trajectory, that is, to improve the feasibility of the determined driving trajectory.
除了提供上述实施例所述的规划行驶轨迹的方法,本发明实施例还提供了规划行驶轨迹的装置,下述实施例将对此展开介绍。In addition to providing the method for planning a driving trajectory described in the foregoing embodiments, the embodiments of the present invention also provide a device for planning a driving trajectory, which will be introduced in the following embodiments.
图8是本发明实施例提供的一种规划行驶轨迹的装置800,应用于图1所示的车辆中,如图8所示,该装置800包括接收单元801和第一确定单元802:FIG. 8 is an apparatus 800 for planning a driving trajectory provided by an embodiment of the present invention, which is applied to the vehicle shown in FIG. 1 . As shown in FIG. 8 , the apparatus 800 includes a receiving
接收单元801,用于执行图6A所示的实施例中的步骤603或图7所示的实施例中的步骤708;a receiving
第一确定单元802,用于执行图6A所示的实施例中的步骤604或图7所示的实施例中的步骤709;a first determining
其中,行驶任务包括直行、左转、右转和掉头,行驶信息包括当前所处的位置的位置信息、行驶方向和行驶速度,第一障碍车辆为与第一车辆之间的距离小于预设距离阈值的车辆。Wherein, the driving task includes going straight, turning left, turning right and U-turn, the driving information includes the position information of the current location, the driving direction and the driving speed, and the distance between the first obstacle vehicle and the first vehicle is less than the preset distance Threshold vehicles.
可选地,该目标位置所在的路段为路口;Optionally, the road section where the target position is located is an intersection;
该第一确定单元802,具体用于:The first determining
将第一车辆的行驶任务和行驶信息、第一障碍车辆的行驶信息以及该路口处与该目标位置对应的信号灯状态作为该目标神经网络模型的输入,通过该目标神经网络模型确定第一车辆的行驶轨迹。The driving task and driving information of the first vehicle, the driving information of the first obstacle vehicle, and the signal light state corresponding to the target position at the intersection are used as the input of the target neural network model, and the target neural network model is used to determine the first vehicle. driving track.
可选地,该目标神经网络模型是指与该目标位置所在的路段和第一车辆的行驶任务均对应的神经网络模型,且该多个第二车辆是指当前时间之前经过该目标位置所在的路段且行驶任务与该第一车辆的行驶任务相同的车辆。Optionally, the target neural network model refers to a neural network model corresponding to both the road section where the target position is located and the driving task of the first vehicle, and the plurality of second vehicles refer to vehicles passing through the target position before the current time. A vehicle with the same driving task as the driving task of the first vehicle.
在本发明实施例中,服务器可以根据在预设时间段内经过该目标位置所在的路段的所有第二车辆的行驶轨迹,训练初始化的神经网络模型,得到与该目标位置所在的路段对应的目标神经网络模型,以便于第一车辆根据该目标神经网络模型确定行驶轨迹。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,不仅考虑了该第一车辆和第一障碍车辆的行驶信息,还参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,以降低第一车辆按照确定出的行驶轨迹行驶时的事故发生率,也即,提高了该确定出的行驶轨迹的可行性。In the embodiment of the present invention, the server may train the initialized neural network model according to the travel trajectories of all second vehicles passing through the road section where the target position is located within a preset time period, and obtain the target corresponding to the road section where the target position is located A neural network model, so that the first vehicle can determine the driving trajectory according to the target neural network model. That is, when the first vehicle determines its own driving trajectory through the target neural network model at the target position, it not only considers the driving information of the first vehicle and the first obstacle vehicle, but also refers to the location where the target position passed before the current time. The driving trajectories of a plurality of second vehicles on the road segment are determined, so as to reduce the accident rate when the first vehicle travels according to the determined driving trajectory, that is, to improve the feasibility of the determined driving trajectory.
需要说明的是:上述实施例提供的规划行驶轨迹的装置在规划第一车辆的行驶轨迹时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将第一车辆的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的规划行驶轨迹的装置与上述实施例中的规划行驶轨迹的方法属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when planning the driving trajectory of the first vehicle, the device for planning a driving trajectory provided in the above-mentioned embodiment only takes the division of the above-mentioned functional modules as an example. In practical applications, the above-mentioned functions may be allocated by Different functional modules are completed, that is, the internal structure of the first vehicle is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for planning a driving trajectory provided in the above embodiment and the method for planning a driving trajectory in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which is not repeated here.
图9A是本发明实施例提供的另一种规划行驶轨迹的装置900,应用于图1所示的服务器中,如图9A所示,该装置900包括第二确定单元901和发送单元902:9A is another apparatus 900 for planning a driving trajectory provided by an embodiment of the present invention, which is applied to the server shown in FIG. 1 . As shown in FIG. 9A , the apparatus 900 includes a second determining
第二确定单元901,用于执行图6A所示的实施例中的步骤601或图7所示的实施例中的步骤706;The
发送单元902,用于执行图6A所示的实施例中的步骤602或图7所示的实施例中的步骤707。The sending
可选地,参见图9B,该装置900还包括第三确定单元903、选择单元904和训练单元905:Optionally, referring to FIG. 9B , the apparatus 900 further includes a
第三确定单元903,用于执行图7所示的实施例中的步骤701至步骤703;a third determining
选择单元904,用于执行图7所示的实施例中的步骤704;a
训练单元905,用于执行图7所示的实施例中的步骤705。The
可选地,该训练单元905包括第一确定子单元和训练子单元:Optionally, the
第一确定子单元,用于确定N个第二车辆的行驶任务和行驶信息,以及N个第二障碍车辆的行驶信息;a first determination subunit, configured to determine the driving tasks and driving information of the N second vehicles, and the driving information of the N second obstacle vehicles;
其中,该N个第二车辆为该N个行驶轨迹对应的车辆,该N个第二障碍车辆与该N个第二车辆一一对应,且第二障碍车辆为与对应的第二车辆之间的距离小于预设距离阈值的车辆,该行驶任务包括直行、左转、右转和掉头,该行驶信息包括当前所处的位置、行驶方向和行驶速度;The N second vehicles are vehicles corresponding to the N driving trajectories, the N second obstacle vehicles are in one-to-one correspondence with the N second vehicles, and the second obstacle vehicles are between the corresponding second vehicles The distance of the vehicle is less than the preset distance threshold, the driving task includes going straight, turning left, turning right and U-turn, and the driving information includes the current position, driving direction and driving speed;
训练子单元,用于根据该N个第二车辆的行驶任务和行驶信息、该N个第二障碍车辆的行驶信息以及该N个第二车辆的行驶轨迹,对初始化的神经网络模型进行训练,得到该目标神经网络模型。a training subunit, configured to train the initialized neural network model according to the driving tasks and driving information of the N second vehicles, the driving information of the N second obstacle vehicles and the driving trajectories of the N second vehicles, Get the target neural network model.
可选地,该目标位置所在的路段为路口;Optionally, the road section where the target position is located is an intersection;
该训练单元905还包括第二确定子单元:The
第二确定子单元,用于确定N个信号灯状态,该N个信号灯状态与该N个第二车辆一一对应,每个信号灯状态是指对应的第二车辆在经过该路口时该路口处对应的信号灯状态;The second determination subunit is used to determine N signal light states, the N signal light states are in one-to-one correspondence with the N second vehicles, and each signal light state refers to the corresponding second vehicle at the intersection when passing through the intersection. the status of the signal light;
相应地,该训练子单元,具体用于:Correspondingly, the training subunit is specifically used for:
将该N个第二车辆的行驶任务和行驶信息、该N个第二障碍车辆的行驶信息以及该N个信号灯状态作为该初始化的神经网络模型的输入,将该N个第二车辆的行驶轨迹作为该初始化的神经网络模型的输出,对该初始化的神经网络模型进行训练,得到该目标神经网络模型。The driving tasks and driving information of the N second vehicles, the driving information of the N second obstacle vehicles, and the N signal light states are used as the input of the initialized neural network model, and the driving trajectories of the N second vehicles As the output of the initialized neural network model, the initialized neural network model is trained to obtain the target neural network model.
可选地,该第三确定单元903,具体用于执行图7所示的实施例中的步骤702和步骤703。Optionally, the third determining
可选地,该第二确定单元901,具体用于:Optionally, the second determining
根据该目标位置的位置信息和该第一车辆的行驶任务,从存储的神经网络模型中确定与该目标位置所在的路段和该第一车辆的行驶任务均对应的目标神经网络模型;According to the position information of the target position and the driving task of the first vehicle, determine the target neural network model corresponding to both the road section where the target position is located and the driving task of the first vehicle from the stored neural network model;
相应地,该多个第二车辆是指当前时间之前经过该目标位置所在的路段且行驶任务与该第一车辆的行驶任务相同的车辆。Correspondingly, the plurality of second vehicles refer to vehicles that have passed through the road section where the target position is located before the current time and have the same driving task as the driving task of the first vehicle.
在本发明实施例中,服务器可以根据在预设时间段内经过该目标位置所在的路段的所有第二车辆的行驶轨迹,训练初始化的神经网络模型,得到与该目标位置所在的路段对应的目标神经网络模型,以便于第一车辆根据该目标神经网络模型确定行驶轨迹。也即,当第一车辆在目标位置处通过目标神经网络模型确定自身的行驶轨迹时,不仅考虑了该第一车辆和第一障碍车辆的行驶信息,还参考了当前时间之前经过该目标位置所在的路段的多个第二车辆的行驶轨迹,以降低第一车辆按照确定出的行驶轨迹行驶时的事故发生率,也即,提高了该确定出的行驶轨迹的可行性。In the embodiment of the present invention, the server may train the initialized neural network model according to the travel trajectories of all second vehicles passing through the road section where the target position is located within a preset time period, and obtain the target corresponding to the road section where the target position is located A neural network model, so that the first vehicle can determine the driving trajectory according to the target neural network model. That is, when the first vehicle determines its own driving trajectory through the target neural network model at the target position, it not only considers the driving information of the first vehicle and the first obstacle vehicle, but also refers to the location where the target position passed before the current time. The driving trajectories of a plurality of second vehicles on the road segment are determined, so as to reduce the accident rate when the first vehicle travels according to the determined driving trajectory, that is, to improve the feasibility of the determined driving trajectory.
需要说明的是:上述实施例提供的规划行驶轨迹的装置在规划第一车辆的行驶轨迹时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将服务器的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的规划行驶轨迹的装置与上述实施例中的规划行驶轨迹的方法属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when planning the driving trajectory of the first vehicle, the device for planning a driving trajectory provided in the above-mentioned embodiment only takes the division of the above-mentioned functional modules as an example. In practical applications, the above-mentioned functions may be allocated by Different functional modules are completed, that is, the internal structure of the server is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for planning a driving trajectory provided in the above embodiment and the method for planning a driving trajectory in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which is not repeated here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(Digital Subscriber Line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例如:数字通用光盘(Digital Versatile Disc,DVD))、或者半导体介质(例如:固态硬盘(Solid State Disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission is performed to another website site, computer, server or data center by wire (eg coaxial cable, optical fiber, Digital Subscriber Line, DSL) or wireless (eg infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg: floppy disk, hard disk, magnetic tape), optical media (eg: Digital Versatile Disc (DVD)), or semiconductor media (eg: Solid State Disk (SSD)) )Wait.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned examples provided for this application are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application. Inside.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710993734.8A CN109697875B (en) | 2017-10-23 | 2017-10-23 | Method and device for planning driving track |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710993734.8A CN109697875B (en) | 2017-10-23 | 2017-10-23 | Method and device for planning driving track |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109697875A CN109697875A (en) | 2019-04-30 |
CN109697875B true CN109697875B (en) | 2020-11-06 |
Family
ID=66225933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710993734.8A Active CN109697875B (en) | 2017-10-23 | 2017-10-23 | Method and device for planning driving track |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109697875B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112078592B (en) * | 2019-06-13 | 2021-12-24 | 魔门塔(苏州)科技有限公司 | Method and device for predicting vehicle behavior and/or vehicle track |
CN110293968B (en) * | 2019-06-18 | 2021-09-28 | 百度在线网络技术(北京)有限公司 | Control method, device and equipment for automatic driving vehicle and readable storage medium |
CN111832597B (en) * | 2019-08-01 | 2024-06-11 | 北京嘀嘀无限科技发展有限公司 | Method and device for judging vehicle type |
CN113160547B (en) * | 2020-01-22 | 2023-02-03 | 华为技术有限公司 | A kind of automatic driving method and related equipment |
CN111339834B (en) * | 2020-02-04 | 2023-06-02 | 浙江大华技术股份有限公司 | Method for identifying vehicle driving direction, computer device and storage medium |
CN111724598B (en) * | 2020-06-29 | 2022-04-05 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for automatically driving and planning path |
CN111572562A (en) * | 2020-07-03 | 2020-08-25 | 腾讯科技(深圳)有限公司 | Automatic driving method, device, equipment, system, vehicle and computer readable storage medium |
CN113971885B (en) * | 2020-07-06 | 2023-03-03 | 华为技术有限公司 | Vehicle speed prediction method, device and system |
CN113954858A (en) * | 2020-07-20 | 2022-01-21 | 华为技术有限公司 | A method for planning a driving route of a vehicle and a smart car |
CN112364847A (en) * | 2021-01-12 | 2021-02-12 | 深圳裹动智驾科技有限公司 | Automatic driving prediction method based on personal big data and computer equipment |
CN112904843B (en) * | 2021-01-14 | 2022-04-08 | 清华大学苏州汽车研究院(吴江) | A kind of automatic driving scene determination method, device, electronic device and storage medium |
CN114299712B (en) * | 2021-11-26 | 2024-03-01 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and readable storage medium |
CN114620072B (en) * | 2022-03-14 | 2023-05-09 | 小米汽车科技有限公司 | Vehicle control method and device, storage medium, electronic equipment and vehicle |
CN114822050B (en) * | 2022-03-30 | 2023-07-21 | 阿里巴巴(中国)有限公司 | Road condition identification method, electronic equipment and computer program product |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8036425B2 (en) * | 2008-06-26 | 2011-10-11 | Billy Hou | Neural network-controlled automatic tracking and recognizing system and method |
CN106080590B (en) * | 2016-06-12 | 2018-04-03 | 百度在线网络技术(北京)有限公司 | The acquisition methods and device of control method for vehicle and device and decision model |
CN106340205A (en) * | 2016-09-30 | 2017-01-18 | 广东中星微电子有限公司 | Traffic monitoring method and traffic monitoring apparatus |
CN106548645B (en) * | 2016-11-03 | 2019-07-12 | 济南博图信息技术有限公司 | Vehicle route optimization method and system based on deep learning |
-
2017
- 2017-10-23 CN CN201710993734.8A patent/CN109697875B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109697875A (en) | 2019-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109697875B (en) | Method and device for planning driving track | |
US11858508B2 (en) | Trajectory prediction from precomputed or dynamically generated bank of trajectories | |
US11238733B2 (en) | Group driving style learning framework for autonomous vehicles | |
CN114255606B (en) | Assisted driving reminder, map assisted driving reminder method, device and map | |
US11340094B2 (en) | Updating map data for autonomous driving vehicles based on sensor data | |
EP3731498B1 (en) | Lane aware clusters for vehicle to vehicle communication | |
US10705536B2 (en) | Method and system to manage vehicle groups for autonomous vehicles | |
US20190378404A1 (en) | Traffic prediction system, vehicle-mounted display apparatus, vehicle, and traffic prediction method | |
CN111591306B (en) | Driving trajectory planning method, related equipment and storage medium of autonomous vehicle | |
US20190317505A1 (en) | Determining driving paths for autonomous driving vehicles based on map data | |
US20210005088A1 (en) | Computing system implementing traffic modeling using sensor view data from self-driving vehicles | |
US11814075B2 (en) | Conditional motion predictions | |
CN115146523A (en) | Selecting test scenarios for evaluating performance of an automated vehicle | |
CN112590813A (en) | Method, apparatus, electronic device, and medium for generating information of autonomous vehicle | |
WO2023193459A1 (en) | Data collection method and apparatus | |
JP6333341B2 (en) | Information processing apparatus, search area setting method, and program | |
US11217090B2 (en) | Learned intersection map from long term sensor data | |
CN111688717B (en) | Method and device for controlling vehicle traffic | |
CN112232581A (en) | Driving risk prediction method and device, electronic equipment and storage medium | |
JP2020042823A (en) | Method and apparatus for transmitting/receiving data, device and storage medium | |
WO2023040684A1 (en) | Traffic information acquisition method and apparatus, and storage medium | |
HK40037793A (en) | Method and apparatus for predicting driving risk, electronic device, and storage medium | |
CN114661840A (en) | Attribute generation method, electronic device and computer program product of map element | |
CN118494503A (en) | Vehicle position prediction method, device, terminal device and storage medium | |
CN115371688A (en) | Method, device, equipment and storage medium for determining road traffic state |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |