Scene classification method, electronic equipment and carrying tool
By calculating the time difference and minimum time between the target vehicle and the obstacle's running trajectory interaction point, the radicalness of the scene is determined, and effective driving scenes are screened out, which solves the resource waste and inaccuracy problems caused by invalid scenes in the automatic driving algorithm test, and improves the efficiency Test and optimize efficiency.
Patent Information
- Application Number
- CN202310294339.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-09-20
AI Technical Summary
During the autonomous driving algorithm testing process, the generated driving scenes contain a large number of invalid scenarios, resulting in a waste of computing resources and inaccurate testing, and reducing the optimization efficiency of the autonomous driving algorithm.
By obtaining the scene data of the driving scene, determine the multiple running trajectories of the target vehicle and obstacles, calculate the time difference and minimum time for them to reach the interaction point, determine the scene radicality based on these data, and filter out effective driving scene types to improve Test and optimize autonomous driving algorithms for accuracy and efficiency.
It achieves more accurate screening of effective driving scenarios, saves computing resources and simulation testing time, and improves the accuracy and efficiency of testing and optimization of autonomous driving algorithms.
Smart Images

Figure CN118673372A
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent driving technology, and in particular to a scene classification method, electronic equipment and a vehicle. Background Art
[0002] In the process of testing the autonomous driving algorithm, it is usually necessary to automatically generalize a large number of driving scenarios according to certain rules and logic, and then use these driving scenarios to test the autonomous driving algorithm. However, the automatically generalized driving scenarios contain many invalid scenarios. A large number of invalid scenarios will lead to a waste of computing resources and simulation test time during virtual simulation testing, and will also lead to inaccurate testing and optimization of the autonomous driving algorithm, and reduce the efficiency of the optimization of the autonomous driving algorithm. Summary of the invention
[0003] The embodiments of the present application provide a scene classification method, an electronic device, and a vehicle, which can more accurately determine the scene aggressiveness of a driving scene based on multiple predicted operating trajectories of a target vehicle, thereby accurately screening out effective target type driving scenes and improving the accuracy and efficiency of autonomous driving algorithm testing and optimization.
[0004] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0005] In the first aspect, a scene classification method is provided, in which the scene data corresponding to the driving scene is first obtained, and based on the scene data, multiple first running trajectories of the target vehicle and the second running trajectory of the obstacle in the driving scene are determined. The first running trajectory represents the predicted trajectory of the target vehicle reaching the target position point, and the second running trajectory represents the predicted trajectory of the obstacle. Based on the multiple first running trajectories and the second running trajectories, the time difference and the minimum time for the target vehicle and the obstacle to reach the same interaction point are determined. Then, based on the time difference and the minimum time for the target vehicle and the obstacle to reach the same interaction point, the scene aggressiveness of the driving scene is determined; wherein the scene aggressiveness represents the degree of danger between the target vehicle and the obstacle in the driving scene. Finally, based on the scene aggressiveness, the scene type of the driving scene is determined, and the scene type includes the target type, and the target type of driving scene is used to test and optimize the autonomous driving algorithm.
[0006] The scene classification method provided in the embodiment of the present application can more accurately determine the scene aggressiveness based on multiple running trajectories of the target vehicle, that is, more accurately determine the type of driving scene, thereby accurately screening out effective driving scenes of the target type. Effective driving scenes can be used in the subsequent testing and optimization of autonomous driving algorithms, which is convenient for saving computing resources and simulation test time, improving the accuracy of testing and optimization of autonomous driving algorithms, and also improving the efficiency of optimization of autonomous driving algorithms.
[0007] In an implementation of the first aspect, when determining the scene aggressiveness of the driving scene, the above method first obtains the time difference and minimum time for the target vehicle and the obstacle to reach the same interaction point based on a frame of data in the scene data. Then, based on the time difference and the minimum time, the frame aggressiveness corresponding to the frame data is determined. Finally, the largest frame aggressiveness among the frame aggressiveness corresponding to multiple frames of data in the scene data is determined as the scene aggressiveness of the driving scene.
[0008] In this implementation, the scene aggressiveness of the driving scene is determined by the most representative frame data among multiple frames of data. The greater the frame aggressiveness corresponding to the frame data, the more representative the frame data is, and the more it can represent the scene aggressiveness of the entire driving scene. In addition, when determining the frame aggressiveness corresponding to the above frame data, both the time difference between the target vehicle and the obstacle reaching the travel interaction point and the minimum time for the target vehicle and the obstacle to reach the travel interaction point can be considered, so as to more comprehensively and accurately reflect the degree of danger of the behavior between the target vehicle and the obstacle, provide a more accurate and favorable driving scene for the subsequent testing and optimization of the autonomous driving algorithm, and improve the accuracy of the testing and optimization of the autonomous driving algorithm.
[0009] In an implementation of the first aspect, the method can also determine a connected domain of the target vehicle during its travel based on multiple first running trajectories, wherein the connected domain represents an area enclosed by two outermost trajectories of multiple first running trajectories with a usage probability greater than or equal to a preset probability and expanded by a preset width; the usage probability represents the probability that the target vehicle travels from the current position point to the target position point along the first running trajectory. Then, the interaction point between the second running trajectory and the connected domain is determined as the travel interaction point between the target vehicle and the obstacle.
[0010] In this implementation, the existence of a connected domain indicates that multiple first running trajectories of the target vehicle in the embodiment of the present application can be screened, thereby screening out the first running trajectories with a relatively high probability of use or that meet the running conditions of the target vehicle; and removing the first running trajectories with a relatively low probability of use or that do not meet the running conditions of the target vehicle, thereby avoiding the interference of invalid running trajectories in the process of determining the travel interaction point, and improving the accuracy of determining the travel interaction point. The existence of a connected domain can also indicate that the above method can expand or inflate the range where the first running trajectory is located, so that the outline of the target vehicle can be included in the connected domain, so that no matter which part of the obstacle collides with the target vehicle, it can be regarded as the existence of a travel interaction point between the target vehicle and the obstacle, which can also improve the accuracy of determining the travel interaction point.
[0011] In an implementation of the first aspect, when determining the frame aggressiveness corresponding to a frame of data, the above method may first obtain a first time when the target vehicle arrives at the travel interaction point, and a second time when the obstacle arrives at the travel interaction point. Then determine the time difference between the first time and the second time, and the minimum time between the first time and the second time. Finally, based on the time difference and the minimum time, determine the dangerous time index corresponding to the frame of data, wherein the dangerous time index is used to characterize the frame aggressiveness, and the smaller the dangerous time index, the greater the frame aggressiveness.
[0012] In an implementable manner of the first aspect, when determining the frame aggressiveness corresponding to a frame of data, if there are multiple obstacles in the driving scene, the method determines the time difference and minimum time corresponding to each obstacle based on the travel interaction points between each obstacle and the target vehicle. Then, based on the time difference and minimum time corresponding to each obstacle, determine the dangerous time index corresponding to each obstacle, wherein the dangerous time index is used to characterize the frame aggressiveness, and the smaller the dangerous time index, the greater the frame aggressiveness. Finally, based on the dangerous time index corresponding to each obstacle, determine the frame aggressiveness of a frame of data.
[0013] In this implementation, when classifying driving scenarios with multiple obstacles, the impact of each obstacle on the target vehicle can be comprehensively considered, so as to more accurately determine the scene aggressiveness (or dangerous time index), and also more accurately test and optimize the autonomous driving algorithm for driving scenarios with multiple obstacles.
[0014] In an implementable manner of the first aspect, when determining the frame aggressiveness corresponding to a frame of data based on the hazardous time index corresponding to each obstacle, the above method can determine the smallest hazardous time index among the hazardous time indices corresponding to multiple obstacles as the hazardous time index corresponding to a frame of data, or determine the harmonic mean hazardous time index of the hazardous time indices corresponding to multiple obstacles, and determine the harmonic mean hazardous time index as the hazardous time index corresponding to a frame of data, wherein the hazardous time index corresponding to a frame of data is used to characterize the frame aggressiveness corresponding to the frame of data.
[0015] In an implementable manner of the first aspect, when determining multiple first running trajectories of a target vehicle in a driving scene, the above method can first obtain the road topology of the driving scene and / or the preset path of the target vehicle based on a frame of data in the scene data. Then, based on the preset path of the target vehicle and / or the road topology of the driving scene, determine the multiple target position points that the target vehicle reaches within a preset time from the current position point in the driving scene. Then, for one frame of data, obtain multiple first running trajectories of the target vehicle reaching the multiple target position points respectively at the current position point.
[0016] In this implementation, multiple target position points of the target vehicle during its movement can be predicted, thereby obtaining multiple first operating trajectories. The multiple target position points provide multiple possibilities for the target vehicle's travel destination, thereby obtaining more possible first operating trajectories, avoiding the problem of inaccurate determination of time difference and minimum time caused by using only one operating trajectory.
[0017] In an implementable manner of the first aspect, when determining the scene type of the driving scene based on the scene aggressiveness, the above method can first obtain the dangerous time index corresponding to the maximum frame aggressiveness among the frame aggressiveness corresponding to the multiple frames of data. If the dangerous time index corresponding to the maximum frame aggressiveness is less than or equal to the first preset threshold, the driving scene is determined to be a target type driving scene. If the dangerous time index corresponding to the maximum frame aggressiveness is greater than the first preset threshold, the driving scene is determined to be a non-target type driving scene.
[0018] In an implementable manner of the first aspect, after the above method determines that the driving scene is a target type of driving scene, if the dangerous time index corresponding to the maximum frame aggressiveness is less than or equal to the first preset threshold and greater than the second preset threshold, the driving scene is determined as a basic interaction scene, wherein the basic interaction scene is used to test and optimize the autonomous driving algorithm in the algorithm maintenance scenario. If the dangerous time index corresponding to the maximum frame aggressiveness is less than or equal to the second preset threshold and greater than the third preset threshold, the driving scene is determined as a strong interaction scene, wherein the strong interaction scene is used to test and optimize the autonomous driving algorithm in the algorithm function comparison scenario. If the dangerous time index corresponding to the maximum frame aggressiveness is less than or equal to the third preset threshold, the driving scene is determined as an aggressive scene, wherein the aggressive scene is used to test and optimize the autonomous driving algorithm in the algorithm capability improvement scenario.
[0019] In this implementation, the above-mentioned driving scenarios of the radical scenario, strong interaction scenario, and basic interaction scenario are all valid driving scenarios. Valid driving scenarios can be used in the subsequent testing and optimization of autonomous driving algorithms, which is convenient for saving computing resources and simulation test time, improving the accuracy of testing and optimization of autonomous driving algorithms, and also improving the optimization efficiency of autonomous driving algorithms.
[0020] In an implementation manner of the first aspect, the above method also includes: sending scene data corresponding to the target type of driving scene to a cloud device, wherein the scene data is used to test and optimize the autonomous driving algorithm.
[0021] In a second aspect, a chip comprises a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the chip executes the scene classification method as in the first aspect and any implementation thereof.
[0022] According to a third aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes a scene classification method as in the first aspect and any implementation thereof.
[0023] In a fourth aspect, a vehicle is provided, comprising the chip described in the second aspect, or the electronic device described in the third aspect.
[0024] In a fifth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the scene classification method as in the first aspect and any implementation thereof.
[0025] In a sixth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer executes the scene classification method in the first aspect and any implementation manner thereof.
[0026] It can be understood that the beneficial effects that can be achieved by the chip described in the second aspect, the electronic device described in the third aspect, the vehicle described in the fourth aspect, the computer-readable storage medium described in the fifth aspect, and the computer program product described in the sixth aspect can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of determining collision time according to an embodiment of the present application;
[0028] Figure 2 A schematic diagram of a communication system shown in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of the structure of a vehicle shown in an embodiment of the present application;
[0030] Figure 4 The process diagram of the scene classification method shown in the embodiment of the present application is as follows: Figure 1 ;
[0031] Figure 5 The driving scene shown in the embodiment of the present application is shown in FIG. Figure 1 ;
[0032] Figure 6 The process diagram of the scene classification method shown in the embodiment of the present application is as follows: Figure 2 ;
[0033] Figure 7 The driving scene shown in the embodiment of the present application is shown in FIG. Figure 2 ;
[0034] Figure 8 A schematic diagram of a dangerous time index shown in an embodiment of the present application;
[0035] Fig. 9 The driving scene shown in the embodiment of the present application is shown in FIG. Figure 3 ;
[0036] Fig.10 The driving scene shown in the embodiment of the present application is shown in FIG. Figure 4 ;
[0037] Fig.11 A schematic diagram of the optimization results of the autonomous driving algorithm shown in an embodiment of the present application;
[0038] Fig.12 A schematic diagram of a vehicle implementing driving scene classification according to an embodiment of the present application;
[0039] Fig.13 A schematic diagram of scene classification based on massive data shown in an embodiment of the present application;
[0040] Fig.14 This is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0042] In addition, the business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0043] In the field of autonomous driving, it is usually necessary to test and optimize the autonomous driving algorithm through real vehicle testing and virtual simulation testing. Whether it is real vehicle testing or virtual simulation testing, during the testing process, it is necessary to verify the autonomous driving algorithm against a large number of driving scenarios (or driving interaction scenarios), so that the autonomous driving algorithm and the functions corresponding to the autonomous driving algorithm are more accurate, and the user's experience of autonomous driving is improved. Among them, the driving scenario can represent the scene of the vehicle driving, as well as various interaction scenarios between other vehicles and the vehicle.
[0044] At present, when conducting the above-mentioned virtual simulation test, it is usually necessary to automatically generalize a large number of driving scenarios, i.e., test scenarios, according to certain rules and logic. However, the automatically generalized driving scenarios contain many invalid scenarios, for example, the interaction between other vehicles and the self-vehicle is low or non-existent. A large number of invalid scenarios will lead to a large waste of computing resources and simulation test time when conducting virtual simulation tests, and will also lead to inaccurate testing and optimization of autonomous driving algorithms, and reduce the efficiency of optimization of autonomous driving algorithms.
[0045] For some current proposals, see Figure 1 As shown, a fixed range space can be set around the vehicle, the trajectory of the other vehicle and the trajectory of the vehicle can be determined within the range space, and the possibility of collision between the other vehicle and the vehicle and the time of collision can be calculated, so as to determine whether the current driving scene is a valid scene, wherein the trajectory of the other vehicle and the vehicle can be either a predicted trajectory or a posteriori trajectory (or a real trajectory). However, since there is no uniform setting standard for the size of the range space, this method of determining whether the driving scene is valid can easily cause missed screening or misscreening. Moreover, when determining whether the other vehicle and the vehicle are likely to collide and the time of collision, only one running trajectory of the vehicle is considered within the range space, which can also cause the problem of incorrect calculation of the collision time.
[0046] In addition, there are certain limitations in determining whether a driving scenario is effective only through the above-mentioned fixed range space.
[0047] Based on the above content, an embodiment of the present application provides a scene classification method. The method can obtain scene data corresponding to the driving scene, and based on the scene data, determine multiple first running trajectories of the target vehicle in the driving scene and the second running trajectory of the obstacle, and then based on the multiple first running trajectories of the target vehicle in the driving scene and the second running trajectory of the obstacle, determine the time difference and minimum time for the target vehicle and the obstacle to reach the same interaction point, and, based on the time difference and the minimum time, determine the scene aggressiveness of the driving scene, and finally, based on the scene aggressiveness, determine the scene type of the driving scene.
[0048] The scenario aggressiveness indicates the degree to which the target vehicle and the obstacle in the driving scenario tend to be dangerous, or the degree of interaction between the target vehicle and the obstacle. The first running trajectory indicates the predicted trajectory of the target vehicle to reach a target position point, and the second running trajectory indicates the predicted trajectory of the obstacle. Also, the scenario type of the driving scenario includes the target type, and the target type driving scenario can be used to test and optimize the autonomous driving algorithm.
[0049] In the above method, the scenario aggressiveness is more accurately determined based on multiple predicted running trajectories of the target vehicle, that is, the scenario type of the driving scenario is more accurately determined, thereby accurately screening out effective target type driving scenarios. Effective driving scenarios can be used in subsequent testing and optimization of autonomous driving algorithms, which is convenient for saving computing resources and simulation test time, improving the accuracy of testing and optimization of autonomous driving algorithms, and also improving the efficiency of optimization of autonomous driving algorithms.
[0050] In addition, the above method can also more accurately determine the collision time between the target vehicle and the obstacle through multiple predicted running trajectories of the target vehicle, rather than determining the collision time based on the range space where the target vehicle is located, thereby avoiding the limitations caused by setting a fixed range space.
[0051] The scene classification method provided in the embodiment of the present application can be applied to Figure 2 In the communication system shown. Figure 2 , the communication system may include a vehicle 100 and a server 200, and the vehicle 100 and the server 200 communicate with each other. The vehicle 100 may be equipped with an autonomous driving algorithm. The server 200 may obtain scene data of various driving scenes for testing and optimizing the autonomous driving algorithm, and classify the various driving scenes. After classifying the driving scenes, the vehicle 100 may obtain driving scenes that are confirmed to be valid after classification, and use the valid driving scenes to test and optimize the autonomous driving algorithm.
[0052] The scene data may include the topological structure of the road in the current driving scene, the running speed, running trajectory, running direction, etc. of the obstacles in the driving scene, and the running speed, running trajectory, running direction, etc. of the vehicle 100 in the driving scene.
[0053] The server 200 can predict multiple first running trajectories of the vehicle 100 and the second running trajectories of the obstacles according to the scenario data. Afterwards, the server 200 determines the scenario aggressiveness of the current driving scenario according to the multiple first running trajectories of the vehicle 100 and the second running trajectories of the obstacles, and then determines the type of the driving scenario based on the scenario aggressiveness and determines whether the driving scenario is valid.
[0054] The above-mentioned scene data can be obtained by the server 200 from the vehicle 100, or it can be a driving scene automatically generalized by the server 200 according to certain rules, logic, etc., or it can be obtained by the server 200 from roadside equipment (such as capture equipment, cameras, etc.).
[0055] If the scene data is obtained by the server 200 from the vehicle 100, the vehicle 100 can collect or obtain the scene data of the current driving scene in real time during the driving process, wherein the driving scene may include the vehicle 100 and obstacles, etc. The vehicle 100 then sends the driving scene data to the server 200, and the server 200 restores the current driving scene based on the driving scene data. In this case, the vehicle 100 can obtain the running speed, running direction, etc. of the obstacles in the scene data through sensors, etc.
[0056] If the scene data is generalized by the server 200, then when generalizing the scene data, the running speed, running track, running direction, etc. of the vehicle 100 and obstacles in the driving scene can also be generalized. It can be understood that generalizing the driving scene can be regarded as a process of simulating the scene data.
[0057] If the scene data is obtained by the server 200 from the roadside device, the roadside device can collect or obtain the scene data of the driving scene around the current location in real time, wherein the driving scene may include the vehicle 100 and obstacles, etc. The roadside device sends the driving scene data to the server 200, and the server 200 restores the current driving scene according to the driving scene data.
[0058] In this case, the roadside equipment can obtain the running speed, running direction, etc. of the vehicle 100 and the obstacle in the scene data through sensors, etc. In this case, the above communication system may include roadside equipment and a server, wherein the roadside equipment may include a capture device, a camera, a monitor, etc.
[0059] In some embodiments, the communication system may also be composed of a vehicle 100 and other electronic devices with computing and processing capabilities (such as a host, a processor, a computer, etc.), wherein the electronic devices may communicate with the vehicle 100 and implement the functions that the server 200 in the above embodiments can implement. In other embodiments, the server 200 may also be regarded as an electronic device.
[0060] In some embodiments, the above-mentioned vehicle 100 may include road vehicles, water vehicles, air vehicles, industrial equipment, agricultural equipment, or entertainment equipment, etc. For example, the vehicle 100 may be a vehicle, which is a vehicle in a broad sense, and may be a vehicle (such as a commercial vehicle, a passenger car, a motorcycle, a flying car, a train, etc.), an industrial vehicle (such as a forklift, a trailer, a tractor, etc.), an engineering vehicle (such as an excavator, a bulldozer, a crane, etc.), agricultural equipment (such as a mower, a harvester, etc.), amusement equipment, a toy vehicle, etc. The embodiment of the present application does not specifically limit the type of vehicle. For another example, the vehicle 100 may be a vehicle such as an airplane or a ship.
[0061] And, in other embodiments, see Figure 3 As shown, the vehicle 100 may also include a scene classification module or a scene classification model. The vehicle 100 collects driving scene data and restores the driving scene. Then, the vehicle 100 classifies the driving scene through the scene classification module or the scene classification model, and determines whether the driving scene is valid (for example, to realize the functions that the server 200 in the aforementioned embodiment can realize), and uses the effective driving scene to test the automatic driving algorithm, and uses the test results to optimize the automatic driving algorithm. And, the scene classification algorithm or the scene classification model can also be optimized according to the test results. Exemplarily, when the vehicle 100 is a vehicle, the scene classification algorithm provided in the embodiment of the present application can also be integrated on the vehicle chip; or, the vehicle is equipped with a simulation system for testing the automatic driving algorithm, and the scene classification algorithm provided in the embodiment of the present application can also be integrated into the simulation system.
[0062] Alternatively, in some other embodiments, the server 200 may also include a scene classification module or a scene classification model. The server 200 classifies the driving scene through the scene classification module or the scene classification model, determines whether the driving scene is valid, and uses the valid driving scene to test the automatic driving algorithm, and optimizes the automatic driving algorithm using the test results. In addition, the scene classification algorithm or the scene classification model may also be optimized according to the test results.
[0063] In some embodiments, the vehicle 100 in the above communication system may not be equipped with an autonomous driving algorithm, and only realizes the function of obtaining driving scene data. After classifying the driving scenes, the server 200 can send the scene data corresponding to the effective driving scenes to other vehicles for testing and optimizing the autonomous driving algorithm, thereby realizing the testing and optimization of the autonomous driving algorithm on other vehicles.
[0064] In some embodiments, the obstacles mentioned above may be static obstacles (such as buildings, trees, road signs, etc.) or dynamic obstacles (such as moving vehicles, pedestrians, animals, etc.). In the embodiments of the present application, there is no specific limitation on the type of obstacles.
[0065] When the scene classification method in the embodiment of the present application is implemented in combination with the above-mentioned communication system, the scene aggressiveness is more accurately determined based on the multiple predicted running trajectories of the target vehicle, that is, the scene type of the driving scene is more accurately determined, thereby accurately screening out effective target type driving scenes. Effective driving scenes can be used in the subsequent testing and optimization of the autonomous driving algorithm, which is convenient for saving computing resources and simulation test time, improving the accuracy of the testing and optimization of the autonomous driving algorithm, and also improving the efficiency of the optimization of the autonomous driving algorithm.
[0066] The above method can also more accurately determine the collision time between the vehicle and the obstacle through multiple predicted running trajectories of the vehicle, rather than determining the collision time based on the range space where the vehicle is located, thereby avoiding the limitations caused by setting a fixed range space.
[0067] The following takes the above-mentioned vehicle as the target vehicle and the scene classification method in the embodiment of the present application implemented by the server as an example to illustrate the scene classification method in the embodiment of the present application. Figure 4 As shown, the scene classification method may include the following S401-S403.
[0068] S401. The server determines multiple first running trajectories of a target vehicle and a second running trajectory of an obstacle in a driving scenario, and based on the multiple first running trajectories and the second running trajectories of the obstacle, determines a time difference and a minimum time for the target vehicle and the obstacle to reach the same interaction point, and determines a scenario aggressiveness of the driving scenario.
[0069] In some embodiments, the first running trajectory represents the predicted trajectory of the target vehicle from the current position point in the driving scene to the target position point within a preset duration. Wherein, the target position point can be predicted or determined based on at least one of the preset path of the target vehicle and the road topology of the driving scene, and the target position point represents the position point that the target vehicle can reach from the current position point within the preset duration. Wherein, the determined target position points are at least two, so that multiple first running trajectories can be obtained, and multiple target position points provide multiple possibilities for the destination of the target vehicle, thereby obtaining more possible first running trajectories, avoiding the problem of determining the time difference and the inaccurate minimum time caused by using only one running trajectory. The preset duration can be 5 seconds, 10 seconds, etc. The second running trajectory represents the predicted trajectory of the obstacle in the driving scene. In some embodiments, the second running trajectory of the obstacle can be predicted or determined according to the running direction, running speed, etc. of the obstacle in the driving scene.
[0070] For example, see Figure 5As shown, the preset path of the target vehicle A is to turn left at the current position point M and enter the straight lane. The server can determine multiple target position points N1-N4 that the target vehicle may reach in 10 seconds based on the current road topology. And determine the second running trajectory La of the obstacle a in the driving scene. The server can determine multiple first running trajectories LA1, LA2, LA3, and LA4 of the target vehicle A based on the connection lines between each target position point and the current position point M.
[0071] The server can determine the first running trajectory, the second running trajectory, and the scene aggressiveness, etc. according to the scene data corresponding to the above driving scene. Among them, the scene data may include multiple frames of data, which are used to represent a scene segment. The duration of the scene segment may be 1 minute, 2 minutes, etc., and there is no specific limitation on this in the embodiment of the present application. Among them, the scene data may include the topological structure of the road in the driving scene, the running speed and running direction of the target vehicle and obstacles, the preset path of the target vehicle, etc.
[0072] In some embodiments, the server may obtain the road topology of the driving scene and / or the preset path of the target vehicle based on a frame of data in the scene data. Then, based on the preset path of the target vehicle and / or the road topology of the driving scene, determine the multiple target locations that the target vehicle reaches within a preset time from the current location in the driving scene. Finally, for a frame of data, obtain multiple first running trajectories of the target vehicle reaching the multiple target locations at the current location.
[0073] And, when determining the scene aggressiveness of the driving scene, the server can determine the frame aggressiveness corresponding to each frame of data in the scene data. Then, the maximum frame aggressiveness among the frame aggressiveness of multiple frames of data is used as the scene aggressiveness of the entire driving scene. Among them, the scene aggressiveness indicates the degree to which the target vehicle and the obstacle tend to be dangerous at the behavioral level in the driving scene, or the degree of interaction between the target vehicle and the obstacle. For example, the more dangerous the behavior between the target vehicle and the obstacle, the greater the scene aggressiveness, and the greater the degree of interaction between the target vehicle and the obstacle (or the degree of interaction of the driving scene).
[0074] by Figure 6Taking the content shown as an example, when determining the frame aggressiveness for a frame of data, the server can perform the following operations. First, the server can determine at least two (or more) target position points of the target vehicle in the driving scene corresponding to a frame of data. Then, after determining multiple target position points, the server can determine multiple trajectory lines (i.e., multiple first running trajectories) between the target vehicle and the multiple target position points. Next, the server determines the travel interaction point between the target vehicle and the obstacle in combination with the multiple first running trajectories of the target vehicle and the second running trajectories of the obstacle, wherein the travel interaction point can be the interaction point between the outer boundary of the envelope area composed of the multiple first running trajectories and the second running trajectory of the obstacle. It can be understood that the travel interaction point can represent the collision point between the target vehicle and the obstacle. Finally, the server determines the time difference and minimum time for the target vehicle and the obstacle to reach the travel interaction point, thereby determining the frame aggressiveness of a frame of data in combination with the time difference and the minimum time.
[0075] In some embodiments, when determining the travel interaction point, the server may also first determine the connected domain of the travel process based on the multiple first running trajectories of the target vehicle. The connected domain may represent a set of multiple first running trajectories of the target vehicle, or may represent a set of position points of all possible spatial positions when the target vehicle starts from the current position point and reaches the target position point within a preset time based on the preset path, road topology in the driving scene, and obstacle constraints in the current driving scene. Then, the interaction point between the second running trajectory of the obstacle and the connected domain is determined as the travel interaction point between the target vehicle and the obstacle.
[0076] In some embodiments, when the connected domain represents a set of multiple first running trajectories, the server first determines the use probability of each first running trajectory, and then determines the passable area surrounded by the outer envelope of the first running trajectory greater than or equal to the preset probability (that is, the two outermost trajectory lines are extended by a preset width, such as half the width of the target vehicle) as the connected domain of the target vehicle's travel process in the current driving scene. The formed connected domain can be referred to Figure 7 In this case, see Figure 7 As shown, the travel interaction point can represent the interaction point between the outer boundary of the connected domain and the second running track of the obstacle. The use probability of the first running track represents the probability that the target vehicle travels along the first running track from the current position point to the target position point. The higher the use probability, the more likely the target vehicle is to travel along the current first running track.
[0077] Among them, when determining the probability of using the first running trajectory, the server can calculate, estimate, etc. based on the running direction, running speed, etc. of the target vehicle through a neural network or Bayesian method, etc., which is not specifically limited in the embodiments of the present application.
[0078] The aforementioned emphasis on preset durations when determining target location points, connected domains, and spatial location sets is because if there is no time condition as a restriction, then the target vehicle can reach the target location point in any way it wants, and the target vehicle may not have a collision point with an obstacle, or even if there is a collision point, it is impossible to determine the entry and exit interaction point, etc. Obviously, some of the data of the target vehicle obtained when the preset duration is not emphasized (such as the running trajectory, connected domain, etc.) has no reference value. However, the emphasis on preset durations in the embodiments of the present application can ensure that the obtained target location points, connected domains, or spatial location sets, etc. have certain timeliness and reference value.
[0079] The existence of the above-mentioned connected domain indicates that the multiple first running trajectories of the target vehicle in the embodiment of the present application can be screened, so as to screen out the first running trajectories with a relatively high probability of use or that meet the running conditions of the target vehicle; and remove the first running trajectories with a relatively low probability of use or that do not meet the running conditions of the target vehicle, so as to avoid the interference of invalid running trajectories in the process of determining the travel interaction point, and improve the accuracy of determining the travel interaction point. In addition, the existence of the connected domain can also indicate that in the embodiment of the present application, the range where the first running trajectory is located can be expanded or inflated, so that the outline of the target vehicle can be included in the connected domain, so that no matter which part of the target vehicle collides with the obstacle, it can be regarded as the existence of a travel interaction point between the target vehicle and the obstacle, which can also improve the accuracy of determining the travel interaction point.
[0080] In some embodiments, when the server determines the frame aggressiveness of a frame of data based on the time difference and the minimum time, it can first obtain the first time when the target vehicle arrives at the travel interaction point and the second time when the obstacle arrives at the travel interaction point, and then determine the time difference between the first time and the second time, as well as the minimum time between the first time and the second time.
[0081] For example, the time difference is represented by PET, and the PET can be calculated by referring to the following formula:
[0082] PET=abs(t e (veh1,CA)-t e (veh2,CA)).
[0083] Among them, CA represents the travel interaction point, veh1 represents the target vehicle, veh2 represents the obstacle, and t e (veh1,CA) represents the time when the target vehicle arrives at the travel interaction point, t e (veh2,CA) represents the time when the obstacle reaches the travel interaction point, and abs represents the absolute value.
[0084] As another example, TTE represents the minimum time, and the following formula can be used to calculate TTE:
[0085] TTE=min{t e (veh1,CA),t e (veh2,CA)}.
[0086] Among them, min means taking the minimum value.
[0087] After determining the above time difference and minimum time, a dangerous time index can be determined based on the time difference and minimum time, wherein the dangerous time index can reflect the frame aggressiveness of a frame of data. The smaller the dangerous time index, the more dangerous the behavior between the target vehicle and the obstacle, and the greater the aggressiveness at this time; and the larger the dangerous time index, the safer the behavior between the target vehicle and the obstacle, and the less aggressiveness at this time.
[0088] For example, CTI represents the critical time index, and the following formula can be used to calculate CTI:
[0089]
[0090] In an embodiment of the present application, when determining the frame aggressiveness (or dangerous time index) of the above-mentioned frame data, both the time difference between the target vehicle and the obstacle in reaching the travel interaction point and the minimum time for the target vehicle and the obstacle to reach the travel interaction point can be considered. This can more comprehensively and accurately reflect the degree of danger of the behavior between the target vehicle and the obstacle, provide a more accurate and favorable driving scenario for the subsequent testing and optimization of the autonomous driving algorithm, and also improve the accuracy of the testing and optimization of the autonomous driving algorithm.
[0091] In the aforementioned embodiment, the scene aggressiveness is determined based on the existence of a travel interaction point between the target vehicle and the obstacle. If the server determines that there is no travel interaction point between the target vehicle and the obstacle, the driving scene can be directly determined as an invalid scene without continuing to determine the scene aggressiveness of the driving scene.
[0092] In the embodiment of the present application, the dangerous time index (or frame aggressiveness) of each frame of data in the multiple frames of data can be determined based on the above content, and the minimum dangerous time index (or maximum frame aggressiveness) is used as the dangerous time index (or scene aggressiveness) of the current driving scene. Alternatively, the dangerous time index (or scene aggressiveness) of the current driving scene can also be directly determined based on the above content.
[0093] See also Figure 8As shown in the figure, the horizontal axis of the coordinate system represents the time difference between the target vehicle and the obstacle arriving at the travel interaction point, the vertical axis represents the minimum time for the target vehicle and the obstacle to arrive at the travel interaction point, and the curve represents the dangerous time index. It can be seen that the smaller the time difference between the target vehicle and the obstacle arriving at the travel interaction point and the minimum time, the closer the curve representing the dangerous time index is to the origin, which means that the dangerous time index becomes smaller and the scene aggressiveness becomes greater.
[0094] In the above embodiment, the scene aggressiveness of the driving scene is determined by the most representative frame data among multiple frames of data. The larger the frame aggressiveness corresponding to the frame data, the more representative the frame data is, and the more it can represent the scene aggressiveness of the entire driving scene. For example, the scene aggressiveness determined based on a relatively front frame data in the scene data is smaller, indicating that the current driving situation is not dangerous, while the scene aggressiveness determined based on a relatively back frame data in the scene data is larger, indicating that the current driving situation is more dangerous. If the scene aggressiveness of the entire driving scene is determined only based on the scene aggressiveness determined by the previous frame data, then the subsequent dangerous driving situation is undoubtedly not taken into account. Such scene aggressiveness is not accurate enough and does not accurately reflect the actual situation of the current driving scene.
[0095] S402: The server determines the scene type of the driving scene based on the scene aggressiveness.
[0096] Among them, scenario types include target types, and target type driving scenarios are used to test and optimize autonomous driving algorithms.
[0097] In some embodiments, the scene types of the driving scenes may include aggressive scenes, strong interaction scenes, basic interaction scenes, non-interaction scenes, etc. In addition, other types of driving scenes except non-interaction scenes can be used as valid target type driving scenes, or these driving scenes have higher effectiveness. Non-interaction scenes are used as invalid non-target type driving scenes or non-target type driving scenes with lower effectiveness.
[0098] The radical scenario, strong interaction scenario, basic interaction scenario, and no interaction scenario indicate that the driving risk in the driving scenario is gradually reduced or even gradually becomes non-risk. Fig. 9 For example, in (a) of Figure 1, the target vehicle is about to turn right. Other vehicles may appear in front of the target vehicle or in the lane it is about to enter, affecting the target vehicle's right turn or colliding with the target vehicle. Strong interaction scenarios can be Fig. 9For example, the target vehicle is driving normally. There are other vehicles driving in the same direction as the target vehicle within a certain distance from the target vehicle on the same lane. Other vehicles may have unexpected situations that interfere with the normal driving of the target vehicle or collide with the target vehicle. Fig. 9 For example, in (c) of the example, the target vehicle is driving normally. In the opposite lane, there are other vehicles that are moving away from the target vehicle within a certain distance from the target vehicle. Other vehicles may also interfere with the normal driving of the target vehicle. Fig. 9 Take (d) in the figure as an example, where the target vehicle is driving normally, there are no other vehicles or there are other vehicles that are not driving within a certain length from the target vehicle in the same lane and the opposite lane, and the impact or interference of other vehicles on the target vehicle is small.
[0099] In some embodiments, the server may specifically determine the scene type of the driving scene based on a preset threshold and a dangerous time index (or scene aggressiveness) corresponding to the maximum frame aggressiveness among the frame aggressiveness corresponding to multiple frames of data.
[0100] Exemplarily, the first preset threshold is set to t0, the second preset threshold is set to t1, and the third preset threshold is set to t2, wherein the first preset threshold t0> the second preset threshold t1> the third preset threshold t2. When the criticality time index CTI corresponding to the maximum frame aggressiveness is less than or equal to t0, the server determines that the driving scene is a target type driving scene. When the criticality time index CTI corresponding to the maximum frame aggressiveness is greater than t0, the server determines that the driving scene is a non-target type driving scene, or determines it as a non-interaction scene.
[0101] When the driving scene is a target type driving scene, a more specific type of the driving scene can be further determined. For example, when the CTI corresponding to the maximum frame aggressiveness is greater than t1 and less than or equal to t0, the scene type of the driving scene can be determined as a basic interactive scene; when the CTI corresponding to the maximum frame aggressiveness is less than or equal to t1 and greater than t2, the scene type of the driving scene can be determined as a strong interactive scene; when the CTI corresponding to the maximum frame aggressiveness is less than or equal to t2, the scene type of the driving scene can be determined as an aggressive scene.
[0102] S403: The server tests and optimizes the autonomous driving algorithm using driving scenarios of valid target types.
[0103] The above-mentioned driving scenarios of radical scenarios, strong interaction scenarios, and basic interaction scenarios are all effective target type driving scenarios. In the actual process of testing and optimizing the autonomous driving algorithm, different types of effective driving scenarios can be used to test and optimize the autonomous driving algorithm in different occasions, or to test and optimize different functions of the autonomous driving algorithm. For example, as shown in Table 1 below, driving scenarios belonging to radical interaction scenarios can be used to test and optimize the autonomous driving algorithm in capability climbing verification occasions (or algorithm capability improvement scenarios), driving scenarios belonging to strong interaction scenarios can be used to test and optimize the autonomous driving algorithm in version capability comparison occasions (or algorithm function comparison scenarios), and driving scenarios belonging to basic interaction scenarios can be used to test and optimize the autonomous driving algorithm in daily algorithm care occasions (or algorithm maintenance scenarios).
[0104] Table 1
[0105] Driving scenario type Applications Threshold reference Radical scene Capability Climbing Verification CTI≤t0 Strong interactive scene Version capability comparison t0 <CTI≤t1 Basic interaction scenarios Algorithm daily care t1 <CTI≤t2 No interactive scene No test CTI>t2
[0106] The scene classification method in the above-mentioned embodiment of the present application can determine the scene aggressiveness of the current driving scene according to the first running track predicted by multiple target vehicles in the current driving scene and the second running track predicted by obstacles, and classify the current driving scene based on the scene aggressiveness, thereby determining the effective target type of driving scene according to the scene type of the driving scene. This method determines the scene aggressiveness more accurately based on the multiple running tracks of the target vehicle, that is, more accurately determines the scene type of the driving scene, thereby accurately screening out the effective target type of driving scene. The effective driving scene can be used in the subsequent testing and optimization of the autonomous driving algorithm, which is convenient for saving computing resources and simulation test time, improving the accuracy of the testing and optimization of the autonomous driving algorithm, and also improving the efficiency of the optimization of the autonomous driving algorithm.
[0107] Furthermore, the collision time between the target vehicle and the obstacle is more accurately determined through multiple predicted running trajectories of the target vehicle, rather than the collision time being determined based on the range space where the target vehicle is located, thereby avoiding the limitations caused by setting a fixed range space.
[0108] In the aforementioned embodiments, the method of determining the scene aggressiveness is described by taking the presence of an obstacle in the driving scene as an example. In some other embodiments, there may be multiple obstacles in a driving scene. When there are multiple obstacles in the driving scene, the multiple obstacles may respectively affect the safe driving of the target vehicle, thereby causing the scene aggressiveness of this driving scene to increase sharply (or the dangerous time index to decrease sharply). In the embodiments of the present application, when classifying driving scenes with multiple obstacles, the impact of each obstacle on the target vehicle can be comprehensively considered, so as to more accurately determine the scene aggressiveness (or dangerous time index), and the automatic driving algorithm can be tested and optimized more accurately for driving scenes with multiple obstacles.
[0109] Based on this, in the above embodiment, when determining the frame aggressiveness for a frame of data, the server can determine the second running track of each obstacle among the multiple obstacles after determining the multiple first running tracks of the target vehicle, and determine the travel interaction point between the target vehicle and each obstacle. Finally, the server determines the time difference and minimum time for each obstacle and the target vehicle to reach the corresponding travel interaction point, and then determines the Criticality Time Index CTI corresponding to each obstacle in combination with the time difference and minimum time corresponding to each obstacle, and determines the frame aggressiveness corresponding to a frame of data in combination with multiple CTIs corresponding to multiple obstacles.
[0110] For example, see Fig.10 As shown, the current driving scene includes target vehicle A, obstacle a, obstacle b and obstacle c. The second running trajectories of obstacle a, obstacle b and obstacle c are La, Lb and Lc respectively. The travel interaction points between obstacle a, obstacle b and obstacle c and target vehicle A are CA, CB and CC respectively.
[0111] Among them, for obstacle a, the time difference between obstacle a and target vehicle A reaching the corresponding travel interaction point is PET1, the minimum time is TTE1, and the dangerous time index corresponding to obstacle a is CTI1. For obstacle b, the time difference between obstacle b and target vehicle A reaching the corresponding travel interaction point is PET2, the minimum time is TTE2, and the dangerous time index corresponding to obstacle b is CTI2. For obstacle c, the time difference between obstacle c and target vehicle A reaching the corresponding travel interaction point is PET3, the minimum time is TTE3, and the dangerous time index corresponding to obstacle c is CTI3. Among them, the calculation of time difference, minimum time and dangerous time index can refer to the above-mentioned embodiment.
[0112] In some embodiments, when the server determines the frame aggressiveness of a frame of data by combining multiple CTIs corresponding to multiple obstacles, the smallest CTI among the multiple CTIs can be used as the dangerous time index of the frame of data. Similarly, the dangerous time index can reflect the frame aggressiveness of the frame of data.
[0113] Alternatively, in other embodiments, when the server determines the frame aggressiveness of a frame of data by combining multiple CTIs corresponding to multiple obstacles, it may also perform harmonic averaging on the multiple CTIs and use the harmonic average CTI obtained after the harmonic averaging as the dangerousness time index of the frame of data.
[0114] For example, using CTI m Represents the harmonic mean CTI, calculates CTI m You can refer to the following formula:
[0115]
[0116] Among them, i represents the i-th obstacle, and K represents the number of obstacles.
[0117] As can be seen from the foregoing, the scenario classification method provided by the embodiment of the present application can more accurately determine the scenario aggressiveness, that is, more accurately determine whether the driving scenario is effective or determine the degree of interaction of the driving scenario, etc., so as to accurately screen out effective driving scenarios. It can be understood that only using one or several effective driving scenarios to test and optimize the autonomous driving algorithm, although it can achieve the purpose of testing and optimization, the effect of testing and optimization often cannot reach the best or optimal as much as possible. Therefore, in the embodiment of the present application, the same type of effective driving scenarios can also be combined into a corresponding scenario set, and the scenario set can usually include multiple or even a large number of driving scenarios of the same type, so that the scenario set can be used to test and optimize the autonomous driving algorithm, and better or best test results and optimization results can be obtained as much as possible.
[0118] In the aforementioned embodiments, the first running trajectory and the second running trajectory are taken as examples of predicted trajectories to illustrate the method in the embodiments of the present application. In some other embodiments, the above-mentioned first running trajectory and the second running trajectory may also be a posteriori trajectories, that is, the first running trajectory and the second running trajectory are determined based on historical driving scene data, or in other words, the first running trajectory is the real running trajectory of the target vehicle, and the second running trajectory is the real running trajectory of the obstacle, rather than prediction or generalization. Then, the scene data obtained by the server may also be historical scene data. The server can also determine the scene type of the historical driving scene and whether the historical driving scene is valid based on the a posteriori first running trajectory and the second running trajectory. And the autonomous driving algorithm is tested and optimized according to the effective historical driving scene.
[0119] In some embodiments, if the driving scenario used in the foregoing content is determined based on driving scene data (or driving environment data) collected in real time by the target vehicle during the driving process, then when it is determined that the scene aggressiveness of the driving scene is high (for example, the driving scene is an aggressive scene, etc.), the target vehicle may also display a safety prompt, wherein the safety prompt may provide some safety handling measures, such as prompting the driver to slow down, prompting the driver to avoid pedestrians, etc.
[0120] In the aforementioned embodiments, the scene classification method in the embodiments of the present application is described by taking the obstacle as a dynamic obstacle as an example. In some other embodiments, the obstacle may also be a static obstacle. In this case, the obstacle does not have a second running track. The obstacle may have a travel interaction point with the target vehicle, or may not have a travel interaction point with the target vehicle. It can be determined specifically based on whether the position of the obstacle falls on the first running track of the target vehicle. In addition, driving scenes including static obstacles can also be classified, and driving scenes with valid target types can be determined. For details, please refer to the contents of the aforementioned embodiments, which will not be repeated here.
[0121] In the embodiment of the present application, the server can simultaneously implement the testing and optimization of the above-mentioned scene classification method and the autonomous driving algorithm, and in the process of testing and optimization, the server can also simultaneously optimize the scene classification method, such as updating the preset threshold value when classifying the driving scene, so that the scene classification method can flow dynamically with the optimization of the autonomous driving algorithm and adapt to the requirements of the latest autonomous driving algorithm. Exemplarily, with the optimization of the autonomous driving algorithm, the previous aggressive scene can be transformed into a strong interaction scene after the autonomous driving algorithm is optimized, the previous strong interaction scene can be transformed into a basic interaction scene after the autonomous driving algorithm is optimized, and the previous basic interaction scene can be transformed into a non-interaction scene after the autonomous driving algorithm is optimized. The comparison results of various types of driving scenes before and after algorithm optimization can be seen in Fig.11 In addition, the flow or optimization of the scene classification algorithm can also reflect the optimization of the autonomous driving algorithm and the overall performance of the autonomous driving algorithm in a certain type of driving scene.
[0122] In the above embodiments, the scene classification method implemented by the server is used as an example to illustrate the scene classification method in the embodiments of the present application. In some other embodiments, the scene classification method can also be implemented by the vehicle itself. In addition, the scene classification algorithm running on the vehicle can be run together with the automatic driving function in a mode similar to "shadow" driving. For example, see Fig.12As shown, the vehicle can collect driving scene data in real time during driving or traveling, and use the scene classification algorithm to first classify the driving scene corresponding to the driving scene data and determine the effective target type of driving scene. When the driving scene is valid, the vehicle can send the driving scene data corresponding to the driving scene to the server or cloud device, so that in the subsequent process, the server or cloud device uses the effective driving scene to test and optimize the automatic driving algorithm. When the driving scene is an invalid scene, the vehicle can directly delete or discard the driving scene data corresponding to the driving scene. In this way, the vehicle can directly filter out invalid driving scenes when collecting driving scene data, and improve the efficiency of the scene classification method in the subsequent testing and optimization of the automatic driving algorithm.
[0123] In addition, in some daily data collection and road testing processes, a large amount of data related to the driving environment or driving scene will also be collected. The scene classification method in the embodiment of the present application can also be used to screen and classify the massive data collected daily. Fig.13 As shown, we can first traverse the massive data and perform a series of simple operations such as data cleaning and data processing, then filter the data (i.e. classify the driving scenarios corresponding to the data), filter out the effective target type of driving scenarios and label the types of effective driving scenarios. Finally, we can test and optimize the autonomous driving algorithm based on different types of effective driving scenarios.
[0124] The scene classification method in the embodiment of the present application can be applied not only to the field of autonomous driving in the aforementioned embodiment, but also to multiple fields such as smart home, smart logistics, and drones. Exemplarily, when the scene classification method is applied to the field of smart home, the scene classification method can be used to classify smart home scenes, and use effective smart home scenes to test and optimize a series of algorithms in the field of smart home, thereby improving the sensitivity, response accuracy, and safety of smart home appliances such as sweeping robots and smart speakers. When the scene classification method is applied to the field of smart logistics, the scene classification method can be used to classify smart logistics scenes, and use effective smart logistics scenes to test and optimize a series of algorithms in the field of smart logistics, thereby improving the sensitivity, response accuracy, and safety of logistics equipment such as logistics vehicles and sorting machines. When the scene classification method is applied to the field of drones, the scene classification method can be used to classify the flight scenes of drones, and use effective flight scenes to test and optimize a series of algorithms in the field of drones, thereby improving the safety of drone flights, etc.
[0125] In some schemes, multiple embodiments of the present application can be combined, and the combined scheme can be implemented. Optionally, some operations in the process of each method embodiment are optionally combined, and / or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a restriction on the execution order between the steps. There can also be other execution orders between the steps. It is not intended to show that the execution order is the only order in which these operations can be performed. A person of ordinary skill in the art will think of a variety of ways to reorder the operations described in the embodiments of the present application. In addition, it should be noted that the process details involved in a certain embodiment of the present application are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
[0126] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment.
[0127] Furthermore, the various method embodiments may be implemented separately or in combination.
[0128] It is understandable that in order to implement the above functions, the aforementioned electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
[0129] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0130] The present application also provides an electronic device, such as Fig.14 As shown, the electronic device may include one or more processors 1001 , a memory 1002 and a communication interface 1003 .
[0131] The memory 1002 and the communication interface 1003 are coupled to the processor 1001. For example, the memory 1002, the communication interface 1003 and the processor 1001 may be coupled together via a bus 1004.
[0132] The communication interface 1003 is used for data transmission with other devices. The memory 1002 stores computer program code. The computer program code includes computer instructions. When the computer instructions are executed by the processor 1001, the electronic device executes the scene classification method in the embodiment of the present application.
[0133] Among them, the processor 1001 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0134] The bus 1004 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1004 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0135] Illustratively, the server in the aforementioned embodiment may be used as the above-mentioned electronic device.
[0136] An embodiment of the present application also provides a chip, which includes a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the chip executes the relevant method steps in the above method embodiment.
[0137] An embodiment of the present application also provides a vehicle, which includes the above-mentioned electronic device, and the electronic device executes the relevant method steps in the above-mentioned method embodiment.
[0138] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.
[0139] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.
[0140] Among them, the electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0141] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0142] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0143] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0144] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0145] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0146] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A scene classification method, characterized in that: The method comprises: Acquire scene data corresponding to a driving scene, and determine, based on the scene data, a plurality of first running trajectories of a target vehicle and a second running trajectory of an obstacle in the driving scene; the first running trajectory represents a predicted trajectory of the target vehicle reaching a target position point, and the second running trajectory represents a predicted trajectory of the obstacle; Based on the plurality of first running trajectories and the second running trajectories, determining a time difference and a minimum time for the target vehicle and the obstacle to reach the same interaction point; Determining the scenario aggressiveness of the driving scenario based on the time difference and minimum time for the target vehicle and the obstacle to reach the same interaction point; the scenario aggressiveness indicates the degree to which the target vehicle and the obstacle tend to be dangerous in the driving scenario; Based on the scenario aggressiveness, a scenario type of the driving scenario is determined, wherein the scenario type includes a target type, and the target type driving scenario is used to test and optimize the autonomous driving algorithm.
2. The method according to claim 1, characterized in that The determining the scene aggressiveness of the driving scene based on the time difference and the minimum time for the target vehicle and the obstacle to reach the same interaction point includes: Based on a frame of data in the scene data, obtaining a time difference and a minimum time for the target vehicle and the obstacle to reach the same interaction point; Determining a frame aggressiveness corresponding to the frame data according to a time difference and a minimum time between the target vehicle and the obstacle arriving at the same interaction point; The maximum frame aggressiveness among the frame aggressiveness corresponding to the multiple frames of data in the scene data is determined as the scene aggressiveness of the driving scene.
3. The method according to claim 2, characterized in that The method further comprises: Based on the multiple first running trajectories, a connected domain of the target vehicle during its movement is determined; the connected domain represents an area enclosed by two outermost trajectories of the multiple first running trajectories whose use probability is greater than or equal to a preset probability and which are respectively expanded by a preset width; the use probability represents a probability that the target vehicle moves along the first running trajectory from the current position point to the target position point; An interaction point between the second running trajectory and the connected domain is determined as a travel interaction point between the target vehicle and the obstacle.
4. The method according to claim 2 or 3, characterized in that: The determining, according to the time difference and the minimum time between the target vehicle and the obstacle reaching the same interaction point, the frame aggressiveness corresponding to the frame data includes: Acquire a first time when the target vehicle arrives at the travel interaction point, and a second time when the obstacle arrives at the travel interaction point; Determine a time difference between the first time and the second time, and a minimum time between the first time and the second time; Based on the time difference and the minimum time, a dangerous time index corresponding to the frame of data is determined; the dangerous time index is used to characterize the aggressiveness of the frame, and the smaller the dangerous time index is, the greater the aggressiveness of the frame is.
5. The method according to claim 2, characterized in that: The determining, according to the time difference and the minimum time between the target vehicle and the obstacle reaching the same interaction point, the frame aggressiveness corresponding to the frame data includes: When there are multiple obstacles in the driving scene, determining the time difference and the minimum time corresponding to each obstacle according to the travel interaction points between each obstacle in the multiple obstacles and the target vehicle; Based on the time difference and the minimum time corresponding to each obstacle, determining the dangerous time index corresponding to each obstacle; the dangerous time index is used to characterize the frame aggressiveness, and the smaller the dangerous time index is, the greater the frame aggressiveness is; Based on the dangerousness time index corresponding to each obstacle, the frame aggressiveness corresponding to the frame data is determined.
6. The method according to claim 5, characterized in that The determining, based on the dangerousness time index corresponding to each obstacle, the frame aggressiveness corresponding to the frame data includes: Determining the smallest dangerous time index among the dangerous time indexes corresponding to the multiple obstacles as the dangerous time index corresponding to the one frame of data; Alternatively, determine the harmonic mean dangerous time index of the dangerous time indices corresponding to the multiple obstacles, and determine the harmonic mean dangerous time index as the dangerous time index corresponding to the one frame of data; the dangerous time index of the one frame of data is used to characterize the frame aggressiveness corresponding to the one frame of data.
7. The method according to any one of claims 2 to 6, characterized in that: Determining a plurality of first running trajectories of the target vehicle in the driving scenario based on the scenario data includes: Based on a frame of data in the scene data, obtaining a road topology of the driving scene and / or a preset path of the target vehicle; Based on the preset path of the target vehicle and / or the road topology of the driving scene, determine a plurality of target positions that the target vehicle reaches within a preset time period starting from a current position in the driving scene; For the one frame of data, a plurality of first running trajectories of the target vehicle reaching the plurality of target positions respectively at the current position are obtained.
8. The method according to any one of claims 4 to 6, characterized in that: The determining the scene type of the driving scene based on the scene aggressiveness includes: Obtaining the dangerous time index corresponding to the maximum frame aggressiveness among the frame aggressiveness corresponding to the multiple frames of data; When the dangerousness time index corresponding to the maximum frame aggressiveness is less than or equal to a first preset threshold, determining that the driving scene is a driving scene of the target type; When the dangerousness time index corresponding to the maximum frame aggressiveness is greater than the first preset threshold, the driving scene is determined to be a non-target type of driving scene.
9. The method according to claim 8, characterized in that When the dangerousness time index corresponding to the maximum frame aggressiveness is less than or equal to a first preset threshold, determining that the driving scene is a driving scene of the target type further includes: When the driving scene is the target type, if the dangerous time index corresponding to the maximum frame aggressiveness is less than or equal to the first preset threshold and greater than the second preset threshold, the driving scene is determined as a basic interaction scene; the basic interaction scene is used to test and optimize the autonomous driving algorithm in the algorithm maintenance scene; If the dangerous time index corresponding to the maximum frame aggressiveness is less than or equal to the second preset threshold and greater than the third preset threshold, the driving scene is determined as a strong interaction scene; the strong interaction scene is used to test and optimize the autonomous driving algorithm in the algorithm function comparison scene; If the dangerous time index corresponding to the maximum frame aggressiveness is less than or equal to the third preset threshold, the driving scenario is determined as an aggressive scenario; the aggressive scenario is used to test and optimize the autonomous driving algorithm in the scenario of algorithm capability improvement.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: The scenario data corresponding to the driving scenario of the target type is sent to the cloud device; the scenario data is used to test and optimize the autonomous driving algorithm.
11. A chip, characterized in that: It comprises a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the chip executes the scene classification method as described in any one of claims 1-10.
12. An electronic device, characterized in that: It comprises a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the scene classification method as described in any one of claims 1-10.
13. A vehicle, characterized in that: The vehicle comprises the chip as claimed in claim 11 , or comprises the electronic device as claimed in claim 12 .
14. A computer-readable storage medium, characterized in that: It comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the scene classification method as described in any one of claims 1 to 10.
