Data generation method and device, computer equipment and storage medium
By selecting different simulated behavior models based on the attention of traffic participants and generating corresponding simulated behavior data, the problem of high cost of constructing anthropomorphic traffic flow is solved, while improving the authenticity and achieving a balance between cost and authenticity.
Patent Information
- Application Number
- CN202510042209.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-01-10
AI Technical Summary
The cost of constructing anthropomorphic traffic flows for corresponding scenarios is high, and the existing technology is difficult to effectively reduce costs while maintaining high authenticity challenges.
By obtaining the scene data of the target scenario, the attention of each traffic participant is determined, and different simulation behavior models are selected according to the attention level to generate corresponding simulation behavior data. Traffic participants with high attention used the first simulated behavior model with high anthropomorphism, and traffic participants with low anthropomorphism used the second simulated behavior model with low anthropomorphism.
It reduces the cost of constructing anthropomorphic traffic flow, while improving the authenticity of traffic flow, taking into account the balance between cost and authenticity.
Smart Images

Figure CN119847937A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a data generation method, device, computer equipment and storage medium. Background Art
[0002] Constructing anthropomorphic traffic flow for the corresponding scenario is the core link of simulation test for the performance of the algorithm running on the vehicle in the corresponding scenario. Simulating the behavior of traffic participants in the corresponding scenario is the core link of constructing anthropomorphic traffic flow for the corresponding scenario. The simulated behavior of traffic participants in the corresponding scenario is represented by simulated behavior data. Simulating the behavior of traffic participants in the corresponding scenario is actually to generate simulated behavior data representing the simulated behavior of traffic participants in the corresponding scenario.
[0003] In the related art, for each traffic participant in the corresponding scene, the same simulation behavior model is used to generate simulated behavior data representing the traffic participant in the corresponding scene, resulting in high cost for constructing anthropomorphic traffic flow. How to avoid the high cost of constructing anthropomorphic traffic flow for the corresponding scene has become a problem that needs to be solved. Summary of the invention
[0004] One of the purposes of the present invention is to provide a data generation method, apparatus, computer device and storage medium to solve the problem of how to avoid the high cost of constructing anthropomorphic traffic flow of corresponding scenes.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] A data generation method, comprising:
[0007] Acquire scene data of a target scene, wherein the target scene includes a self-vehicle and a plurality of traffic participants around the self-vehicle;
[0008] Determining the attention level of each of the multiple traffic participants according to the scene data, and determining a target traffic participant among the multiple traffic participants;
[0009] For each target traffic participant, when the attention level of the target traffic participant is greater than the attention threshold, a first simulated behavior model for the target scene is used to generate first simulated behavior data of the target traffic participant for the target scene; when the attention level of the target traffic participant is not greater than the attention threshold, a second simulated behavior model for the target scene is used to generate second simulated behavior data of the target traffic participant for the target scene, wherein the degree of anthropomorphism of the simulated behavior in the target scene represented by the first simulated behavior data is higher than the degree of anthropomorphism of the simulated behavior in the target scene represented by the second simulated behavior data.
[0010] According to the above technical means, the attention of the traffic participant is related to the strength of the interaction between the traffic participant and the vehicle in the target scene. When the attention of the target traffic participant is greater than the attention threshold, it reflects that the interaction between the target traffic participant and the vehicle is strong in the target scene, and the first simulated behavior model for the target scene with a relatively high degree of anthropomorphism of the simulated traffic participant's behavior in the target scene is used to generate the first simulated behavior data of the target traffic participant for the target scene. When the attention of the target traffic participant is not greater than the attention threshold, it reflects that the interaction between the target traffic participant and the vehicle in the target scene is weak, and the second simulated behavior model for the target scene with a relatively low degree of anthropomorphism of the simulated traffic participant's behavior in the target scene is used to generate the second simulated behavior data of the target traffic participant for the target scene.
[0011] Thus, for target traffic participants who have strong interactions with the vehicle in the target scenario, the first simulated behavior model for the target scenario with a relatively high degree of anthropomorphism of the simulated traffic participants' behaviors in the target scenario is used to simulate the behaviors of target traffic participants who have strong interactions with the vehicle in the target scenario. For target traffic participants who have weak interactions with the vehicle in the target scenario, the second simulated behavior model for the target scenario with a relatively low degree of anthropomorphism of the simulated traffic participants' behaviors in the target scenario is used to simulate the behaviors of target traffic participants who have weak interactions with the vehicle in the target scenario.
[0012] Compared with simulating the behavior of traffic participants in the corresponding scene using a simulated behavior model for the corresponding scene with a high degree of anthropomorphism of the behavior of traffic participants in the corresponding scene for each traffic participant in the corresponding scene, the cost of constructing an anthropomorphic traffic flow for the corresponding scene is low. At the same time, compared with simulating the behavior of traffic participants in the corresponding scene using a simulated behavior model for the corresponding scene with a low degree of anthropomorphism of the behavior of traffic participants in the corresponding scene for each traffic participant in the corresponding scene, the authenticity of the constructed anthropomorphic traffic flow for the corresponding scene is high. Thus, the cost of constructing the anthropomorphic traffic flow for the corresponding scene and the authenticity of the constructed anthropomorphic traffic flow for the corresponding scene are taken into account. The problem of high cost of constructing the anthropomorphic traffic flow for the corresponding scene and low authenticity of the constructed anthropomorphic traffic flow for the corresponding scene is avoided.
[0013] Further, determining the attention level of each of the plurality of traffic participants according to the scene data includes:
[0014] For each traffic participant, the position importance of the traffic participant's position and the type importance of the traffic participant's type are determined based on the scene data, and the importance parameter of the traffic participant is determined based on the position importance and the type importance, and the attention level of the traffic participant is determined based on the importance parameter of the traffic participant.
[0015] Further, according to the importance parameter of the traffic participant, determining the attention degree of the traffic participant includes:
[0016] Determining the right-of-way parameter of the traffic participant according to whether the traffic participant is in a target lane where the vehicle is located, wherein the target lane where the vehicle is located is indicated by the scene data;
[0017] The attention degree of the traffic participant is determined according to the importance parameter and the road right parameter of the traffic participant.
[0018] Further, determining the attention degree of the traffic participant according to the importance parameter and the road right parameter of the traffic participant includes:
[0019] When the traffic participant is a vehicle, determining the risk parameter of the traffic participant according to associated parameter information used to determine the risk parameter of the traffic participant, the associated parameter information including: a relative distance between the vehicle and the traffic participant, a speed of the vehicle, and a speed of the traffic participant, wherein the associated parameter information is indicated by the scene data;
[0020] The attention level of the traffic participant is determined according to the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant.
[0021] Further, according to the associated parameter information used to determine the risk parameter of the traffic participant, determining the risk parameter of the traffic participant includes:
[0022] Acquiring spring damping model parameters for the traffic participant, the spring damping model parameters comprising: a virtual longitudinal spring stiffness and a virtual longitudinal damping coefficient for the traffic participant, a virtual lateral spring stiffness and a virtual lateral damping coefficient for the traffic participant;
[0023] Calculating a longitudinal risk value of the traffic participant relative to the vehicle and a lateral risk value of the traffic participant relative to the vehicle according to the spring damping model parameters for the traffic participant and the associated parameter information for determining the risk parameter of the traffic participant;
[0024] The risk parameter of the traffic participant is determined according to the longitudinal risk value of the traffic participant relative to the own vehicle and the lateral risk value of the traffic participant relative to the own vehicle.
[0025] Further, determining the attention level of the traffic participant according to the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant includes:
[0026] The weighted sum of the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant is determined as the attention degree of the traffic participant.
[0027] Further, determining that the target traffic participant among the multiple traffic participants includes:
[0028] sorting the attention levels of the multiple traffic participants according to the attention levels of the traffic participants from greatest to least;
[0029] A first preset number of traffic participants among the multiple traffic participants are respectively determined as target traffic participants.
[0030] Furthermore, the target scene is any one of the multiple scenes; and before acquiring the scene data of the target scene, the method further includes:
[0031] The label information of the plurality of scene data is clustered to determine the plurality of scenes and the scene to which each scene data in the plurality of scene data belongs.
[0032] A data generating device, comprising:
[0033] An acquisition unit, used for acquiring scene data of a target scene, wherein the target scene includes a self-vehicle and a plurality of traffic participants around the self-vehicle;
[0034] a determination unit, configured to determine the attention level of each of the plurality of traffic participants and determine a target traffic participant among the plurality of traffic participants according to the scene data;
[0035] A generating unit is used for, for each target traffic participant, when the attention level of the target traffic participant is greater than an attention threshold, generating first simulated behavior data of the target traffic participant for a target scene by using a first simulated behavior model for a target scene; when the attention level of the target traffic participant is not greater than the attention threshold, generating second simulated behavior data of the target traffic participant for a target scene by using a second simulated behavior model for a target scene, wherein the degree of anthropomorphism of the simulated behavior in the target scene represented by the first simulated behavior data is higher than the degree of anthropomorphism of the simulated behavior in the target scene represented by the second simulated behavior data.
[0036] Furthermore, the determination unit is further used to determine, for each traffic participant, the position importance of the traffic participant's position and the type importance of the traffic participant's type based on the scene data, and to determine the importance parameter of the traffic participant based on the position importance and the type importance, and to determine the attention level of the traffic participant based on the importance parameter of the traffic participant.
[0037] Furthermore, the determination unit is further used to determine the right of way parameters of the traffic participant according to whether the traffic participant is in the target lane of the own vehicle, wherein the target lane of the own vehicle is indicated by the scene data; and determine the attention level of the traffic participant according to the importance parameter and the right of way parameter of the traffic participant.
[0038] Furthermore, the determination unit is further used to determine the risk parameter of the traffic participant when the traffic participant is a vehicle based on associated parameter information used to determine the risk parameter of the traffic participant, the associated parameter information including: the relative distance between the vehicle and the traffic participant, the speed of the vehicle, and the speed of the traffic participant, wherein the associated parameter information is indicated by the scene data; and determine the attention level of the traffic participant based on the importance parameter of the traffic participant, the right of way parameter of the traffic participant and the risk parameter of the traffic participant.
[0039] Furthermore, the determination unit is further used to obtain spring damping model parameters for the traffic participant, and the spring damping model parameters include: a virtual longitudinal spring stiffness and a virtual longitudinal damping coefficient for the traffic participant, and a virtual lateral spring stiffness and a virtual lateral damping coefficient for the traffic participant; based on the spring damping model parameters for the traffic participant and associated parameter information for determining the risk parameters of the traffic participant, a longitudinal risk value of the traffic participant relative to the own vehicle and a lateral risk value of the traffic participant relative to the own vehicle are calculated; based on the longitudinal risk value of the traffic participant relative to the own vehicle and the lateral risk value of the traffic participant relative to the own vehicle, the risk parameters of the traffic participant are determined.
[0040] Furthermore, the determination unit is further used to determine the attention level of the traffic participant by taking a weighted sum of the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant.
[0041] Furthermore, the determination unit is further used to sort the attention levels of the multiple traffic participants from large to small according to the attention levels of the traffic participants; and determine the first preset number of traffic participants among the multiple traffic participants as target traffic participants.
[0042] Furthermore, the target scene is any one of the multiple scenes; the data generating device also includes:
[0043] The clustering unit is used to cluster the label information of multiple scene data before acquiring the scene data of the target scene, so as to determine the multiple scenes and the scene to which each scene data in the multiple scene data belongs.
[0044] A computer device comprising:
[0045] A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the above method by executing the computer instructions.
[0046] A computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the above method.
[0047] A computer program product, characterized in that it includes computer instructions, wherein the computer instructions are used to enable a computer to execute the above method.
[0048] Beneficial effects of the present invention:
[0049] The attention of the traffic participant is related to the strength of the interaction between the traffic participant and the vehicle in the target scenario. When the attention of the target traffic participant is greater than the attention threshold, it reflects that the interaction between the target traffic participant and the vehicle is strong in the target scenario, and the first simulated behavior model for the target scenario with a relatively high degree of anthropomorphism of the simulated traffic participant's behavior in the target scenario is used to generate the first simulated behavior data of the target traffic participant for the target scenario. When the attention of the target traffic participant is not greater than the attention threshold, it reflects that the interaction between the target traffic participant and the vehicle in the target scenario is weak, and the second simulated behavior model for the target scenario with a relatively low degree of anthropomorphism of the simulated traffic participant's behavior in the target scenario is used to generate the second simulated behavior data of the target traffic participant for the target scenario.
[0050] Thus, for target traffic participants who have strong interactions with the vehicle in the target scenario, the first simulated behavior model for the target scenario with a relatively high degree of anthropomorphism of the simulated traffic participants' behaviors in the target scenario is used to simulate the behaviors of target traffic participants who have strong interactions with the vehicle in the target scenario. For target traffic participants who have weak interactions with the vehicle in the target scenario, the second simulated behavior model for the target scenario with a relatively low degree of anthropomorphism of the simulated traffic participants' behaviors in the target scenario is used to simulate the behaviors of target traffic participants who have weak interactions with the vehicle in the target scenario.
[0051] Compared with simulating the behavior of traffic participants in the corresponding scene using a simulated behavior model for the corresponding scene with a high degree of anthropomorphism of the behavior of traffic participants in the corresponding scene for each traffic participant in the corresponding scene, the cost of constructing an anthropomorphic traffic flow for the corresponding scene is low. At the same time, compared with simulating the behavior of traffic participants in the corresponding scene using a simulated behavior model for the corresponding scene with a low degree of anthropomorphism of the behavior of traffic participants in the corresponding scene for each traffic participant in the corresponding scene, the authenticity of the constructed anthropomorphic traffic flow for the corresponding scene is high. Thus, the cost of constructing the anthropomorphic traffic flow for the corresponding scene and the authenticity of the constructed anthropomorphic traffic flow for the corresponding scene are taken into account. The problem of high cost of constructing the anthropomorphic traffic flow for the corresponding scene and low authenticity of the constructed anthropomorphic traffic flow for the corresponding scene is avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of an example of simulating the behavior of a traffic participant using a first simulation behavior model and a second simulation behavior model;
[0053] Figure 2 A schematic diagram of a flow chart of a data generation method provided by an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of an example of a preset position for calculating the position importance of a traffic participant;
[0055] Figure 4 A schematic diagram of a flow chart of another data generation method provided by an embodiment of the present invention;
[0056] Figure 5 A schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0058] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0059] refer to Figure 1 , which shows a schematic diagram of an example of simulating the behavior of traffic participants using a first simulation behavior model and a second simulation behavior model.
[0060] In this example, in order to construct an anthropomorphic traffic flow of the target scene, scene data of the target scene is acquired.
[0061] Figure 1 Two target traffic participants, namely, traffic participant 1 and traffic participant 2, are shown among all target traffic participants around the vehicle. Both traffic participant 1 and traffic participant 2 are vehicles.
[0062] Among them, all target traffic participants around the ego vehicle are indicated by scene data of a target scene. As an example, the target scene is one of a dangerous cut-in scene, a road junction scene, a ramp scene, and an obstacle avoidance scene.
[0063] If the attention degree of the traffic participant 1 is greater than the attention degree threshold, the simulated behavior data 1 of the traffic participant 1 for the target scene are generated using the first simulated behavior model for the target scene.
[0064] If the attention degree of the traffic participant 1 is not greater than the attention degree threshold, the simulated behavior data 2 of the traffic participant 1 for the target scene are generated using the second simulated behavior model for the target scene.
[0065] The first simulated behavior model for the target scenario may be a model based on a machine learning method. The second simulated behavior model for the target scenario may be a classic driving behavior model such as an IDM model or a Gipps model. The first simulated behavior model for the target scenario consumes more resources than the second simulated behavior model for the target scenario.
[0066] The simulated behavior data 1 of the traffic participant 1 for the target scenario indicates: the simulated behavior 1 of the traffic participant 1 in the target scenario. The simulated behavior data 2 of the traffic participant 1 for the target scenario indicates: the simulated behavior 2 of the traffic participant 1 in the target scenario.
[0067] The degree of anthropomorphism of the simulated behavior 1 of the traffic participant 1 for the target scenario is higher than the degree of anthropomorphism of the simulated behavior 2 of the traffic participant 1 in the target scenario.
[0068] If the attention degree of the traffic participant 2 is greater than the attention degree threshold, the simulated behavior data 3 of the traffic participant 2 for the target scene are generated using the first simulated behavior model for the target scene.
[0069] If the attention degree of the traffic participant 2 is not greater than the attention degree threshold, the simulated behavior data 4 of the traffic participant 2 for the target scene are generated using the second simulated behavior model for the target scene.
[0070] The simulated behavior data 3 of the traffic participant 2 for the target scenario represent: the simulated behavior 3 of the traffic participant 2 in the target scenario. The simulated behavior data 4 of the traffic participant 2 for the target scenario represent: the simulated behavior 4 of the traffic participant 2 in the target scenario.
[0071] The anthropomorphism degree of the simulated behavior 3 of the traffic participant 2 in the target scenario is higher than the anthropomorphism degree of the simulated behavior 4 of the traffic participant 2 in the target scenario.
[0072] refer to Figure 2 , which shows a flow chart of a data generation method provided by an embodiment of the present invention. The method is executed during the construction of an anthropomorphic traffic flow of a target scene. The anthropomorphic traffic flow of the target scene is used to test the performance of an algorithm running on the self-vehicle, such as an automatic driving algorithm running on the self-vehicle, in the target scene.
[0073] In step S201, scene data of a target scene is acquired.
[0074] There are a self-vehicle and multiple traffic participants around the self-vehicle in the target scene. The self-vehicle and multiple traffic participants around the self-vehicle in the target scene are indicated by scene data of the target scene.
[0075] The ego car can be understood as a vehicle that runs the algorithm that needs to be tested for its performance in the target scenario.
[0076] For each traffic participant among the multiple traffic participants around the vehicle, the traffic participant type of the traffic participant is one of multiple traffic participant types. As an example, the multiple traffic participant types include: people, vehicles, and other traffic participant types.
[0077] The type of the target scene is any one of multiple scene types.
[0078] In one possible implementation, the multiple scene types include, but are not limited to: dangerous entry scene type, intersection scene type, ramp scene type, obstacle avoidance scene type, etc.
[0079] It should be noted that the scene data of the target scene is collected by a vehicle used to collect the target scene data when the vehicle used to collect the target scene data is in the target scene.
[0080] In a possible implementation, the vehicle used to collect scene data is the self-vehicle or another vehicle.
[0081] The scene data of the target scene includes, but is not limited to: data of the vehicle for the target scene, and data of traffic participants around the vehicle for the target scene.
[0082] The data of the vehicle for the target scene includes but is not limited to: the position of the vehicle, the speed of the vehicle, etc.
[0083] The data of the traffic participants around the vehicle for the target scene include but are not limited to: the position of the traffic participants around the vehicle, the speed of the traffic participants around the vehicle, the traffic participant type of the traffic participants around the vehicle, etc.
[0084] It should be noted that the ego vehicle in the target scene, the position of the ego vehicle in the target scene, all traffic participants in the target scene, and the positions of all traffic participants in the target scene are indicated by the data of the target scene.
[0085] In a possible implementation, for a traffic participant in the target scene, if the distance between the position of the traffic participant and the position of the ego vehicle is less than a distance threshold, the traffic participant may be determined as a traffic participant around the ego vehicle.
[0086] In another possible implementation, for a traffic participant in the target scene, if the position of the traffic participant is within an area with a preset shape and the position of the vehicle as the center point, the traffic participant can be determined as a traffic participant around the vehicle. As an example, the preset shape is a square or a rectangle, and the preset shape has preset side lengths in all directions.
[0087] In step S202, based on the scene data of the target scene, the attention level of each of the multiple traffic participants around the vehicle is determined, and the target traffic participant among the multiple traffic participants around the vehicle is determined.
[0088] In a possible implementation, in order to determine the attention level of each of the multiple traffic participants around the vehicle, the position of the vehicle and the positions of the multiple traffic participants around the vehicle are obtained from the scene data of the target scene. For each of the multiple traffic participants around the vehicle, the position importance of the traffic participant is determined according to the position of the vehicle and the position of the traffic participant, and the position importance of the traffic participant is determined as the attention level of the traffic participant.
[0089] As an example, determine the distance between each of the multiple traffic participants around the vehicle and the vehicle. For each of the multiple traffic participants around the vehicle, determine the preset distance interval in which the distance between the traffic participant and the vehicle lies among multiple preset distance intervals, and determine the importance of the preset distance interval as the position importance of the traffic participant. Among them, the right endpoint value of the i-th preset distance interval is the left endpoint value of the i+1-th preset distance interval, and the i-th distance interval is the distance interval other than the distance interval with the largest left endpoint value. The importance of each preset distance interval can be preset. The smaller the left endpoint value of the preset distance interval, the greater the importance of the preset distance interval. The larger the left endpoint value of the preset distance interval, the smaller the importance of the preset distance interval.
[0090] As another example, for each of the multiple preset directions, the position importance of the traffic participant closest to the vehicle in the preset direction among the multiple traffic participants around the vehicle is the position importance of the preset direction. The position importances of the other traffic participants except the traffic participant with the preset direction importance among the multiple traffic participants around the vehicle are other position importances. Among them, the position importance of any one preset direction is greater than the other position importances.
[0091] As an example, the plurality of preset directions include: directly in front, left front, right front, left side, right side, directly behind, left rear, and right rear.
[0092] refer to Figure 3 , which shows a schematic diagram of an example of preset positions for calculating the position importance of traffic participants.
[0093] In this example, there are nine preset directions in total, which are represented by 1, 2, 3, 4, 5, 6, 7, and 8. 1, 4, and 7 represent: front, left, and right, respectively. 3, 6, 5, 2, and 8 represent: left front, right front left rear, rear, and right rear, respectively.
[0094] As an example, for each preset direction of front, left, and right, the position importance of the traffic participant closest to the vehicle in the preset direction among the multiple traffic participants around the vehicle is 1. For each preset direction of left front, right front left rear, rear, and right rear, the position importance of the traffic participant closest to the vehicle in the preset direction among the multiple traffic participants around the vehicle is 0.5. The position importance of the traffic participants other than the traffic participants with the preset direction importance among the multiple traffic participants around the vehicle is 0.1.
[0095] In another possible implementation, in order to determine the attention level of each of the multiple traffic participants around the vehicle, the traffic participant type of each of the multiple traffic participants around the vehicle can be obtained from the scene data of the target scene. For each of the multiple traffic participants around the vehicle, the type importance of the traffic participant type of the traffic participant is determined, and the type importance of the traffic participant type of the traffic participant is determined as the attention level of the traffic participant. The type importance of each of the multiple traffic participant types can be preset. As an example, the type importance of people and cyclists is 1, the type importance of small vehicles is 0.8, and the type importance of large vehicles is 0.5.
[0096] In a possible implementation, in order to determine the target traffic participant among the multiple traffic participants around the vehicle, the multiple traffic participants around the vehicle may be sorted according to their attention from large to small. After sorting, each traffic participant around the vehicle has a position, and the greater the attention of the traffic participant around the vehicle, the closer the position of the traffic participant around the vehicle is. After sorting, the first preset number of traffic participants among the multiple traffic participants may be determined as target traffic participants.
[0097] In another possible implementation manner, each of the multiple traffic participants around the vehicle may be determined as a target traffic participant.
[0098] In another possible implementation, in order to determine the target traffic participant among the multiple traffic participants around the vehicle, the traffic participant that meets the preset condition among the multiple traffic participants around the vehicle can be determined as the target traffic participant. The preset condition is: the traffic participant type of the traffic participant is the traffic participant type used to determine whether it is the target traffic participant. The traffic participant type used to determine whether it is the target traffic participant is preset.
[0099] In step S203, for each target traffic participant among multiple traffic participants around the vehicle, when the attention degree of the target traffic participant is greater than the attention threshold, a first simulated behavior model for the target scene is used to generate first simulated behavior data of the target traffic participant for the target scene; when the attention degree of the target traffic participant is not greater than the attention threshold, a second simulated behavior model for the target scene is used to generate second simulated behavior data of the target traffic participant for the target scene.
[0100] As an example, the attention threshold is 0.8.
[0101] For a target traffic participant around the vehicle, the anthropomorphism degree of the simulated behavior represented by the first simulated behavior data for the target scene of the target traffic participant is higher than the anthropomorphism degree of the simulated behavior represented by the second simulated behavior data for the target scene of the target traffic participant.
[0102] It should be noted that the degree of anthropomorphism of the simulated behavior represented by the simulated behavior data generated by the simulated behavior model is proportional to the amount of resources consumed by the simulated behavior model. The higher the degree of anthropomorphism of the simulated behavior represented by the simulated behavior data generated by the simulated behavior model, the more resources the simulated behavior model consumes. The lower the degree of anthropomorphism of the simulated behavior represented by the simulated behavior data generated by the simulated behavior model, the fewer resources the simulated behavior model consumes.
[0103] For a target traffic participant around the vehicle, the simulated behavior represented by the first simulated behavior data of the target traffic participant for the target scene specifically refers to: the simulated behavior of the target traffic participant in the target scene represented by the first simulated behavior data of the target traffic participant for the target scene.
[0104] For a target traffic participant around the vehicle, the simulated behavior represented by the second simulated behavior data of the target traffic participant for the target scene specifically refers to: the simulated behavior of the target traffic participant in the target scene represented by the second simulated behavior data of the target traffic participant for the target scene.
[0105] It should be noted that the degree of anthropomorphism of the simulated behavior of the target traffic participant in the target scenario can be understood as: the degree to which the simulated behavior of the target traffic participant in the target scenario is close to one of the following behaviors: the behavior performed by the traffic participant in the target scenario, and the behavior performed by the traffic participant corresponding to the operation of the traffic participant by the person operating the traffic participant. The behavior corresponding to the operation of the traffic participant by the person operating the traffic participant in the target scenario is caused by the operation of the traffic participant by the person operating the traffic participant in the target scenario.
[0106] As an example, the degree of anthropomorphism of the simulated behavior of the person in the target scene in the target scene can be understood as: the degree to which the simulated behavior of the person in the target scene in the target scene is close to the behavior performed by the person in the target scene. The degree of anthropomorphism of the simulated behavior of the vehicle in the target scene in the target scene can be understood as: the degree to which the simulated behavior of the vehicle in the target scene is close to the degree to which the driving operation of the vehicle by the person driving the vehicle in the target scene causes the vehicle to perform the behavior corresponding to the driving operation.
[0107] In one possible implementation, the first simulated behavior model for the target scenario is a model based on a machine learning method, for example, the first simulated behavior model for the target scenario is a model based on transfer learning, deep learning, and adversarial learning. The second simulated behavior model for the target scenario is a classic driving behavior model. The first simulated behavior model for the target scenario consumes more resources than the second simulated behavior model for the target scenario.
[0108] As an example, the first simulation behavior model for the target scenario is a behavior model for simulating traffic participants based on reinforcement learning. The traffic participants around the vehicle are regarded as a single agent. The single agent learns and makes decisions in the environment, and the interaction between the single agent and the environment follows the Markov decision process.
[0109] The interaction between a single agent and the environment is composed of multiple<S,A,R,f,γ> , where S and A represent the state and action space of the agent respectively, and f represents the state transition function of the agent, which determines the probability distribution of transitioning from state s to s' under a given action a. R is the reward function, which defines the instantaneous reward of the environment obtained by the agent when it transitions from state s to state s' through action a. From the start time t to the end of the interaction at time T, the total reward of the environment can be expressed as:
[0110]
[0111] Where γ∈[0,1] is the discount factor, which is used to balance the impact of the agent's instantaneous return and long-term return on the total return. The agent's learning strategy can be expressed as a mapping from state to action π:S→A. The goal of solving MDP is to find the optimal strategy π with the maximum expected return value. * , the expected return is generally formalized using the optimal state action value function (Q function)
[0112]
[0113] Optimal strategy π * The optimal behavior of the agent, such as optimal driving behavior.
[0114] As an example, the second simulation behavior model for the target scenario is a cosine lane changing model, an intelligent driving model (Intelligent Driver Model, IDM for short), and a John Gipps (Gipps for short) model.
[0115] One of the classic driving behavior models such as the Gipps model. The cosine lane-changing model can be expressed as:
[0116]
[0117] Among them, a y represents the lateral acceleration of the vehicle, the distance between the center lines of the two lanes is d, the longitudinal displacement generated by the lane changing process is L, and x represents the longitudinal position of the vehicle.
[0118] refer to Figure 4 , which shows a flow chart of another data generating method provided by an embodiment of the present invention.
[0119] In step S401, the label information of a plurality of scene data is clustered to determine a plurality of scenes and the scene to which each scene data belongs.
[0120] By clustering the label information of multiple scene data, multiple clustering results can be obtained.
[0121] Each clustering result includes at least one scene data and corresponds to a different scene.
[0122] For a clustering result, each scene data belonging to the clustering result belongs to the scene corresponding to the clustering result.
[0123] For a scene data, the label information of the scene data may include: a general class label of the scene data, a traffic participant information label of the scene data, and a traffic class label of the scene data.
[0124] The general class labels of scene data include: the collection time of scene data, the collection location of scene data, the road type of the road in the scene where the vehicle used to collect scene data is when collecting scene data, the road characteristics of the road in the scene where the vehicle used to collect scene data is when collecting scene data, the weather of the environment where the vehicle used to collect scene data is when collecting scene data, the lighting of the environment where the scene data is when collecting scene data, etc. The traffic participant labels of scene data include: the traffic participant type of the traffic participant in the scene where the vehicle used to collect scene data is when collecting scene data, the motion state of the traffic participant in the scene where the vehicle used to collect scene data is when collecting scene data, the behavioral intention of the traffic participant in the scene where the vehicle used to collect scene data is when collecting scene data, the initial direction of the traffic participant in the scene where the vehicle used to collect scene data is when collecting scene data, etc. The traffic class labels of scene data include: the degree of traffic congestion when collecting scene data, the signal light state of the signal light in the scene where the vehicle used to collect scene data is when collecting scene data, and the signs and markings in the scene where the vehicle used to collect scene data is when collecting scene data.
[0125] Table 1 is an example of general class labels for scene data, Table 2 is an example of traffic participant information labels for scene data, and Table 3 is an example of a traffic class label table for scene data.
[0126] Table 1
[0127]
[0128]
[0129] Table 2
[0130]
[0131] Table 3
[0132]
[0133]
[0134] In a possible implementation, a nonlinear clustering algorithm may be used to cluster the label information of multiple scene data to determine multiple scenes and the scene to which each scene data belongs.
[0135] As an example, considering that there are many parameters and the parameters have nonlinear and non-explicit coupling relationships, a Gaussian mixture model with good fitting ability is used to cluster the label information of multiple scene data. The Gaussian mixture model can be expressed as:
[0136]
[0137] Among them, f(x GMM ; Θ) represents the Gaussian mixture model, Θ=[K,ω k ,θ k ], K represents the number of Gaussian kernels in the Gaussian mixture model, that is, how many classes the label information of the scene data can be divided into; ω k represents the weight of the kth Gaussian component in the total model, and the sum of all weights is 1, that is, θ k =[μ k ,∑ k ], represents the mean matrix and variance matrix corresponding to the kth component. The input of the Gaussian mixture model is the label information of multiple scene data.
[0138] In step S402, based on the scene data of the target scene, the attention level of each of the multiple traffic participants around the vehicle is determined, and the target traffic participant among the multiple traffic participants around the vehicle is determined.
[0139] Step S402 refers to step S201.
[0140] In step S403, for each of the multiple traffic participants around the own vehicle, the position importance of the position of the traffic participant and the type importance of the traffic participant type of the traffic participant are determined based on the scene data of the target scene, and the importance parameter of the traffic participant is determined based on the position importance of the position of the traffic participant and the type importance of the traffic participant type of the traffic participant, and the attention level of the traffic participant is determined based on the importance parameter of the traffic participant.
[0141] For a traffic participant around the vehicle, the method of determining the position importance of the position of the traffic participant and the type importance of the traffic participant type of the traffic participant is as described in step S202.
[0142] In one possible implementation, for a traffic participant around the vehicle, determining the importance parameter of the traffic participant based on the position importance of the traffic participant's position and the type importance of the traffic participant type of the traffic participant includes: taking the product of the position importance of the traffic participant's position and the type importance of the traffic participant type of the traffic participant as the importance parameter of the traffic participant.
[0143] In a possible implementation, for a traffic participant among multiple traffic participants around the vehicle, the importance parameter of the traffic participant may be used to determine the attention level of the traffic participant.
[0144] In the embodiment of the present invention, when determining the importance parameter of a traffic participant, the influence of the position importance of the position of the traffic participant and the type importance of the traffic participant type on the importance of the traffic participant can be considered at the same time, thereby improving the accuracy of the importance parameter of the traffic participant and improving the accuracy of the attention of the traffic participant.
[0145] In a possible implementation, step S403 includes: step S4031.
[0146] In step S4031, for a traffic participant among multiple traffic participants around the ego vehicle, the right-of-way parameter of the traffic participant is determined according to whether the traffic participant is in the target lane of the ego vehicle; and the attention level of the traffic participant is determined according to the importance parameter of the traffic participant and the right-of-way parameter of the traffic participant.
[0147] Among them, the right-of-way parameter of the traffic participant when the traffic participant is in the target lane where the vehicle is located is greater than the right-of-way parameter of the traffic participant when the traffic participant is not in the target lane where the vehicle is located.
[0148] In a possible implementation, for a traffic participant around the ego vehicle, if the traffic participant is in the target lane of the ego vehicle, the right of way parameter of the traffic participant is 1. If the traffic participant is not in the target lane of the ego vehicle, the right of way parameter of the traffic participant is 0.
[0149] The target lane where the ego vehicle is located and whether the traffic participant is in the target lane where the ego vehicle is located are indicated by the scene data of the target scene.
[0150] In a possible implementation, in step S4031, for a traffic participant among multiple traffic participants around the vehicle, the sum of the importance parameter of the traffic participant and the road right parameter of the traffic participant is determined as the attention level of the traffic participant.
[0151] In an embodiment of the present invention, when determining the attention of a traffic participant, the importance parameter of the traffic participant that is highly correlated with the strength of the interaction between the traffic participant and the own vehicle and the road right parameter of the traffic participant that is highly correlated with the strength of the interaction between the traffic participant and the own vehicle can be considered simultaneously, thereby more comprehensively evaluating the strength of the interaction between the traffic participant and the own vehicle and improving the accuracy of the attention of the traffic participant.
[0152] In a possible implementation, step S4031 includes: step S4031a-step S4031b.
[0153] In step S4031a, for a traffic participant around the own vehicle, when the traffic participant is a vehicle, the risk parameter of the traffic participant is determined based on the associated parameter information used to determine the risk parameter of the traffic participant, and the associated parameter information used to determine the risk parameter of the traffic participant includes: the relative distance between the own vehicle and the traffic participant, the speed of the own vehicle, and the speed of the traffic participant.
[0154] In step S4031b, the attention level of the traffic participant is determined based on the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant.
[0155] In one possible implementation, in step S4031a, for a traffic participant around the ego vehicle, spring damping model parameters for the traffic participant can be obtained, and the spring damping model parameters for the traffic participant include: a virtual longitudinal spring stiffness and a virtual longitudinal damping coefficient for the traffic participant, and a virtual lateral spring stiffness and a virtual lateral damping coefficient for the traffic participant; based on the spring damping model parameters for the traffic participant and associated parameter information for determining the risk parameters of the traffic participant, a longitudinal risk value of the traffic participant relative to the ego vehicle and a lateral risk value of the traffic participant relative to the ego vehicle are calculated; based on the longitudinal risk value of the traffic participant relative to the ego vehicle and the lateral risk value of the traffic participant relative to the ego vehicle, the risk parameter of the traffic participant is determined.
[0156] For a traffic participant around the vehicle, in order to obtain the spring damping model parameters for the traffic participant, the physical model of virtual springs and damping can be used to simulate the force between vehicles to obtain the spring damping model for the traffic participant. The spring damping model for the traffic participant has a virtual longitudinal spring stiffness and a virtual longitudinal damping coefficient for the traffic participant, and a virtual lateral spring stiffness and a virtual lateral damping coefficient for the traffic participant.
[0157] For a traffic participant around the ego vehicle, determining the risk parameter of the traffic participant according to the spring damping model parameters for the traffic participant and the associated parameter information for determining the risk parameter of the traffic participant includes: calculating the longitudinal risk value of the traffic participant relative to the ego vehicle and the lateral risk value of the traffic participant relative to the ego vehicle according to the spring damping model parameters for the traffic participant and the associated parameter information for determining the risk parameter of the traffic participant; determining the risk parameter of the traffic participant according to the longitudinal risk value of the traffic participant relative to the ego vehicle and the lateral risk value of the traffic participant relative to the ego vehicle.
[0158] The longitudinal risk field function used to calculate the longitudinal risk value of the traffic participant relative to the vehicle can be expressed as:
[0159]
[0160] U x represents the longitudinal risk value of the traffic participant relative to the vehicle, k lon represents the virtual longitudinal spring stiffness, x represents the relative distance between the ego vehicle and the traffic participant, x0 represents the expected relative distance between the ego vehicle and the traffic participant, c lon represents the virtual longitudinal damping coefficient, v p represents the speed of traffic participants, v x Indicates the speed of the vehicle.
[0161] The lateral risk field function used to calculate the lateral risk value of the traffic participant relative to the vehicle can be expressed as:
[0162]
[0163] U y represents the lateral risk value of the traffic participant relative to the vehicle, c lat represents the virtual lateral damping coefficient, v y represents the lateral speed of the vehicle, y represents the lateral offset of the vehicle from the center line of the current lane, and k lat Represents the virtual lateral spring stiffness.
[0164] The risk parameter of the traffic participant can be expressed as:
[0165]
[0166] Among them, U represents the risk parameter of the traffic participant, U x,max Indicates the maximum longitudinal risk value set, U y,max Indicates the set maximum lateral risk.
[0167] The risk parameters of traffic participants around the ego vehicle can reflect the potential danger of the behavior of traffic participants around the ego vehicle to the ego vehicle. When determining the attention of traffic participants around the ego vehicle, the risk parameters of traffic participants around the ego vehicle are considered, thereby more comprehensively evaluating the strength of the interaction between traffic participants around the ego vehicle and the ego vehicle. This improves the accuracy of the attention of traffic participants around the ego vehicle.
[0168] In an embodiment of the present invention, when determining the attention of a traffic participant, the importance parameter of the traffic participant that is highly correlated with the strength of the interaction between the traffic participant and the own vehicle, the right of way parameter of the traffic participant that is highly correlated with the strength of the interaction between the traffic participant and the own vehicle, and the risk parameter of the traffic participant that is highly correlated with the strength of the interaction between the traffic participant and the own vehicle can be considered simultaneously, thereby more comprehensively evaluating the strength of the interaction between the traffic participant and the own vehicle and improving the accuracy of the attention of the traffic participant.
[0169] In a possible implementation, in step S4031b, for one traffic participant among multiple traffic participants around the vehicle, the sum of the importance parameter of the traffic participant, the right of way parameter of the traffic participant, and the risk parameter of the traffic participant is determined as the attention level of the traffic participant.
[0170] In another possible implementation, in step S4031b, for a traffic participant around the vehicle, a weighted sum of the importance parameter of the traffic participant, the right of way parameter of the traffic participant and the risk parameter of the traffic participant is determined as the attention level of the traffic participant.
[0171] The weighted sum of the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant is determined as the attention degree of the traffic participant, which can be expressed as:
[0172] D=ω1I+ω2U+ω3R
[0173] Wherein, D represents the attention of the traffic participant, I represents the importance parameter of the traffic participant, U represents the risk parameter of the traffic participant, R represents the right of way parameter of the traffic participant, ω1, ω2, ω3 represent the weight of the importance parameter of the traffic participant, the weight of the risk parameter of the traffic participant, and the weight of the right of way parameter of the traffic participant, respectively. ω1+ω2+ω3=1.
[0174] It should be noted that the importance parameter of each traffic participant has the same weight, the road right parameter of each traffic participant has the same weight, and the risk parameter of each traffic participant has the same weight.
[0175] In the embodiment of the present invention, the weight of the importance parameter of the traffic participant, the weight of the right of way parameter of the traffic participant, and the weight of the risk parameter of the traffic participant can be flexibly set according to the characteristics of the attention of the traffic participant in the scene or the test requirements. The attention of the traffic participant determined by the weight of the importance parameter of the traffic participant, the weight of the right of way parameter of the traffic participant, and the weight of the risk parameter of the traffic participant meets the characteristics of the attention of the traffic participant in the scene or the test requirements, thereby improving the flexibility of determining the attention of the traffic participant and the accuracy of the attention of the traffic participant.
[0176] As an example, when the ω1 value is greater than 0.5, the traffic participants concerned tend to be those with high importance, when the ω2 value is greater than 0.5, the traffic participants concerned tend to be those with greater risk, and when the ω3 value is greater than 0.5, the traffic participants concerned tend to be those with greater road rights. In the following vehicle scenario, in order to evaluate functions such as automatic emergency braking, more attention is paid to the size of the risk, so ω2 can be set to 1. In the test scenarios of cutting in on the vehicle and changing lanes by the vehicle itself, it is necessary to balance the risk, importance and road rights of traffic participants, so ω1 can be set to ω2 = ω3 = 1 / 3.
[0177] In step S404, for each target traffic participant among multiple traffic participants around the vehicle, when the target traffic participant's attention is greater than the attention threshold, a first simulated behavior model for the target scene is used to generate first simulated behavior data of the target traffic participant for the target scene; when the target traffic participant's attention is not greater than the attention threshold, a second simulated behavior model for the target scene is used to generate second simulated behavior data of the target traffic participant for the target scene.
[0178] Step S404 is similar to step S203, and the process of step S404 refers to the process of step S203.
[0179] A data generating device is also provided in the embodiment of the present invention, and the data generating device is used to implement the above-mentioned method embodiment and preferred implementation mode, which have been described and will not be repeated here. As used below, the term "unit" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived. The device in the embodiment of the present invention is presented in the form of a functional unit, where the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.
[0180] The data generating device comprises:
[0181] An acquisition unit, used for acquiring scene data of a target scene, wherein the target scene includes a self-vehicle and a plurality of traffic participants around the self-vehicle;
[0182] a determination unit, configured to determine the attention level of each of the plurality of traffic participants and determine a target traffic participant among the plurality of traffic participants according to the scene data;
[0183] A generating unit is used for, for each target traffic participant, when the attention level of the target traffic participant is greater than an attention threshold, generating first simulated behavior data of the target traffic participant for a target scene by using a first simulated behavior model for a target scene; when the attention level of the target traffic participant is not greater than the attention threshold, generating second simulated behavior data of the target traffic participant for a target scene by using a second simulated behavior model for a target scene, wherein the degree of anthropomorphism of the simulated behavior in the target scene represented by the first simulated behavior data is higher than the degree of anthropomorphism of the simulated behavior in the target scene represented by the second simulated behavior data.
[0184] Furthermore, the determination unit is further used to determine, for each traffic participant, the position importance of the traffic participant's position and the type importance of the traffic participant's type based on the scene data, and to determine the importance parameter of the traffic participant based on the position importance and the type importance, and to determine the attention level of the traffic participant based on the importance parameter of the traffic participant.
[0185] Furthermore, the determination unit is further used to determine the right of way parameters of the traffic participant according to whether the traffic participant is in the target lane of the own vehicle, wherein the target lane of the own vehicle is indicated by the scene data; and determine the attention level of the traffic participant according to the importance parameter and the right of way parameter of the traffic participant.
[0186] Furthermore, the determination unit is further used to determine the risk parameter of the traffic participant when the traffic participant is a vehicle based on associated parameter information used to determine the risk parameter of the traffic participant, the associated parameter information including: the relative distance between the vehicle and the traffic participant, the speed of the vehicle, and the speed of the traffic participant, wherein the associated parameter information is indicated by the scene data; and determine the attention level of the traffic participant based on the importance parameter of the traffic participant, the right of way parameter of the traffic participant and the risk parameter of the traffic participant.
[0187] Furthermore, the determination unit is further used to obtain spring damping model parameters for the traffic participant, and the spring damping model parameters include: a virtual longitudinal spring stiffness and a virtual longitudinal damping coefficient for the traffic participant, and a virtual lateral spring stiffness and a virtual lateral damping coefficient for the traffic participant; based on the spring damping model parameters for the traffic participant and associated parameter information for determining the risk parameters of the traffic participant, a longitudinal risk value of the traffic participant relative to the own vehicle and a lateral risk value of the traffic participant relative to the own vehicle are calculated; based on the longitudinal risk value of the traffic participant relative to the own vehicle and the lateral risk value of the traffic participant relative to the own vehicle, the risk parameters of the traffic participant are determined.
[0188] Furthermore, the determination unit is further used to determine the attention level of the traffic participant by taking a weighted sum of the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant.
[0189] Furthermore, the determination unit is further used to sort the attention levels of the multiple traffic participants from large to small according to the attention levels of the traffic participants; and determine the first preset number of traffic participants among the multiple traffic participants as target traffic participants.
[0190] Furthermore, the target scene is any one of the multiple scenes; the data generating device also includes:
[0191] The clustering unit is used to cluster the label information of multiple scene data before acquiring the scene data of the target scene, so as to determine the multiple scenes and the scene to which each scene data in the multiple scene data belongs.
[0192] refer to Figure 5 , Figure 51 is a schematic diagram of the hardware structure of a computer device provided by an embodiment of the present invention. The computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. Similarly, multiple vehicles can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above-mentioned hardware chip can be a dedicated integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device can be a complex programmable logic device, a field programmable gate array, a general array logic, or any combination thereof. The memory 20 stores instructions executable by at least one processor 10 so that the at least one processor 10 executes the method shown in the above embodiment. The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the vehicle, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state hard disk; the memory 20 may also include a combination of the above-mentioned types of memory. The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 may be connected via a bus or in other ways. The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc.The output device 40 may include a display device, an auxiliary lighting device (e.g., LED), a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device may be a touch screen.
[0193] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0194] A portion of the embodiments of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which the computer program instructions are executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0195] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A data generation method, characterized in that: The method comprises: Acquire scene data of a target scene, wherein the target scene includes a self-vehicle and a plurality of traffic participants around the self-vehicle; Determining the attention level of each of the multiple traffic participants according to the scene data, and determining a target traffic participant among the multiple traffic participants; For each target traffic participant, when the attention level of the target traffic participant is greater than the attention threshold, a first simulated behavior model for the target scene is used to generate first simulated behavior data of the target traffic participant for the target scene; when the attention level of the target traffic participant is not greater than the attention threshold, a second simulated behavior model for the target scene is used to generate second simulated behavior data of the target traffic participant for the target scene, wherein the degree of anthropomorphism of the simulated behavior in the target scene represented by the first simulated behavior data is higher than the degree of anthropomorphism of the simulated behavior in the target scene represented by the second simulated behavior data.
2. The method according to claim 1, characterized in that: Determining the attention level of each of the plurality of traffic participants according to the scene data includes: For each traffic participant, the position importance of the traffic participant's position and the type importance of the traffic participant's type are determined based on the scene data, and the importance parameter of the traffic participant is determined based on the position importance and the type importance, and the attention level of the traffic participant is determined based on the importance parameter of the traffic participant.
3. The method according to claim 2, characterized in that: Determining the attention level of the traffic participant according to the importance parameter of the traffic participant includes: Determining the right-of-way parameter of the traffic participant according to whether the traffic participant is in a target lane where the vehicle is located, wherein the target lane where the vehicle is located is indicated by the scene data; The attention degree of the traffic participant is determined according to the importance parameter and the road right parameter of the traffic participant.
4. The method according to claim 3, characterized in that: Determining the attention level of the traffic participant according to the importance parameter and the road right parameter of the traffic participant includes: When the traffic participant is a vehicle, determining the risk parameter of the traffic participant according to associated parameter information used to determine the risk parameter of the traffic participant, the associated parameter information including: a relative distance between the vehicle and the traffic participant, a speed of the vehicle, and a speed of the traffic participant, wherein the associated parameter information is indicated by the scene data; The attention level of the traffic participant is determined according to the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant.
5. The method according to claim 4, characterized in that: Determining the risk parameter of the traffic participant according to the associated parameter information used to determine the risk parameter of the traffic participant includes: Acquiring spring damping model parameters for the traffic participant, the spring damping model parameters comprising: a virtual longitudinal spring stiffness and a virtual longitudinal damping coefficient for the traffic participant, a virtual lateral spring stiffness and a virtual lateral damping coefficient for the traffic participant; Calculating a longitudinal risk value of the traffic participant relative to the vehicle and a lateral risk value of the traffic participant relative to the vehicle according to the spring damping model parameters for the traffic participant and the associated parameter information for determining the risk parameter of the traffic participant; The risk parameter of the traffic participant is determined according to the longitudinal risk value of the traffic participant relative to the own vehicle and the lateral risk value of the traffic participant relative to the own vehicle.
6. The method according to claim 4, characterized in that: Determining the attention level of the traffic participant according to the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant includes: The weighted sum of the importance parameter of the traffic participant, the road right parameter of the traffic participant and the risk parameter of the traffic participant is determined as the attention degree of the traffic participant.
7. The method according to claim 1, characterized in that: Determining a target traffic participant among the multiple traffic participants includes: sorting the attention levels of the multiple traffic participants according to the attention levels of the traffic participants from greatest to least; A first preset number of traffic participants among the multiple traffic participants are respectively determined as target traffic participants.
8. The method according to claim 1, characterized in that: The target scene is any one of the multiple scenes; Before acquiring the scene data of the target scene, the method further includes: The label information of the plurality of scene data is clustered to determine the plurality of scenes and the scene to which each scene data in the plurality of scene data belongs.
9. A data generating device, characterized in that: The device comprises: An acquisition unit, used for acquiring scene data of a target scene, wherein the target scene includes a self-vehicle and a plurality of traffic participants around the self-vehicle; a determination unit, configured to determine the attention level of each of the plurality of traffic participants and determine a target traffic participant among the plurality of traffic participants according to the scene data; A generating unit is used for, for each target traffic participant, when the attention level of the target traffic participant is greater than an attention threshold, generating first simulated behavior data of the target traffic participant for a target scene by using a first simulated behavior model for a target scene; when the attention level of the target traffic participant is not greater than the attention threshold, generating second simulated behavior data of the target traffic participant for a target scene by using a second simulated behavior model for a target scene, wherein the degree of anthropomorphism of the simulated behavior in the target scene represented by the first simulated behavior data is higher than the degree of anthropomorphism of the simulated behavior in the target scene represented by the second simulated behavior data.
10. A computer device installed in a vehicle, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 8 by executing the computer instructions.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Crowd diversity simulation method based on attention model
CN107563490A
System for displaying attention to nearby vehicles and method for providing alerts using same
CN115703480A
Automatic driving scene generation method and device, vehicle, equipment and storage medium
CN118569073A
Method for operating a safety system and vehicle with a safety system
DE102020200595A1
Neural network based modeling and simulation of non-stationary traffic objects for testing and development of autonomous vehicle systems
US20200180647A1
Cited By
Data generation method and apparatus, computer device, and storage medium
WO2026149561A1