A method for constructing a lane-changing decision model based on convolutional neural network
By encoding vehicle motion status information into a three-dimensional array and using a convolutional neural network, the problem of insufficient environmental information processing by traditional models is solved, and the accuracy and learning effect of the lane-changing decision model are improved.
Patent Information
- Application Number
- CN202210637913.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-07
AI Technical Summary
The traditional lane-changing decision model directly puts the environmental information received by smart cars into ordinary neural networks, causing the model to only deal with the relationship between numbers, resulting in poor training results and low learning efficiency.
A lane-changing decision model based on convolutional neural networks is adopted. By encoding vehicle motion status information into a three-dimensional array, the convolutional neural network is used to learn the spatial position relationship between vehicles, and an appropriate size convolution kernel is selected to reduce the model complexity. .
The test accuracy of the lane-changing decision model is improved, the learning effect is significantly improved, and the test accuracy is increased by about 5%.
Smart Images

Figure CN114997056B
Abstract
Description
Technical Field
[0001] This invention belongs to the field of autonomous driving technology, specifically relating to a method for constructing a lane-changing decision model based on a convolutional neural network. Background Technology
[0002] In recent years, the rapid development of artificial intelligence technology has made intelligent transportation systems one of the main focuses of attention. Autonomous vehicles, as the core of the system, play a very important role, and lane-changing decisions in path planning are one of the more important issues in autonomous driving.
[0003] During operation, intelligent vehicles receive environmental information, including the speed and position of both static and dynamic obstacles. Common methods for processing this information and making informed decisions include rule-based finite state machines and learning-based neural networks. Deep learning-based lane-changing models address the shortcomings of traditional models, more accurately describing and characterizing lane-changing behavior, and improving the accuracy of lane-changing decisions and trajectory predictions. This can, to some extent, promote the further development of autonomous driving and micro-driving behavior simulation. However, most traditional lane-changing models use ordinary neural networks, which do not achieve the expected learning efficiency. Summary of the Invention
[0004] To address the shortcomings of the existing technologies, the present invention aims to provide a method for constructing a lane-changing decision model based on a convolutional neural network, thereby solving the problem that traditional lane-changing decision models simply put all environmental information received by the intelligent vehicle into a one-dimensional array and directly input it into an ordinary neural network, resulting in the model only being able to process relationships between numbers and poor training results.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] The present invention provides a method for constructing a lane-changing decision model based on a convolutional neural network, comprising the following steps:
[0007] 1) Filter the motion status information of the vehicle and surrounding vehicles at lane-changing times and non-lane-changing times in the dataset to obtain N samples;
[0008] 2) Select one sample from step 1) and encode the motion state information of all vehicles in it relative to the driver into a one-dimensional array;
[0009] 3) Create an empty space for a three-dimensional array to store the data;
[0010] 4) In the empty three-dimensional array space, put the one-dimensional array corresponding to the vehicles in each lane of the sample selected in step 2) into the corresponding position in the (m+n) / L space of that lane, and obtain the encoded three-dimensional array.
[0011] 5) Label the three-dimensional array obtained in step 4);
[0012] 6) Repeat steps 2), 3), 4), and 5) to obtain N three-dimensional arrays and labels. Build a convolutional neural network with the three-dimensional arrays as input and the labels as output, and train it to obtain the lane-changing decision model.
[0013] Further, step 1) specifically includes: for each sample, taking the vehicle as a reference point, subtracting the lateral displacement, longitudinal displacement, and speed of the surrounding vehicles from the lateral displacement, longitudinal displacement, and speed of the vehicle to obtain the lateral displacement, longitudinal displacement, and speed relative to the vehicle; the filtered vehicle motion state information includes: the position and speed of the vehicle, the position and speed of all vehicles within m meters in front of the vehicle in the current lane, the position and speed of all vehicles within n meters behind the vehicle in the current lane, the position and speed of all vehicles within m meters in front of the vehicle in the left lane, the position and speed of all vehicles within n meters behind the vehicle in the left lane, the position and speed of all vehicles within m meters in front of the vehicle in the right lane, and the position and speed of all vehicles within n meters behind the vehicle in the right lane; wherein, the position includes lateral displacement and longitudinal displacement.
[0014] Further, step 2) specifically includes: the length of each vehicle is at least greater than L meters, and there will only be one vehicle within a longitudinal distance of L meters in a lane. Therefore, for all vehicles within a longitudinal distance of (m+n) meters in a lane, a maximum of (m+n) / L spaces are needed to store vehicle information. Here, (m+n) / L is assumed to be an integer. An empty three-dimensional array space of (3, (m+n) / L, 5) is created, where 3 corresponds to the three rows in the grid, representing the three lanes, from top to bottom: the left lane, the current lane, and the right lane; (m+n) / L corresponds to (m+n) / L spaces in each row, representing the space used to store the information of each vehicle; 5 corresponds to the vehicle features to be stored in each space, representing the five channels of each vehicle.
[0015] Furthermore, the five channels include: relative lateral displacement ΔX, relative longitudinal displacement ΔY, relative velocity ΔV, presence or absence of lanes, and presence or absence of vehicles; wherein, presence or absence of lanes is a marker established to distinguish whether a left or right lane exists; presence or absence of vehicles is a marker established to distinguish whether a specific vehicle being received exists.
[0016] Further, step 3) specifically includes: creating a one-dimensional array of length 5 for each vehicle obtained, and adding the lateral displacement, longitudinal displacement and speed of the vehicle relative to itself to it, and setting whether there is a lane or not to 1, and whether there is a vehicle or not to 1, then the one-dimensional array corresponding to the vehicle is [0 0 0 1 1].
[0017] Further, step 4) specifically includes: within a longitudinal distance of (m+n) meters on any lane, with the leftmost point as the origin, the one-dimensional array corresponding to the vehicles within the first L distance is placed in the first space, the one-dimensional array corresponding to the vehicles within the second L distance is placed in the second space, and so on, until the one-dimensional array corresponding to the vehicles within the (m+n) / L L distances is placed in the (m+n) / L space; to ensure the consistency of the model input, the (m+n) / L space needs to be filled completely. When there are no vehicles within any L distance, data needs to be filled in two cases:
[0018] 41) If a vehicle does not exist because any lane does not exist, then fill each space corresponding to that lane with a one-dimensional array [0 0 0 0 0]; for example, when the vehicle is in the leftmost lane, then only the current lane and the right lane are available.
[0019] 42) When any lane exists, but there are no vehicles within any distance L, fill the space corresponding to that distance L with a one-bit array [0 0 0 1 0].
[0020] Further, step 5) specifically includes: the label corresponding to a left lane change is [1 0 0], the label corresponding to no lane change is [01 0], and the label corresponding to a right lane change is [0 0 1].
[0021] Furthermore, step 6) specifically includes: when using a convolutional neural network to identify and learn data in a three-dimensional array, selecting a convolutional kernel of the corresponding size to process the three-dimensional array. When there are many vehicles in the surrounding area in the range selected in step 1), a small convolutional kernel is selected for processing, and vice versa, a large convolutional kernel is selected for processing, thereby reducing the complexity of the neural network model while quickly capturing spatial information.
[0022] The beneficial effects of this invention are:
[0023] This invention places each piece of vehicle information in a corresponding position in a three-dimensional array according to the relative position of the vehicle. This means that the relationship between vehicles is reflected not only in the specific values stored in the three-dimensional array, but also in the relative positions of the values in the three-dimensional array. By using a convolutional neural network, not only can the numerical information originally contained in the three-dimensional array be learned, but the spatial position information can also be quickly captured. As a result, the test accuracy of the lane-changing decision model trained in this way is improved by about 5%, and the learning effect is better. Attached Figure Description
[0024] Figure 1 This is a traffic diagram for the present invention.
[0025] Figure 2 This is a schematic diagram of a three-dimensional array. Detailed Implementation
[0026] In order to facilitate understanding by those skilled in the art, the present invention will be further described below with reference to embodiments and drawings. The contents mentioned in the embodiments are not intended to limit the present invention.
[0027] The present invention provides a method for constructing a lane-changing decision model based on a convolutional neural network, comprising the following steps:
[0028] 1) Filter the motion state information of the vehicle and surrounding vehicles at lane-changing and non-lane-changing times in the dataset to obtain N samples, specifically including:
[0029] For each sample, taking the vehicle as a reference point, the lateral displacement, longitudinal displacement, and velocity of the surrounding vehicles are subtracted from the lateral displacement, longitudinal displacement, and velocity of the vehicle to obtain the lateral displacement, longitudinal displacement, and velocity relative to the vehicle; for example... Figure 1 As shown, the filtered vehicle motion status information includes: the position and speed of the vehicle itself, the position and speed of all vehicles within m meters in front of the vehicle in the current lane, the position and speed of all vehicles within n meters behind the vehicle in the current lane, the position and speed of all vehicles within m meters in front of the vehicle in the left lane, the position and speed of all vehicles within n meters behind the vehicle in the left lane, the position and speed of all vehicles within m meters in front of the vehicle in the right lane, and the position and speed of all vehicles within n meters behind the vehicle in the right lane; where position includes lateral displacement and longitudinal displacement.
[0030] 2) Select one sample from step 1) and encode the motion state information of all its vehicles relative to the self-vehicle into a one-dimensional array, specifically including:
[0031] Each vehicle is at least L meters long. Only one vehicle will exist within a longitudinal distance of L meters in a lane. Therefore, for all vehicles within a longitudinal distance of (m+n) meters in a lane, at most (m+n) / L spaces are needed to store vehicle information. Here, (m+n) / L is assumed to be an integer. Create an empty three-dimensional array space of (3, (m+n) / L, 5), such as... Figure 2 As shown, 3 corresponds to the three rows in the grid, representing three lanes, from top to bottom: left lane, current lane, and right lane; (m+n) / L corresponds to (m+n) / L spaces in each row, representing the space used to store information for each vehicle; 5 corresponds to the vehicle features that need to be stored in each space, representing the five channels for each vehicle.
[0032] The five channels include: relative lateral displacement ΔX, relative longitudinal displacement ΔY, relative velocity ΔV, presence or absence of lanes, and presence or absence of vehicles. The presence or absence of lanes is a marker used to distinguish whether a left or right lane exists. The presence or absence of vehicles is a marker used to distinguish whether a specific vehicle is being received.
[0033] 3) Create an empty space for a three-dimensional array to store the data;
[0034] For each vehicle obtained, create a one-dimensional array of length 5, and add the vehicle's lateral displacement, longitudinal displacement and speed relative to the vehicle to it. Set the presence or absence of a lane to 1 and the presence or absence of a vehicle to 1. Then the one-dimensional array corresponding to the vehicle is [0 0 0 1 1].
[0035] 4) In the empty three-dimensional array space, put the one-dimensional array corresponding to the vehicles in each lane of the sample selected in step 2) into the corresponding position in the (m+n) / L space of that lane, and obtain the encoded three-dimensional array.
[0036] Within a longitudinal distance of (m+n) meters in any lane, with the leftmost point as the origin, the one-dimensional array corresponding to the vehicles within the first L-meter distance is placed in the first space, the one-dimensional array corresponding to the vehicles within the second L-meter distance is placed in the second space, and so on, with the one-dimensional array corresponding to the vehicles within the (m+n) / L-th L-meter distance placed in the (m+n) / L-th space; to ensure the consistency of the model input, the (m+n) / L space needs to be filled completely. When there are no vehicles within any L-meter distance, data needs to be filled in two cases:
[0037] 41) If a vehicle does not exist because any lane does not exist, then fill each space corresponding to that lane with a one-dimensional array [0 0 0 0 0]; for example, when the vehicle is in the leftmost lane, then only the current lane and the right lane are available.
[0038] 42) When any lane exists, but there are no vehicles within any distance L, fill the space corresponding to that distance L with a one-bit array [0 0 0 1 0].
[0039] 5) Label the three-dimensional array obtained in step 4);
[0040] The label for a left lane change is [1 0 0], the label for no lane change is [0 1 0], and the label for a right lane change is [0 0 1].
[0041] 6) Repeat steps 2), 3), 4), and 5) to obtain N three-dimensional arrays and labels. Build a convolutional neural network with the three-dimensional arrays as input and the labels as output, and train it to obtain the lane-changing decision model.
[0042] When using a convolutional neural network to identify and learn data in a three-dimensional array, a convolutional kernel of the appropriate size is selected to process the three-dimensional array. When there are many vehicles in the surrounding area in the range selected in step 1), a small convolutional kernel is selected for processing, and vice versa. This reduces the complexity of the neural network model while quickly capturing spatial information.
[0043] The present invention has many specific application paths. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements can be made without departing from the principles of the present invention. These improvements should also be considered as the scope of protection of the present invention.
Claims
1. A method for constructing a lane-changing decision model based on a convolutional neural network, characterized in that: Here are the steps: 1) Filter the motion state information of the vehicle and surrounding vehicles at the time of lane change and the time of no lane change in the data set to obtain N samples; 2) selecting a sample in step 1) and encoding the motion state information of all vehicles in the sample relative to the self-vehicle into a one-dimensional array; 3) Create an empty three-dimensional array space to store data; 4) In the space of the empty three-dimensional array, the one-dimensional array corresponding to the vehicles on each lane of the sample selected in step 2) is placed into the corresponding position in the (m+n) / L space of the lane to obtain a three-dimensional array after encoding; 5) labeling the three-dimensional array obtained in step 4); 6) Repeat steps 2), 3), 4), and 5) to obtain N three-dimensional arrays and labels, build a convolutional neural network, use the three-dimensional array as input and the label as output, and train to obtain a lane-changing decision model; The step 1) specifically includes: for each sample, taking the vehicle as the reference point, subtracting the lateral displacement, longitudinal displacement and speed of the surrounding vehicles from the lateral displacement, longitudinal displacement and speed of the vehicle to obtain the lateral displacement, longitudinal displacement and speed relative to the vehicle; the screened vehicle motion state information includes: the position and speed of the vehicle, the position and speed of all vehicles within m meters in front of the vehicle in the current lane, the position and speed of all vehicles within n meters behind the vehicle in the current lane, the position and speed of all vehicles within m meters in front of the vehicle in the left lane, the position and speed of all vehicles within n meters behind the vehicle in the left lane, the position and speed of all vehicles within m meters in front of the vehicle in the right lane, and the position and speed of all vehicles within n meters behind the vehicle in the right lane; wherein the position includes the lateral displacement and the longitudinal displacement; The step 2) specifically includes: the length of each vehicle is at least greater than L meters, and there is only one vehicle within a longitudinal distance of L meters on a lane. Therefore, all vehicles within a longitudinal distance of (m+n) meters on a lane require at most (m+n) / L spaces to store vehicle information, where (m+n) / L is assumed to be an integer; creating an empty three-dimensional array space of (3, (m+n) / L, 5), where 3 corresponds to three rows in the grid, representing three lanes, from top to bottom, the left lane, the current lane, and the right lane; (m+n) / L corresponds to (m+n) / L spaces in each row, representing the space used to store each vehicle information; 5 corresponds to the vehicle features that need to be stored in each space, representing the five channels of each vehicle; The step 3) specifically includes: creating a one-dimensional array with a length of 5 for each acquired vehicle, and adding the lateral displacement, longitudinal displacement and speed of the vehicle relative to the ego vehicle to the array, and setting the lane presence or absence to 1, and the vehicle presence or absence to 1, then the one-dimensional array corresponding to the ego vehicle is [0 0 0 1 1]; The step 4) specifically includes: within a longitudinal distance of (m+n) meters on any lane, with the leftmost side as the coordinate origin, the one-dimensional array corresponding to the vehicles within the first L distance is placed in the first space, the one-dimensional array corresponding to the vehicles within the second L distance is placed in the second space, and so on, the one-dimensional array corresponding to the vehicles within the (m+n) / Lth L distance is placed in the (m+n) / Lth space; to ensure the consistency of the model input, the (m+n) / L space needs to be filled. When there is no vehicle within any L distance, data needs to be filled in two cases: 41) When any lane does not exist and the vehicle does not exist, a one-dimensional array [0 0 0 0 0] is filled into each space corresponding to the lane; 42) When any lane exists but there is no vehicle within any L distance, fill the space corresponding to the L distance with a one-bit array [0 0 0 1 0].
2. The method for constructing a lane-changing decision model based on a convolutional neural network according to claim 1, characterized in that: The five channels include: relative lateral displacement ΔX, relative longitudinal displacement ΔY, relative speed ΔV, presence or absence of a lane and presence or absence of a vehicle; among them, presence or absence of a lane is a marking set up to distinguish whether a left lane or a right lane exists; presence or absence of a vehicle is a marking set up to distinguish whether a certain received vehicle exists.
3. The method for constructing a lane-changing decision model based on a convolutional neural network according to claim 1, characterized in that: The step 5) specifically includes: the label corresponding to the left lane change is [1 0 0], the label corresponding to not changing lanes is [0 1 0], and the label corresponding to the right lane change is [0 0 1].
4. The method for constructing a lane-changing decision model based on a convolutional neural network according to claim 1, characterized in that: The step 6) specifically includes: when using a convolutional neural network to identify and learn data in a three-dimensional array, selecting a convolution kernel of a corresponding size to process the three-dimensional array, and when there are many surrounding vehicles in the range screened in step 1), selecting a small convolution kernel for processing, otherwise selecting a large convolution kernel for processing.
