Simulation scenario generation, test methods, devices, equipment and media
By performing three-dimensional reconstruction of real vehicle data and correlation of vectorized map data with AI model expansion training, a detailed autonomous driving simulation scene is constructed, which solves the problem of low simulation scene coverage in the existing technology and improves the efficiency and accuracy of testing. sex.
Patent Information
- Application Number
- CN202410291722.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-03-14
AI Technical Summary
In the construction of existing autonomous driving simulation scenarios, the simulation scenario coverage is low and the actual driving scenarios cannot be effectively restored and generalized, resulting in limited testing efficiency and accuracy.
By obtaining real vehicle data for 3D reconstruction and correlation of vectorized map data and AI model expansion training, detailed simulation scenarios can be constructed, increasing the richness and diversity of data, and improving the coverage of simulation scenarios.
It achieves efficient restoration and generalization of actual driving scenarios, enhances the coverage of simulation scenarios and the accuracy of testing, and improves the efficiency and authenticity of autonomous driving testing.
Smart Images

Figure CN118115685B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of autonomous driving technology, and in particular to an autonomous driving simulation scene generation, testing method, device, equipment and medium. Background Art
[0002] With the development of autonomous driving technology, simulation using digital virtual simulation technology has become one of the important means of autonomous driving simulation testing. Compared with traditional real vehicle testing, simulation testing has the advantages of safe testing process and high testing efficiency. Therefore, it plays an increasingly important role in autonomous driving testing, and the construction of simulation scenarios is an important foundation for simulation testing.
[0003] In the current simulation scenario construction, simulation scenarios are usually built based on road sampling feedback data and test requirements related to test vehicles, which results in low simulation scenario coverage. Summary of the invention
[0004] Based on this, it is necessary to provide an autonomous driving simulation scenario generation, testing method, device, equipment and medium that can improve the coverage of simulation scenarios in response to the above-mentioned technical problems.
[0005] In a first aspect, an embodiment of the present disclosure provides a simulation scene generation method, which may include the following steps:
[0006] Obtain real vehicle data for driving scenarios;
[0007] Obtain voxelized data and vectorized map data after 3D reconstruction based on real vehicle data;
[0008] Associating the voxelized data and the vectorized map data into the same coordinate system to obtain three-dimensional reconstruction data;
[0009] Input the voxelized data and vectorized map data into a preset AI model for data expansion training to obtain AI expansion data;
[0010] The first driving simulation scene is constructed based on the 3D reconstruction data and AI extended data.
[0011] In some embodiments, obtaining real vehicle data of a driving scene may include the following steps:
[0012] Classify the target area map data into scenes according to the preset classification dimensions, and generate information of multiple categories of subdivided scenes;
[0013] Obtain real vehicle data for various segmented scenarios;
[0014] Obtaining three-dimensionally reconstructed voxelized data and vectorized map data based on real vehicle data may include the following steps: obtaining three-dimensionally reconstructed voxelized data and vectorized map data based on real vehicle data of various segmented scenes.
[0015] In some embodiments, both voxelized data and vectorized map data are annotated with scene label information, and the preset AI model is a generative AI model.
[0016] Inputting voxelized data and vectorized map data into a preset AI model for data expansion training to obtain AI extended data may include: extracting features from voxelized data and vectorized map data annotated with similar scene label information to obtain feature data, and inputting the feature data into a preset AI model for data expansion training to obtain AI extended data.
[0017] Among them, the feature data includes label keyword information, voxelized data feature information and map data feature information. The AI model is used to perform extended training on the feature data according to a preset correlation to obtain AI extended data. The AI extended data includes extended voxelized data and extended vectorized map data.
[0018] In some embodiments, a category of subdivided scenes includes one or more scenes;
[0019] Obtaining real vehicle data for various subdivided scenarios can include the following steps:
[0020] Determine the total number of all subdivided scenes and the number of scenes of each subdivided scene in the target area map data;
[0021] Determine the weight value of each subdivided scenario based on the total number of all subdivided scenarios and the number of scenarios in each subdivided scenario;
[0022] According to the weight value, the real vehicle data of various segmented scenarios are collected in equal proportion.
[0023] In some embodiments, the preset classification dimensions may include at least two of an environment classification dimension, a road classification dimension, and a map element classification dimension;
[0024] The environmental classification dimension may include at least two of the latitude interval, altitude interval, landform type, and administrative area range of the environmental space in the target area map data;
[0025] The road classification dimensions may include at least two of the road type, road spatial level, road topological relationship, and road operation status in the target area map data;
[0026] The map element classification dimensions may include at least two of the traffic lights, traffic signs, traffic markings, number of lanes, and lane types in the target area map data.
[0027] In some embodiments, constructing a first driving simulation scene according to the three-dimensional reconstruction data and the AI extension data may include the following steps:
[0028] The 3D reconstruction data and AI extended data are simulated and processed through the preset digital twin application to build a driving twin model;
[0029] The driving twin model is imported into a preset game engine to obtain the first driving simulation scene.
[0030] In some embodiments, the simulation scene generation method may further include the steps of:
[0031] A second driving simulation scene is constructed only based on the three-dimensional reconstruction data, and the second driving simulation scene is used to restore the driving scene corresponding to the real vehicle data.
[0032] In a second aspect, an embodiment of the present disclosure provides an autonomous driving test method, which may include the following steps:
[0033] The test vehicle is tested in a first driving simulation scenario to obtain first driving data, and the test vehicle is tested in a second driving simulation scenario to obtain second driving data; wherein the first driving simulation scenario and the second driving simulation scenario may be the first driving simulation scenario and the second driving simulation scenario disclosed in the embodiment of the first aspect;
[0034] Compare and analyze the first driving data and the second driving data to determine the abnormal driving data of the vehicle to be tested,
[0035] The algorithm of the test vehicle is corrected according to the abnormal driving data.
[0036] In a third aspect, an embodiment of the present disclosure provides a simulation scene generation device, which may include:
[0037] A data acquisition module, used to acquire real vehicle data of driving scenarios;
[0038] A data processing module is used to obtain voxelized data and vectorized map data after three-dimensional reconstruction based on real vehicle data;
[0039] A three-dimensional reconstruction module is used to associate voxelized data and vectorized map data into the same coordinate system to obtain three-dimensional reconstruction data;
[0040] AI extension module, used to input voxelized data and vectorized map data into a preset AI model for data extension training to obtain AI extension data;
[0041] The scene construction module is used to construct a first driving simulation scene based on the three-dimensional reconstruction data and the AI extension data.
[0042] In a fourth aspect, an embodiment of the present disclosure provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the simulation scene generation method in any embodiment of the first aspect of the present disclosure is implemented.
[0043] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the simulation scene generation method in any embodiment of the first aspect of the present disclosure is implemented.
[0044] The above-mentioned simulation scene generation, testing method, device, equipment and medium, the server processes the real vehicle data of the driving scene to obtain voxel data and vectorized map data, and obtains three-dimensional reconstruction data after associating the two types of data to the same coordinates. At the same time, the two types of data are extended and trained using a preset AI model to obtain AI extended data, and a first driving scene is constructed based on the three-dimensional reconstruction data and the AI extended data, wherein the three-dimensional reconstruction data can restore the actual driving scene information to the greatest extent, and the AI extended data can generalize the real driving scene, improve the richness and diversity of the data, and provide driving scenes that are not covered in the real vehicle data, which can improve the generalization ability of the scene and enhance the coverage of the simulation scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A diagram of an application environment of a simulation scene generation method in some embodiments;
[0046] Figure 2 A schematic diagram of a flow chart of a simulation scene generation method in some embodiments;
[0047] Figure 3 A flowchart of steps involved in obtaining real vehicle data in some embodiments;
[0048] Figure 4 A flowchart of steps for obtaining real vehicle data of various subdivided scenarios in some embodiments;
[0049] Figure 5 A flowchart of steps of an autonomous driving test method in some embodiments;
[0050] Figure 6 It is a structural block diagram of a simulation scene generating device in some embodiments;
[0051] Figure 7 1 is a diagram of the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION
[0052] In order to make the technical solutions and advantages of the present disclosure more clearly understood, the embodiments of the present disclosure and related technical contents are further described in detail below in combination with the accompanying drawings and text descriptions. It should be understood that the implementation methods described below are only used to explain the technical solutions of the embodiments of the present disclosure, and are not used to limit more possible implementation methods of the present disclosure.
[0053] It should be noted that the relational terms such as "first", "second" and the like appearing in this document are only used to distinguish things, states or actions, and do not necessarily indicate or imply relative importance or sequential relationships. The terms "include", "comprises" or any other variants thereof are used to indicate non-exclusive inclusion, and the included objects may not be limited to the objects listed in this document. The term "plurality" or other variants are used to indicate that the number of objects is two or more.
[0054] In a first aspect, an embodiment of the present disclosure provides a method for generating a simulation scene. The method can be applied to Figure 1 In the application environment shown. Among them, the server 101 can communicate with the terminal 102 through the network, obtain the real car data of the driving scene transmitted by the terminal 102, and then construct the simulation scene. The server 101 is loaded with relevant applications for data processing and scene simulation, such as three-dimensional reconstruction, scene simulation, rendering, management applications, etc. The server 101 can be implemented with an independent server or a server cluster composed of multiple servers, and the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices.
[0055] The simulation scenario generation method is applied to Figure 1 The server 101 in FIG. 1 is taken as an example to illustrate, in some embodiments, Figure 2 As shown, the simulation scene generation method includes steps S201 to S205 that can be executed by the server 101. Each step is described below.
[0056] Step S201, obtaining real vehicle data of the driving scene.
[0057] Among them, the driving scene can be the target area range in the map data, and the target area range can be the urban road area for autonomous driving testing. The real vehicle data is the sensor data obtained by the road sampling vehicle in the target area range, which can specifically include image data collected by the camera, point cloud data collected by the radar sensor, positioning data collected by the position sensor, etc.
[0058] Specifically, the server 101 obtains the real vehicle data of the driving scene transmitted by the terminal 102. In some examples, the real vehicle data of the driving scene may be data received by the terminal 102 from the road-collecting vehicle and transmitted back, and in other examples, the real vehicle data of the driving scene may be data obtained by the terminal 102 from the map manufacturer.
[0059] In some optional implementations, the actual vehicle data of the driving scene can be stored in a local storage device or in a cloud storage space. When the simulation scene is generated, it is transmitted to the server 101 through the network in response to the data acquisition requirements of the server 101.
[0060] Step S202, obtaining three-dimensionally reconstructed voxelized data and vectorized map data according to the real vehicle data.
[0061] Among them, voxelized data refers to the three-dimensional data obtained by voxelizing the real car data of the driving scene. Voxelization is to convert the geometric form representation of an object into the voxel representation form that is closest to the object, including the surface information and internal properties of the model. It can be the three-dimensional data obtained by voxelizing the real car data of the driving scene.
[0062] In some specific implementations, the real vehicle data of the driving scene can be 3D reconstructed using a NeRF (Neural Radiance Field Model) model to synthesize the scene structure and obtain voxelized data. Of course, other 3D reconstruction models can also be used to process and obtain voxelized data.
[0063] Vectorized map data refers to the vectorized map data obtained by using offline automatic construction technology of high-precision maps to build real vehicle data of driving scenes. For example, it can be constructed by using laser radar point cloud SLAM (Simultaneous Localization and Mapping) technology to extract map elements to obtain vectorized map data. Vectorized map data can represent the location of map graphics or geographic entities through X, Y, and Z coordinates, and the spatial location of geographic entities can be marked as accurately as possible in the form of coordinates.
[0064] Step S203 , associating the voxelized data and the vectorized map data into the same coordinate system to obtain three-dimensional reconstructed data.
[0065] In some specific implementations, the server 101 may first perform data preprocessing on the voxelized data and the vectorized map data, such as data screening and denoising. The processed voxelized data and the vectorized map data are merged into the same coordinate system to obtain three-dimensional reconstruction data. In some examples, the coordinates of the vectorized map data can be used as a reference coordinate system, and the voxelized data coordinate system is unified with the coordinates of the vectorized map data. After completing the reference coordinate system, the voxelized data is merged into the vectorized map data to obtain three-dimensional reconstruction data. In some other examples, the voxelized data and the vectorized map data can also be merged into a unified geographic coordinate system (such as WGS84, the coordinate system used by the GPS global positioning system). On the basis of the unified coordinate system, the voxelized data can be aligned with the three-dimensional features in the vectorized map data to achieve data fusion, and the fused data can be three-dimensionally reconstructed to obtain three-dimensional reconstruction data.
[0066] Step S204: input the voxelized data and the vectorized map data into a preset AI model for data expansion training to obtain AI expansion data.
[0067] Among them, the preset AI model can be an AIGC model or other generative AI models.
[0068] In some specific implementations, step S204 may include: extracting driving scene classification label information and data feature information of voxelized data and vectorized map data, inputting the sub-table label information and data feature information into a preset AI model, performing data expansion according to a specific correlation or similarity, and obtaining voxelized data and vectorized map data that have a high correlation or high similarity in data content with the original input voxelized data and vectorized map data. Among them, the classification labels of driving scenes may include environment classification labels, road classification labels, and high-precision map element labels.
[0069] By performing AI data expansion training on voxelized data and vectorized map data, voxelized data and vectorized map data other than the collected data of actual driving scenes can be obtained, and there is similarity and correlation between the AI expansion data and the data of actual driving scenes. This can complement the actual driving scene data and improve the richness and diversity of the data.
[0070] Step S205: construct a first driving simulation scene according to the three-dimensional reconstruction data and the AI extension data.
[0071] Specifically, the server 101 may run a pre-configured simulation application and a rendering application, and perform data processing on the three-dimensional reconstruction data and the AI extension data to construct a first driving simulation scene. The pre-configured simulation application may be a traffic simulation software, such as: PTV-VISSIM (a microscopic traffic simulation software developed by PTV of Germany), SUMO (an open source microscopic traffic simulation software developed by the German Aerospace Center), Anylogic (a multi-domain simulation software), and Paramics (a microscopic traffic simulation software developed by Quadrant of the United Kingdom).
[0072] There is no particular limitation here on the specific manner in which the server 101 constructs the first driving simulation scene based on the three-dimensional reconstruction data and the AI extension data and the application used. Those skilled in the art can select the corresponding application or platform to construct the first driving simulation scene according to actual needs.
[0073] By executing steps S201 to S205, the server 101 performs data processing based on the real vehicle data of the driving scene to obtain voxelized data and vectorized map data, and obtains three-dimensional reconstruction data after associating the two types of data to the same coordinates. At the same time, the two types of data are extended and trained using a preset AI model to obtain AI extended data, and a first driving scene is constructed based on the three-dimensional reconstruction data and the AI extended data, wherein the three-dimensional reconstruction data can restore the actual driving scene information to the greatest extent, and the AI extended data can generalize the real driving scene, improve the richness and diversity of the data, and provide driving scenes that are not covered in the real vehicle data, which can improve the generalization ability of the scene and enhance the coverage of the simulation scene.
[0074] In some embodiments, Figure 3 As shown, step S201 may include step S301 to step S302. Each step is described below.
[0075] Step S301, classifying the target area map data into scenes according to a preset classification dimension, and generating information of multiple categories of subdivided scenes.
[0076] Among them, the target area map data can be the navigation map road network data of a specific urban area, or it can be the navigation map road network data of the target area defined based on the autonomous driving test range.
[0077] In some embodiments, the preset classification dimensions may include at least two of an environment classification dimension, a road classification dimension, and a map element classification dimension.
[0078] The environmental classification dimension may include at least two of the latitude interval, altitude interval, landform type and administrative area range of the environmental space in the target area map data. Each item in the environmental classification dimension may include more than two subdivision items.
[0079] For example, the latitude interval can be obtained by dividing the target area into intervals of 2° latitude. Taking Sichuan Province as the target area, the latitude range of Sichuan Province is between 26°03′ and 34°19′ north latitude. After the latitude interval is divided, 5 latitude intervals can be obtained, namely 26° to 28°, 28° to 30°, 30° to 32°, 32° to 34°, and 34° to 36°. The division unit of the dimensional interval can be set according to actual needs.
[0080] The altitude interval can be divided into specific division units according to the actual altitude range of the target area. Similar to the latitude interval, the division unit and the number of intervals after the specific division can be set according to the actual situation.
[0081] The landform type in the environmental classification dimension refers to the landform classification in the target area, which can include mountains, hills, plains and plateaus.
[0082] Administrative regions can be divided at the provincial level, or at the city or county level.
[0083] For example, the environmental classification dimension can be represented by an environmental classification tree, in which the administrative area range can be used as a first-level branch node, the landform type can be used as a second-level branch node, and the latitude range or altitude range can be used as a leaf node. The number of levels, the number of nodes in each level, and the level classification items can be set according to actual needs.
[0084] The road classification dimension includes at least two of the road type, road space level, road topological relationship and road operation status in the target area map data. Each item in the road classification dimension may include more than two subdivision items.
[0085] For example, road types can be divided into expressways, first-class roads, second-class roads, third-class roads and fourth-class roads according to road grades.
[0086] An expressway is a road designed for high-speed travel in separate lanes with full access control; a first-class highway is a road for travel in separate directions and lanes with partial access control and some three-dimensional intersections; a second-class highway is a road used primarily for automobile transportation and is usually used for medium and short-distance transportation within the province; a third-class highway is a trunk highway used for a mixture of automobile and non-automotive traffic, mainly serving counties and towns; a fourth-class highway refers to a local highway connecting townships and villages.
[0087] The road space hierarchy can include surface roads, underground roads and elevated roads.
[0088] The road topological relationship refers to the connectivity between classified road sections and other roads, which may include no connectivity, single connectivity, dual connectivity, multiple connectivity, etc.
[0089] The current road operation status refers to the current operation status of classified road sections, which may include construction status, traffic status, accident status, etc.
[0090] For example, the road classification dimension can also be represented by a road classification tree, in which the road type can be used as a first-level branch node, the road space level can be used as a second-level branch node, the road topological relationship can be used as a third-level branch node, and the road operation status can be used as a leaf node. The number of levels, the number of nodes in each level, and the level classification items can be set according to actual needs.
[0091] The map element classification dimension includes at least two items of traffic lights, traffic signs, traffic markings, number of lanes, and lane types in the target area map data. Each item in the map element classification dimension may include more than two subdivision items.
[0092] For example: traffic lights can include red lights and green lights; traffic signs can include yield signs, slow signs, no parking, no U-turns, etc.; traffic markings can include lane lines, stop lines, guide lines, etc.; the number of lanes can include two lanes, four lanes, six lanes, etc.; lane types can include one-way lanes and two-way lanes.
[0093] Exemplarily, the map feature classification dimension can also be represented by a feature classification tree. Specifically, the number of levels in the feature classification tree, the number of nodes in each level, and the level classification items can be set according to actual needs.
[0094] In some specific implementations, the server 101 performs scene classification on the target area map data according to preset classification dimensions to generate information on multiple categories of subdivided scenes, which may include: performing scene classification on the target area map data according to environment classification dimensions, road classification dimensions, and map element classification dimensions to generate information on multiple categories of subdivided scenes.
[0095] Specifically, the environment classification dimension, the road classification dimension and the map element classification dimension can form a full-item scene classification tree, and the map data of the target area are sequentially classified into environment classification, road classification and map element classification. The classified target area map data includes multiple types of subdivided scenes, and the classified target map data may include the following subdivided scene information: "XX province XX city X landform X altitude interval X dimension interval XX grade highway X connection XX operation status XX lane XX sign". Exemplarily, the subdivided scene information may include: "Sichuan province Chengdu city plain landform first altitude interval second dimension interval second-class highway double connection traffic status double lane yield sign", and may also include: "Sichuan province Chengdu city plain landform first altitude interval second dimension interval third-class highway single connection traffic status double lane slow sign".
[0096] Step S302, obtaining real vehicle data of various subdivided scenarios.
[0097] The server 101 obtains the actual vehicle data of each subdivided scene according to the information of the subdivided scenes obtained after classifying the target area map data.
[0098] In some examples, real vehicle data can be obtained by arranging a collection plan and then transmitting it back. In other examples, real vehicle data can be purchased from map manufacturers, and the purchased data can be divided into various sub-scenarios, and supplemented when there is missing data.
[0099] In some specific embodiments, obtaining real vehicle data of various subdivided scenes may include the steps of: collecting real vehicle data according to vehicle sensors. The vehicle sensors may include at least one of a visual sensor (e.g., a three-eye camera and a surround camera), a radar sensor (e.g., a millimeter wave radar and a laser radar), a GPS, and an inertial sensor.
[0100] Real vehicle data may include radar data, image data, positioning data, vehicle driving data, etc.
[0101] In some specific embodiments, obtaining real vehicle data for various subdivided scenes may further include the steps of: repeatedly collecting real vehicle data in different weather and seasons for the same subdivided scene; and / or collecting special collection condition data for the same subdivided scene. The special collection condition data includes at least one of a noise environment, a strong light environment, and a special occlusion environment.
[0102] In some specific embodiments, real vehicle data of various segmented scenarios are obtained, and real vehicle data of the same scene at different time periods on the same day can be repeatedly collected.
[0103] By executing step S301 and step S302, scene classification is performed according to the preset classification dimensions and the target area map data, and the real vehicle data corresponding to the classified segmented scenes is obtained. By first classifying and then obtaining the data, the comprehensiveness and authenticity of the simulation data for constructing the simulation scene can be improved, so that the driving simulation scene can cover a large number of actual driving scenes, improve the scene coverage, and a large amount of real vehicle data is used as simulation data to improve the authenticity of the simulation scene.
[0104] At the same time, the preset classification dimensions include multiple classification dimensions of environment classification, road classification and map element classification. Each classification dimension includes multiple sub-items. The large number of classification dimensions and the fine granularity of classification improve the accuracy and precision of the classification of map road network data in the target area.
[0105] Repeatedly collecting real vehicle data in different weather conditions, seasons, and time periods for the same segmented scene can also improve the comprehensiveness and authenticity of simulation data. Collecting data under special collection conditions (noise, strong light, occlusion, etc.) and adding them to simulation data can improve the comprehensiveness of the data, and provide corresponding original data to support special environmental conditions encountered during actual vehicle driving.
[0106] Accordingly, in some embodiments, step S202 may include the step of obtaining three-dimensionally reconstructed voxelized data and vectorized map data based on real vehicle data of various segmented scenes.
[0107] In some embodiments, both voxelized data and vectorized map data are annotated with scene label information, and the preset AI model is a generative AI model.
[0108] Inputting voxelized data and vectorized map data into a preset AI model for data expansion training to obtain AI extended data may include: extracting features from voxelized data and vectorized map data annotated with similar scene label information to obtain feature data, and inputting the feature data into a preset AI model for data expansion training to obtain AI extended data.
[0109] Among them, the feature data includes label keyword information, voxelized data feature information and map data feature information. The AI model is used to perform extended training on the feature data according to a preset correlation to obtain AI extended data. The AI extended data includes extended voxelized data and extended vectorized map data.
[0110] Specifically, the voxelized data and vectorized map data obtained based on the real vehicle data of various segmented scenes are marked with scene label information corresponding to the various segmented scenes, and the scene label information is used to indicate the segmented scenes to which the voxelized data and vectorized map data belong. Scene label information may include environmental labels, road labels, and map element labels. The preset correlation degree may be a correlation degree of 90%, that is, the correlation degree between the expanded data and the input voxelized data and vectorized map data is more than 90%. In some cases, the top 50 or top 100 data ranked from high to low in correlation degree may also be selected as AI extended data. In some other cases, data expansion may also be performed according to the preset data similarity, and the extended data and the original input data have a high correlation or high similarity in data content.
[0111] In some specific implementations, the voxelized data feature information may include geometric features of the voxel data, topological features describing the connectivity and spatial relationship between voxels, and texture features. The map data feature information may include spatial location features of geographic elements, shape features of geographic elements, topological features, etc.
[0112] Since the label keyword information, voxelized data feature information and map data feature information in the feature data are heterogeneous data, after the feature data is extracted, the simulation scene generation method may include standardizing the feature data, forming a unified feature data representation through data conversion, fusion and other steps, and inputting the unified feature data into the AI model for training.
[0113] In some cases, the steps of extracting feature data and normalizing feature data can also be implemented in the AI model.
[0114] The AI model expands the input feature data according to a preset correlation or similarity, and after feature data fusion processing, it can generate data that is highly correlated or similar in data content to the original voxelized data and vectorized map data.
[0115] In some embodiments, a subdivided scene may include one or more scenes, such as Figure 4 As shown, step S302 may include steps S401 to S403.
[0116] Step S401, determining the total number of all subdivided scenes and the number of each type of subdivided scene in the target area map data.
[0117] Step S402: Determine the weight value of each subdivided scene according to the total number of all subdivided scenes and the number of scenes in each subdivided scene.
[0118] Step S403, collecting real vehicle data of various subdivided scenarios in equal proportion according to the weight values.
[0119] Specifically, the server 101 may count the total amount of all segmented scenes and the number of scenes of each segmented scene contained in the classified target area map data, and determine the weight value of each segmented scene according to the statistical result. For example, the weight value of a segmented scene of category A may be the result of dividing the number of scenes of a segmented scene of category A by the total amount of all segmented scenes. According to the weight value of each segmented scene, the real vehicle data of each segmented scene is collected in equal proportion.
[0120] By determining the weight values of various subdivided scenarios and collecting real vehicle data in proportion to the weight values, the real vehicle data of each scene in the simulation data used to construct the simulation scene can be highly consistent with the actual driving scene, thereby improving the authenticity of the constructed simulation scene.
[0121] In some embodiments, step S205 may include the following steps:
[0122] The three-dimensional reconstruction data and AI extended data are simulated and processed through the preset digital twin application to build a driving twin model; the driving twin model is imported into the preset game engine to obtain the first driving simulation scene.
[0123] Among them, the preset digital twin application can be a collection of one or multiple applications, which is used to simulate the three-dimensional reconstruction data and AI extension data to build a virtual copy of the real driving scene. The preset digital twin application can be Esri CityEngine (an application for three-dimensional city modeling), or BentleyiTwin (Bentley's digital twin platform), etc., or other simulation applications.
[0124] The preset game engine can be used to run and manage the driving twin model, and the test environment can also be built through the preset game engine. The preset game engine can be Unreal Engine, Unity3D (3D game development tool), or other game engines.
[0125] Constructing the first driving simulation scene through a preset digital twin application and a preset game engine can improve the realism of the simulation scene and improve the presentation effect of the simulation scene.
[0126] In some embodiments, the simulation scene generation method may further include the step of: constructing a second driving simulation scene based only on the three-dimensional reconstruction data.
[0127] The second driving simulation scene is used to restore the driving scene corresponding to the real vehicle data. The data used to construct the second driving simulation scene only includes the three-dimensional reconstruction data obtained after the real vehicle data is processed, which can ensure that the second driving simulation scene has a high degree of restoration of the real driving scene, and when the second driving simulation is used for vehicle testing, the test results have a high accuracy.
[0128] In some embodiments, the simulation scene generation method may further include the step of adding traffic participants to the first driving simulation scene to form a traffic flow.
[0129] In some specific implementations, adding a traffic participant to the first driving simulation scene may include the following steps:
[0130] According to the decision tree algorithm, the exit lane in the driving simulation scenario is determined, the traffic participants are controlled to move autonomously from the random entry lane to the random exit lane, and abnormal events are added to the driving simulation scenario.
[0131] Among them, abnormal events may include: pedestrians running red lights, adjacent vehicles changing lanes abnormally, the distance between the rear vehicle and the vehicle behind is too close, and adjacent vehicles driving over the line, etc.
[0132] Specifically, all entrance lanes in the first driving simulation scenario are traversed, including non-motorized vehicle lanes and the right-side pedestrian path. For each entrance lane, the lane connectivity and lane line type are analyzed according to the decision tree algorithm to determine all exit lanes that the entrance lane can reach. Traffic participants are controlled to start from any entrance lane at a random time point and autonomously move to a random exit lane.
[0133] In some embodiments, the simulation scene generation method may further include the step of: adding environmental factors to the first driving simulation scene to simulate driving scenes in different environments, wherein the environmental factors include weather, lighting, and the like.
[0134] By adding traffic participants, abnormal events and environmental elements to the first driving simulation scene, real traffic behavior can be simulated.
[0135] In a second aspect, an embodiment of the present disclosure provides an autonomous driving test method, such as Figure 5 As shown, the test method includes steps S501 to S504. Each step is described below.
[0136] Step S501: testing a test vehicle in a first driving simulation scenario to obtain first driving data.
[0137] Step S502: testing the test vehicle in a second driving simulation scenario to obtain second driving data.
[0138] Step S503: Compare and analyze the first driving data and the second driving data to determine abnormal driving data of the vehicle to be tested.
[0139] Step S504: modifying the algorithm of the test vehicle according to the abnormal driving data.
[0140] The first driving simulation scene is the first driving simulation scene disclosed in the embodiment of the first aspect. The second driving simulation scene is the second driving simulation scene disclosed in the embodiment of the first aspect.
[0141] When the test vehicle is tested in the simulation scene, the test vehicle is tested in the first driving simulation scene and the second driving simulation scene respectively to obtain corresponding first driving data and second driving data.
[0142] Among them, because the data used to construct the first driving simulation scene, in addition to the real vehicle data collected from the real driving scene, also includes AI extended data, it can provide more driving scenarios for the test vehicle for simulation testing. The data used to construct the second driving simulation scene only includes real vehicle data collected from the real driving scene. The simulation scene is more in line with the actual driving scene, which can ensure the accuracy of the test results.
[0143] The first driving data and the second driving data are compared and analyzed to determine the driving abnormal data in the two sets of data, and the test vehicle algorithm is corrected and completed based on the analysis of the abnormal data.
[0144] The test method provided by the embodiment of the present disclosure can improve the accuracy of abnormal data identification of the test vehicle and thus improve the accuracy of algorithm correction by cross-validating the driving data of the first driving simulation scene and the second driving simulation scene. At the same time, the second driving simulation scene adds AI extended data that is not in the actual driving scene, improves the scene generalization ability, and increases the simulation test scene of the test vehicle, which can, to a certain extent, discover in advance the algorithm defects and deficiencies that cannot be tested and discovered in the current actual driving environment.
[0145] By conducting driving tests on the test vehicle in the first driving simulation scenario and the second driving simulation scenario, different traffic flow parameters and environmental parameters can be changed to perform diversified tests. The scenarios can be reused, and tests on different vehicle models can be performed in these two simulation scenarios, which can shorten the vehicle model generalization time.
[0146] It should be understood that although Figure 2-5 The steps in the flowchart are displayed in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Figure 2-5Unless otherwise specified herein, the steps shown and the steps involved in other embodiments are not strictly limited in order of execution, and the steps can be executed in other orders. Moreover, at least a part of the steps in the aforementioned embodiments may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0147] In a third aspect, an embodiment of the present disclosure provides a simulation scene generation device, such as Figure 6 As shown, the simulation scene generation device 600 includes: a data acquisition module 601, a data processing module 602, a 3D reconstruction module 603, an AI expansion module 604 and a scene construction module 605. Each module is described below.
[0148] The data acquisition module 601 is used to acquire real vehicle data of the driving scene.
[0149] The data processing module 602 is used to obtain three-dimensionally reconstructed voxelized data and vectorized map data according to the real vehicle data.
[0150] The three-dimensional reconstruction module 603 is used to associate the voxelized data and the vectorized map data into the same coordinate system to obtain three-dimensional reconstructed data.
[0151] The AI expansion module 604 is used to input the voxelized data and the vectorized map data into a preset AI model for data expansion training to obtain AI expansion data.
[0152] The scene construction module 605 is used to construct a first driving simulation scene according to the three-dimensional reconstruction data and the AI extension data.
[0153] In some embodiments, the data acquisition module 601 includes a scene classification unit and a data collection unit.
[0154] The scene classification unit is used to classify the target area map data according to the preset classification dimension and generate information of multiple categories of subdivided scenes.
[0155] The data acquisition unit is used to obtain real vehicle data for various segmented scenarios.
[0156] The data processing module 602 is also used to obtain three-dimensionally reconstructed voxelized data and vectorized map data based on the real vehicle data of various segmented scenes.
[0157] In some embodiments, the data collection unit may include a scene quantity determination subunit, a scene weight determination subunit, and an equal proportion collection subunit.
[0158] The scene quantity determination subunit is used to determine the total number of scenes of all subdivided scenes and the number of scenes of each subdivided scene in the target area map data.
[0159] The scene weight determination subunit is used to determine the weight value of each type of subdivided scene according to the total number of scenes of all subdivided scenes and the number of scenes of each type of subdivided scene.
[0160] The proportional collection sub-unit is used to collect real vehicle data of various segmented scenarios in proportion according to weight values.
[0161] In some embodiments, the scene construction module 605 may include a digital twin unit and a game engine unit.
[0162] The digital twin unit is used to simulate the three-dimensional reconstruction data and AI extended data through a preset digital twin application to build a driving twin model.
[0163] The game engine unit is used to import the driving twin model into a preset game engine to obtain a first driving simulation scene.
[0164] In some embodiments, the simulation scene generating device 600 may further include a second scene building module for building a second driving simulation scene according to the three-dimensional reconstruction data.
[0165] In a fourth aspect, an embodiment of the present disclosure provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the simulation scene generation method in any embodiment of the first aspect of the present disclosure when executing the computer program.
[0166] In some embodiments, the computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data for constructing simulation scenarios. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the simulation scenario generation method in any embodiment of the first aspect of the present disclosure is implemented.
[0167] Those skilled in the art will understand that Figure 7The structure shown in the figure is merely a block diagram of a partial structure related to the embodiment scheme of the present disclosure, and does not constitute a limitation on the computer device to which the embodiment scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0168] In a fifth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the simulation scene generation method in any embodiment of the first aspect of the present disclosure is implemented.
[0169] The computer readable storage medium may be Figure 7 A computer-readable storage medium in the computer device shown.
[0170] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program. The aforementioned computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments of the present disclosure may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0171] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present disclosure.
[0172] The above embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the protection scope of the present disclosure. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.
Claims
1. A simulation scene generation method, characterized in that: The method comprises: Classify the target area map data according to the preset classification dimensions, generate information of multiple subdivided scenes, and obtain real vehicle data of each subdivided scene; Obtaining three-dimensionally reconstructed voxelized data and vectorized map data according to the real vehicle data; Associating the voxelized data and the vectorized map data into the same coordinate system to obtain three-dimensional reconstruction data; Performing feature extraction on voxelized data and vectorized map data annotated with the same type of scene label information to obtain feature data, wherein both the voxelized data and the vectorized map data are annotated with the scene label information; Inputting the feature data into a preset AI model for data expansion training to obtain AI expansion data; A first driving simulation scene is constructed according to the three-dimensional reconstruction data and the AI extension data.
2. The method according to claim 1, characterized in that The step of obtaining three-dimensionally reconstructed voxelized data and vectorized map data according to the real vehicle data includes: The voxelized data and vectorized map data after three-dimensional reconstruction are obtained based on the real vehicle data of the various segmented scenes.
3. The method according to claim 1, characterized in that The feature data includes tag keyword information, voxelized data feature information and map data feature information; The preset AI model is a generative AI model, and the preset AI model is used to perform extended training on the feature data according to a preset degree of association to obtain the AI extended data, and the AI extended data includes extended voxelized data and extended vectorized map data.
4. The method according to claim 1, characterized in that A category of segmented scenarios includes one or more scenarios; The acquisition of real vehicle data for various subdivided scenarios includes: Determine the total number of all subdivided scenes and the number of each type of subdivided scene in the target area map data; Determining weight values of each type of subdivided scene according to the total number of all subdivided scenes and the number of scenes of each type of subdivided scene; According to the weight values, the real vehicle data of each type of segmented scene is collected in equal proportion.
5. The method according to claim 1, characterized in that The preset classification dimensions include at least two of the following: environment classification dimensions, road classification dimensions, and map element classification dimensions; The environmental classification dimension includes at least two of the latitude range, altitude range, landform type and administrative area range of the environmental space in the target area map data; The road classification dimensions include at least two of the road type, road space level, road topological relationship and road operation status in the target area map data; The map element classification dimensions include at least two of the traffic lights, traffic signs, traffic markings, number of lanes, and lane types in the target area map data.
6. The method according to claim 1, characterized in that The constructing a first driving simulation scene according to the three-dimensional reconstruction data and the AI extension data includes: The three-dimensional reconstruction data and the AI extended data are simulated and processed by a preset digital twin application program to construct a driving twin model; The driving twin model is imported into a preset game engine to obtain a first driving simulation scene.
7. The method according to claim 1, characterized in that The method further comprises: A second driving simulation scene is constructed only according to the three-dimensional reconstruction data, and the second driving simulation scene is used to restore the driving scene corresponding to the real vehicle data.
8. An automatic driving test method, characterized in that: The method comprises: Testing a test vehicle in a first driving simulation scenario according to any one of claims 1 to 6 to obtain first driving data; Testing the test vehicle in the second driving simulation scenario described in claim 7 to obtain second driving data; Comparing and analyzing the first driving data and the second driving data to determine abnormal driving data of the test vehicle; The algorithm of the test vehicle is corrected according to the abnormal driving data.
9. A simulation scene generation device, characterized in that: The device comprises: The data acquisition module is used to classify the target area map data according to the preset classification dimension, generate information of multiple subdivided scenes, and obtain the real vehicle data of each subdivided scene; A data processing module, used to obtain three-dimensionally reconstructed voxel data and vectorized map data according to the real vehicle data; A three-dimensional reconstruction module, used for associating the voxelized data and the vectorized map data into the same coordinate system to obtain three-dimensional reconstruction data; The AI extension module is used to extract features from voxelized data and vectorized map data annotated with the same scene label information to obtain feature data, and input the feature data into a preset AI model for data extension training to obtain AI extension data, wherein both the voxelized data and the vectorized map data are annotated with the scene label information; A scene construction module is used to construct a first driving simulation scene according to the three-dimensional reconstruction data and the AI extension data.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Complex environment three-dimensional reconstruction method and system
CN111383330A
High-precision map point cloud data processing method and device, equipment and storage medium
CN113936109A
