Driving scene generation method and system based on large language model
The driving scene generation method driven by a large language model, combined with scene prompts and thought chain descriptions, solves the problem of generating complex edge scenes in the existing technology, improves the reliability and usability of scene generation, and improves autonomous driving testing and decision-making training. efficiency.
Patent Information
- Application Number
- CN202410794745.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-20
AI Technical Summary
Existing driving scene generation methods cannot effectively generate complex and challenging edge scenes, and lack detailed contextual information and human common sense reasoning, resulting in generated scenes that are not reliable and usable.
A driving scene generation method based on a large language model is adopted. Through the technology of combining scene prompting, generation and optimization, the driving scene data and thinking chain description are used to guide the large language model to generate driving scene information, and the authenticity and rarity evaluation are carried out. Feedback tuning to improve the reliability and usability of generation.
It improves the reliability and usability of driving scene generation, enhances the efficiency of autonomous driving testing and decision-making training, and generates scenes that are more in line with vehicle dynamics constraints and human common sense.
Smart Images

Figure CN118674047A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a driving scene generation method and system based on a large language model. Background Art
[0002] In the field of autonomous driving, a large amount of driving scenario data is required for vehicle autonomous driving testing, predictive decision model training, etc. In the collected scenario data sets, most driving scenarios contain relatively safe driving behaviors, and only a few extreme scenarios have higher risks. Therefore, it is necessary to generate and expand more edge scenarios similar to natural driving scenarios.
[0003] Existing scene generation methods can be divided into two main categories: model-based methods and data-driven methods.
[0004] Model-based methods, common models such as the Intelligent Driver Model (IDM), can generate a continuous stream of driving scenarios. However, they are usually not sufficient to accurately describe specific vehicle behaviors and interactions, cannot handle complex interactions well, and the process of exploring and generating edge scenarios is often time-consuming and cannot adapt to complex scenarios with growing parameters.
[0005] Data-driven methods usually learn driving patterns in a large number of natural scenes through deep learning or reinforcement learning, mining the hidden information in the data to realistically reproduce the differences in scenes. However, during the scene generation process, limited semantic understanding may cause the scene to lack the detailed contextual information required for modeling. The generated challenging edge scenes are sometimes unrealistic or uncontrollable.
[0006] In addition, both model-based and data-driven methods cannot reason with human common sense, which reduces the reliability and usability of the generated scenarios. Summary of the invention
[0007] To solve the above problems, the present invention provides a driving scene generation method and system based on a large language model, which improves the reliability and usability of driving scene generation through a technical solution driven by a large language model that combines scene prompting, scene generation, and scene optimization.
[0008] To achieve the above object, the present invention adopts the following technical solution:
[0009] In a first aspect, the present disclosure provides a driving scene generation method based on a large language model, comprising:
[0010] Determining first driving scene prompt information based on the driving scene data;
[0011] Based on the first driving scene prompt information and the thought chain description, guiding the large language model to generate the first driving scene information;
[0012] Determining second driving scene prompt information based on an evaluation result of the first driving scene information;
[0013] Based on the second driving scene prompt information and thought chain description, the large language model is guided to generate target driving scene information.
[0014] Further, based on the driving scene data, determining the first driving scene prompt information includes:
[0015] extracting driving scenario data from a driving scenario database;
[0016] Convert driving scene data into driving scene text information, which includes: map information, traffic entity information, interaction information, and the relationship and status information between the self-vehicle and surrounding vehicles in each frame scene;
[0017] Based on the instruction text information, the driving scene text information, and the experience text information, first driving scene prompt information is determined.
[0018] Further, based on the first driving scene prompt information and the thought chain description, guiding the large language model to generate the first driving scene information includes:
[0019] Based on the thought chain description, the task of generating target driving scene information is split into thought chain tasks;
[0020] Based on the first driving scene prompt information and the thought chain task, the large language model is guided to generate the first driving scene information, and the first driving scene information satisfies the thought chain description and vehicle dynamics constraints.
[0021] Further, based on the evaluation result of the first driving scene information, determining the second driving scene prompt information includes:
[0022] evaluating the first driving scene information based on the authenticity and rarity of the driving scene;
[0023] Based on the evaluation results, the prompt information of the first driving scene is optimized;
[0024] Based on the optimized first driving scene prompt information, second driving scene prompt information is determined.
[0025] In a second aspect, the present disclosure further provides a driving scene generation system based on a large language model, comprising:
[0026] A scene prompt module, used to determine first driving scene prompt information based on the driving scene data;
[0027] A large language model scenario generation module, used to guide the large language model to generate first driving scenario information based on the first driving scenario prompt information and the thought chain description;
[0028] A scene tuning module, used for determining second driving scene prompt information based on an evaluation result of the first driving scene information;
[0029] The large language model scenario generation module is also used to guide the large language model to generate target driving scenario information based on the second driving scenario prompt information and thought chain description.
[0030] Furthermore, the scene prompt module is also used to:
[0031] extracting driving scenario data from a driving scenario database;
[0032] Convert driving scene data into driving scene text information, which includes: map information, traffic entity information, interaction information, and the relationship and status information between the self-vehicle and surrounding vehicles in each frame scene;
[0033] Based on the instruction text information, the driving scene text information, and the experience text information, first driving scene prompt information is determined.
[0034] Furthermore, the large language model scenario generation module is also used to:
[0035] Based on the thought chain description, the task of generating target driving scene information is split into thought chain tasks;
[0036] Based on the first driving scene prompt information and the thought chain task, the large language model is guided to generate the first driving scene information, and the first driving scene information satisfies the thought chain description and vehicle dynamics constraints.
[0037] Furthermore, the scene tuning module is also used to:
[0038] evaluating the first driving scene information based on the authenticity and rarity of the driving scene;
[0039] Based on the evaluation results, the prompt information of the first driving scene is optimized;
[0040] Based on the optimized first driving scene prompt information, second driving scene prompt information is determined.
[0041] In a third aspect, the present disclosure further provides an electronic device, including: a processor and a memory;
[0042] The processor is coupled to the memory;
[0043] The processor is used to read and execute the program or instructions stored in the memory, so that the device executes the method of the first aspect.
[0044] In a fourth aspect, the present disclosure further provides a computer-readable storage medium storing a computer program, which implements the method of the second aspect when executed by a processor.
[0045] In summary, the technical solution provided by this application has at least the following technical effects or advantages:
[0046] The technical solution of the present invention extracts scene information from a scene database, assigns roles and guides a large language model in combination with instruction text and experience text, introduces a thought chain to enhance the large language model's understanding of the scene, and then outputs a scene that is consistent with the description in the thought chain and the vehicle dynamics constraints, evaluates the scene for authenticity and rarity, and performs feedback tuning on the large language model based on the evaluation results, thereby improving the reliability and availability of driving scene generation, and thereby improving the efficiency of autonomous driving testing and decision training.
[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A schematic diagram of a process of generating a driving scene based on a large language model in an embodiment of the present disclosure;
[0050] Figure 2 A schematic diagram generated for a driving scenario driven by a large language model in an embodiment of the present disclosure;
[0051] Figure 3 A schematic diagram of a thought chain design generated for a driving scenario in an embodiment of the present disclosure;
[0052] Figure 4 Schematic diagram of factors involved in authenticity evaluation in an embodiment of the present disclosure;
[0053] Figure 5 A schematic diagram of data distribution before and after a generation scene corresponding to driving scene data in an embodiment of the present disclosure;
[0054] Figure 6A schematic diagram of generating examples of driving scenarios and explanations of a large language model in an embodiment of the present disclosure;
[0055] Figure 7 A schematic diagram of the effects of chain of thought (CoT) and experience text (Exp) on the generation of a large language model scenario in an embodiment of the present disclosure;
[0056] Figure 8 Schematic diagram of the structure of a driving scene generation system based on a large language model in an embodiment of the present disclosure;
[0057] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] Figure 1 The flowchart of a driving scene generation method based on a large language model in an embodiment of the present invention is shown in the figure. As shown in the figure, the method includes:
[0060] S101, determining first driving scene prompt information based on driving scene data;
[0061] Further, including:
[0062] extracting driving scenario data from a driving scenario database;
[0063] Convert driving scene data into driving scene text information, which includes: map information, traffic entity information, interaction information, and the relationship and status information between the self-vehicle and surrounding vehicles in each frame scene;
[0064] Based on the instruction text information, the driving scene text information, and the experience text information, first driving scene prompt information is determined.
[0065] S102, guiding the large language model to generate first driving scene information based on the first driving scene prompt information and the thought chain description;
[0066] Further, including:
[0067] Based on the thought chain description, the task of generating target driving scene information is split into thought chain tasks;
[0068] Based on the first driving scene prompt information and the thought chain task, the large language model is guided to generate the first driving scene information, and the first driving scene information satisfies the thought chain description and vehicle dynamics constraints.
[0069] S103, determining second driving scene prompt information based on an evaluation result of the first driving scene information;
[0070] Further, including:
[0071] evaluating the first driving scene information based on the authenticity and rarity of the driving scene;
[0072] Based on the evaluation results, the prompt information of the first driving scene is optimized;
[0073] Based on the optimized first driving scene prompt information, second driving scene prompt information is determined.
[0074] S104: Based on the second driving scene prompt information and the thought chain description, guide the large language model to generate target driving scene information.
[0075] Figure 2 This is a schematic diagram of a driving scenario generated by a large language model in an embodiment of the present disclosure. Figure 1 , Figure 2 Further explanation, as shown in the figure:
[0076] Driving scene data, including safe driving scene data and driving edge scenes (scenes with safety risks), are extracted from the driving scene database, and the driving scene data is converted into scene text information for description. The driving scene text information includes: map information, traffic entity information, interaction information, the relationship and status information between the self-vehicle and the surrounding vehicles in each frame scene, etc. (such as the example of the prompt engineering sentence below). Based on the scene text information, the instruction text information, and the experience text information, a scene prompt module, i.e., the first driving scene prompt information, is constructed. According to the instruction text information, the role of "scene generator" is assigned to the large language model, and the goal is to generate new risky and adjustable edge scenes, which can guide the dialogue of the large language model more purposefully and reduce the interference of irrelevant information or topics, thereby improving efficiency. Exemplarily, the instruction text information, such as "You will generate edge scene information similar to the scene text information as a scene generator", etc. The experience text information can be the scene text information obtained by experts in the field of autonomous driving through analysis and evaluation of driving scene data, such as vehicle trajectory data, and corresponding evaluation results, such as violation of traffic rules, vehicle collision, etc.; it can also be the driving scene text information generated by the large language model scene generation module, and the evaluation results obtained after the scene tuning module evaluates. Incorporating empirical textual information into dialogue prompts for large language models can further enhance the reasoning potential of large language models to generate more valuable and challenging scene information.
[0077] According to the dialogue prompts of the scene prompt module to the large language model, the thought chain process is introduced to help the large language model understand the scene. The problem description of the thought chain process guides the large language model to generate driving scene information, that is, the first driving scene information. The thought chain process, that is, the thought chain task, refers to the task of producing driving scene information, which is further decomposed into tasks such as task perception, object detection, interaction recognition and risk reasoning. The corresponding thought chain task question response and its hierarchical relationship are as follows: Figure 3 As shown in the figure, task perception guides the large language model to clarify that the current prompt task is to generate a marginal risk scene that is similar to but different from the prompt scene; object detection extracts the information about vehicles and lanes in the scene text; interaction recognition clarifies the interaction and conflict relationship between vehicles in the prompt scene; risk reasoning infers the movement and interaction risks between vehicles in the prompt scene, specifically when and where. If the problem of the thought chain task is well explained, that is, it conforms to the real information of the scene and human common sense, it can be determined that the large language model can correctly understand its role and task and extract the core essence of the prompt scene. Since the road information is fixed, the large language model only needs to output the generated new vehicle trajectory, which is further combined with the road map to form the scene information. Therefore, the output format of the vehicle trajectory is specified for the large language model, such as the format is specified as a vehicle trajectory composed of a series of discrete position points, and it is emphasized that the generated vehicle trajectory should meet the vehicle dynamics constraints, such as the speed and acceleration cannot exceed the normal range. Based on the above dialogue prompts, thought chain description, and specified scene output format, the large language model is guided to generate scene information and interpret the scene information. The interpretation content includes detailed scene description and risk analysis. Scenario description refers to the self-explanation of scenario information by the big language model, describing the content of the scenario; risk analysis refers to the description of the risk of the scenario. The explained scenario information is the first driving scenario information. The big language model self-explanates the scenario information for verification:
[0078] 1) Whether the generated driving scenario information is similar to the prompt scenario and has similar risk and rarity;
[0079] 2) Whether the interpretation of the produced driving scenes is consistent with the real information of the scenes themselves, so as to illustrate the logic and interpretability of the large language model.
[0080] The authenticity and rarity of the first driving scene information are evaluated and scored, and the total score of the authenticity score and the rarity score is the evaluation result. Based on the evaluation result and the set score threshold, the driving scene information with an evaluation result lower than the score threshold, that is, the scene information that violates the authenticity and rarity (such as vehicle collision, driving out of the drivable area, etc.), is transmitted back to the experience text information in the scene prompt module for feedback tuning of the large language model.
[0081] In the present disclosure, the evaluation of the authenticity and rarity of the first driving scene information is marked as the sum of the authenticity score and the rarity score, expressed as:
[0082] S=S reality +S rarity
[0083] In the formula, S represents the total score of the authenticity and rarity of the driving scene, S reality represents the authenticity score, S rarity Represents the rarity score.
[0084] The authenticity score is expressed as:
[0085]
[0086] In the formula, S reality represents the authenticity score; GS represents the authenticity status corresponding to the current scene; U is a set of non-real typical conditions, including vehicle collision, violation of vehicle dynamics, violation of traffic rules and driving out of the drivable area (such as Figure 4 If the above situation in U occurs, the scene will be scored 0 points; if the above situation in U does not occur, the scene meets the authenticity, and the authenticity score will accumulate α (a positive number) points.
[0087] The rarity score is expressed as:
[0088]
[0089] In the formula, S rarity represents the rarity score, D P is the scene distance from the risk scenario, D N is the scene distance from the normal safety scenario, D G is the scene distance to the previously generated scene in the same round of generation. Since normal scenes are usually clustered together, we can randomly select a part of normal samples to obtain the calculation D N , to save computational cost. In addition, we set D T is the scene threshold, which ensures that on the one hand, the generated scene should be close to the risk scene of the prompt, because we want to expand more valuable challenging scenes. On the other hand, the generated scene should not be too similar to the prompt scene, which indicates that the large language model has repeated and useless knowledge transfer. b1, b2, b3 are weight parameters, and they are all positive.
[0090] The specific calculation method of the scene distance D uses the dynamic time warping (DTW) distance summarized by comparing each scene frame:
[0091]
[0092] In the formula, x, y are the xth and yth frames of the two scenes being compared, and K(x, y) is the comparison distance between the xth and yth frames of the two scenes. The shortest distance D is calculated by forming a combination vector with the state information of each vehicle in the two comparison scenes. min (x,y). D(x,y) is the summary distance of the dynamic scene fragments.
[0093] After the experience text in the above-mentioned scenario prompt module is fed back and optimized based on the above-mentioned evaluation results, the problem description of the thinking chain process is continued to guide the large language model to generate driving scenario information, that is, the target driving scenario information, and the scenario information is interpreted and evaluated. The scenes that meet the authenticity and rarity requirements are saved in the scenario database for vehicle autonomous driving testing, predictive decision model training and other aspects.
[0094] The step of transmitting back and optimizing the experience text in the scene prompt module according to the evaluation results can be performed once or multiple times, and the step of guiding the large language model to generate driving scene information can also be performed once or multiple times, which can be determined according to actual needs.
[0095] The following table summarizes examples of prompt engineering statements:
[0096]
[0097]
[0098] The technical solution of the present disclosure is further explained by experimental evaluation:
[0099] In the experiment, the HighD dataset released by the Institute of Automotive Engineering of RWTH Aachen University in Germany was used in the disclosed embodiment (data of two types of vehicles, small cars and large cars, were collected at a location near Cologne, Germany), and scenes were generated based on the HighD dataset. This dataset contains natural trajectories recorded on German highways. These data were collected at six different locations and contain different vehicle behaviors. The first location is mainly selected here as the road environment for display. The types of interactions in highway scenarios generally include D-Following (following vehicles in the same direction), D-ConflictLine (road right conflicts occur when vehicles change their movements, typical behaviors such as lane changing), and d-follow&conflict (following and changing lanes at the same time).
[0100] like Figure 5The changes in the scene distribution before and after the generation of driving scene information in the database are shown in Figure 2. It can be observed that the most complex and valuable interaction types (i.e., simultaneous following and conflict, D-Following&Conflict) account for the smallest proportion. In addition, in the distribution of this scene type, the number of edge risk scenes is significantly less than that of normal safety scenes. Therefore, the technical solution proposed in the present disclosure focuses on expanding the extreme scenarios of simultaneous following and lane changing, selects some natural risk scene fragments as prompts, and generates hundreds of new scenes, hoping that these scenarios will be as challenging as existing ones. Scenes that meet the requirements of authenticity and rarity will be retained in our scene database. From the distribution of the scenes after generation, it can be seen that the scenes of complex interaction types have been expanded, and the number of risk scenes distributed at the edge has increased significantly.
[0101] like Figure 6 As shown, the present disclosure provides a typical example of generating new scenarios on a two-lane highway. The large language model not only retains the lane change tasks and interactions, but also increases the risk of the scenario. This expansion of edge scenarios is very valuable for model training and testing. In a multi-lane environment, the large language model can also use the road environment to generate richer interactive scenarios. Its self-explanation of the scenario shows that it can understand our purpose and has the intelligence to automatically generate scenarios.
[0102] The big language model is stimulated and emerged with the help of thought chain (CoT) and experience text (Exp). Adding thought chain to the output text can guide the big language model to understand our purpose and prompt the scene. Providing experience text according to the scene evaluation results can further help the big language model avoid the generation of bad scenes.
[0103] First, we compared the evaluation results with and without using thought chaining. Figure 7 As shown on the left, the average rarity and authenticity scores with thought chaining are much higher than those without thought chaining. The main reason is that without thought chaining, the large language model cannot clearly understand what to do. The generated scenes are either very similar to the prompt scenes or not realistic. Based on the evaluation indicators, we filter out samples that are too close to the prompt scenes and unrealistic.
[0104] Secondly, in the setting of thought chain, we further studied the influence of experience text. We selected some typical situations, such as vehicle collision, no vehicle interaction, non-challenging vehicle tasks, etc., and added them to the experience text for a new round of generation. The comparison results are shown in Figure 2. Figure 7As shown on the right, experience text can reduce unreasonable cases and slightly improve the average rarity and authenticity scores. In the highway environment, we can achieve good performance with CoT alone and appropriately save the character occupation cost of experience text. For more complex scenarios, experience text may play a more important role.
[0105] In summary, the technical solution provided by this application has at least the following technical effects or advantages:
[0106] The technical solution of the present invention extracts scene information from a scene database, assigns roles and guides a large language model in combination with instruction text and experience text, introduces a thought chain to enhance the large language model's understanding of the scene, and then outputs a scene that is consistent with the description in the thought chain and the vehicle dynamics constraints, evaluates the scene for authenticity and rarity, and performs feedback tuning on the large language model based on the evaluation results, thereby improving the reliability and availability of driving scene generation, and thereby improving the efficiency of autonomous driving testing and decision training.
[0107] Figure 8 The structure diagram of a driving scene generation system based on a large language model in an embodiment of the present invention is shown in the figure. As shown in the figure, the system includes:
[0108] A scene prompt module, used to determine first driving scene prompt information based on the driving scene data;
[0109] A large language model scenario generation module, used to guide the large language model to generate first driving scenario information based on the first driving scenario prompt information and the thought chain description;
[0110] A scene tuning module, used for determining second driving scene prompt information based on an evaluation result of the first driving scene information;
[0111] The large language model scenario generation module is also used to guide the large language model to generate target driving scenario information based on the second driving scenario prompt information and thought chain description.
[0112] It should be noted that, for the sake of convenience, Figure 8 For example, only the main modules of the driving scene generation system structure based on the large language model are shown. In practical applications, the system may also include modules or components not shown in the figure; the system is not limited to the above module structure, and can also be other module structures that implement the driving scene generation method based on the large language model of the above embodiment.
[0113] Fig. 9 The present invention is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0114] like Fig. 9 As shown, the electronic device includes: a processor and a memory;
[0115] Among them, the processor is used to read and execute the programs and instructions stored in the memory, so that the electronic device executes the driving scene generation method based on the large language model in the above-mentioned method embodiment.
[0116] It should be noted that, for the sake of convenience, Fig. 9 Only the main components of the electronic device are shown. In practical applications, the electronic device may also include components or assemblies not shown in the figure.
[0117] The present invention also provides a computer-readable storage medium storing a program or instruction. When a computer reads and executes the program or instruction, the computer executes the driving scene generation method based on a large language model in the above-mentioned method embodiment.
[0118] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A driving scene generation method based on a large language model, characterized in that: include: Determining first driving scene prompt information based on the driving scene data; Based on the first driving scene prompt information and the thought chain description, guiding the large language model to generate the first driving scene information; Determining second driving scene prompt information based on an evaluation result of the first driving scene information; Based on the second driving scene prompt information and thought chain description, the large language model is guided to generate target driving scene information.
2. The driving scene generation method based on a large language model according to claim 1, characterized in that: The determining, based on the driving scene data, first driving scene prompt information includes: extracting driving scenario data from a driving scenario database; Converting the driving scene data into driving scene text information, wherein the driving scene text information includes: map information, traffic entity information, interaction information, and the relationship and status information between the vehicle and surrounding vehicles in each frame scene; Based on the instruction text information, the driving scene text information, and the experience text information, first driving scene prompt information is determined.
3. The driving scene generation method based on a large language model according to claim 1, characterized in that: The step of guiding the large language model to generate the first driving scene information based on the first driving scene prompt information and the thought chain description includes: Based on the thought chain description, the task of generating target driving scene information is split into thought chain tasks; Based on the first driving scene prompt information and the thought chain task, the large language model is guided to generate the first driving scene information, and the first driving scene information satisfies the thought chain description and the vehicle dynamics constraints.
4. The driving scene generation method based on a large language model according to any one of claims 1 to 3, characterized in that: The determining of second driving scene prompt information based on the evaluation result of the first driving scene information includes: evaluating the first driving scene information based on the authenticity and rarity of the driving scene; Based on the evaluation result, optimizing the first driving scenario prompt information; Based on the optimized first driving scene prompt information, second driving scene prompt information is determined.
5. A driving scene generation system based on a large language model, characterized in that: include: A scene prompt module, used to determine first driving scene prompt information based on the driving scene data; A large language model scenario generation module, used to guide the large language model to generate first driving scenario information based on the first driving scenario prompt information and the thought chain description; A scene tuning module, configured to determine second driving scene prompt information based on an evaluation result of the first driving scene information; The large language model scenario generation module is also used to guide the large language model to generate target driving scenario information based on the second driving scenario prompt information and thought chain description.
6. The driving scene generation system based on a large language model according to claim 5, characterized in that: The scene prompt module is also used for: extracting driving scenario data from a driving scenario database; Converting the driving scene data into driving scene text information, wherein the driving scene text information includes: map information, traffic entity information, interaction information, and the relationship and status information between the vehicle and surrounding vehicles in each frame scene; Based on the instruction text information, the driving scene text information, and the experience text information, first driving scene prompt information is determined.
7. The driving scene generation system based on a large language model according to claim 5, characterized in that: The large language model scenario generation module is also used for: Based on the thought chain description, the task of generating target driving scene information is split into thought chain tasks; Based on the first driving scene prompt information and the thought chain task, the large language model is guided to generate the first driving scene information, and the first driving scene information satisfies the thought chain description and the vehicle dynamics constraints.
8. The driving scene generation system based on a large language model according to any one of claims 5 to 7, characterized in that: The scene optimization module is also used for: evaluating the first driving scene information based on the authenticity and rarity of the driving scene; Based on the evaluation result, optimizing the first driving scenario prompt information; Based on the optimized first driving scene prompt information, second driving scene prompt information is determined.
9. An electronic device, characterized in that: include: Processor and memory; The processor is coupled to the memory; The processor is used to read and execute the program or instruction stored in the memory, so that the device executes the method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
