A method for generating human-like lane-changing trajectories for intelligent vehicles based on diffusion model

By establishing a multi-scene expert data set and training the diffusion model based on the diffusion model, the problem of insufficient data quality and diversity in the generation of human-like lane-changing trajectories for smart cars is solved. The generated human-like lane-changing trajectories are more consistent with human behavior. Efficient and reliable trajectory data acquisition is achieved.

CN115830862BActive Publication Date: 2024-09-13JILIN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211445134.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-18
Publication Date
2024-09-13
Estimated Expiration
2042-11-18

AI Technical Summary

Technical Problem

Existing human-like lane-changing trajectory generation methods for smart cars have data quality issues, high acquisition costs for expert data sets and insufficient scene diversity, difficulty in training generative adversarial networks, and insufficient diversity of generated trajectories, making it difficult to obtain reliable, professional, and diverse Humanoid lane changing trajectory data.

Method used

Adopting a method based on the diffusion model, by establishing a multi-scenario expert data set and training it, the diffusion model is used to generate a human-like lane-changing trajectory, the trajectory information is processed through pictures and noise is added, and the model parameters are updated using gradient ascent to generate a time series Sexual humanoid lane-changing trajectories.

Benefits of technology

The diversity and reliability of human-like lane-changing trajectories are improved, the generated trajectories are more in line with human driving behavior, the cost is reduced, and a large amount of reliable, professional, and diverse human-like lane-changing trajectory data is obtained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115830862B
    Figure CN115830862B
Patent Text Reader

Abstract

The present invention provides a method for generating human-like lane-changing trajectories of intelligent vehicles based on a diffusion model, comprising the following steps: Step 1, obtaining and establishing a multi-scenario expert data set; Step 2, using the multi-scenario expert data set to train a diffusion model; Step 3, using the diffusion model to generate human-like lane-changing trajectories. The present invention establishes a multi-scenario expert data set that collects expert lane-changing trajectories of multiple scenarios, thereby improving the diversity of lane-changing trajectories within the expert data set; training the diffusion model with expert lane-changing trajectories of the multi-scenario expert data set, and using the collected data of real human drivers to train the diffusion model, so that the trajectory information generated by the diffusion model is more consistent with human lane-changing characteristics and has better human-like characteristics; making the lane-changing trajectory information generated by the diffusion model trained with the data set more diversified, while reducing costs, a large amount of reliable, professional, and diversified human-like lane-changing trajectory data can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for generating a trajectory of an intelligent vehicle, in particular to a method for generating a human-like lane-changing trajectory of an intelligent vehicle based on a diffusion model. Background Art

[0002] In recent years, with the continuous improvement of automobile intelligence technology, the number of intelligent driving cars equipped with intelligent driving systems has continued to increase, and their proportion among traffic participants has continued to increase. The trajectory planning module of intelligent cars plays a vital role in the realization of high-level autonomous driving systems. Lane change trajectory planning is an important part of intelligent car trajectory planning. In order to improve the social recognition, public trust and acceptance of intelligent cars, improve traffic efficiency and reduce the possibility of accidents caused by human-machine differences, intelligent cars should have lane changing behavior strategies similar to humans and lane changing trajectories similar to humans. Existing methods for obtaining human-like lane changing trajectory data include (1) methods for screening and collecting lane changing trajectories in existing traffic datasets, (2) methods for obtaining human-like lane changing trajectory data using expert datasets, and (3) methods for generating human-like lane changing trajectories using generative adversarial networks; however, these existing methods still have some problems:

[0003] The data cleaning process of method (1) is cumbersome, and the quality of the lane-changing trajectory actually obtained is restricted by the amount of data in the dataset and the quality of the lane-changing trajectory. Since some data in the existing dataset have problems such as deviation, error, and loss, when data cleaning is neglected, erroneous lane-changing trajectories may be obtained, and the human-like lane-changing strategy trained with these trajectories may have safety hazards.

[0004] Although method (2) uses lane-changing trajectories from expert datasets to ensure the safety and rationality of lane-changing trajectories to a certain extent, data collection is relatively expensive. In addition, the diversity of collection scenarios in existing expert datasets is insufficient, which makes the lane-changing trajectories in the expert dataset lack diversity. Using these trajectories to train the humanoid lane-changing module will make the humanoid lane-changing strategy of intelligent vehicles perform well only in specific scenarios and have poor versatility.

[0005] Method (3) uses a generative adversarial network to generate human-like lane-changing trajectories. This method requires training a discriminator and a generator at the same time during training. Training these two networks at the same time will lead to convergence difficulties. In addition, since the generator of the generative adversarial network tends to let the generated data pass the identification of the discriminator, when a trajectory it generates passes the identification of the discriminator, it will be more inclined to generate similar trajectories, which essentially reduces the diversity of the generated human-like lane-changing trajectories. Using these trajectories to train the human-like lane-changing module will make the human-like lane-changing strategy of the intelligent car relatively simple.

[0006] In summary, how to obtain a large amount of reliable, professional and diverse human-like lane-changing trajectory data to improve the training effect of human-like lane-changing trajectory planning strategy has become a key technical problem that needs to be solved urgently in the field of intelligent vehicles. Summary of the invention

[0007] In order to solve the above technical problems, the present invention provides a method for generating a human-like lane-changing trajectory of an intelligent vehicle based on a diffusion model, comprising the following steps:

[0008] Step 1: Obtain and build a multi-scenario expert dataset:

[0009] (1) Collect data on expert lane-changing trajectories in multiple scenarios;

[0010] (1) Obtain expert lane-changing trajectory;

[0011] (2) Data processing;

[0012] (3) Trajectory classification;

[0013] (ii) Establish a multi-scenario expert dataset;

[0014] Step 2: Use multi-scenario expert datasets to train the diffusion model:

[0015] (1) Sample processing;

[0016] (2) Add noise;

[0017] (3) Sample collection;

[0018] (4) Gradient ascent updates the diffusion model parameters;

[0019] (5) Determine the stopping condition;

[0020] Step 3: Generate human-like lane-changing trajectories using the diffusion model:

[0021] (1) Execute a noise reduction cycle;

[0022] (2) Obtain the generated human-like trajectory information from the image.

[0023] Furthermore, in step 1, (i) collecting data of expert lane-changing trajectories in multiple scenarios includes the following steps:

[0024] (1) Obtaining expert lane-changing trajectories

[0025] 1) Use the automatic driving simulation software to build free lane change scenarios, forced lane change scenarios and avoidance lane change scenarios. The free lane change scenario requires the driver of the main vehicle to complete a lane change at any position in the scenario; the forced lane change scenario requires the driver of the main vehicle to complete a lane change in a certain area in the scenario; the avoidance lane change scenario requires the driver of the main vehicle to complete a lane change in front of an obstacle in the scenario where he subjectively believes that the lane should be changed.

[0026] 2) Invite several experienced drivers to complete N lane changing behaviors in different simulation scenarios through the driving simulator. Each time starts from the start of the lane change, and the start time of the lane change is recorded as t0=0. The center position of the vehicle at the start of the lane change is taken as the coordinate origin, the forward direction of the vehicle at the start of the lane change is taken as the x-axis, and the normal starting from the center of the vehicle and perpendicular to the x-axis and pointing in the positive direction of the vehicle's lane change direction is taken as the y-axis to establish a rectangular coordinate system xOy; the ordinate x1=0 of the main vehicle at the start of the lane change, the abscissa y1=0 of the main vehicle at the start of the lane change, the sampling period is 0.1 seconds, and the time t from the start of the lane change to the end of the t-th sampling time is recorded. t , the vertical coordinate x of the main vehicle t and the horizontal coordinate y of the main vehicle t , record the time t when the lane change ends T , the vertical coordinate x of the main vehicle T and the horizontal coordinate y of the main vehicle T ;

[0027] The final collected lane change trajectory data format is as follows:

[0028]

[0029] in Represents a lane change trajectory collected, i~T i Indicates that the trajectory is the i-th collected lane change trajectory, and the trajectory has a total of T i sampling points, called T i is the total number of sampling points;

[0030] in: t t represents the time of the tth sampling point, x t Represents the ordinate of the vehicle at that moment, y t Represents the horizontal coordinate of the vehicle at that moment.

[0031] (2) Data processing

[0032] Count the maximum number of sampling points in all the acquired data, denoted as T m , which corresponds to the trajectory It is the longest trajectory among all sampled trajectories, with a total of T msampling points;

[0033] Interpolate other trajectories so that the length of each trajectory is T m Specifically, for any total number of sampling points T i <T m The trajectory:

[0034]

[0035] Randomly interpolate between two points to add a trajectory point. After adding the trajectory point, The total number of sampling points T i '=T i +1, the total number of sampling points increases, and the interpolation points are randomly increased repeatedly until The total number of sampling points reaches T m ;

[0036] (3) Trajectory classification

[0037] According to the simulation scenario, the lane changing trajectory data is divided into free lane changing scenario trajectory data, forced lane changing scenario trajectory data and avoidance lane changing scenario trajectory data.

[0038] Furthermore, in step 1, (ii) establishing a multi-scenario expert dataset includes the following steps:

[0039] According to the results of trajectory classification, all processed lane-changing trajectory data are stored in the multi-scenario expert dataset according to the classification of free lane-changing scenario, forced lane-changing scenario, and avoidance lane-changing scenario. The total number of sampling points for each trajectory is T max , the format of trajectory data is expressed as:

[0040]

[0041] Furthermore, in step 2, a diffusion model is used and targeted improvements are made to the diffusion model. The trajectory information is processed into images so that each trajectory information can be input into the diffusion model in the form of an image. The process of training the diffusion model using a multi-scenario expert dataset is as follows:

[0042] (1) Sample processing

[0043] For N trajectories in Γ Samples are processed, where 1≤i≤N, i is an integer;

[0044] For each trajectory sample:

[0045]

[0046] Will Perform image processing, with an image X i0The form is passed to the diffusion model, and each sampling point (t t ,x t ,y t ) as the channel of each pixel of the image, so Convert to a Image format X i0 , where M represents the image has M rows, Representative images include Column, 3 means that each pixel of the image has 3 channels, and the first channel stores the time t of all sampling points t , the second channel stores the ordinate x of all sampling points t , the third channel stores the horizontal coordinates y of all sampling points t .

[0047] (2) Adding noise

[0048] For all X i0 , where 1≤i≤N, i is an integer, according to the diffusion coefficient For image X i0 Perform T times of noise addition, take T = 500, and save the image X after each noise addition. it And the number of times of noise addition t, specifically, the result X of the tth noise addition process it Written as:

[0049]

[0050] in, is the diffusion coefficient, which is a variable positive coefficient less than 1 and usually decreases with the increase of t. β is a constant coefficient greater than 0; z t is a noise that conforms to Gaussian distribution.

[0051] (3) Sample extraction

[0052] Randomly draw X it , X it and the number of noise additions t are input into the diffusion model, and the diffusion model outputs the predicted noise z θ (X it ,t), where θ is the diffusion model parameter;

[0053] (4) Gradient ascent to update diffusion model parameters

[0054] Calculate the true noise z t With the predicted noise z θ (X it ,t), and use the gradient ascent method to update the parameters of the diffusion model:

[0055]

[0056] (5) Determine the stop condition

[0057] The loop process (3) extracts samples and the process (4) gradient ascent updates the diffusion model parameters until the model converges. The training ends and the diffusion model training is completed.

[0058] Furthermore, in step 3, using the diffusion model to generate a human-like lane-changing trajectory includes the following steps:

[0059] (1) Execute the noise reduction loop

[0060] Randomly generate a Gaussian noise input whose dimension is the same as X i0 The dimension is the same, and then T denoising cycles are performed. The denoising time step t is taken as t = {T, T-1, ..., 2, 1} in turn. The output of the next time t-1 predicted at time step t is:

[0061]

[0062] Where z is random Gaussian noise,

[0063] Repeat the above noise reduction cycle T times to obtain a clear image X0.

[0064] (2) Obtaining the generated human-like trajectory information from the image

[0065] Clear images generated by diffusion models Where M represents the image has M rows, Representative images include Column, 3 means that each pixel of the image has 3 channels, and the first channel stores the time t of all sampling points t , the second channel stores the ordinate x of all sampling points t , the third channel stores the horizontal coordinates y of all sampling points t ;

[0066] By reading the information of each pixel point of image X0 in sequence, we can obtain the information of each track point of the human-like track, and thus obtain a human-like lane-changing track:

[0067]

[0068] By repeatedly executing process (1) to execute the noise reduction loop and process (2) to obtain the generated human-like trajectory information from the image, a large amount of human-like lane changing trajectory data can be obtained.

[0069] Beneficial effects of the present invention:

[0070] The present invention provides a method for generating human-like lane-changing trajectories for intelligent vehicles based on a diffusion model. A multi-scenario expert dataset is established that collects expert lane-changing trajectories of multiple scenarios to improve the diversity of lane-changing trajectories in the expert dataset. The diffusion model is trained with expert lane-changing trajectories of the multi-scenario expert dataset, and the trained diffusion model is used to generate human-like lane-changing trajectories. The adopted diffusion model has a stable training procedure with sufficient theoretical support, a unified loss function design, and the model training is highly simple and easy to converge. The present invention creatively proposes a method for processing trajectory information in the form of images, so that each piece of trajectory information can be input into a diffusion model in the form of images, making it possible to generate trajectory information using a diffusion model; the time series information of the trajectory is added to the first channel in the image channel of the trajectory information that has been processed in the form of images, so that the generated trajectory information has time series, which is more reasonable and reliable than the trajectory generated without introducing time series information; the diffusion model is trained using the collected data of real human drivers, so that the trajectory information generated by the diffusion model is more in line with human lane changing characteristics and has better human-like characteristics; when collecting lane changing trajectory information, real human lane changing trajectory information in multiple scenes is collected, and a multi-scene expert data set is established for training the diffusion model. The multi-scene expert data set increases the diversity of samples, so that the lane changing trajectory information generated by the diffusion model trained with the data set is more diversified, and a large amount of reliable, professional and diversified human-like lane changing trajectory data can be obtained while reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 The present invention discloses a process for acquiring and establishing a multi-scenario expert data set for a method for generating humanoid lane-changing trajectories for an intelligent vehicle based on a diffusion model.

[0072] Figure 2 This is a diffusion model training process of a method for generating humanoid lane-changing trajectories for an intelligent vehicle based on a diffusion model described in the present invention.

[0073] Figure 3 Schematic diagram of the human-like lane-changing trajectory generation process of the generation method of the present invention.

[0074] Figure 4 A schematic diagram of human-like lane-changing trajectory information generated by the generation method of the present invention. DETAILED DESCRIPTION

[0075] The present invention provides a method for generating a human-like lane-changing trajectory of an intelligent vehicle based on a diffusion model, comprising the following steps:

[0076] Step 1: Obtain and establish a multi-scenario expert dataset.

[0077] See also Figure 1 As shown:

[0078] (I) Collecting data on expert lane-changing trajectories in multiple scenarios

[0079] (1) Obtaining expert lane-changing trajectories

[0080] 1) Use the automatic driving simulation software to build free lane change scenarios, forced lane change scenarios and avoidance lane change scenarios. The free lane change scenario requires the driver of the main vehicle to complete a lane change at any position in the scenario; the forced lane change scenario requires the driver of the main vehicle to complete a lane change in a certain area in the scenario; the avoidance lane change scenario requires the driver of the main vehicle to complete a lane change in front of an obstacle in the scenario where he subjectively believes that the lane should be changed.

[0081] 2) Invite 24-48 experienced drivers to complete N lane changing behaviors in different simulation scenarios through a driving simulator. Each time starts from the start of the lane change, and the start time of the lane change is recorded as t0=0. The center position of the vehicle at the start of the lane change is taken as the coordinate origin, the forward direction of the vehicle at the start of the lane change is taken as the x-axis, and the normal starting from the center of the vehicle and perpendicular to the x-axis and pointing in the positive direction of the vehicle's lane change direction is taken as the y-axis to establish a rectangular coordinate system xOy; the ordinate x1=0 of the main vehicle at the start of the lane change, the abscissa y1=0 of the main vehicle at the start of the lane change, the sampling period is 0.1 seconds, and the time t from the start of the lane change to the end of the t-th sampling time is recorded. t , the vertical coordinate x of the main vehicle t and the horizontal coordinate y of the main vehicle t , record the time t when the lane change ends T , the vertical coordinate x of the main vehicle T and the horizontal coordinate y of the main vehicle T ;

[0082] The final collected lane change trajectory data format is as follows:

[0083]

[0084] in Represents a lane change trajectory collected, i~T i Indicates that the trajectory is the i-th collected lane change trajectory, and the trajectory has a total of T i sampling points, called T i is the total number of sampling points;

[0085] in: t t represents the time of the tth sampling point, x t Represents the ordinate of the vehicle at that moment, y t Represents the horizontal coordinate of the vehicle at that moment.

[0086] (2) Data processing

[0087] Count the maximum number of sampling points in all the acquired data, denoted as T m , which corresponds to the trajectory It is the longest trajectory among all sampled trajectories, with a total of T m sampling points;

[0088] Interpolate other trajectories so that the length of each trajectory is T m Specifically, for any total number of sampling points T i <T m The trajectory:

[0089]

[0090] Randomly interpolate between two points to add a trajectory point, for example, in (t t ,x t ,y t ) and (t t+1 ,x t+1 ,y t+1 ) to add trajectory points (t t+0.5 ,x t+0.5 ,y t+0.5 ),in:

[0091] After adding track points, The total number of sampling points T i '=T i +1, the total number of sampling points increases, and the interpolation points are randomly increased repeatedly until The total number of sampling points reaches T m ;

[0092] (3) Trajectory classification

[0093] According to the simulation scenario, the lane changing trajectory data is divided into free lane changing scenario trajectory data, forced lane changing scenario trajectory data and avoidance lane changing scenario trajectory data.

[0094] 2. Establishing a multi-scenario expert dataset

[0095] According to the results of trajectory classification, all processed lane-changing trajectory data are stored in the multi-scenario expert dataset according to the classification of free lane-changing scenario, forced lane-changing scenario, and avoidance lane-changing scenario. The total number of sampling points for each trajectory is T max , the format of trajectory data is expressed as:

[0096]

[0097] Step 2: Use multi-scenario expert datasets to train the diffusion model.

[0098] In the face of the problem of lane change trajectory generation, the present invention adopts a diffusion model, which has a stable training procedure with sufficient theoretical support, a unified loss function design, and a highly simple model training and convenient convergence. The diffusion model aims to convert the prior data distribution into random noise, and then correct the conversion step by step to reconstruct a new sample; compared with the widely used adversarial generation model, it can specifically improve the existing adversarial generation methods that are difficult to generate complex and diverse samples and difficult to process the timing information contained in the samples. The present invention makes targeted improvements to the diffusion model and processes the trajectory information in a graphical way, so that each piece of trajectory information can be input into the diffusion model in the form of a picture; the process of training the diffusion model using a multi-scenario expert data set is as follows:

[0099] See also Figure 2 As shown:

[0100] (1) Sample processing

[0101] For N trajectories in Γ Samples are processed, where 1≤i≤N, i is an integer;

[0102] For each trajectory sample:

[0103]

[0104] Will Perform image processing, with an image X i0 The form is passed to the diffusion model, and each sampling point (t t ,x t ,y t ) as the channel of each pixel of the image, so Convert to a Image format X i0 , where M represents the image has M rows, Representative images include Column, 3 means that each pixel of the image has 3 channels, and the first channel stores the time t of all sampling points t , the second channel stores the ordinate x of all sampling points t , the third channel stores the horizontal coordinates y of all sampling points t .

[0105] (2) Adding noise

[0106] For all X i0 , where 1≤i≤N, i is an integer, according to the diffusion coefficient For image X i0 Perform T times of noise addition, take T = 500, and save the image X after each noise addition. itAnd the number of times of noise addition t, specifically, the result X of the tth noise addition process it Written as:

[0107]

[0108] in, is the diffusion coefficient, which is a variable positive coefficient less than 1 and usually decreases with the increase of t. β is a constant coefficient greater than 0; z t is a noise that conforms to Gaussian distribution.

[0109] (3) Sample extraction

[0110] Randomly draw X it , X it and the number of noise additions t are input into the diffusion model, and the diffusion model outputs the predicted noise z θ (X it ,t), where θ is the diffusion model parameter;

[0111] (4) Gradient ascent to update diffusion model parameters

[0112] Calculate the true noise z t With the predicted noise z θ (X it ,t), and use the gradient ascent method to update the parameters of the diffusion model:

[0113]

[0114] (5) Determine the stop condition

[0115] The loop process (3) extracts samples and the process (4) gradient ascent updates the diffusion model parameters until the model converges. The training ends and the diffusion model training is completed.

[0116] Step 3: Generate human-like lane-changing trajectories using the diffusion model.

[0117] See also Figure 3-4 As shown:

[0118] (1) Execute the noise reduction loop

[0119] Randomly generate a Gaussian noise input whose dimension is the same as X i0 The dimension is the same, and then T denoising cycles are performed. The denoising time step t is taken as t = {T, T-1, ..., 2, 1} in turn. The output of the next time t-1 predicted at time step t is:

[0120]

[0121] Where z is random Gaussian noise,

[0122] Repeat the above noise reduction cycle T times to obtain a clear image X0.

[0123] (2) Obtaining the generated human-like trajectory information from the image

[0124] Clear images generated by diffusion models Where M represents the image has M rows, Representative images include Column, 3 means that each pixel of the image has 3 channels, and the first channel stores the time t of all sampling points t , the second channel stores the ordinate x of all sampling points t , the third channel stores the horizontal coordinates y of all sampling points t ;

[0125] By reading the information of each pixel point of image X0 in sequence, we can obtain the information of each track point of the human-like track, and thus obtain a human-like lane-changing track:

[0126]

[0127] By repeatedly executing process (1) to execute the noise reduction loop and process (2) to obtain the generated human-like trajectory information from the image, a large amount of human-like lane changing trajectory data can be obtained.

Claims

1. A method for generating human-like lane-changing trajectories for an intelligent vehicle based on a diffusion model, characterized in that: The following steps are involved: Step 1: Obtain and build a multi-scenario expert dataset: (1) Collect data on expert lane-changing trajectories in multiple scenarios; (1) Obtain expert lane-changing trajectory; (2) Data processing; (3) Trajectory classification; (ii) Establish a multi-scenario expert dataset; Step 2: Use multi-scenario expert datasets to train the diffusion model: The process is as follows: (1) Sample processing For N trajectories in Γ Samples are processed, where 1≤i≤N, i is an integer; For each trajectory sample: Will Perform image processing, with an image X i0 The form is passed to the diffusion model, and each sampling point (t t ,x t ,y t ) as the channel of each pixel of the image, so Convert to a Image format X i0 , where M represents the image has M rows, Representative images include Column, 3 means that each pixel of the image has 3 channels, and the first channel stores the time t of all sampling points t , the second channel stores the ordinate x of all sampling points t , the third channel stores the horizontal coordinates y of all sampling points t ; (2) Adding noise For all X i0 , where 1≤i≤N, i is an integer, according to the diffusion coefficient For image X i0 Perform T times of noise addition, take T = 500, and save the image X after each noise addition. it And the number of times of noise addition t, specifically, the result X of the tth noise addition process it Written as: in, is the diffusion coefficient, which is a variable positive coefficient less than 1 and usually decreases with the increase of t. β is a constant coefficient greater than 0; z t is a noise that conforms to Gaussian distribution; (3) Sample extraction Randomly draw X it , X it and the number of noise additions t are input into the diffusion model, and the diffusion model outputs the predicted noise z θ (X it ,t), where θ is the diffusion model parameter; (4) Gradient ascent to update diffusion model parameters Calculate the true noise z t With the predicted noise z θ (X it ,t), and use the gradient ascent method to update the parameters of the diffusion model: (5) Determine the stop condition The loop process (3) extracts samples and the process (4) gradient ascent updates the diffusion model parameters until the model converges, the training ends, and the diffusion model training is completed; Step 3: Generate human-like lane-changing trajectories using the diffusion model: (1) Execute a noise reduction cycle; (2) Obtain the generated human-like trajectory information from the image.

2. The method for generating lane-changing trajectories of a humanoid vehicle based on a diffusion model according to claim 1, characterized in that: In step 1, (i) collecting data of expert lane-changing trajectories in multiple scenarios includes the following steps: (1) Obtaining expert lane-changing trajectories 1) Use the autonomous driving simulation software to build free lane change scenarios, forced lane change scenarios and avoidance lane change scenarios respectively; the free lane change scenario requires the driver of the main vehicle to complete a lane change at any position in the scenario; the forced lane change scenario requires the driver of the main vehicle to complete a lane change in a certain area in the scenario; the avoidance lane change scenario requires the driver of the main vehicle to complete a lane change in front of an obstacle in the scenario at a position where he subjectively believes that the lane change should be completed; 2) Invite several experienced drivers to complete N lane changing behaviors in different simulation scenarios through the driving simulator. Each time starts from the start of the lane change, and the start time of the lane change is recorded as t0=0. The center position of the vehicle at the start of the lane change is taken as the coordinate origin, the forward direction of the vehicle at the start of the lane change is taken as the x-axis, and the normal starting from the center position of the vehicle and perpendicular to the x-axis and pointing in the positive direction of the vehicle's lane change direction is taken as the y-axis to establish a rectangular coordinate system xOy; the ordinate x1 of the main vehicle at the start of the lane change is 0, the abscissa y1 of the main vehicle at the start of the lane change is 0, the sampling period is 0.1 seconds, and the time t from the start of the lane change to the end of the t-th sampling time is recorded. t , the vertical coordinate x of the main vehicle t and the horizontal coordinate y of the main vehicle t , record the time t when the lane change ends T , the vertical coordinate x of the main vehicle T and the horizontal coordinate y of the main vehicle T ; The final collected lane change trajectory data format is as follows: in Represents a lane change trajectory collected, i~T i Indicates that the trajectory is the i-th collected lane change trajectory, and the trajectory has a total of T i sampling points, called T i is the total number of sampling points; in: t t represents the time of the tth sampling point, x t Represents the ordinate of the vehicle at that moment, y t Represents the horizontal coordinate of the vehicle at that moment; (2) Data processing Count the maximum number of sampling points in all the acquired data, denoted as T m , which corresponds to the trajectory It is the longest trajectory among all sampled trajectories, with a total of T m sampling points; Interpolate other trajectories so that the length of each trajectory is T m Specifically, for any total number of sampling points T i <T m The trajectory: Randomly interpolate between two points to add a trajectory point. After adding the trajectory point, The total number of sampling points T i '=T i +1, the total number of sampling points increases, and the interpolation points are randomly increased repeatedly until The total number of sampling points reaches T m ; (3) Trajectory classification According to the simulation scenario, the lane changing trajectory data is divided into free lane changing scenario trajectory data, forced lane changing scenario trajectory data and avoidance lane changing scenario trajectory data.

3. The method for generating lane-changing trajectories of a humanoid vehicle based on a diffusion model according to claim 1 or 2, characterized in that: In step 1, (ii) establishing a multi-scenario expert dataset includes the following steps: According to the results of trajectory classification, all processed lane-changing trajectory data are stored in the multi-scenario expert dataset according to the classification of free lane-changing scenario, forced lane-changing scenario, and avoidance lane-changing scenario. The total number of sampling points for each trajectory is T max , the format of trajectory data is expressed as:

4. The method for generating lane-changing trajectories of a humanoid vehicle based on a diffusion model according to claim 1, characterized in that: In step 3, using the diffusion model to generate a human-like lane-changing trajectory includes the following steps: (1) Execute the noise reduction loop Randomly generate a Gaussian noise input whose dimension is the same as X i0 The dimension is the same, and then T denoising cycles are performed. The denoising time step t is taken as t = {T, T-1, ..., 2, 1} in turn. The output of the next time t-1 predicted at time step t is: Where z is random Gaussian noise, Repeat the above noise reduction cycle T times to obtain a clear image X0; (2) Obtaining the generated human-like trajectory information from the image Clear images generated by diffusion models Where M represents the image has M rows, Representative images include Column, 3 means that each pixel of the image has 3 channels, and the first channel stores the time t of all sampling points t , the second channel stores the ordinate x of all sampling points t , the third channel stores the horizontal coordinates y of all sampling points t ; By reading the information of each pixel point of image X0 in sequence, we can obtain the information of each track point of the human-like track, and thus obtain a human-like lane-changing track: By repeatedly executing process (1) to execute the noise reduction loop and process (2) to obtain the generated human-like trajectory information from the image, a large amount of human-like lane changing trajectory data can be obtained.