Virtual scene library construction method, apparatus and device for autonomous vehicle, and medium

By adjusting the parameters and grouping technology of the clustering algorithm, a representative and diverse virtual scene library is constructed, which solves the problem of low efficiency of automatic driving algorithm evaluation in the existing technology and achieves a more comprehensive and efficient evaluation.

CN118862633APending Publication Date: 2024-10-29BEIJING SAIMO TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410851823.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing Monte Carlo simulation method requires a large number of samples when there are not many combinations of failure scenarios of the autonomous driving algorithm, resulting in low evaluation efficiency and the inability to more comprehensively evaluate the performance of the autonomous driving algorithm.

Method used

By adjusting the clustering parameters of the clustering algorithm, controlling the number of generated scenes, grouping them according to scene characteristics, extracting representative virtual scenes, and building a virtual scene library to more comprehensively evaluate the performance of the autonomous driving algorithm.

Benefits of technology

The generated scene library has good representativeness and diversity, can more comprehensively evaluate the performance of the autonomous driving algorithm, and improves the evaluation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862633A_ABST
    Figure CN118862633A_ABST
Patent Text Reader

Abstract

The invention provides a virtual scene library construction method and device of an automatic driving automobile, equipment and a medium, and the method comprises the steps: carrying out the data processing of operation data in different virtual scenes, and determining feature parameters in different virtual scenes; performing clustering processing on the feature parameters under different virtual scenes based on a clustering algorithm, and determining a plurality of virtual scenes under each scene category; wherein the scene category comprises a speed scene category, a distance scene category and a weather scene category; and screening out a target virtual scene from the plurality of virtual scenes under each scene category, and forming a virtual scene library by the plurality of target virtual scenes. The number of generated scenes can be controlled by adjusting the clustering parameters of the clustering algorithm, meanwhile, the high coverage rate is kept, the clustering algorithm can be grouped according to the features of the scenes, and therefore representative virtual scenes are extracted, the generated scene library has good representativeness and diversity, and the user experience is improved. And the performance of the automatic driving algorithm can be evaluated more comprehensively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to methods, devices, equipment and media for constructing a virtual scene library for autonomous driving vehicles. Background Art

[0002] In recent years, more and more traditional enterprises and emerging technology companies have invested in the research and development of self-driving cars, and self-driving cars of many companies have begun to be tested on the road. Scenario-based virtual simulation testing of self-driving cars has low testing costs, high testing efficiency, strong repeatability and a large number of test scenarios. It is an important means of testing self-driving cars in the future. Although the existing Monte Carlo simulation method can provide a certain degree of evaluation, due to its characteristics based on simple random sampling, when there are not many combinations of failure scenarios of the self-driving algorithm, a large number of samples are required, thereby reducing the evaluation efficiency. Therefore, how to more comprehensively evaluate the performance of the self-driving algorithm has become a technical issue that cannot be underestimated. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a method, device, equipment and medium for constructing a virtual scene library for an autonomous driving car. By adjusting the clustering parameters of the clustering algorithm, the number of generated scenes can be controlled while maintaining a high coverage rate. The clustering algorithm can group the scenes according to their characteristics, thereby extracting representative virtual scenes, so that the generated scene library has better representativeness and diversity, and can more comprehensively evaluate the performance of the autonomous driving algorithm.

[0004] The present application embodiment provides a method for constructing a virtual scene library of an autonomous driving vehicle, the method comprising:

[0005] Obtaining the operating data of the autonomous driving car in different virtual scenes, performing data processing on the operating data in different virtual scenes, and determining characteristic parameters in different virtual scenes;

[0006] Based on the clustering algorithm, characteristic parameters under different virtual scenes are clustered to determine multiple virtual scenes under each scene category; wherein the scene categories include speed scene category, distance scene category and weather scene category;

[0007] A target virtual scene is selected from a plurality of virtual scenes under each scene category, and the plurality of target virtual scenes form a virtual scene library.

[0008] In a possible implementation manner, the processing of the operating data in different virtual scenes to determine the characteristic parameters in different virtual scenes includes:

[0009] Performing data cleaning and data preprocessing on the operation data in different virtual scenes to determine the operation data after the first processing;

[0010] Data feature extraction is performed on the first processed operating data to determine feature parameters under different virtual scenes.

[0011] In a possible implementation manner, clustering the characteristic parameters of different virtual scenes based on a clustering algorithm to determine multiple virtual scenes in each scene category includes:

[0012] Selecting characteristic parameters of multiple virtual scenes from characteristic parameters of different virtual scenes as initial centroids, and determining a first Euclidean distance from the characteristic parameters of each virtual scene to each initial centroid; wherein the number of the initial centroids is consistent with the number of the scene categories;

[0013] Based on the first Euclidean distance, centroid allocation is performed on the characteristic parameters of each virtual scene to determine the initial centroid corresponding to the characteristic parameters of each virtual scene;

[0014] Each of the initial centroids is updated and the centroids are reallocated for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes under each scene category.

[0015] In a possible implementation manner, updating each of the initial centroids and reallocating the centroids for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, and determining multiple virtual scenes under each scene category, includes:

[0016] Calculate the average value of the characteristic parameters of multiple virtual scenes under each initial mass center to determine the average characteristic parameter;

[0017] Taking the average characteristic parameter as a new centroid, re-determining the second Euclidean distance from the characteristic parameter in each virtual scene to the new centroid;

[0018] Based on each of the second Euclidean distances, centroid allocation is performed on the characteristic parameters of the virtual scene until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes under each scene category.

[0019] In a possible implementation manner, the target virtual scene is determined in the following manner:

[0020] The virtual scene closest to the centroid among the multiple virtual scenes under each scene category is determined as the target virtual scene.

[0021] In a possible implementation manner, after selecting a target virtual scene from a plurality of virtual scenes under each scene category and forming a virtual scene library with the plurality of target virtual scenes, the virtual scene library construction method further includes:

[0022] Performing simulation testing on the autonomous driving algorithm based on the virtual scene library to determine the simulation test results;

[0023] The virtual scene library is optimized and adjusted based on the simulation test results.

[0024] The embodiment of the present application also provides a virtual scene library construction device for an autonomous driving vehicle, the virtual scene library construction device comprising:

[0025] A data processing module is used to obtain the operating data of the autonomous driving vehicle in different virtual scenes, process the operating data in different virtual scenes, and determine the characteristic parameters in different virtual scenes;

[0026] A clustering processing module, used for clustering characteristic parameters under different virtual scenes based on a clustering algorithm to determine multiple virtual scenes under each scene category; wherein the scene category includes a speed scene category, a distance scene category and a weather scene category;

[0027] The construction module is used to select a target virtual scene from a plurality of virtual scenes under each scene category, and form a virtual scene library with the plurality of target virtual scenes.

[0028] In a possible implementation manner, the data processing module is used to process the operation data in different virtual scenes to determine the characteristic parameters in different virtual scenes, and the data processing module is specifically used to:

[0029] Performing data cleaning and data preprocessing on the operation data in different virtual scenes to determine the operation data after the first processing;

[0030] Data feature extraction is performed on the first processed operating data to determine feature parameters under different virtual scenes.

[0031] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for constructing a virtual scene library of an autonomous driving vehicle as described above are performed.

[0032] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for constructing a virtual scene library of an autonomous driving vehicle as described above are executed.

[0033] The embodiments of the present application provide a method, device, equipment and medium for constructing a virtual scene library of an autonomous driving vehicle. The method for constructing a virtual scene library includes: obtaining the operating data of the autonomous driving vehicle in different virtual scenes, performing data processing on the operating data in different virtual scenes, and determining the characteristic parameters in different virtual scenes; clustering the characteristic parameters in different virtual scenes based on a clustering algorithm to determine multiple virtual scenes in each scene category; wherein the scene categories include speed scene categories, distance scene categories and weather scene categories; selecting a target virtual scene from the multiple virtual scenes in each scene category, and forming a virtual scene library with the multiple target virtual scenes. By adjusting the clustering parameters of the clustering algorithm, the number of generated scenes can be controlled while maintaining a high coverage rate. The clustering algorithm can group scenes according to their characteristics, thereby extracting representative virtual scenes, so that the generated scene library has better representativeness and diversity, and can more comprehensively evaluate the performance of the autonomous driving algorithm.

[0034] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A flowchart of a method for constructing a virtual scene library for an autonomous driving vehicle provided in an embodiment of the present application;

[0037] Figure 2 One of the structural schematic diagrams of a virtual scene library construction device for an autonomous driving vehicle provided in an embodiment of the present application;

[0038] Figure 3 A second structural diagram of a virtual scene library construction device for an autonomous driving vehicle provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0041] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0042] In order to enable those skilled in the art to use the contents of this application, the following implementation method is given in combination with the specific application scenario of "building a virtual scene library for an autonomous driving car". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.

[0043] The following methods, devices, electronic devices or computer-readable storage media of the embodiments of the present application can be applied to any scenario where a virtual scene library for an autonomous driving vehicle needs to be constructed. The embodiments of the present application are not limited to specific application scenarios. Any scheme using the virtual scene library construction method, device, equipment and medium for an autonomous driving vehicle provided by the embodiments of the present application is within the scope of protection of the present application.

[0044] First, the application scenarios to which the present application is applicable are introduced. The present application can be applied in the field of driverless car technology.

[0045] Research has found that in recent years, more and more traditional companies and emerging technology companies have invested in the research and development of self-driving cars, and self-driving cars of many companies have begun to be tested on the road. Scenario-based virtual simulation testing of self-driving cars has low testing costs, high testing efficiency, strong repeatability and a large number of test scenarios. It is an important means of testing self-driving cars in the future. Although the existing Monte Carlo simulation method can provide a certain degree of evaluation, due to its characteristics based on simple random sampling, when there are not many combinations of failure scenarios of the self-driving algorithm, a large number of samples are required, thereby reducing the evaluation efficiency. Therefore, how to more comprehensively evaluate the performance of the self-driving algorithm has become a technical issue that cannot be underestimated.

[0046] Based on this, an embodiment of the present application provides a method for constructing a virtual scene library for an autonomous driving vehicle. By adjusting the clustering parameters of the clustering algorithm, the number of generated scenes can be controlled while maintaining a high coverage rate. The clustering algorithm can group the scenes according to their characteristics, thereby extracting representative virtual scenes, so that the generated scene library has better representativeness and diversity, and can more comprehensively evaluate the performance of the autonomous driving algorithm.

[0047] See also Figure 1 , Figure 1 This is a flow chart of a method for constructing a virtual scene library for an autonomous driving vehicle provided in an embodiment of the present application. Figure 1 As shown in , the virtual scene library construction method provided in the embodiment of the present application includes:

[0048] S101: Obtaining operating data of the autonomous driving vehicle in different virtual scenarios, performing data processing on the operating data in different virtual scenarios, and determining characteristic parameters in different virtual scenarios.

[0049] In this step, the operating data of the autonomous vehicle in different virtual scenarios are collected, and the operating data in different virtual scenarios are processed to determine the characteristic parameters in different virtual scenarios.

[0050] Among them, characteristic parameters include vehicle speed, distance, weather and other parameters.

[0051] In a possible implementation manner, the processing of the operating data in different virtual scenes to determine the characteristic parameters in different virtual scenes includes:

[0052] A: Perform data cleaning and data preprocessing on the operating data in different virtual scenarios to determine the operating data after the first processing.

[0053] Here, data cleaning and data preprocessing are performed on the operation data in different virtual scenes to determine the operation data after the first processing.

[0054] The operation data of the autonomous driving system in different scenarios are collected, including vehicle speed, distance, weather and other parameters. The collected data are pre-processed, including data cleaning and feature extraction, to ensure the accuracy and effectiveness of the data.

[0055] In a specific embodiment, the data set contains 1,000 emergency braking scenarios, each of which has the following three features: vehicle speed (V, unit: km / h), distance to the stationary vehicle in front (D, unit: meter), and weather conditions (W, encoded as: 1-sunny, 2-rainy, 3-foggy). Data preprocessing For the categorical feature of weather conditions, one-hot encoding can be used to convert it into three binary features: W1 (sunny), W2 (rainy), and W3 (foggy). Standardize the speed and distance features to eliminate the impact of the dimension on the clustering results. The data set has been preprocessed, and each scenario is represented by the following three features: vehicle speed (V, after standardization), distance (D, after standardization), and weather conditions (W1, W2, W3, after one-hot encoding).

[0056] B: Extracting data features from the first processed operating data to determine feature parameters under different virtual scenes.

[0057] Here, data feature extraction is performed on the operating data after the first processing to determine feature parameters under different virtual scenes.

[0058] S102: clustering characteristic parameters of different virtual scenes based on a clustering algorithm to determine a plurality of virtual scenes in each scene category; wherein the scene category includes a speed scene category, a distance scene category, and a weather scene category.

[0059] In this step, the characteristic parameters of different virtual scenes are clustered according to a clustering algorithm to determine a plurality of virtual scenes in each scene category.

[0060] Among them, the scene categories include speed scene categories, distance scene categories and weather scene categories.

[0061] The clustering algorithm may be a K-means clustering algorithm, which is applied in the feature space to aggregate similar scenes into the same cluster. By adjusting the number of clusters K, the number of generated scenes can be controlled while ensuring that the scenes in each cluster are sufficiently representative.

[0062] In a possible implementation manner, clustering the characteristic parameters of different virtual scenes based on a clustering algorithm to determine multiple virtual scenes in each scene category includes:

[0063] a: Selecting characteristic parameters of multiple virtual scenes from characteristic parameters of different virtual scenes as initial centroids, and determining a first Euclidean distance from each characteristic parameter of the virtual scene to each initial centroid; wherein the number of the initial centroids is consistent with the number of the scene categories.

[0064] Here, characteristic parameters of multiple virtual scenes are selected from characteristic parameters of different virtual scenes as initial centroids, and a first Euclidean distance from the characteristic parameter of each virtual scene to each initial centroid is determined.

[0065] Among them, the first Euclidean distance from the characteristic parameter of each virtual scene to each initial centroid can be determined according to the Euclidean distance calculation formula.

[0066] Here, the first Euclidean distance is determined by the following formula:

[0067]

[0068] Among them, dist(X i -C k ) is the first Euclidean distance from the feature parameter of the i-th virtual scene to the k-th initial centroid, is the jth characteristic parameter in the i-th virtual scene, n is the total number of characteristic parameters in the virtual scene, is the jth characteristic parameter under the kth initial centroid.

[0069] b: performing centroid allocation for the characteristic parameters in each of the virtual scenes based on the first Euclidean distance, and determining an initial centroid corresponding to the characteristic parameters in each of the virtual scenes.

[0070] Here, the centroid of the characteristic parameters in each virtual scene is allocated according to the first Euclidean distance, and the initial centroid corresponding to the characteristic parameters in each virtual scene is determined.

[0071] Among them, the characteristic parameters of each virtual scene are assigned to the nearest initial centroid.

[0072] c: updating each of the initial centroids and reallocating the centroids for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, thereby determining a plurality of virtual scenes under each scene category.

[0073] Here, each of the initial centroids is updated and the centroids are reallocated for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes in each scene category.

[0074] In a possible implementation manner, updating each of the initial centroids and reallocating the centroids for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, and determining multiple virtual scenes under each scene category, includes:

[0075] (1): Calculate the average value of the characteristic parameters of multiple virtual scenes under each initial centroid to determine the average characteristic parameter.

[0076] Here, the average value of the characteristic parameters in multiple virtual scenes under each initial centroid is calculated to determine the average characteristic parameter.

[0077] (2): Taking the average feature parameter as the new centroid, re-determine the second Euclidean distance from the feature parameter of each virtual scene to the new centroid.

[0078] Here, the average feature parameter is used as the new centroid, and the second Euclidean distance from the feature parameter in each virtual scene to the new centroid is re-determined.

[0079] (3): Based on each of the second Euclidean distances, the centroid of the characteristic parameters in the virtual scene is assigned until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes in each scene category.

[0080] Here, the centroid of the characteristic parameters under the virtual scene is assigned according to each second Euclidean distance, and the above steps are repeated until the position of the centroid no longer changes significantly or reaches a preset maximum number of iterations, thereby determining multiple virtual scenes under each scene category.

[0081] Among them, after the iteration, K categories and their corresponding centroids are obtained. These categories represent different types of emergency braking scenarios, and the centroids provide typical features of each category.

[0082] S103: Filter out a target virtual scene from a plurality of virtual scenes under each scene category, and form a virtual scene library with the plurality of target virtual scenes.

[0083] In this step, a target virtual scene is selected from a plurality of virtual scenes under each scene category, and the plurality of target virtual scenes form a virtual scene library.

[0084] In a possible implementation manner, the target virtual scene is determined in the following manner:

[0085] The virtual scene closest to the centroid among the multiple virtual scenes under each scene category is determined as the target virtual scene.

[0086] Here, the virtual scene closest to the centroid among the multiple virtual scenes under each scene category is determined as the target virtual scene.

[0087] In a possible implementation manner, after selecting a target virtual scene from a plurality of virtual scenes under each scene category and forming a virtual scene library with the plurality of target virtual scenes, the virtual scene library construction method further includes:

[0088] Based on the virtual scene library, a simulation test is performed on the autonomous driving algorithm to determine the simulation test result; and based on the simulation test result, the virtual scene library is optimized and adjusted.

[0089] Here, the autonomous driving algorithm is simulated and tested based on the virtual scene library, the simulation test results are determined, and the virtual scene library is optimized and adjusted based on the simulation test results.

[0090] In this solution, the K-means clustering algorithm can automatically discover the inherent structure and regularity in the data and aggregate similar scenarios together, thereby reducing the number of redundant test scenarios. By controlling the number of clusters K, the number of generated scenarios can be flexibly adjusted while maintaining a high coverage rate. The generated scenario library has good representativeness and diversity, and can more comprehensively evaluate the performance of the autonomous driving algorithm.

[0091] The embodiment of the present application provides a method for constructing a virtual scene library of an autonomous driving vehicle, the method comprising: obtaining the operating data of the autonomous driving vehicle in different virtual scenes, performing data processing on the operating data in different virtual scenes, and determining the characteristic parameters in different virtual scenes; clustering the characteristic parameters in different virtual scenes based on a clustering algorithm, and determining multiple virtual scenes in each scene category; wherein the scene categories include speed scene categories, distance scene categories, and weather scene categories; selecting a target virtual scene from the multiple virtual scenes in each scene category, and forming a virtual scene library with the multiple target virtual scenes. By adjusting the clustering parameters of the clustering algorithm, the number of generated scenes can be controlled while maintaining a high coverage rate. The clustering algorithm can group scenes according to their characteristics, thereby extracting representative virtual scenes, so that the generated scene library has better representativeness and diversity, and can more comprehensively evaluate the performance of the autonomous driving algorithm.

[0092] See also Figure 2 , Figure 3 , Figure 2 One of the structural schematic diagrams of a virtual scene library construction device for an autonomous driving vehicle provided in an embodiment of the present application; Figure 3 This is a second structural diagram of a virtual scene library construction device for an autonomous driving vehicle provided in an embodiment of the present application. Figure 2As shown in the figure, the virtual scene library construction device 200 of the automatic driving car includes:

[0093] The data processing module 210 is used to obtain the operation data of the autonomous driving vehicle in different virtual scenes, perform data processing on the operation data in different virtual scenes, and determine the characteristic parameters in different virtual scenes;

[0094] The clustering processing module 220 is used to perform clustering processing on the characteristic parameters of different virtual scenes based on the clustering algorithm to determine multiple virtual scenes under each scene category; wherein the scene category includes a speed scene category, a distance scene category and a weather scene category;

[0095] The construction module 230 is used to select a target virtual scene from a plurality of virtual scenes under each scene category, and form a virtual scene library with the plurality of target virtual scenes.

[0096] Furthermore, the data processing module is used to process the operation data in different virtual scenes to determine the characteristic parameters in different virtual scenes. The data processing module is specifically used to:

[0097] Performing data cleaning and data preprocessing on the operation data in different virtual scenes to determine the operation data after the first processing;

[0098] Data feature extraction is performed on the first processed operating data to determine feature parameters under different virtual scenes.

[0099] Furthermore, the data processing module 210 is used to process the operation data in different virtual scenes to determine the characteristic parameters in different virtual scenes. Specifically, the data processing module 210 is used to:

[0100] Performing data cleaning and data preprocessing on the operation data in different virtual scenes to determine the operation data after the first processing;

[0101] Data feature extraction is performed on the first processed operating data to determine feature parameters under different virtual scenes.

[0102] Furthermore, when the clustering processing module 220 is used to perform clustering processing on the characteristic parameters of different virtual scenes based on the clustering algorithm to determine multiple virtual scenes under each scene category, the clustering processing module 220 is specifically used to:

[0103] Selecting characteristic parameters of multiple virtual scenes from characteristic parameters of different virtual scenes as initial centroids, and determining a first Euclidean distance from the characteristic parameters of each virtual scene to each initial centroid; wherein the number of the initial centroids is consistent with the number of the scene categories;

[0104] Based on the first Euclidean distance, centroid allocation is performed on the characteristic parameters of each virtual scene to determine the initial centroid corresponding to the characteristic parameters of each virtual scene;

[0105] Each of the initial centroids is updated and the centroids are reallocated for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes under each scene category.

[0106] Further, when the clustering processing module 220 is used to update each of the initial centroids and reallocate the centroids for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, and when multiple virtual scenes under each scene category are determined, the clustering processing module 220 is specifically used to:

[0107] Calculate the average value of the characteristic parameters of multiple virtual scenes under each initial mass center to determine the average characteristic parameter;

[0108] Taking the average characteristic parameter as a new centroid, re-determining the second Euclidean distance from the characteristic parameter in each virtual scene to the new centroid;

[0109] Based on each of the second Euclidean distances, centroid allocation is performed on the characteristic parameters of the virtual scene until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes under each scene category.

[0110] Furthermore, the construction module 230 determines the target virtual scene in the following manner:

[0111] The virtual scene closest to the centroid among the multiple virtual scenes under each scene category is determined as the target virtual scene.

[0112] Further, such as Figure 3 As shown, the virtual scene library construction device 200 for the autonomous driving vehicle further includes an adjustment module 240, which is used to:

[0113] Performing simulation testing on the autonomous driving algorithm based on the virtual scene library to determine the simulation test results;

[0114] The virtual scene library is optimized and adjusted based on the simulation test results.

[0115] The embodiment of the present application provides a virtual scene library construction device for an autonomous driving vehicle, the virtual scene library construction device comprising: a data processing module for obtaining the operating data of the autonomous driving vehicle in different virtual scenes, performing data processing on the operating data in different virtual scenes, and determining the characteristic parameters in different virtual scenes; a clustering processing module for clustering the characteristic parameters in different virtual scenes based on a clustering algorithm, and determining multiple virtual scenes in each scene category; wherein the scene categories include speed scene categories, distance scene categories, and weather scene categories; a construction module for screening out a target virtual scene from multiple virtual scenes in each scene category, and forming a virtual scene library with the multiple target virtual scenes. By adjusting the clustering parameters of the clustering algorithm, the number of generated scenes can be controlled while maintaining a high coverage rate. The clustering algorithm can group scenes according to their characteristics, thereby extracting representative virtual scenes, so that the generated scene library has better representativeness and diversity, and can more comprehensively evaluate the performance of the autonomous driving algorithm.

[0116] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0117] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The steps of the method for constructing a virtual scene library for an autonomous driving vehicle in the method embodiment shown in the figure, and the specific implementation method thereof can be referred to the method embodiment, which will not be described in detail here.

[0118] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the method for constructing a virtual scene library for an autonomous driving vehicle in the method embodiment shown in the figure, and the specific implementation method thereof can be referred to the method embodiment, which will not be described in detail here.

[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0120] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

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

[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0123] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0124] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for constructing a virtual scene library for an autonomous driving vehicle, characterized in that: The virtual scene library construction method comprises: Obtaining the operating data of the autonomous driving car in different virtual scenes, performing data processing on the operating data in different virtual scenes, and determining characteristic parameters in different virtual scenes; Based on the clustering algorithm, characteristic parameters under different virtual scenes are clustered to determine multiple virtual scenes under each scene category; wherein the scene categories include speed scene category, distance scene category and weather scene category; A target virtual scene is selected from a plurality of virtual scenes under each scene category, and the plurality of target virtual scenes form a virtual scene library.

2. The method for constructing a virtual scene library according to claim 1, characterized in that: The processing of the operating data under different virtual scenes to determine the characteristic parameters under different virtual scenes includes: Performing data cleaning and data preprocessing on the operation data in different virtual scenes to determine the operation data after the first processing; Data feature extraction is performed on the first processed operating data to determine feature parameters under different virtual scenes.

3. The method for constructing a virtual scene library according to claim 1, characterized in that: The clustering algorithm is used to cluster the characteristic parameters of different virtual scenes to determine multiple virtual scenes in each scene category, including: Selecting characteristic parameters of multiple virtual scenes from characteristic parameters of different virtual scenes as initial centroids, and determining a first Euclidean distance from the characteristic parameters of each virtual scene to each initial centroid; wherein the number of the initial centroids is consistent with the number of the scene categories; Based on the first Euclidean distance, centroid allocation is performed on the characteristic parameters of each virtual scene to determine the initial centroid corresponding to the characteristic parameters of each virtual scene; Each of the initial centroids is updated and the centroids are reallocated for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes under each scene category.

4. The method for constructing a virtual scene library according to claim 3, characterized in that: The updating of each of the initial centroids and the reallocation of the centroids for the characteristic parameters of each virtual scene until the position of the centroid no longer changes significantly, and determining a plurality of virtual scenes under each scene category, comprises: Calculate the average value of the characteristic parameters of multiple virtual scenes under each initial mass center to determine the average characteristic parameter; Taking the average characteristic parameter as a new centroid, re-determining the second Euclidean distance from the characteristic parameter in each virtual scene to the new centroid; Based on each of the second Euclidean distances, centroid allocation is performed on the characteristic parameters of the virtual scene until the position of the centroid no longer changes significantly, thereby determining multiple virtual scenes under each scene category.

5. The method for constructing a virtual scene library according to claim 1, characterized in that: The target virtual scene is determined by: The virtual scene closest to the centroid among the multiple virtual scenes under each scene category is determined as the target virtual scene.

6. The method for constructing a virtual scene library according to claim 1, characterized in that: After selecting a target virtual scene from a plurality of virtual scenes under each scene category and forming a virtual scene library with the plurality of target virtual scenes, the virtual scene library construction method further includes: Performing simulation testing on the autonomous driving algorithm based on the virtual scene library to determine the simulation test results; The virtual scene library is optimized and adjusted based on the simulation test results.

7. A device for constructing a virtual scene library for an autonomous driving vehicle, characterized in that: The virtual scene library construction device comprises: A data processing module is used to obtain the operating data of the autonomous driving vehicle in different virtual scenes, process the operating data in different virtual scenes, and determine the characteristic parameters in different virtual scenes; A clustering processing module, used for clustering characteristic parameters under different virtual scenes based on a clustering algorithm to determine multiple virtual scenes under each scene category; wherein the scene category includes a speed scene category, a distance scene category and a weather scene category; The construction module is used to select a target virtual scene from a plurality of virtual scenes under each scene category, and form a virtual scene library with the plurality of target virtual scenes.

8. The virtual scene library construction device according to claim 7, characterized in that: The data processing module is used to process the operation data in different virtual scenes to determine the characteristic parameters in different virtual scenes. The data processing module is specifically used to: Performing data cleaning and data preprocessing on the operation data in different virtual scenes to determine the operation data after the first processing; Data feature extraction is performed on the first processed operating data to determine feature parameters under different virtual scenes.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the method for constructing a virtual scene library for an autonomous driving vehicle as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for constructing a virtual scene library for an autonomous driving vehicle as described in any one of claims 1 to 6 are executed.

Citation Information

Cited By

  • Multi-dimensional feature coding scene library construction and retrieval method and system and medium

    CN119336938A