Automatic driving simulation test generation method and device

By semantic parsing and rule validation of user scenario generation requests, autonomous driving simulation test scenarios conforming to map topology are generated, solving the problems of low generation efficiency and poor accuracy in existing technologies, and achieving more efficient and reliable simulation testing.

CN123156641APending Publication Date: 2026-11-24VOYAH AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611307556.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing autonomous driving simulation test scenario generation efficiency is low and parameter settings are unreasonable, resulting in poor overall efficiency and effectiveness of simulation testing. In particular, it is difficult to guarantee the accuracy and feasibility of scenario generation in complex traffic environments.

Method used

By acquiring user scenario generation requests, semantic parsing is performed to determine test slots and intentions, pre-rule verification and automatic correction are executed, and simulation scenario files are generated by combining the road topology of the target map, including hard rules to verify map capability constraints and soft rules to verify the rationality of behavior labels.

Benefits of technology

It improves the structural integrity, logical consistency, and adaptability to map topology of generated autonomous driving simulation test scenarios, reduces the risk of intent parsing deviation and scenario unexecutability, and enhances the accuracy and feasibility of simulation testing in complex traffic environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123156641A_ABST
    Figure CN123156641A_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for generating autonomous driving simulation tests, relating to the field of vehicle simulation testing technology. The method includes: obtaining a scene generation request corresponding to an autonomous driving simulation test submitted by a user; performing semantic parsing on the scene generation request to obtain the test slot and test intent corresponding to the scene generation request; if the test intent indicates that the scene generation request belongs to the autonomous driving simulation test generation domain, and the test slot includes necessary slots, then based on the test slot, obtaining the semantic scene and map identifier corresponding to the scene generation request; performing pre-verification of the semantic scene using pre-rule validation, and automatically correcting the semantic scene according to the validation result of the pre-verification, obtaining the validated semantic scene; and generating a target simulation scene file based on the road topology of the target map corresponding to the validated semantic scene and map identifier. This application aims to achieve high overall efficiency and effectiveness in autonomous driving simulation testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle simulation testing technology, and in particular to an autonomous driving simulation test generation method and apparatus. Background Technology

[0002] Autonomous driving simulation testing is a crucial step in the research, development, verification, and iteration of intelligent driving systems. To verify the performance of perception, prediction, planning, and control modules in complex traffic environments, it is necessary to construct numerous simulation test scenarios covering different road topologies, traffic participants, weather and lighting conditions, interactive behaviors, and boundary conditions. The efficiency and quality of scenario construction directly impact the development cycle of the autonomous driving system and the adequacy of safety verification.

[0003] In related technologies, simulation test scenarios are generated through a combination of template libraries and manual configuration, resulting in test files and map parameters. Specifically, firstly, a scenario template library is pre-established, defining fields such as the primary vehicle, target vehicle, pedestrians, traffic signals, weather, road topology, and event triggers. Users assemble the template and input parameters to obtain the test file after filling out forms, selecting configuration items, or inputting parameters via scripts. Simultaneously, map parameters are obtained by users directly selecting map identifiers (IDs), lane IDs, or coordinate points, or by manually dragging and dropping objects in a visual interface to determine spatial coordinates. This approach suffers from low production efficiency of simulation test scenarios and unreasonable parameter settings, leading to poor overall efficiency and effectiveness in autonomous driving simulation testing. Summary of the Invention

[0004] This application provides an autonomous driving simulation test generation method and apparatus to improve the overall efficiency and effectiveness of autonomous driving simulation testing.

[0005] In a first aspect, embodiments of this application provide a method for generating autonomous driving simulation tests, including:

[0006] Obtain the scenario generation request corresponding to the autonomous driving simulation test submitted by the user;

[0007] Perform semantic parsing on the scenario generation request to obtain the test slot and test intent corresponding to the scenario generation request;

[0008] If the test intent indicates that the scene generation request belongs to the autonomous driving simulation test generation domain, and the test slot includes necessary slots, then based on the test slots, the semantic scene and map identifier corresponding to the scene generation request are obtained.

[0009] The semantic scene is subjected to pre-rule verification, and the semantic scene is automatically corrected according to the verification results of the pre-rule verification to obtain the verified semantic scene. The pre-rule verification includes hard rule verification to check whether the requirements corresponding to the semantic scene exceed the map capability constraints of the map identifier, and soft rule verification to check whether the behavior labels corresponding to the semantic scene are within the preset reasonable range.

[0010] Based on the verified semantic scene and the road topology of the target map corresponding to the map identifier, a target simulation scene file is generated.

[0011] In one possible implementation, the test slots include: map name, scene slots, behavior slots, and environment slots. Based on the test slots, the semantic scene and map identifiers corresponding to the scene generation request are obtained, including:

[0012] Based on historical samples that match the test slots in the scenario sample library, the parameter patterns and error avoidance in the historical samples are obtained. The scenario sample library includes successful samples and failed samples.

[0013] Mapping map names to standard map entities yields map identifiers corresponding to test slots. Map identifiers include map ID, matching confidence, and map capability constraints.

[0014] The scene slots, behavior slots, and environment slots are mapped to a hierarchical tag system to obtain test scene tags. The test scene tags are used to describe the map range configured for the scene generation request.

[0015] Based on test slots, parameter patterns, error avoidance, and test scenario tags, construct semantic scenarios corresponding to scenario generation requests.

[0016] In one possible implementation, a target simulation scene file is generated based on the road topology of the target map corresponding to the verified semantic scene and map identifiers, including:

[0017] Based on the relative spatial anchor points of different traffic participants in the verified semantic scene and the road topology of the target map corresponding to the map identifier, the relative spatial anchor points of different traffic participants are converted into global coordinates in the target map. Among them, traffic participants include at least one of the following: the main vehicle, the target vehicle, and the pedestrian.

[0018] Based on global coordinates and the behavior of different traffic participants corresponding to semantic scenes, a target simulation scene file is generated.

[0019] In one possible implementation, based on the relative spatial anchors of different traffic participants within the verified semantic scene and the road topology of the target map corresponding to the map identifiers, the relative spatial anchors of different traffic participants are converted into global coordinates within the target map, including:

[0020] Based on the relative spatial anchor points of different traffic participants within the verified semantic scene, the target lane in the target map is determined for each traffic participant.

[0021] Based on the semantic context, the target lane is determined according to the lane connection relationship and adjacent lane relationship in the target map;

[0022] Project along the center of the target lane at longitudinal distance, and determine the initial pose of the traffic participants based on lateral offset, lane width, and the size of the traffic participants;

[0023] By verifying whether the position corresponding to the initial pose is located in a drivable or parking area, the global coordinates of the traffic participants are obtained.

[0024] In one possible implementation, a target simulation scene file is generated based on global coordinates and the behaviors of different traffic participants corresponding to the semantic scene, including:

[0025] Based on global coordinates and behavioral descriptions in the semantic scene, several mutually influential behavioral units are generated.

[0026] Based on behavioral units, construct full-scale structured information of semantic scenes;

[0027] Based on the full structured information, multiple target simulation scene files are exported. The target simulation scene files include scene description files, trajectory files, and configuration files.

[0028] In one possible implementation, the autonomous driving simulation test generation method orchestrates functional nodes through a directed graph workflow, with each functional node reading and updating the same global state object.

[0029] In one possible implementation, the autonomous driving simulation test generation method further includes:

[0030] If the test slot does not include the necessary slot, a clarification process is triggered to ask the user for information about the missing necessary slot.

[0031] If the test intent of the scenario generation request does not belong to the driving simulation test generation domain, an exception message will be output. The exception message is used to inform the user that only requests corresponding to the driving simulation test generation domain are supported.

[0032] In one possible implementation, semantic parsing is performed on the scene generation request to obtain the test slot and test intent corresponding to the scene generation request, including:

[0033] Identify explicit keywords, numerical values, and enumeration items in the scene generation request to obtain the primary intent corresponding to the scene generation request;

[0034] Identify the implicit semantics and contextual relationships in the scene generation request to obtain the second intent corresponding to the scene generation request;

[0035] Based on the first intent and the second intent, the test slot and test intent corresponding to the scenario generation request are obtained.

[0036] In one possible implementation, the hard rules include at least the following: ramp merging scenarios must have ramp topology, pedestrians must not appear in highway scenarios, parking scenarios must be located in parking areas, and multiple file participants must be consistent; the soft rules include at least the target vehicle cut-in distance threshold, speed difference range, weather default value, and complexity.

[0037] Secondly, embodiments of this application provide an autonomous driving simulation test generation device, comprising:

[0038] The acquisition module is used to acquire the scenario generation request corresponding to the autonomous driving simulation test submitted by the user;

[0039] The processing module performs semantic parsing on the scene generation request to obtain the test slot and test intent corresponding to the scene generation request. If the test intent indicates that the scene generation request belongs to the autonomous driving simulation test generation domain, and the test slot includes necessary slots, then based on the test slot, the semantic scene and map identifier corresponding to the scene generation request are obtained. Pre-verification of the semantic scene is performed, and the semantic scene is automatically corrected according to the verification results of the pre-verification to obtain the verified semantic scene. The pre-verification of the rules includes hard rule verification to check whether the requirements corresponding to the semantic scene exceed the map capability constraints of the map identifier, and soft rule verification to check whether the behavior labels corresponding to the semantic scene are within a preset reasonable range. Based on the road topology of the target map corresponding to the verified semantic scene and map identifier, a target simulation scene file is generated.

[0040] In one possible implementation, the test slots include: map name, scene slots, behavior slots, and environment slots; the processing module is specifically used for:

[0041] Based on historical samples that match the test slots in the scenario sample library, the parameter patterns and error avoidance in the historical samples are obtained. The scenario sample library includes successful samples and failed samples.

[0042] Mapping map names to standard map entities yields map identifiers corresponding to test slots. Map identifiers include map ID, matching confidence, and map capability constraints.

[0043] The scene slots, behavior slots, and environment slots are mapped to a hierarchical tag system to obtain test scene tags. The test scene tags are used to describe the map range configured for the scene generation request.

[0044] Based on test slots, parameter patterns, error avoidance, and test scenario tags, construct semantic scenarios corresponding to scenario generation requests.

[0045] In one possible implementation, the processing module is specifically used for:

[0046] Based on the relative spatial anchor points of different traffic participants in the verified semantic scene and the road topology of the target map corresponding to the map identifier, the relative spatial anchor points of different traffic participants are converted into global coordinates in the target map. Among them, traffic participants include at least one of the following: the main vehicle, the target vehicle, and the pedestrian.

[0047] Based on global coordinates and the behavior of different traffic participants corresponding to semantic scenes, a target simulation scene file is generated.

[0048] In one possible implementation, the processing module is further configured to:

[0049] Based on the relative spatial anchor points of different traffic participants within the verified semantic scene, the target lane in the target map is determined for each traffic participant.

[0050] Based on the semantic context, the target lane is determined according to the lane connection relationship and adjacent lane relationship in the target map;

[0051] Project along the center of the target lane at longitudinal distance, and determine the initial pose of the traffic participants based on lateral offset, lane width, and the size of the traffic participants;

[0052] By verifying whether the position corresponding to the initial pose is located in a drivable or parking area, the global coordinates of the traffic participants are obtained.

[0053] In one possible implementation, the processing module is further configured to:

[0054] Based on global coordinates and behavioral descriptions in the semantic scene, several mutually influential behavioral units are generated.

[0055] Based on behavioral units, construct full-scale structured information of semantic scenes;

[0056] Based on the full structured information, multiple target simulation scene files are exported. The target simulation scene files include scene description files, trajectory files, and configuration files.

[0057] In one possible implementation, the processing module is further configured to: orchestrate functional nodes through a directed graph workflow, wherein each functional node reads and updates the same global state object.

[0058] In one possible implementation, the processing module is further configured to: if the test slot does not include the necessary slot, trigger a clarification process to query the user for information corresponding to the missing necessary slot;

[0059] If the test intent of the scenario generation request does not belong to the driving simulation test generation domain, an exception message will be output. The exception message is used to inform the user that only requests corresponding to the driving simulation test generation domain are supported.

[0060] In one possible implementation, the processing module is specifically used for:

[0061] Identify explicit keywords, numerical values, and enumeration items in the scene generation request to obtain the primary intent corresponding to the scene generation request;

[0062] Identify the implicit semantics and contextual relationships in the scene generation request to obtain the second intent corresponding to the scene generation request;

[0063] Based on the first intent and the second intent, the test slot and test intent corresponding to the scenario generation request are obtained.

[0064] In one possible implementation, the hard rules include at least the following: ramp merging scenarios must have ramp topology, pedestrians must not appear in highway scenarios, parking scenarios must be located in parking areas, and multiple file participants must be consistent; the soft rules include at least the target vehicle cut-in distance threshold, speed difference range, weather default value, and complexity.

[0065] Thirdly, embodiments of this application provide an autonomous driving simulation test generation device, including: a memory and a processor;

[0066] The memory stores instructions that the computer executes;

[0067] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0068] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0069] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0070] The autonomous driving simulation test generation method and apparatus provided in this application obtain a scenario generation request corresponding to an autonomous driving simulation test submitted by a user, and perform semantic parsing on the scenario generation request to obtain test slots and test intentions. Then, if the test intention indication belongs to the autonomous driving simulation test generation domain and satisfies the necessary slots, a semantic scenario and map identifier are determined based on the test slots. Subsequently, pre-rule verification and automatic correction are performed on the semantic scenario, including hard rule verification of map capability constraints and soft rule verification of reasonable range of behavior labels. The target simulation scenario file is generated by combining the verified semantic scenario with the road topology of the target map. This improves the structural integrity, logical consistency, and adaptability to map topology of the natural language scenario generation results, thereby reducing the risks of intent parsing deviation, missing key fields, and scenario unexecutability, and improving the accuracy and feasibility of generating autonomous driving simulation test scenarios in complex traffic environments. Attached Figure Description

[0071] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0072] Figure 1 A schematic diagram of a scenario for the autonomous driving simulation test generation method provided in this application embodiment;

[0073] Figure 2 A flowchart illustrating the autonomous driving simulation test generation method provided in this application embodiment. Figure 1 ;

[0074] Figure 3 A flowchart illustrating the autonomous driving simulation test generation method provided in this application embodiment. Figure 2 ;

[0075] Figure 4 This is a schematic diagram of the structure of the autonomous driving simulation test generation device provided in the embodiments of this application;

[0076] Figure 5 This is a schematic diagram of the structure of the autonomous driving simulation test generation device provided in the embodiments of this application.

[0077] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0078] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.

[0079] Autonomous driving simulation testing is a key supporting technology in the field of intelligent driving research and verification. It is commonly used for functional verification, regression testing, boundary scenario reproduction, and regulatory scenario construction. Autonomous driving simulation testing typically relies on processing steps such as scenario input, semantic understanding, map matching, and simulation file output to convert test requirements into scenario configurations that can be executed by the simulation platform.

[0080] In related technologies, autonomous driving simulation test scenarios are generated based on templates and rules, as well as structured files based on natural language. The former typically requires users to pre-specify maps, behaviors, participants, and parameter information, and then the system outputs a scenario file by piecing together a pre-defined template. The latter directly converts text descriptions into structured results through semantic models, improving interactive convenience and scenario generation efficiency. However, in complex traffic environments, template-based solutions heavily rely on user expertise; users often need to explicitly fill in map identifiers, behavioral parameters, and constraint information, making it difficult to adapt to test requests with incomplete descriptions or complex semantics. While directly generating structured results lowers the input threshold, it is prone to issues such as intent recognition bias, missing necessary slots, map capability mismatch, and unreasonable behavior labels, resulting in inconsistencies between the generated content and the actual road topology. This approach is prone to vehicle behavior conflicts, map adaptation failures, or overall logical inconsistencies when executing scenario files, especially in complex scenarios such as ramp merging and multi-vehicle interactions, which can easily affect the authenticity and reusability of test results, thereby reducing the efficiency and reliability of autonomous driving simulation testing. In summary, improving the accuracy and feasibility of natural language-driven scene generation has become an urgent technical problem to be solved.

[0081] This application provides a method for generating autonomous driving simulation tests. After obtaining a scene generation request, the method performs semantic parsing on the request to obtain test slots and test intentions. When the test intention indicates that the request belongs to the autonomous driving simulation test generation domain and the test slots include necessary slots, the method determines the corresponding semantic scene and map identifier based on the test slots, performs pre-rule verification and automatic correction on the semantic scene, and finally generates a target simulation scene file by combining the road topology of the target map. The technical approach provided by this application can be deployed in a layered architecture that includes modules such as input processing, intent understanding, map parsing, scene generation, and verification and repair. Each module works together to complete request understanding, map constraint adaptation, semantic scene verification, and simulation file output, thereby improving the structural integrity, logical consistency, and execution availability of scene generation in complex traffic environments.

[0082] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0083] Figure 1 This is a schematic diagram of a scenario for the autonomous driving simulation test generation method provided in the embodiments of this application, such as... Figure 1 As shown, the specific application scenarios of this application embodiment include processing center 11, data center 12, and user 13, wherein:

[0084] User 13 and processing center 11 interact via a wired or wireless network connection. User 13 is the initiator of requests and the receiver of results; processing center 11 is the core business logic executor and provides the interaction interface to the outside world.

[0085] The processing center 11 and the data center 12 are connected via an internal high-speed network or data bus. The processing center 11 is the user and processor of the data; the data center 12 is the basic data foundation, responsible for storing and providing static and dynamic resources such as map data, road topology, and preset rule bases.

[0086] User 13 is responsible for submitting scene generation requests for autonomous driving simulation tests and receiving and viewing the target simulation scene files generated and returned by the processing center 11.

[0087] Processing center 11 is responsible for receiving scene generation requests from user 13, performing semantic parsing on the requests, and extracting test slots and test intents. It determines whether the test intent belongs to the simulation generation domain and checks whether the necessary slots are complete. If the verification passes, it generates the corresponding semantic scene and determines the map identifier based on the slot content. Optionally, when determining the map identifier, processing center 11 may request basic map information from data center 12 to verify the validity of the map identifier.

[0088] Processing center 11 is also used to query the data center 12 for the "map capability constraints" of the map identifier, perform hard rule verification, and call the built-in behavior label reasonable range library for soft rule verification. Afterwards, based on the feedback of verification failures, processing center 11 automatically corrects conflict parameters in the semantic scene (such as reducing vehicle speed or changing road sections) to obtain the verified semantic scene. Subsequently, it requests detailed road topology data of the target map from data center 12, combines the verified semantic scene with the topology data, assembles and generates the final target simulation scene file, and sends it back to user 13.

[0089] Data Center 12, as a passive data service provider, is responsible for storing and responding to data queries: storing and providing basic metadata corresponding to all map identifiers for Processing Center 11 to verify whether the map requested by the user exists; storing map capability constraint sets (such as maximum road gradient, intersection type, and available area boundaries), responding to hard rule queries from Processing Center 11, and outputting the map's capability boundary parameters so that Processing Center 11 can make boundary judgments; storing and providing the complete road topology network of the target map (including structured data such as lane connection relationships, traffic light phases, and roadside unit locations) for Processing Center 11 to generate scene files in standard format.

[0090] Figure 2 A flowchart illustrating the autonomous driving simulation test generation method provided in this application embodiment. Figure 1 ,like Figure 2 As shown, the method includes:

[0091] S201. Obtain the scenario generation request corresponding to the autonomous driving simulation test submitted by the user.

[0092] The scene generation request serves as the initial input to the scene generation process, carrying information such as the road environment, traffic participants, behavioral relationships, environmental conditions, and temporal constraints that the user wishes to reproduce in the simulation platform. The scene generation request can be natural language text, a mixture of structured forms and text input, or a task description passed in from an external system via an interface.

[0093] Specifically, the execution entity of the autonomous driving simulation test generation method can be a scene generation service deployed on a server, or a scene orchestration module built into the simulation platform.

[0094] Optionally, the user can input information such as "In a highway ramp merging scenario, the main vehicle is driving normally, the target vehicle merges in, and the weather is light rain" through the terminal interface. The access layer receives this input and generates a request for the scenario corresponding to this input, assigning a request identifier, user identifier, and timestamp. Subsequently, the original text, session context, and source information are written together into the pending queue.

[0095] Optionally, for scenarios generated via an interface, the system receives Hypertext Transfer Protocol (HTTP) or message queue requests from an external test management platform to obtain the scenario generation request. The scenario generation request may include the task name, description text, project identifier, and map candidate information, which are then converted into a unified internal data structure upon receipt.

[0096] Optionally, for the pre-stored task reading method, the record to be generated is read from the task library, and the historical supplementary fields in the record are incorporated into the current request context.

[0097] Optionally, upon receiving a scene generation request, an input normalization operation is performed on the scene generation request. The input normalization operation specifically includes character encoding standardization, cleanup of deactivated control characters, synonym replacement, normalization of time and numerical expressions, and terminology mapping for similar descriptions such as "ramp merging," "ramp merging," and "cutting in front of the main vehicle."

[0098] Specifically, if the scene generation request contains multiple descriptive sentences, it is segmented based on punctuation and conjunctions, and the causal, parallel, or temporal relationships between sentences are identified to preserve the contextual structure required for subsequent semantic parsing. When the scene generation request provides both an explicit map name and a vague area description, both types of information are preserved. The explicit map name serves as a high-weight candidate field for subsequent map matching, while the vague area description serves as an auxiliary constraint field. If the scene generation request contains parameters such as speed, distance, duration, and lane number, they are converted to standard units. For example, "80 kilometers per hour" is normalized to "80 km / h", and "20 meters ahead" is normalized to "20m".

[0099] In one possible embodiment, the executing entity also maintains a session state to handle multi-round interaction requests. When a user first enters "Construct a high-speed merging test" and then adds "The target vehicle enters the main road from the right ramp, the weather is sunny," the subsequent added content is incorporated into the context of the same scenario-generated request based on the session identifier, and is not considered an independent request.

[0100] Optionally, if the scene generation request lacks a basic description sufficient to identify the task boundary (i.e., lacks necessary slots), the original content of the scene generation request is still saved and proceeds to the next step of semantic parsing. The intent recognition and slot integrity check determine whether to continue generation or trigger subsequent processing.

[0101] Based on the above analysis, it can be seen that by uniformly receiving and standardizing scenario generation requests from different sources and with different expression forms, subsequent semantic parsing can be performed based on consistent data representation, reducing the impact of input form differences on structured extraction results.

[0102] S202. Perform semantic parsing on the scenario generation request to obtain the test slot and test intent corresponding to the scenario generation request.

[0103] Test slots are structured information items extracted from scene generation requests, used to characterize the key parameters required for scene construction. Test intent is the result of judging the task type of the current request, used to determine whether the request enters the autonomous driving simulation test generation domain.

[0104] The semantic parsing process can be completed collaboratively by a rule engine, a sequence labeling model, a text classification model, and a relation extraction module.

[0105] Specifically, the normalized scene generation request is first segmented and part-of-speech tagged to identify map names, road types, participants, actions, environmental descriptions, numerical parameters, and temporal connectors. Then, an entity recognition module extracts candidate entities from the text, such as "highway," "ramp," "main vehicle," "target vehicle," "cutting in," and "light rain," mapping these entities to standard labels in a pre-defined semantic vocabulary. A relation extraction module further identifies the constraints between candidate entities. For example, the action attribution relationship between "target vehicle" and "cutting in," the environmental modification relationship between "light rain" and the overall scene, and the simultaneous or sequential occurrence relationship between "main vehicle driving normally" and "target vehicle changing lanes."

[0106] Test slots can include one or more slots representing information such as maps, scenes, behaviors, and environments. In some implementations, test slots may further include other auxiliary slots to supplement information such as participant identities, action sequences, or trigger relationships. For the request "The main vehicle keeps its lane, and the target vehicle merges in 15 meters in front of the main vehicle," test slots corresponding to scene type, participant behavior, relative position, map-related information, and environmental information can be parsed out. Test slot information not explicitly given can remain pending.

[0107] Test intent can be obtained by analyzing the semantic content of the scene generation request to identify whether the request belongs to the autonomous driving simulation test generation domain. Specifically, the test intent can be determined by combining the task description, scene terminology, contextual semantics, and related features in the scene generation request. The test intent indicates whether the scene generation request belongs to the autonomous driving simulation test generation domain, or whether it does not.

[0108] Optionally, when the test intent is a structured judgment result, the test intent includes the intent, confidence, missing_slots, and action fields.

[0109] In one possible implementation, if test slots are missing or ambiguous, a confidence score and source label are added to each slot. Slot positions obtained through explicit extraction have higher confidence, while those obtained through inference and completion have lower confidence. For descriptions like "target vehicle cutting in," if it is not specified whether the cutting in is from the left or right, the behavior type is temporarily recorded as "cutting in," the direction attribute is recorded as unknown, and the status for further processing is recorded. For cases where necessary behavior parameters are missing but can be approximated by historical samples, a set of candidate values ​​can be retained and not directly solidified in this step.

[0110] Based on the above analysis, it can be seen that converting unstructured scene generation requests into computable test slots and test intentions provides an intermediate representation for subsequent domain determination, necessary slot checks, and semantic scene construction, thereby enabling complex natural language descriptions to enter the executable scene generation process.

[0111] S203. If the test intent indicates that the scene generation request belongs to the autonomous driving simulation test generation domain, and the test slot includes necessary slots, then based on the test slots, the semantic scene and map identifier corresponding to the scene generation request are obtained.

[0112] The autonomous driving simulation test generation domain is used to define the supported business boundaries. Execution only continues when the test intent falls within the autonomous driving simulation test generation domain. Required slots represent the minimum set of information needed to complete scene generation. Required slots must include at least key fields that determine the basic type of the scene and its association with the map. Optionally, the number and type of required slots can be configured according to scene needs.

[0113] Specifically, domain filtering is first performed based on the test intent determination result. If the test intent belongs to the autonomous driving simulation test generation domain, then a slot completeness check is performed. When the test slot includes necessary slots, a semantic scene is constructed based on the extracted slots.

[0114] A semantic scene is an intermediate representation of a scene that does not rely on specific coordinates, used to carry roles, behaviors, timelines, and constraints. Specifically, test slots are mapped to unified scene semantic objects. A scene semantic object can contain at least one of the following fields: scene type, map requirements, participant set, behavior sequence, constraint rule set, and environment configuration. The participant set records the identity, category, and initial relative relationship of each traffic participant. The behavior sequence records the action label, triggering condition, and behavior parameters of each participant on the timeline. The constraint rule set records relationship constraints such as same lane, adjacent lane, right-side ramp entry into the main road, and forward distance threshold. The environment configuration field records conditions such as weather, lighting, and road surface adhesion status.

[0115] For the scenario generation request of "merging into the highway ramp, the main vehicle goes straight, the target vehicle merges into the main road and completes the cut-in 15 meters in front of the main vehicle, light rain", the following semantic scenario can be formed: the scenario type is ramp merging, the map requirement is the connection topology between the highway main road and the right ramp, the participants include the main vehicle and the target vehicle, the main vehicle's behavior is to maintain stable driving in the current lane, the target vehicle's behavior is to merge into the main road from the ramp, the cut-in completion position constraint is 15 meters in front of the main vehicle, and the environment is light rain.

[0116] Map identifiers, derived from map names or mappings to relevant map slots, identify the target map and carry map capability constraint information required for subsequent verification. Specifically, the explicit map name, region description, road type requirements, and scene topology requirements are extracted from the test slots, and the map index library is called to perform matching. If the user explicitly specifies a map name, the map ID is retrieved from the map registry using that name as the primary key, and the version number, road topology summary, and capability tags are obtained. If the user does not specify a specific map name but provides descriptions such as "highway ramp" or "urban intersection," maps that meet these topology conditions are filtered from the candidate map set, sorted by matching confidence, and the map with the highest confidence and valid status is selected as the target map.

[0117] In addition to the map ID, map identifiers may also include map capability constraints such as matching confidence level, map version, road type label, whether it includes ramps, whether it has parking areas, and available lane connection relationships.

[0118] If multiple candidate maps have similar confidence levels, the candidate set of the candidate maps can be recorded and further compared in subsequent processing.

[0119] Based on the above analysis, it can be seen that by domain determination, necessary slot checks, semantic scene organization, and map label mapping, scattered slots can be further integrated into a unified intermediate representation for simulation generation, and a clear correspondence can be established between scene semantics and target map, providing an input basis for subsequent rule verification and topology implementation.

[0120] S204. Perform pre-rule verification on the semantic scene, and automatically correct the semantic scene according to the verification result of the pre-rule verification to obtain the verified semantic scene; wherein, the pre-rule verification includes hard rule verification to verify whether the requirements corresponding to the semantic scene exceed the map capability constraints of the map identifier, and soft rule verification to verify whether the behavior labels corresponding to the semantic scene are within the preset reasonable range.

[0121] Pre-processing rule validation is used to check the consistency between the semantic scene and the target map, as well as the rationality of the internal behavioral parameters of the scene, before generating the target simulation scene file. It directly determines whether the scene can be implemented on the target map, and is therefore a key step in solving technical problems such as map mismatch, unreasonable behavior labels, and logical inconsistency.

[0122] In practice, the map capability constraints carried in the map identifier are first read. These constraints include at least whether the target map contains the required road topology, whether lane connectivity meets the scenario requirements, whether drivable or parking areas exist, and directional restrictions on the corresponding road configuration. Then, the scenario requirements in the semantic scene are converted into validation condition expressions. For example, a ramp merging scenario requires "the existence of a connection topology between the main road and the ramp," "the ramp lane can connect to the target lane of the main road," and "the lane where the main vehicle is located and the merging lane have a topological intersection relationship at a predetermined location"; a parking scenario requires "the existence of a parking area" and "the parking space type matches the vehicle size." Hard rule validation checks each of these conditions to see if they are met by the target map; if any condition is not met, the hard rule validation is deemed to have failed.

[0123] When hard rule validation fails, the automatic correction module executes the corresponding correction strategy based on the type of failure. If the failure is due to the map not containing ramp topology, but the semantic scenario requires ramp merging, then one of the following processing methods can be executed: semantic degradation or map replacement.

[0124] In the semantic degradation approach, the scenario type is remapped from ramp merging to adjacent lane merging, and the initial relationships and triggering conditions of the participants are modified simultaneously to ensure that they still conform to the core testing intent of "entering" proposed by the user.

[0125] In the map replacement mode, a map containing ramp topology and with sufficient matching confidence is reselected from the candidate map set, and the map label is updated.

[0126] If the failure is due to the absence of the required parking area, delete the parking endpoint constraint and return to subsequent processing, or switch to the local road segment corresponding to the parking area within the same map.

[0127] If the failure is due to lane connectivity not supporting the target behavior—for example, a request to directly cross two lanes from the rightmost ramp to merge in front of the main vehicle, while the target map only supports a single merge—the behavior can be broken down into merging, following the vehicle, and then changing lanes at an opportune moment, and the corresponding behavior sequence can be reconstructed. The corrected result needs to re-enter hard rule validation until the map capability constraints are met or the preset maximum number of corrections is reached, at which point an "ungenerateable" state will be output.

[0128] Soft rule validation is used to verify whether behavior labels are within a preset reasonable range. Behavior labels can include action category, speed difference, cutting distance, following distance, acceleration, braking intensity, weather category, and complexity level. The preset reasonable range is provided by the scene rule library and can be dynamically adjusted according to map type, road speed limit, and scene labels.

[0129] For example, taking lane merging as an example, if the semantic scenario indicates that the target vehicle's merge completion position is 1 meter in front of the main vehicle, and the main vehicle's speed is 80 km / h, then the merge distance is not within a reasonable range, and the soft rule verification fails. If the request provides a combination of "light rain and extremely low visibility but vehicles changing lanes at high speeds" which exceeds the defined stable simulation range for similar scenarios, it can also be determined that the soft rule is not satisfied.

[0130] Instead of directly negating the scenario for soft rule failures, parameter convergence, default value replacement, or label remapping is performed. For example, the cut-in distance is corrected from 1 meter to the minimum safe value allowed by the rule base under similar road and speed conditions; the speed difference is converged to the range jointly defined by the map road speed limit and the scenario category; "heavy rain" is corrected to "light rain" and a standard slip coefficient is added when no road surface adhesion parameter is provided; "extremely aggressive cut-in" is mapped to standard behavior labels such as "normal cut-in" or "relatively aggressive cut-in".

[0131] Specifically, the pre-validation rule can output structured validation results, including rule number, hit object, failure reason, severity level, and correction action. Hard rule issues are processed first based on severity level, followed by soft rule issues. After processing, the semantic scenario version number is updated and a correction log is recorded.

[0132] For multi-participant scenarios, the constraints between roles should be updated synchronously during the correction. For example, when the target vehicle's entry position is moved backward, the relative timing and trajectory trigger point between the main vehicle and the target vehicle should be adjusted synchronously.

[0133] Optionally, if the environment fields in the semantic scenario are completed from default values, the soft rule validation can be further standardized within the scope of map weather capabilities or simulation engine support capabilities to ensure that the output scenario uses supported environment enumeration values.

[0134] Based on the above analysis, by first executing hard rule verification guided by map capability constraints, then executing soft rule verification guided by behavior rationality, and feeding the verification results back to the automatic correction process, unexecutable items and abnormal parameters of the map can be eliminated before the scenario is implemented. This ensures that the obtained semantic scenario after verification satisfies both map topology constraints and behavior rule constraints, thereby improving the executability and logical consistency of the subsequent generated results.

[0135] S205. Based on the verified semantic scene and the road topology of the target map corresponding to the map identifier, generate the target simulation scene file.

[0136] The target simulation scenario file is used to be directly loaded and executed by the simulation platform. The content of the target simulation scenario file includes at least map reference information, initial positions of traffic participants, paths or trajectories, behavior triggering conditions, environmental configuration, and simulation runtime parameters. The road topology is used to convert the validated semantic scenario, which does not depend on specific coordinates, into an executable configuration with spatial location and connectivity relationships.

[0137] In practice, the road network data of the target map is first loaded based on the map identifier, and the main roads, ramps, lane center lines, connection relationships, speed limit information, drivable boundaries, and reference coordinate system are extracted.

[0138] Subsequently, based on the participant relationships and behavioral constraints in the validated semantic scene, starting road segments and target connecting road segments that meet the conditions are selected on the road topology. For example, in the ramp merging scenario, the starting position of the main vehicle is placed on the target lane of the main road, and the starting position of the target vehicle is placed on the ramp lane that has a legal connection with the main road. The initial longitudinal distance, merging point position, and action trigger distance between the two are determined based on the validated parameters.

[0139] Optionally, if the semantic scenario specifies that "the target vehicle completes the cut-in 15 meters in front of the main vehicle", then the reference position of the main vehicle is calculated along the center line of the main road, and the starting arc length position of the ramp vehicle before merging is deduced in reverse, so that it completes the cut-in by passing the connection point within the predetermined time window.

[0140] During the file generation phase, the abstract behaviors in the validated semantic scene are converted into object configurations and event configurations that the simulation platform can recognize. Specifically, this includes generating a unique object identifier, vehicle model category, initial posture, starting speed, path point sequence or behavior tree node for each traffic participant; generating weather enumerations, illumination levels and road surface state parameters for the environment; and generating start conditions, end conditions and record configurations for the overall scene.

[0141] Optionally, if the simulation platform uses a template-based file format, the template engine can be called to fill the map ID, participant parameters, trajectory parameters, and environmental parameters into the corresponding fields.

[0142] Optionally, if the simulation platform adopts a rule-based assembly format, the scene header, map segment, entity segment, behavior segment, and event segment are written segment by segment according to the predefined file syntax.

[0143] Optionally, for scenarios that require simultaneous output of scenario description files, trajectory files, and configuration files, a unified intermediate object can be output first, and then serialized into a set of target files by different exporters. The target simulation scenario file can also contain a semantic scenario version number, map version number, and a correction log summary to support subsequent reproduction and regression testing.

[0144] Optionally, after the target simulation scene file is generated, a consistency check is performed on the target simulation scene file. The consistency check includes checking whether the map references in the target simulation scene file are valid, whether the lanes where the participants are located exist, whether the trajectories are continuous, whether the behavior triggering conditions correspond to valid topology points, whether the environmental parameters are within the range supported by the simulation engine, and whether the file fields are complete.

[0145] If the initial position of an object in the target simulation scene file is found to be outside the drivable area, return to the space mapping module to select a new point.

[0146] If it is found that the trajectory of an object in the target simulation scene file crosses a connection relationship that does not exist in the map, the local connection segment is replanned based on the road topology.

[0147] If the behavior tags in the exported file are found to be inconsistent with the validated semantic scenario, the corresponding configuration segment will be regenerated based on the validated semantic scenario.

[0148] Through this consistency check, the generated simulation scene file is finally solidified into a target simulation scene file that can be executed by the simulation platform, and stored in the scene library or directly sent to the simulation execution module.

[0149] In one possible implementation, spatial positioning on the road topology employs a reference line arc length parameterization method. First, arc length coordinates are defined on the centerline of the target lane. Then, based on relative front-to-back relationships, adjacent lane relationships, and connection point constraints within the semantic scene, the arc length starting point and lateral offset of each participant are calculated, thereby obtaining the initial position and behavior trigger position under a unified reference frame. This implementation allows the same semantic scene to be reused on different but topologically similar maps by remapping arc length coordinates.

[0150] Based on the above analysis, it can be seen that by applying the semantic scene after rule verification and automatic correction to the actual road structure of the target map, a target simulation scene file with consistent map topology, complete behavior configuration and format that meets the requirements of the simulation platform is generated. This allows the scene description to move beyond the abstract semantic layer and directly enter the autonomous driving simulation test execution stage.

[0151] This application provides a method for generating simulation test files for autonomous driving. It sequentially transforms scenario requests in natural language or mixed input formats into test slots, test intentions, semantic scenarios, and map identifiers. Before file generation, it introduces hard rule checks for map capability constraints and soft rule checks for reasonable ranges of behavior labels. Combined with an automatic correction mechanism and a road topology implementation process, this method can structurally process scenario requests that are incomplete, semantically complex, or sensitive to map constraints, outputting a target simulation scenario file consistent with the target map topology. For complex traffic environments such as ramp merging and multi-vehicle interactions, this implementation can eliminate map mismatches, abnormal behavior parameters, and logical conflicts before generation, ensuring that the simulation scenario meets the requirements for autonomous driving simulation testing in terms of structural integrity, logical consistency, and execution usability.

[0152] Figure 3 A flowchart illustrating the autonomous driving simulation test generation method provided in this application embodiment. Figure 2 ,like Figure 3 As shown, in this embodiment... Figure 2 Based on the examples, the method for generating autonomous driving simulation tests is described in detail. The method includes:

[0153] In one possible implementation, step S202 may further include:

[0154] S2021. Identify explicit keywords, values, and enumeration items in the scene generation request to obtain the first intent corresponding to the scene generation request.

[0155] In practical implementation, the scene generation request can first be segmented, labeled with parts of speech and recognized as entities to extract explicit information such as map name, speed, number of lanes, and participant type, and then mapped to a preset scene element vocabulary to form the first intent.

[0156] S2022. Identify the implicit semantics and contextual relationships in the scene generation request to obtain the second intent corresponding to the scene generation request.

[0157] By combining the referential, modifying, and ellipsis relationships between adjacent statements in the scene generation request, semantic information that the user did not directly express but must be completed in scene generation can be inferred. For example, based on "maintain distance after merging on the ramp," the existence of merging lane and following behavior constraints can be inferred, thereby obtaining the second intent.

[0158] S2023. Based on the first intent and the second intent, obtain the test slot and test intent corresponding to the scenario generation request.

[0159] The first intent and the second intent are merged, and test slots are output according to the slot filling rules. Based on this, it is determined whether the scene generation request belongs to the scene generation domain, thus forming a test intent.

[0160] In this semantic parsing process, the first intent provides directly verifiable scene parameters, while the second intent supplements omitted information and contextual constraints. Both intents work together to construct slots and determine domain-specific criteria. When the explicit information in the scene generation request is complete, test slots can be generated directly from it. When the explicit information is insufficient, the scene generation request supplements the necessary fields based on implicit semantics and contextual relationships, making the test slots executable. In this way, the output can simultaneously cover both the explicitly expressed content and the implicit scene meaning.

[0161] By adopting the above method, the direct and implicit information in the scene generation request can be uniformly parsed into structured test slots and test intents, making the request understanding results more complete and providing stable input for subsequent semantic scene construction and map label matching, thereby improving the accuracy and consistency of the scene generation results.

[0162] In one possible implementation, the test slots include: map name, scene slot, behavior slot, and environment slot. Step S203 may further include:

[0163] S2031. Based on historical samples that match the test slots in the scenario sample library, obtain the parameter patterns and error avoidance in the historical samples. The scenario sample library includes successful samples and failed samples.

[0164] Specifically, the system first receives the test requirements expressed in the test slots, and then uses these requirements as search clues to retrieve data from the scenario sample library through multiple retrieval methods (including tag similarity, location, etc.). Figure 1 The system uses methods such as consistency, behavioral similarity, and semantic vector similarity to find matching historical samples. The scene sample library contains both successful samples that have passed verification and failed samples that have been rejected by the verifier. Each sample records information such as natural language description, semantic scene structure, scene file, quality score, verification result, and human feedback.

[0165] After retrieving matching samples, statistical analysis is performed on them: reusable parameter patterns are extracted from successful samples, such as typical parameter distribution ranges, configuration boundaries, common object combinations, speed ranges, and trigger distances. Error avoidance rules are extracted from failed samples, summarizing the reasons for failures rejected by the validator as negative case hints, clarifying which parameter combinations or configurations will cause the scenario to be unexecutable or unreasonable. The purpose of this is to ensure that subsequently generated scenarios can both inherit validated valid parameters and proactively avoid known failure modes, reducing repeated trial and error.

[0166] S2032. Map the map name to a standard map entity to obtain the map identifier corresponding to the test slot. The map identifier includes the map ID, matching confidence, and map capability constraints.

[0167] User-input map names are often expressed in natural language, aliases, or even colloquial descriptions, requiring accurate mapping to a pre-defined standard map entity library. Through map parsing nodes, semantic matching is performed, outputting three key pieces of information: map ID (uniquely identifying the map), matching confidence (reflecting the reliability of the matching result), and map capability constraints (whether the map includes ramps, intersections, parking spaces, multiple lanes, speed limits, drivable areas, lane connections, and road topology, etc.).

[0168] By applying a threshold to the matching confidence level: if the confidence level meets the preset threshold, the map identifier is directly used as the spatial constraint input for subsequent scene construction; if the confidence level is lower than the threshold, a candidate list is returned to the user or a manual confirmation process is initiated, thus preventing subsequent scene generation from occurring in the wrong map space due to map matching errors. Through this step, not only is the map "found," but more importantly, it clarifies "what the map can and cannot do," defining the physical and logical boundaries for scene generation.

[0169] S2033. Map the scene slots, behavior slots, and environment slots to the hierarchical tag system to obtain the test scene tag. The test scene tag is used to describe the map range configured for the scene generation request.

[0170] The scene slots (describing scene type), behavior slots (describing participant actions), and environment slots (describing conditions such as weather, lighting, and traffic) in user input are uniformly mapped to a pre-defined hierarchical tagging system. This tagging system contains at least four levels: scene type tags, behavior tags, environment tags, and complexity tags, and each tag is configured with aliases, mutual exclusion relationships, dependencies, and applicable map ranges.

[0171] For example, the "ramp merging" behavior tag depends on the map having ramp topology capabilities, and the "parking" tag depends on the map having parking areas. This configuration of dependencies and mutual exclusions allows for the early filtering of unreasonable combinations at the tag level—if the map capabilities upon which the user-requested behavior tag depends have been determined to be lacking in step S2032, the combination will be automatically blocked. The final output test scenario tags are used to constrain the map range, road area, and interaction range of subsequent scenario generation requests, ensuring that the scenario description is logically consistent and capability-supported.

[0172] S2034. Based on test slots, parameter patterns, error avoidance, and test scenario tags, construct the semantic scenario corresponding to the scenario generation request.

[0173] By unifying and integrating test slots, parameter patterns, error avoidance, and test scenario labels, the generated semantic scenario converges to the same target map across three dimensions: parameter settings, map space, and environmental constraints. This ensures that the scenario description does not suffer from disconnects in capabilities, such as "requiring ramp merging on a map without ramps." The final output semantic scenario is a structured scenario description that can be directly used for subsequent simulation execution.

[0174] This multi-source fusion approach enables the generated results to be complete (covering all elements of parameters, maps, behaviors, and environment), executable (constrained by both map capabilities and label dependencies), and reusable (inheriting effective historical experience and avoiding known errors), significantly improving the quality and efficiency of scene generation.

[0175] Specifically, after receiving the test slot, statistical analysis is first performed on the parameter distribution, configuration boundaries, and failure causes based on historical samples matching the test slot. Reusable parameter patterns are extracted from successful samples, and error avoidance rules are extracted from failed samples. Subsequently, the map name is semantically matched with a pre-set standard map entity library, and the map ID, matching confidence score, and map capability constraints are output. If the matching confidence score meets a preset threshold, the map identifier is used as the constraint input for subsequent semantic scene construction.

[0176] Furthermore, scene slots, behavior slots, and environment slots are mapped to corresponding levels in a hierarchical tagging system, forming test scene tags that describe scene types, participant behaviors, and environmental conditions. These tags constrain the map range, road areas, and interaction range of the scene generation request. Then, by combining explicit information from the test slots, parameter patterns from historical samples, error avoidance from failed samples, and test scene tags, a semantic scene consistent with the target map's capability constraints is generated, thus outputting a structured scene description that can be used for subsequent simulations.

[0177] In this way, the parameter settings, map extent, and environmental constraints of the semantic scene can be consistently converged to the same target map space. The resulting semantic scene has stronger matching consistency with the map label, and can inherit effective parameters from historical samples and avoid known failure modes, thereby improving the completeness, executability, and reusability of the scene generation results.

[0178] In one possible implementation, step S205 may further include:

[0179] S2051. Based on the relative spatial anchor points of different traffic participants in the verified semantic scene and the road topology of the target map corresponding to the map identifier, the relative spatial anchor points of different traffic participants are converted into global coordinates in the target map, wherein the traffic participants include at least one of the following: the main vehicle, the target vehicle, and the pedestrian.

[0180] Specifically, after receiving the verified semantic scene, the relative spatial anchor points of each traffic participant in the verified semantic scene are first read, and the road topology information of the target map is obtained by parsing the map identifier. Then, the relative spatial anchor points are mapped to the drivable lanes, lane center lines and adjacent lane relationships in the target map, and the global coordinates corresponding to each traffic participant are calculated.

[0181] For example, for different traffic participants among the main vehicle, target vehicle, and pedestrians, the transformation is completed using coordinate translation, lane projection, or road attachment methods according to the relative spatial anchor point representation method of each traffic participant, so that the positioning results of the traffic participants meet the road constraints and form a relationship with the target location. Figure 1 A well-designed spatial configuration.

[0182] S2052. Generate a target simulation scene file based on global coordinates and the behavior of different traffic participants corresponding to the semantic scene.

[0183] After obtaining the global coordinates, the system further combines pre-determined behavioral information from the semantic scene to write the initial position, orientation, speed, trajectory segments, and interaction relationships of each traffic participant into the target simulation scene file. The target simulation scene file can be output in a structured scene description format, allowing global coordinates and behavioral parameters to be correlated within the same file, thereby generating a scene configuration that can be directly parsed and executed by the simulation platform.

[0184] By converting relative spatial anchor points to correspondences with the road topology of the target map, spatial relationships in the semantic scene are placed in legitimate locations on the target map. Then, behavioral information and global coordinates are collaboratively written into the scene file, ensuring consistency in spatial positioning and behavioral expression of the generated results. This improves the executability of the target simulation scene file and the accuracy of scene reproduction.

[0185] In one possible implementation, based on the relative spatial anchor points of different traffic participants within the verified semantic scene and the road topology of the target map corresponding to the map identifier, the relative spatial anchor points of different traffic participants are converted into global coordinates within the target map. This includes: determining the target lane of the traffic participant in the target map based on the relative spatial anchor points of different traffic participants within the verified semantic scene; determining the target lane based on the semantic scene and the lane connection relationship and adjacent lane relationship in the target map; projecting along the center of the target lane according to the longitudinal distance, and determining the initial pose of the traffic participant based on the lateral offset, lane width, and the size of the traffic participant; and obtaining the global coordinates of the traffic participant by verifying whether the position corresponding to the initial pose is located in a drivable area or a parking area.

[0186] In implementation, the validated semantic scene is first read, and the relative spatial anchor point of each traffic participant is extracted. Combined with the target map road topology corresponding to the map identifier, candidate lanes with consistent spatial relationships are selected based on the relative orientation, relative longitudinal distance, and relative lateral offset indicated by the anchor points. Subsequently, based on the scene relationships described in the semantic scene, and combined with the lane connection relationships and adjacent lane relationships in the target map, consistency matching is performed on the candidate lanes to determine the target lane where the traffic participant is located. This target lane can be identified by the lane centerline, lane boundary line, and lane number. In practical applications, the target lane can also be selected from a set of lane elements based on a high-precision map; this application does not impose any limitations on this.

[0187] After obtaining the target lane, traffic participants are projected along the lane centerline at a longitudinal distance. The longitudinal position parameters are calculated based on the relative spatial anchor points given in the semantic scene. Then, combined with lateral offset, lane width, and traffic participant dimensions, the initial pose of the traffic participants is calculated. For vehicle participants, the dimensions may include vehicle length, width, and wheelbase; for pedestrian participants, the dimensions may include the length and width parameters of the bounding rectangle of the pedestrian. The initial pose includes position coordinates and orientation angle, where the orientation angle can be determined based on the tangent direction of the lane centerline at the projection point.

[0188] Subsequently, the position corresponding to the initial pose is verified. If the position corresponding to the initial pose is within the drivable area, it is used as the global coordinates of the traffic participant. If the position corresponding to the initial pose is used in a parking scenario, it is further determined whether it is within the parking area, and the global coordinates are output if the condition is met. This verification process can be completed based on the road surface region, shoulder surface region, and parking space surface region in the target map. In practical applications, a gridded occupancy judgment method can also be used, which is not limited in this application.

[0189] Through the above processing, the relative spatial anchor points in the semantic scene can be stably converted into global coordinates within the target map, and the participant positions can be kept consistent with the road topology and regional attributes, thereby giving the generated scene file higher spatial consistency and execution availability.

[0190] In one possible implementation, a target simulation scenario file is generated based on global coordinates and the behaviors of different traffic participants corresponding to the semantic scene. This includes: generating several mutually influential behavioral units based on global coordinates and behavioral descriptions in the semantic scene; constructing full-scale structured information of the semantic scene based on the behavioral units; and exporting multiple target simulation scenario files based on the full-scale structured information. The target simulation scenario files include a scenario description file, a trajectory file, and a configuration file.

[0191] After obtaining global coordinates and behavioral descriptions of different traffic participants in the semantic scene, the absolute position of each traffic participant is associated with its movement intention, interaction object and constraints to form a behavioral unit that can interact with each other.

[0192] Each behavioral unit can correspond to the main vehicle, target vehicle, pedestrian, or other traffic participants. Through a unified data structure, the participant's identifier, initial position, speed status, orientation information, action label, and dependencies with other traffic participants are recorded, so that the subsequently generated scene content has both spatial and interactive consistency.

[0193] After forming behavioral units, the semantic scene is reconstructed based on these units to build full-scale structured information. This full-scale structured information can be stored using a tree structure, graph structure, or field mapping structure. The full-scale structured information includes at least scene subject information, participant relationship information, behavioral evolution information, and configuration parameters required for file export. By unifying multiple behavioral units into a single structured expression, discrete behavioral descriptions can be transformed into a set of executable scene objects, and the mutual influence relationships of traffic participants can be synchronously written into structured fields to ensure that the subsequently exported trajectories, descriptions, and configurations remain consistent in both time and spatial dimensions.

[0194] Optionally, the behavior units may include follow_lane, accelerate, decelerate, lane_change, cut_in, yield, stop, turn_left, merge_in, etc.

[0195] When exporting the target simulation scene file, a scene description file, a trajectory file, and a configuration file are generated based on the full set of structured information. The scene description file records the scene roles, relationships, and semantic content; the trajectory file records the displacement, velocity, and attitude changes of traffic participants during the simulation; and the configuration file records the parameters, switches, and loading information required for the simulation.

[0196] Scene description files, trajectory files, and configuration files can be output according to the preset formats of the target simulation platform. For example, the scene description file uses a text-based structure, the trajectory file uses a time-series record format, and the configuration file uses a key-value pair or structured configuration format, so that the simulation platform can directly parse and execute it.

[0197] By combining global coordinates with behavioral descriptions in the semantic scene to generate behavioral units, and then aggregating these behavioral units to form full-scale structured information, multiple target simulation scene files are further exported. This ensures consistency between spatial locations, behavioral relationships, and file content within the scene, thereby improving the integrity, executability, and cross-file consistency of the scene files. Since the scene description files, trajectory files, and configuration files all originate from the same structured foundation, information discrepancies between files can be reduced, and the reproducibility stability of complex traffic scenes in the simulation platform can be improved.

[0198] Optionally, the full structured information includes at least scenario_type, road_topology, environment, actors, relative_positions, behaviors, timeline, constraints, output_targets, and seed. Among these, actors define the roles, types, initial semantic positions, and behavioral targets of the primary vehicle, target vehicle, pedestrian, or other traffic participants; behaviors define actions such as lane keeping, following, lane changing, merging, stopping, and yielding; and timeline defines triggering conditions, action start and end conditions, and duration.

[0199] Optionally, the output format of the target simulation scene file is not limited, as long as it is exported with full structured information and maintains consistent dependencies, it is considered an alternative implementation. For example, the output format of the target simulation scene file can be JavaScript Object Notation (JSON), eXtensible Markup Language (XML), OpenSCENARIO, OpenDRIVE associated configuration, simulation platform proprietary format, or script file.

[0200] In one possible implementation, the autonomous driving simulation test generation method orchestrates functional nodes through a directed graph workflow, with each functional node reading and updating the same global state object.

[0201] In practical implementation, the workflow can be executed by the scheduler creating an execution graph based on the type of request generated in the scenario and the current state. The semantic parsing node converts user input into test slots and test intentions, which are then written to the global state object. The verification node reads the test slots and map identifiers from the global state object and performs rule checks. The correction node updates the semantic scene content based on the verification results. The generation node reads the verified semantic scene and map topology information from the same state object and outputs the target simulation scene file. Because all functional nodes share the same global state object, intermediate results generated by one node can be directly reused by the next, avoiding redundant construction of intermediate data between nodes. Furthermore, the directed graph workflow restricts the execution order of nodes, ensuring that semantic parsing, slot completion, rule verification, and scenario generation maintain consistent dependencies.

[0202] With the above implementation, the flow of scene generation requests among multiple functional nodes has clear dependency constraints. Each node maintains synchronization in reading and updating the same state data, improving parsing consistency and generation stability under complex descriptions, and making the output process of autonomous driving simulation test files more controllable and reusable. Optionally, the directed graph workflow can be organized using toolchains such as LangChain or LangGraph.

[0203] Optional functional nodes for directed graph workflow orchestration include: intent recognition node, slot extraction node, missing slot handling node, map parsing node, tag parsing node, historical scene retrieval node, semantic scene modeling node, strategy constraint check node, generate plan node, spatial parsing node, multi-file assembly node, pre-simulation verification node, repair node, and output node.

[0204] Optionally, feature nodes can be persisted to support interruption recovery, replay, and problem localization.

[0205] Optionally, through feature nodes, it is possible to perform partial patches based on persistent feature nodes, instead of generating them from scratch.

[0206] For example, for subsequent user requests to modify the system, such as "add rainy days" or "change the number of target vehicles to three", a partial patch is executed based on the already persisted state, instead of generating a new patch from scratch.

[0207] In one possible implementation, the autonomous driving simulation test generation method further includes: if the test slot does not include the necessary slot, a clarification process is triggered to ask the user for information corresponding to the missing necessary slot; if the test intent of the scenario generation request does not belong to the driving simulation test generation domain, an exception prompt is output, which is used to inform the user that only requests corresponding to the driving simulation test generation domain are supported.

[0208] In practice, after semantic parsing is completed, a completeness check is performed on the test slots, and the check results are compared with the preset set of necessary slots. When a test slot is found to be missing a map name or other key slots directly related to scene generation, the semantic scene construction does not proceed directly. Instead, supplementary query content is generated based on the missing item, and this content is returned to the user so that the user can fill in the corresponding information and resubmit the request. Clarification interaction can be implemented through text messages, interface pop-ups, or conversational interfaces. The supplemented information is then re-integrated into the test slot to maintain the continuity of the subsequent generation chain.

[0209] When a scene generation request is determined by the semantic model to not belong to the driving simulation test generation domain, the subsequent map matching, scene construction, and file generation processes are immediately terminated, and an error message is output. This error message clearly informs the user that only requests corresponding to the driving simulation test generation domain are currently supported, thus limiting input to the predetermined business scope. This interception mechanism can be completed at the parsing node or the intent classification node, and remains decoupled from subsequent nodes.

[0210] By clarifying and completing requests for missing necessary slots and promptly intercepting requests from outside the domain, the integrity of the generation conditions and the consistency of the task boundaries can be maintained at the input end. This ensures that subsequent semantic scene construction and target simulation scene file generation are executed only on valid requests, guaranteeing the controllability of the generation chain and the stability of the processing results.

[0211] In one possible implementation, the hard rules include at least: the ramp merging scenario must have a ramp topology, pedestrians must not appear in the highway scenario, the parking scenario must be located in a parking area, and the participants in multiple files must be consistent; the soft rules include at least: the target vehicle cut-in distance threshold, the speed difference range, the default weather value, and the complexity.

[0212] Optionally, the rule engine stores the aforementioned hard and soft rules. The map constraint parser reads the lane connectivity, ramp nodes, parking areas, and road type labels of the target map and writes the parsing results into a unified state object. Hard rule validation uses deterministic judgment, while soft rule validation uses a combination of threshold comparison and default value filling. When abnormalities are found in the target vehicle's cutting distance, speed difference, or complexity, it is automatically corrected to a preset range. The validation result is then passed to the scene generation module as constraint input for constructing global coordinates, behavioral units, and multi-file output. Optionally, if a hard rule is not satisfied, generation is directly aborted and a validation failure message is returned.

[0213] By incorporating ramp topology, high-speed pedestrian restrictions, parking area constraints, and consistency among multiple file participants into strong constraint verification, and incorporating cut-in distance, speed difference, weather default values, and complexity into weak constraint verification, the semantic scene can complete map adaptation and parameter tuning before generation, thereby improving the executability and consistency between files of the target simulation scene file.

[0214] In this application, after receiving a user's request to generate a scenario corresponding to autonomous driving simulation testing, the system orchestrates the operation of each functional node through a directed graph workflow. Each functional node reads and updates the same global state object. First, semantic parsing is performed on the scenario generation request to identify explicit keywords, numerical values, and enumeration items in the request, obtaining the first intent. Then, implicit semantics and contextual relationships are identified to obtain the second intent. The test intent and test slots are determined by combining the first and second intents. Test slots include map name, scene slots, behavior slots, and environment slots. When the test intent does not belong to the autonomous driving simulation test generation domain, an exception prompt is directly output, informing that only requests corresponding to the driving simulation test generation domain are supported. When a necessary slot is missing from the test slots, a clarification process is triggered, requesting the user for information corresponding to the missing necessary slots, and writing the supplementary information back to the global state object before continuing processing.

[0215] When the test intent indicates that the current request belongs to the autonomous driving simulation test generation domain and the test slots include necessary slots, historical samples matching the test slots are retrieved from the scene sample library. The scene sample library contains both successful and failed samples, and parameter patterns and error avoidance information are extracted from the historical samples. Subsequently, map names are mapped to standard map entities to obtain corresponding map identifiers, which include map ID, matching confidence, and map capability constraints. Then, scene slots, behavior slots, and environment slots are mapped to a hierarchical labeling system to obtain test scene labels describing the map range configured in the request. A semantic scene is constructed by combining test slots, parameter patterns, error avoidance, and test scene labels, including traffic participant types, relative spatial anchors, behavior descriptions, and environmental configurations.

[0216] After the semantic scene is constructed, a pre-validation rule check is performed on the semantic scene, and the semantic scene is automatically corrected based on the check results. The pre-validation rule check includes hard rule check and soft rule check. Hard rule check is used to check whether the requirements corresponding to the semantic scene exceed the map capability constraints in the map identifier, and to check whether there is a ramp topology in the ramp merging scene, whether there are pedestrians in the highway scene, whether the parking scene is located in a parking area, and whether the participants in multiple files are consistent. Soft rule check is used to check whether the behavior labels are within the preset reasonable range, and to check the target vehicle cut-in distance threshold, speed difference range, weather default value, and complexity. When a rule conflict or parameter out-of-bounds is detected, the system adjusts the behavior parameters, environmental parameters, participant configuration, or scene labels based on error avoidance information and preset correction rules to generate a validated semantic scene.

[0217] When generating the target simulation scene file, the target lanes of each traffic participant in the target map are first determined based on the relative spatial anchor points of different traffic participants within the validated semantic scene. Traffic participants include at least one of the following: main vehicles, target vehicles, and pedestrians. The determination of the target lanes combines the road positional relationships expressed in the semantic scene and completes matching based on lane connectivity and adjacent lane relationships in the target map. After lane matching is completed, the lanes are projected along the centerline of the target lane at a longitudinal distance, and the initial poses of the traffic participants are calculated by combining lateral offset, lane width, and traffic participant dimensions. The initial poses are then verified to ensure they are located within a drivable or parking area. If the area constraints are met, the relative spatial anchor points are converted into global coordinates within the target map.

[0218] After obtaining the global coordinates of each traffic participant, the system generates several mutually influential behavioral units based on the global coordinates and behavioral descriptions in the semantic scene. Each behavioral unit contains the spatiotemporal relationships between participants, action triggering conditions, and execution parameters. Subsequently, based on these behavioral units, the system constructs full-scale structured information of the semantic scene, uniformly organizing traffic participant attributes, global coordinates, behavioral sequences, environmental configurations, map labels, and rule correction results. Based on this full-scale structured information, multiple target simulation scene files are exported, including scene description files, trajectory files, and configuration files.

[0219] Figure 4 This is a schematic diagram of the structure of the autonomous driving simulation test generation device provided in the embodiments of this application, as shown below. Figure 4 As shown, the autonomous driving simulation test generation device 40 provided in this embodiment includes:

[0220] The acquisition module 401 is used to acquire the scene generation request corresponding to the autonomous driving simulation test submitted by the user;

[0221] Processing module 402 is used to perform semantic parsing on the scene generation request to obtain the test slot and test intent corresponding to the scene generation request; if the test intent indicates that the scene generation request belongs to the autonomous driving simulation test generation domain, and the test slot includes necessary slots, then based on the test slot, the semantic scene and map identifier corresponding to the scene generation request are obtained; pre-rule verification is performed on the semantic scene, and the semantic scene is automatically corrected according to the verification result of the pre-rule verification to obtain the verified semantic scene; wherein, the pre-rule verification includes hard rule verification to verify whether the requirements corresponding to the semantic scene exceed the map capability constraints of the map identifier, and soft rule verification to verify whether the behavior labels corresponding to the semantic scene are within a preset reasonable range; based on the road topology of the target map corresponding to the verified semantic scene and map identifier, a target simulation scene file is generated.

[0222] In one possible implementation, the test slots include: map name, scene slot, behavior slot, and environment slot. The processing module 402 is specifically used for:

[0223] Based on historical samples that match the test slots in the scenario sample library, the parameter patterns and error avoidance in the historical samples are obtained. The scenario sample library includes successful samples and failed samples.

[0224] Mapping map names to standard map entities yields map identifiers corresponding to test slots. Map identifiers include map ID, matching confidence, and map capability constraints.

[0225] The scene slots, behavior slots, and environment slots are mapped to a hierarchical tag system to obtain test scene tags. The test scene tags are used to describe the map range configured for the scene generation request.

[0226] Based on test slots, parameter patterns, error avoidance, and test scenario tags, construct semantic scenarios corresponding to scenario generation requests.

[0227] In one possible implementation, the processing module 402 is specifically used for:

[0228] Based on the relative spatial anchor points of different traffic participants in the verified semantic scene and the road topology of the target map corresponding to the map identifier, the relative spatial anchor points of different traffic participants are converted into global coordinates in the target map. Among them, traffic participants include at least one of the following: the main vehicle, the target vehicle, and the pedestrian.

[0229] Based on global coordinates and the behavior of different traffic participants corresponding to semantic scenes, a target simulation scene file is generated.

[0230] In one possible implementation, the processing module 402 is further configured to:

[0231] Based on the relative spatial anchor points of different traffic participants within the verified semantic scene, the target lane in the target map is determined for each traffic participant.

[0232] Based on the semantic context, the target lane is determined according to the lane connection relationship and adjacent lane relationship in the target map;

[0233] Project along the center of the target lane at longitudinal distance, and determine the initial pose of the traffic participants based on lateral offset, lane width, and the size of the traffic participants;

[0234] By verifying whether the position corresponding to the initial pose is located in a drivable or parking area, the global coordinates of the traffic participants are obtained.

[0235] In one possible implementation, the processing module 402 is further configured to:

[0236] Based on global coordinates and behavioral descriptions in the semantic scene, several mutually influential behavioral units are generated.

[0237] Based on behavioral units, construct full-scale structured information of semantic scenes;

[0238] Based on the full structured information, multiple target simulation scene files are exported. The target simulation scene files include scene description files, trajectory files, and configuration files.

[0239] In one possible implementation, the processing module 402 is further configured to: orchestrate functional nodes through a directed graph workflow, wherein each functional node reads and updates the same global state object.

[0240] In one possible implementation, the processing module 402 is further configured to: if the test slot does not include the necessary slot, trigger a clarification process to query the user for information corresponding to the missing necessary slot;

[0241] If the test intent of the scenario generation request does not belong to the driving simulation test generation domain, an exception message will be output. The exception message is used to inform the user that only requests corresponding to the driving simulation test generation domain are supported.

[0242] In one possible implementation, the processing module 402 is specifically used for:

[0243] Identify explicit keywords, numerical values, and enumeration items in the scene generation request to obtain the primary intent corresponding to the scene generation request;

[0244] Identify the implicit semantics and contextual relationships in the scene generation request to obtain the second intent corresponding to the scene generation request;

[0245] Based on the first intent and the second intent, the test slot and test intent corresponding to the scenario generation request are obtained.

[0246] In one possible implementation, the hard rules include at least the following: ramp merging scenarios must have ramp topology, pedestrians must not appear in highway scenarios, parking scenarios must be located in parking areas, and multiple file participants must be consistent; the soft rules include at least the target vehicle cut-in distance threshold, speed difference range, weather default value, and complexity.

[0247] The autonomous driving simulation test generation device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0248] Figure 5 This is a schematic diagram of the structure of the autonomous driving simulation test generation device provided in an embodiment of this application. Figure 5 As shown, the autonomous driving simulation test generation device 50 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the autonomous driving simulation test generation device 50 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.

[0249] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.

[0250] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0251] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0252] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0253] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0254] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0255] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0256] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0257] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0258] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0259] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0260] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0261] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0262] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0263] Finally, it should be noted that other embodiments of this application will readily conceive of by those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from its scope.

Claims

1. A method for generating simulation tests for autonomous driving, characterized in that, include: Obtain the scenario generation request corresponding to the autonomous driving simulation test submitted by the user; The scene generation request is semantically parsed to obtain the test slot and test intent corresponding to the scene generation request; If the test intent indicates that the scene generation request belongs to the autonomous driving simulation test generation domain, and the test slot includes necessary slots, then based on the test slots, the semantic scene and map identifier corresponding to the scene generation request are obtained; The semantic scene is subjected to pre-rule verification, and the semantic scene is automatically corrected according to the verification result of the pre-rule verification to obtain the verified semantic scene; wherein, the pre-rule verification includes hard rule verification to verify whether the requirement corresponding to the semantic scene exceeds the map capability constraint of the map identifier, and soft rule verification to verify whether the behavior label corresponding to the semantic scene is within a preset reasonable range. Based on the verified semantic scene and the road topology of the target map corresponding to the map identifier, a target simulation scene file is generated.

2. The autonomous driving simulation test generation method according to claim 1, characterized in that, The test slots include: map name, scene slot, behavior slot, and environment slot. Based on the test slots, the semantic scene and map identifier corresponding to the scene generation request are obtained, including: Based on historical samples that match the test slot in the scenario sample library, the parameter patterns and error avoidance in the historical samples are obtained, wherein the scenario sample library includes successful samples and failed samples; Mapping the map name to a standard map entity yields the map identifier corresponding to the test slot. The map identifier includes the map ID, matching confidence, and map capability constraints. The scene slots, behavior slots, and environment slots are mapped to a hierarchical tag system to obtain test scene tags. The test scene tags are used to describe the map range configured in the scene generation request. Based on the test slot, the parameter pattern, the error avoidance, and the test scenario label, the semantic scenario corresponding to the scenario generation request is constructed.

3. The autonomous driving simulation test generation method according to claim 1, characterized in that, The process of generating a target simulation scene file based on the verified semantic scene and the road topology of the target map corresponding to the map identifier includes: Based on the relative spatial anchor points of different traffic participants in the verified semantic scene and the road topology of the target map corresponding to the map identifier, the relative spatial anchor points of different traffic participants are converted into global coordinates in the target map, wherein the traffic participants include at least one of the following: the main vehicle, the target vehicle, and the pedestrian. Based on the global coordinates and the behaviors of different traffic participants corresponding to the semantic scene, a target simulation scene file is generated.

4. The autonomous driving simulation test generation method according to claim 3, characterized in that, The step of converting the relative spatial anchor points of different traffic participants within the verified semantic scene and the road topology of the target map corresponding to the map identifier into global coordinates within the target map includes: Based on the relative spatial anchor points of different traffic participants within the verified semantic scene, the target lane in the target map where the traffic participants are located is determined. Based on the semantic scenario, the target lane is determined according to the lane connection relationship and adjacent lane relationship in the target map; Projecting along the center of the target lane at a longitudinal distance, and determining the initial pose of the traffic participant based on lateral offset, lane width, and the size of the traffic participant; The global coordinates of the traffic participant are obtained by verifying whether the position corresponding to the initial pose is located in a drivable or parking area.

5. The autonomous driving simulation test generation method according to claim 3, characterized in that, The process of generating a target simulation scenario file based on the global coordinates and the behaviors of different traffic participants corresponding to the semantic scene includes: Based on the global coordinates and the behavioral descriptions in the semantic scene, several mutually influential behavioral units are generated. Based on the behavioral units, construct the full structured information of the semantic scene; Based on the full structured information, multiple target simulation scene files are exported, including scene description files, trajectory files, and configuration files.

6. The autonomous driving simulation test generation method according to any one of claims 1 to 5, characterized in that, The autonomous driving simulation test generation method arranges each functional node through a directed graph workflow, and each functional node reads and updates the same global state object.

7. The autonomous driving simulation test generation method according to any one of claims 1 to 5, characterized in that, The autonomous driving simulation test generation method further includes: If the test slot does not include the necessary slot, a clarification process is triggered to ask the user for information on the missing necessary slot. If the test intent of the scenario generation request does not belong to the driving simulation test generation domain, an error message will be output. The error message is used to inform the user that only requests corresponding to the driving simulation test generation domain are supported.

8. The autonomous driving simulation test generation method according to any one of claims 1 to 5, characterized in that, The step of semantically parsing the scenario generation request to obtain the test slot and test intent corresponding to the scenario generation request includes: Identify explicit keywords, numerical values, and enumerated items in the scene generation request to obtain the first intent corresponding to the scene generation request; Identify the implicit semantics and contextual relationships in the scene generation request to obtain the second intent corresponding to the scene generation request; Based on the first intent and the second intent, the test slot and test intent corresponding to the scenario generation request are obtained.

9. The autonomous driving simulation test generation method according to any one of claims 1 to 5, characterized in that, The hard rules include at least the following: ramp merging scenarios must have ramp topology, pedestrians must not appear in highway scenarios, parking scenarios must be located in parking areas, and participants in multiple files must be consistent; the soft rules include at least the target vehicle cut-in distance threshold, speed difference range, weather default value, and complexity.

10. An autonomous driving simulation test generation device, characterized in that, include: The acquisition module is used to acquire the scenario generation request corresponding to the autonomous driving simulation test submitted by the user; The processing module is used to perform semantic parsing on the scene generation request to obtain the test slot and test intent corresponding to the scene generation request; If the test intent indicates that the scene generation request belongs to the autonomous driving simulation test generation domain, and the test slot includes necessary slots, then based on the test slots, the semantic scene and map identifier corresponding to the scene generation request are obtained; The semantic scene is subjected to pre-rule verification, and the semantic scene is automatically corrected according to the verification result of the pre-rule verification to obtain the verified semantic scene; wherein, the pre-rule verification includes hard rule verification to verify whether the requirement corresponding to the semantic scene exceeds the map capability constraint of the map identifier, and soft rule verification to verify whether the behavior label corresponding to the semantic scene is within a preset reasonable range. Based on the verified semantic scene and the road topology of the target map corresponding to the map identifier, a target simulation scene file is generated.