Simulation traffic scene generation method and device based on natural language description
By collecting and labeling historical traffic scene data, training the traffic scene generation model, and using natural language description to generate simulated traffic scenes, the problem of single scenes and low efficiency in the autonomous driving simulation system is solved, and diversity and efficiency are improved.
Patent Information
- Application Number
- CN202410869700.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-22
AI Technical Summary
The simulation scenes generated by the autonomous driving simulation system are single, unable to restore the complex and diverse traffic scenes on actual roads, and are limited by the amount of historical traffic scene data, so the generation efficiency is low.
By collecting historical traffic scene data, we formulate classification standards for traffic scene data and corresponding natural language descriptions, classify and annotate the data, and train traffic scene generation models. We use natural language descriptions to generate simulated traffic scenes, and adjust natural language descriptions to improve the scenes. Difference and diversity.
It achieves the diversity of simulated traffic scenes and improves the generation efficiency, and can generate complex traffic scenes based on natural language descriptions, which is suitable for simulation testing and analysis of autonomous driving algorithms.
Smart Images

Figure CN118824005A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of autonomous driving technology, and specifically relates to a method and device for generating a simulated traffic scene based on natural language description. Background Art
[0002] Autonomous driving simulation systems are crucial tools in the development of autonomous driving algorithms. They simulate real-world traffic scenarios and enable the testing, evaluation, and optimization of relevant algorithms. However, the scenarios generated by these systems are relatively simple and cannot replicate the complex and diverse traffic scenarios found on real roads. While the diversity of these scenarios can be improved by restoring historical traffic scenarios recorded during real-world operation within the autonomous driving simulation system, these scenarios remain limited by the accumulation of historical traffic scene data and low generation efficiency. Summary of the Invention
[0003] In order to solve the above technical problems, the present invention proposes a method and device for generating a simulated traffic scene based on natural language description.
[0004] In order to achieve the above object, the technical solution of the present invention is as follows:
[0005] In one aspect, the present invention discloses a method for generating a simulated traffic scene based on natural language description, comprising:
[0006] Step S1: Collect historical traffic scene data;
[0007] Step S2: Formulate classification standards for traffic scene data and corresponding natural language descriptions;
[0008] Step S3: classify and label the collected historical traffic scene data based on the classification standard of traffic scene data;
[0009] Step S4: using historical traffic scene data annotated with natural language descriptions to train a traffic scene generation model;
[0010] Step S5: input the natural language of the traffic scene into the trained traffic scene generation model to generate a corresponding simulated traffic scene.
[0011] On the basis of the above technical solution, the following improvements can be made:
[0012] As a preferred solution, the historical traffic scene data in step S1 includes: sensor data of the autonomous driving vehicle, obstacle data in the current traffic scene, and environmental data of the current traffic scene.
[0013] As a preferred solution, the sensor data of the autonomous driving vehicle includes: one or more data collected by an optical camera, a lidar, or a millimeter-wave radar;
[0014] The obstacle data of the current traffic scene includes one or more data of the obstacle's position, speed, direction, and size;
[0015] The environmental data of the current traffic scene includes one or more data of lanes, intersections, and traffic lights.
[0016] As a preferred solution, step S2 formulates classification standards according to road type, intersection type, lane distribution, and obstacle distribution.
[0017] As a preferred solution, the traffic scene generation model generates a simulated traffic scene through the following steps:
[0018] Step a: Encode the natural language description of the traffic scene into a latent representation;
[0019] Step b: Generate a simulated traffic scenario based on the potential representation obtained in step a.
[0020] In addition, the present invention further discloses a device for generating a simulated traffic scene based on natural language description, comprising:
[0021] Collection module, used to collect historical traffic scene data;
[0022] A development module for developing classification standards for traffic scene data and corresponding natural language descriptions;
[0023] A labeling module is used to classify and label the collected historical traffic scene data based on the classification standard of traffic scene data;
[0024] A training module is used to train a traffic scene generation model using historical traffic scene data annotated with natural language descriptions;
[0025] The generation module is used to input the natural language of the traffic scene into the trained traffic scene generation model to generate the corresponding simulated traffic scene.
[0026] As a preferred solution, the acquisition module collects sensor data of the autonomous driving vehicle, obstacle data in the current traffic scene, and environmental data of the current traffic scene.
[0027] As a preferred solution, the sensor data of the autonomous driving vehicle includes: one or more data collected by an optical camera, a lidar, or a millimeter-wave radar;
[0028] The obstacle data of the current traffic scene includes one or more data of the obstacle's position, speed, direction, and size;
[0029] The environmental data of the current traffic scene includes one or more data of lanes, intersections, and traffic lights.
[0030] As a preferred solution, the formulation module formulates classification standards according to road type, intersection type, lane distribution, and obstacle distribution.
[0031] As a preferred solution, the traffic scene generation model includes:
[0032] A natural language processing unit for encoding the natural language description of the traffic scene into a latent representation;
[0033] The traffic scene generation unit is used to generate a simulated traffic scene based on the potential representation obtained by the natural language processing unit.
[0034] The present invention discloses a method and device for generating simulated traffic scenarios based on natural language descriptions. By collecting historical traffic scenario data, developing classification standards for the traffic scenario data and corresponding natural language descriptions, and classifying and labeling the traffic scenario data, the method trains a traffic scenario generation model. The method can generate simulated traffic scenarios based on natural language descriptions and adjust the differences in the simulated traffic scenarios by changing the natural language descriptions, thereby ensuring the diversity of the simulated traffic scenarios and improving the efficiency of the simulated traffic scenario generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 This is a flow chart of a method for generating a simulated traffic scene provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0039] The use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved and is not intended to imply that the objects so described must have a given order in time, space, ranking, or in any other manner.
[0040] In addition, the expression of “comprising” an element is an “open” expression, which merely means that corresponding components or steps exist, and should not be interpreted as excluding additional components or steps.
[0041] In order to achieve the purpose of the present invention, in some embodiments of the method and device for generating a simulated traffic scene based on natural language description, as Figure 1 As shown, the simulation traffic scene generation method includes:
[0042] Step S1: Collect historical traffic scene data;
[0043] Step S2: Formulate classification standards for traffic scene data and corresponding natural language descriptions;
[0044] Step S3: classify and label the collected historical traffic scene data based on the classification standard of traffic scene data;
[0045] Step S4: using historical traffic scene data annotated with natural language descriptions to train a traffic scene generation model;
[0046] Step S5: input the natural language of the traffic scene into the trained traffic scene generation model to generate a corresponding simulated traffic scene.
[0047] Furthermore, the historical traffic scene data in step S1 is recorded and saved by the actual operation of the autonomous driving vehicle, including: sensor data of the autonomous driving vehicle, obstacle data in the current traffic scene, and environmental data of the current traffic scene. Specifically:
[0048] Sensor data from autonomous vehicles includes data collected by optical cameras, lidar, and millimeter-wave radar;
[0049] Obstacle data of the current traffic scene includes: obstacle location, speed, direction, size, etc.
[0050] The environmental data of the current traffic scene includes: lanes, intersections, traffic lights, etc.
[0051] Furthermore, step S2 formulates classification standards according to road type, intersection type, lane distribution, and obstacle distribution. Specifically:
[0052] Road types include: expressways, urban roads, etc.
[0053] Intersection types include: non-intersection, crossroads, T-junction, special-shaped intersection, etc.
[0054] Lane distribution includes: number of lanes, lane direction, etc.;
[0055] Obstacle distribution includes: obstacle quantity, obstacle type, obstacle speed, etc.
[0056] Furthermore, step S4 uses historical traffic scene data annotated with natural language descriptions to train a traffic scene generation model, establishing a mapping relationship between the annotated natural language descriptions and the traffic scene data. The traffic scene generation model uses the natural language descriptions of traffic scenes as input and generates corresponding traffic scenes for simulation testing and analysis of autonomous driving algorithms.
[0057] Furthermore, the traffic scene generation model generates a simulated traffic scene through the following steps:
[0058] Step a: Encode the natural language description of the traffic scene into a latent representation;
[0059] Step b: Generate a simulated traffic scenario based on the potential representation obtained in step a.
[0060] By using a large amount of historical traffic scene data, the traffic scene generation model can have good generalization performance. By adjusting the natural language description and its different combinations, simulated traffic scenes can be generated, which can improve the efficiency of simulation scene generation while ensuring the diversity of simulated traffic scenes.
[0061] In addition, an embodiment of the present invention further discloses a device for generating a simulated traffic scene based on natural language description, comprising:
[0062] Collection module, used to collect historical traffic scene data;
[0063] A development module for developing classification standards for traffic scene data and corresponding natural language descriptions;
[0064] A labeling module is used to classify and label the collected historical traffic scene data based on the classification standard of traffic scene data;
[0065] A training module is used to train a traffic scene generation model using historical traffic scene data annotated with natural language descriptions;
[0066] The generation module is used to input the natural language of the traffic scene into the trained traffic scene generation model to generate the corresponding simulated traffic scene.
[0067] Furthermore, the acquisition module is based on the actual operation record and storage of the autonomous vehicle, which collects the sensor data of the autonomous vehicle, the obstacle data in the current traffic scene, and the environmental data of the current traffic scene. Specifically:
[0068] Sensor data from autonomous vehicles includes data collected by optical cameras, lidar, and millimeter-wave radar;
[0069] Obstacle data of the current traffic scene includes: obstacle location, speed, direction, size, etc.
[0070] The environmental data of the current traffic scene includes: lanes, intersections, traffic lights, etc.
[0071] Furthermore, the development module develops classification standards based on road type, intersection type, lane distribution, and obstacle distribution. Specifically:
[0072] Road types include: expressways, urban roads, etc.
[0073] Intersection types include: non-intersection, crossroads, T-junction, special-shaped intersection, etc.
[0074] Lane distribution includes: number of lanes, lane direction, etc.;
[0075] Obstacle distribution includes: obstacle quantity, obstacle type, obstacle speed, etc.
[0076] Furthermore, the training module uses historical traffic scene data annotated with natural language descriptions to train a traffic scene generation model, establishing a mapping relationship between the annotated natural language descriptions and the traffic scene data. The traffic scene generation model uses the natural language descriptions of traffic scenes as input and generates corresponding traffic scenes for simulation testing and analysis of autonomous driving algorithms.
[0077] Furthermore, the traffic scene generation model includes:
[0078] A natural language processing unit for encoding the natural language description of the traffic scene into a latent representation;
[0079] The traffic scene generation unit is used to generate a simulated traffic scene based on the potential representation obtained by the natural language processing unit.
[0080] The present invention discloses a method and device for generating simulated traffic scenarios based on natural language descriptions. By collecting historical traffic scenario data, developing classification standards for the traffic scenario data and corresponding natural language descriptions, and classifying and labeling the traffic scenario data, the method trains a traffic scenario generation model. The method can generate simulated traffic scenarios based on natural language descriptions and adjust the differences in the simulated traffic scenarios by changing the natural language descriptions, thereby ensuring the diversity of the simulated traffic scenarios and improving the efficiency of the simulated traffic scenario generation.
[0081] It should be understood that the various techniques described herein can be implemented in conjunction with hardware or software, or a combination thereof. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, can take the form of program code (i.e., instructions) embedded in a tangible medium, such as a floppy disk, CD-ROM, hard drive, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes an apparatus for practicing the present invention.
[0082] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which shall fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for generating simulated traffic scenes based on natural language description, characterized in that: include: Step S1: Collect historical traffic scene data; Step S2: Formulate classification standards for traffic scene data and corresponding natural language descriptions; Step S3: classify and label the collected historical traffic scene data based on the classification standard of traffic scene data; Step S4: using historical traffic scene data annotated with natural language descriptions to train a traffic scene generation model; Step S5: input the natural language of the traffic scene into the trained traffic scene generation model to generate a corresponding simulated traffic scene.
2. The method for generating a simulated traffic scene according to claim 1, characterized in that: The historical traffic scene data in step S1 includes: sensor data of the autonomous driving vehicle, obstacle data in the current traffic scene, and environmental data of the current traffic scene.
3. The method for generating a simulated traffic scene according to claim 2, characterized in that: The sensor data of the autonomous driving vehicle includes: one or more data collected by an optical camera, a laser radar, and a millimeter wave radar; The obstacle data of the current traffic scene includes: one or more data of the position, speed, direction, and size of the obstacle; The environmental data of the current traffic scene includes one or more data of lanes, intersections, and traffic lights.
4. The method for generating a simulated traffic scene according to claim 3, characterized in that: The step S2 formulates classification standards according to road type, intersection type, lane distribution, and obstacle distribution.
5. The method for generating a simulated traffic scene according to any one of claims 1 to 4, characterized in that: The traffic scene generation model generates a simulated traffic scene by the following steps: Step a: Encode the natural language description of the traffic scene into a latent representation; Step b: Generate a simulated traffic scenario based on the potential representation obtained in step a.
6. A device for generating simulated traffic scenes based on natural language description, characterized in that: include: Collection module, used to collect historical traffic scene data; A development module for developing classification standards for traffic scene data and corresponding natural language descriptions; A labeling module, used to classify and label the collected historical traffic scene data based on the classification standard of traffic scene data; A training module, used to train a traffic scene generation model using historical traffic scene data annotated with natural language descriptions; The generation module is used to input the natural language of the traffic scene into the trained traffic scene generation model to generate the corresponding simulated traffic scene.
7. The simulated traffic scene generation device according to claim 6, characterized in that: The acquisition module acquires sensor data of the autonomous driving vehicle, obstacle data in the current traffic scene, and environmental data of the current traffic scene.
8. The simulated traffic scene generation device according to claim 7, characterized in that: The sensor data of the autonomous driving vehicle includes: one or more data collected by an optical camera, a laser radar, and a millimeter wave radar; The obstacle data of the current traffic scene includes: one or more data of the position, speed, direction, and size of the obstacle; The environmental data of the current traffic scene includes one or more data of lanes, intersections, and traffic lights.
9. The simulated traffic scene generation device according to claim 8, characterized in that: The formulation module formulates classification standards according to road type, intersection type, lane distribution, and obstacle distribution.
10. The simulated traffic scene generation device according to any one of claims 6 to 9, characterized in that: The traffic scene generation model includes: A natural language processing unit for encoding a natural language description of a traffic scene into a latent representation; The traffic scene generation unit is used to generate a simulated traffic scene based on the potential representation obtained by the natural language processing unit.
Citation Information
Cited By
Traffic simulation scene generation method and system based on large language model
CN122088029A
