Active safety control method, intelligent device and storage medium for vehicle
Using deep learning models to perform end-to-end active safety control decisions in autonomous driving technology solves the problems of error accumulation and local optimality in existing technologies, and improves the safety and reliability of autonomous driving.
Patent Information
- Application Number
- CN202410980284.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The active safety control method in existing autonomous driving technology is based on rules and is prone to error accumulation and local optimality, resulting in low accident scene recall rates and reducing control reliability and safety.
A deep learning model based on data frame sequences is used to obtain end-to-end active safety control decisions, including automatic emergency braking decisions, by acquiring vehicle environment and status characteristics. The Transformer network is used to fuse obstacle attributes and vehicle status information to predict the latest braking decision. time to evaluate control decisions.
It effectively reduces error accumulation, improves the reliability and safety of active safety control, reduces the shortcomings of the recall rate of accident scenarios, and achieves more accurate and reliable automatic emergency braking decisions.
Smart Images

Figure CN118514685B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and specifically to an active safety control method for a vehicle, an intelligent device, and a storage medium. Background Art
[0002] In order to ensure the safety of the vehicle during the automatic driving process, it is necessary to perform active safety control on the vehicle, which can include anti-lock braking ABS (Anti-lock Braking), automatic emergency braking AEB (Autonomous Emergency Braking), etc.
[0003] At present, the conventional active safety control method in the field of autonomous driving technology is a rule-based method. However, this method has the disadvantages of large error accumulation, local optimality, and a relatively low recall rate for accident scenarios (scenarios that require active safety control of the vehicle), which reduces the reliability and safety of active safety control.
[0004] The following takes automatic emergency braking AEB as an example for explanation.
[0005] The conventional AEB method is to use a perception model to perceive the data collected by sensors (such as cameras, laser radars, etc.) on the current vehicle (hereinafter referred to as the vehicle), and then predict the trajectories of the vehicle and other vehicles (hereinafter referred to as other vehicles) based on the perception results to obtain the trajectory of the vehicle and the other vehicle. Then, the collision prediction is performed on the trajectory of the vehicle and the other vehicle to obtain the collision time TTC (Time TO Collision) of the vehicle and the other vehicle, and the collision risk is evaluated according to the judgment rule of the collision time TTC. Then, the collision time TTC of different driving scenarios is statistically calibrated to obtain the collision time TTC with collision risk in different driving scenarios. In actual application, the trajectory of the vehicle and the other vehicle should be predicted based on the perception results of the perception model, and then the collision prediction is performed on the trajectory of the vehicle and the other vehicle to obtain the collision time TTC of the vehicle and the other vehicle. Then, it is determined whether there is a collision risk based on the actual driving scenario and the collision time TTC, and then the control decision of AEB (such as starting emergency braking or not starting emergency braking) is predicted. Since it is necessary to predict the trajectory, evaluate the collision risk according to the judgment rules of the collision time TTC, and collect statistics on the collision time TTC, it is easy to accumulate errors and fall into the local optimum, resulting in poor prediction of the control decision. In order to solve this problem, after predicting the AEB control decision based on the collision time TTC, a lot of post-processing is required for this control decision. For example, adding a whitelist or blacklist of driving scenarios to suppress scenarios, etc. If this method is used, in order to prevent accidental braking, it may also predict the decision not to initiate emergency braking in accident scenarios where emergency braking of the vehicle is required, reducing the recall rate of accident scenarios.
[0006] Accordingly, the art needs a new technical solution to solve the above problems. Summary of the invention
[0007] In order to overcome the above-mentioned defects, the present application is proposed to solve or at least partially solve the technical problem of improving the reliability and safety of active safety control of vehicles.
[0008] In a first aspect, a method for active safety control of a vehicle is provided, wherein a sensor is provided on the vehicle, and the method comprises:
[0009] Acquire a data frame sequence, the data frame sequence including frame information of T data frames, T>1, the data frame is a data frame collected by the sensor, the frame information includes environmental perception characteristics of the environment where the vehicle is located in the data frame and vehicle state characteristics of the vehicle at a time corresponding to the data frame, and the frame information of the first to Tth data frames in the data frame sequence are arranged in order from the first to the last according to the time corresponding to the data frame;
[0010] Inputting the data frame sequence into an active safety control model for processing to obtain an active safety control decision at a target time, where the target time is the time corresponding to the Tth data frame;
[0011] performing active safety control on the vehicle according to the active safety control decision;
[0012] in,
[0013] The active safety control model is trained based on samples of the data frame sequence and their annotation information, and the annotation information includes the active safety control decision at the target moment.
[0014] In a technical solution of the above-mentioned active safety control method for a vehicle, the method further includes:
[0015] The data frame sequence is input into the active safety control model for processing to obtain the attribute information of the target obstacle at the target moment and the future trajectory of the target obstacle after the target moment, wherein the target obstacle is the obstacle in the Tth data frame.
[0016] In a technical solution of the active safety control method of the above vehicle, the attribute information of the target obstacle includes the latest braking time based on the safety target;
[0017] The latest braking time is the latest time when the vehicle starts braking, and the safety goal is to prevent the vehicle from colliding with the target obstacle.
[0018] In a technical solution of the active safety control method of the above vehicle, the active safety control decision includes an automatic emergency braking decision, and the method further includes:
[0019] The automatic emergency braking decision is evaluated according to the latest braking time.
[0020] In a technical solution of the active safety control method of the above vehicle, the active safety control decision includes an automatic emergency braking decision, and the annotation information is obtained by:
[0021] Acquire attribute information of a target obstacle, the attribute information including a latest braking time based on a safety goal, the target obstacle is an obstacle in the Tth data frame in the samples of the data frame sequence, the latest braking time is the latest time when the vehicle starts braking, and the safety goal is to prevent the vehicle from colliding with the target obstacle;
[0022] Determining an active safety control decision at the target moment according to the latest braking time;
[0023] The annotation information is obtained according to the active safety control decision at the target moment.
[0024] In a technical solution of the active safety control method of the above vehicle, there are multiple sensors, and the acquisition of the data frame sequence includes:
[0025] Acquire a plurality of data frame sequences, wherein the plurality of data frame sequences correspond one-to-one to a plurality of sensors;
[0026] The frame information of the data frames in the data frame sequence comes from the data frames collected by the sensor corresponding to the data frame sequence.
[0027] In a technical solution of the active safety control method of the above vehicle, the environment perception feature includes obstacle features and road signs of obstacles in the environment, the vehicle state feature includes vehicle state information, and the active safety control model includes a first encoding module, a second encoding module and a first decoding module;
[0028] The first encoding module is configured to: perform encoding processing on the data frame sequence to obtain a motion information sequence of a target obstacle, wherein the target obstacle is an obstacle in the Tth data frame, and the motion information sequence includes motion information of the target obstacle at a corresponding moment of each data frame in the data frame sequence;
[0029] The second encoding module is configured to: encode the motion information sequence of the target obstacle, the state information sequence of the vehicle, and the road sign of the environment where the vehicle is located to obtain an environment encoding result, wherein the environment encoding result includes the encoding information of the target obstacle, the vehicle, and the road sign, and the state information sequence includes the state information of the vehicle at the corresponding time of each data frame in the data frame sequence;
[0030] The first decoding module is configured to: use the vehicle's coded information as the Query feature of the attention mechanism, use the environment coding results as the Key feature and Value feature of the attention mechanism respectively, and perform cross-attention processing on the vehicle's coded information and the environment coding results to obtain the active safety control decision at the target moment.
[0031] In a technical solution of the above-mentioned active safety control method for a vehicle, the second encoding module is configured as follows:
[0032] Self-attention processing is performed on the motion information sequence of the target obstacle, the state information sequence of the vehicle, and the road signs of the environment to obtain the environment encoding result.
[0033] In a technical solution of the above-mentioned active safety control method for a vehicle, the second encoding module includes a first encoding unit and a second encoding unit;
[0034] The first encoding unit is configured to: use the first motion information in the motion information sequence as the Query feature of the attention mechanism, use the second motion information in the motion information sequence as the Key feature and the Value feature of the attention mechanism, perform cross-attention processing on the first motion information and the second motion information, and obtain the encoded motion information of the target obstacle, wherein the first motion information is the motion information at the time corresponding to the Tth data frame in the motion information sequence, and the second motion information is the motion information at the time corresponding to the 1st to T-1st data frames;
[0035] The second encoding unit is configured to: use the first state information in the state information sequence as the Query feature of the attention mechanism, and use the second state information in the state information sequence as the Key feature and Value feature of the attention mechanism, perform cross-attention processing on the first state information and the second state information, and obtain the encoded state information of the vehicle, wherein the first state information is the state information at the time corresponding to the Tth data frame in the state information sequence, and the second state information is the state information at the time corresponding to the 1st to T-1th data frames.
[0036] In a technical solution of the above-mentioned active safety control method for a vehicle, the second encoding module is configured as follows:
[0037] The coded motion information of the target obstacle, the coded state information of the vehicle and the road signs of the environment are coded to obtain an environment coding result.
[0038] In a technical solution of the active safety control method of the above-mentioned vehicle, the first decoding module is configured to: use the vehicle's coding information as the Query feature of the attention mechanism, and use the environment coding results as the Key feature and Value feature of the attention mechanism respectively, perform cross-attention processing on the vehicle's coding information and the environment coding results, and obtain the future trajectory of the vehicle after the target moment.
[0039] In a technical solution of the active safety control method of the above vehicle, the active safety control model includes a second decoding module, and the second decoding module is configured to:
[0040] The encoding information of the target obstacle is used as the query feature of the attention mechanism, and the environment encoding result is used as the key feature and value feature of the attention mechanism respectively. The encoding information of the target obstacle and the environment encoding result are cross-attention processed to obtain the attribute information of the target obstacle at the target moment and the future trajectory of the target obstacle after the target moment.
[0041] In a technical solution of the active safety control method of the above-mentioned vehicle, the active safety control model is a model based on a Transformer network.
[0042] In a second aspect, a smart device is provided, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the method described in any one of the technical solutions of the above-mentioned vehicle active safety control method is implemented.
[0043] In a third aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored therein, wherein the program codes are suitable for being loaded and run by a processor to execute the method described in any one of the technical solutions of the above-mentioned active safety control method of the vehicle.
[0044] The above one or more technical solutions of the present application have at least one or more of the following beneficial effects:
[0045] In a technical solution for implementing the active safety control method of a vehicle provided in the present application, a sensor is provided on the vehicle, and the method includes the following steps: obtaining a data frame sequence, the data frame sequence including frame information of T data frames, T>1, the data frame is a data frame collected by the sensor, the frame information includes environmental perception characteristics of the environment in which the vehicle is located in the data frame and vehicle state characteristics of the vehicle at the corresponding time of the data frame, and the frame information of the 1st to the Tth data frames in the data frame sequence are arranged in order from first to last according to the corresponding time of the data frame; inputting the data frame sequence into an active safety control model for processing to obtain an active safety control decision at a target time, the target time being the time corresponding to the Tth data frame; performing active safety control on the vehicle according to the active safety control decision; the active safety control model is trained based on samples of the data frame sequence and their annotation information, and the annotation information includes the active safety control decision at the target time.
[0046] In the above implementation scheme, end-to-end acquisition of active safety control decisions is achieved based on the active safety control model, that is, the active safety control decision can be directly determined by the data frame sequence, and there is no need to use a rule-based method to determine the active safety control decision. Therefore, the above implementation scheme will not have the disadvantages of large error accumulation, local optimality, and relatively low recall rate of accident scenes caused by the use of rule-based methods. In this way, when the vehicle is actively controlled according to the active safety control decision, the safety and reliability of the control can be effectively guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The disclosure of the present application will become easier to understand with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. Among them:
[0048] Figure 1 is a schematic flow chart of main steps of a method for active safety control of a vehicle according to an embodiment of the present application;
[0049] Figure 2 is a schematic diagram of a model structure of an active safety control model according to an embodiment of the present application;
[0050] Figure 3 is a schematic diagram of a model structure of an active safety control model according to another embodiment of the present application;
[0051] Figure 4 is a schematic diagram of a model structure of an active safety control model for automatic emergency braking according to an embodiment of the present application;
[0052] Figure 5 is a schematic diagram comparing the active safety control method according to an embodiment of the present application with a rule-based method in the prior art;
[0053] Figure 6 is a schematic diagram of a process of iteratively training an active safety control model according to an embodiment of the present application;
[0054] Figure 7 is a schematic diagram of data types used when training an active safety control model at different training stages according to an embodiment of the present application;
[0055] Figure 8 It is a schematic diagram of the change in mileage and the change in the recall rate of accident scenarios of the active safety control model falsely triggering automatic emergency braking at different training stages according to an embodiment of the present application;
[0056] Fig. 9 It is a schematic diagram of the main structure of a smart device according to an embodiment of the present application.
[0057] Reference numerals:
[0058] 11: first encoding module; 12: second encoding module; 13: first decoding module; 14: second decoding module; 21: memory; 22: processor. DETAILED DESCRIPTION
[0059] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.
[0060] In the description of this application, "processor" may include hardware, software or a combination of the two. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc.
[0061] The relevant user personal information that may be involved in the various embodiments of this application is strictly in accordance with the requirements of laws and regulations, following the principles of legality, legitimacy and necessity, based on the reasonable purposes of business scenarios, to process the personal information that users actively provide during the use of products / services or generated due to the use of products / services, as well as the personal information obtained with the user's authorization.
[0062] The user personal information processed by this application will vary depending on the specific product / service scenario, and shall be based on the specific scenario in which the user uses the product / service, and may involve the user's account information, device information, driving information, vehicle information or other related information. This application will treat the user's personal information and its processing with a high degree of diligence.
[0063] This application attaches great importance to the security of user personal information and has taken reasonable and feasible security protection measures that meet industry standards to protect user information and prevent personal information from being accessed, disclosed, used, modified, damaged or lost without authorization.
[0064] The following is an explanation of an embodiment of the active safety control method for a vehicle provided in the present application. In this embodiment, a sensor and a perception model are provided on the vehicle. The sensor may include a camera, a radar (such as a lidar), etc. The sensor may be used to collect environmental data of the environment in which the vehicle is located. For example, an image of the environment in which the vehicle is located may be collected by a camera, and a point cloud of the environment may be collected by a radar. The perception model may be used to perform obstacle perception on the environmental data collected by the sensor to obtain obstacle features, and the obstacle features may include a detection frame of an obstacle, etc. For example, a detection frame of an obstacle in an image may be perceived by the perception model. In this embodiment, a conventional perception model may be used, and the specific structure and working principle of the perception model will not be described in detail.
[0065] Obstacles can be dynamic obstacles or static obstacles. Dynamic obstacles can include moving targets such as vehicles, motorcycles, bicycles, pedestrians, etc. Static obstacles can include static targets such as stone piers and cones.
[0066] The vehicle may be a mobile smart device, which may include electric vehicles, gasoline / diesel vehicles, smart cars, etc. Optionally, the smart device may also include an automatic driving system, which is used to guide the smart device to drive itself or assist driving.
[0067] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart of the main steps of the active safety control method for a vehicle according to an embodiment of the present application. Figure 1 As shown, the active safety control method of a vehicle in the embodiment of the present application mainly includes the following steps S101 to S103.
[0068] Step S101: Acquire a data frame sequence, the data frame sequence includes frame information of T data frames, T>1, the data frame is a data frame collected by a sensor, the frame information includes environmental perception characteristics of the environment in which the vehicle is located in the data frame and vehicle state characteristics of the vehicle at the corresponding time of the data frame, and the frame information of the 1st to Tth data frames in the data frame sequence are arranged in order from first to last according to the corresponding time of the data frame.
[0069] The environmental perception features are obtained by perceiving the data frames through the perception model. The environmental perception features may include obstacle features of obstacles in the environment, and may also include road signs in the environment. Obstacle features may include detection frames of obstacles, etc. Road signs may include lane lines, stop lines, road boundaries, symbolic or graphical traffic signs (such as no U-turn signs, no left turn signs), etc. In some embodiments, the data frame sequence may include an obstacle feature sequence and a road sign sequence. The frame information of each data frame in the obstacle feature sequence is the obstacle feature, and the frame information in the road sign sequence is the road sign. Taking the obstacle feature sequence as an example, its data tensor can be expressed as (N×T, D). T represents the number of data frames, N represents the maximum number of obstacles in a data frame, N≥1, and D represents the feature dimension of the obstacle feature. The feature dimensions of all obstacles are the same.
[0070] The vehicle state feature may include the vehicle state information, which may include the relative positioning information of the vehicle, steering wheel angle, acceleration, brake pedal information, etc. The relative positioning information is the relative position (position and attitude) of the vehicle between two data frame moments.
[0071] In this embodiment, the obstacle features, road signs, and vehicle status features in the data frame sequence can be used to implement active safety control of the vehicle. In some application scenarios, if there are no road signs in the environment where the vehicle is located or the perception model does not perceive the road signs, the active safety control method provided by this application can still be executed to use the obstacle features and vehicle status features in the environment to perform active safety control on the vehicle.
[0072] Step S102: inputting the data frame sequence into the active safety control model for processing to obtain the active safety control decision at the target time, where the target time is the time corresponding to the Tth data frame.
[0073] In the data frame sequence, the moment corresponding to the Tth data frame can be understood as the current moment, and the moments corresponding to the 1st to T-1th data frames can be understood as historical moments. The active safety control model can process the environmental perception characteristics and vehicle state characteristics of the current moment and the historical moments to obtain the active safety control decision at the current moment. Based on the active safety control decision, the vehicle can be guided or assisted to drive safely and avoid collision with obstacles.
[0074] Decisions can be understood as the driving strategy or driving plan of the vehicle, and active safety control decisions can be understood as decisions used to implement active safety control of the vehicle. Active safety control of the vehicle can include anti-lock braking (ABS), automatic emergency braking (AEB), etc. Taking automatic emergency braking (AEB) as an example, the decision content of active safety control decisions can be to start automatic emergency braking or not to start automatic emergency braking. If automatic emergency braking is started, the vehicle will be controlled to brake immediately to achieve emergency braking. If automatic emergency braking is not started, the vehicle will not be controlled to perform emergency braking.
[0075] The active safety control model is explained below.
[0076] The active safety control model is a deep learning model, which can be trained based on samples of a data frame sequence and its annotation information, where the annotation information includes the active safety control decision at the target moment.
[0077] The sample of the data frame sequence has the same meaning as the data frame sequence in the aforementioned step S101, with the main difference being that the sample of the data frame sequence is the data frame sequence used in the model training phase, and the data frame sequence in step S101 is the data frame sequence used in the model application phase. Among them, the model application phase is the phase in which the trained active safety control model is deployed on the vehicle and actually applied during the vehicle's automatic driving process. Similarly, the target moment in the annotation information has the same meaning as the target moment in the aforementioned step S102, with the main difference being that the target moment in the annotation information refers to the moment corresponding to the Tth data frame in the sample of the data frame sequence, and the target moment in step S102 refers to the moment corresponding to the Tth data frame in the data frame sequence obtained in step S101.
[0078] In this embodiment, a conventional model training method can be adopted to use the above samples and their annotation information to perform model training on the active safety control model.
[0079] Step S103: Active safety control is performed on the vehicle according to the active safety control decision. Specifically, the vehicle may be controlled to execute the active safety control decision.
[0080] For example: If the active safety control decision is an automatic emergency braking decision, and the decision content is to start the automatic emergency braking, the vehicle will be controlled to start the automatic emergency braking, and the vehicle will immediately perform emergency braking. If the decision content of the automatic emergency braking decision is not to start the automatic emergency braking, the vehicle will be controlled not to start the automatic emergency braking, and the vehicle will not perform emergency braking.
[0081] In the method based on the above steps S101 to S103, the active safety control decision is obtained end-to-end based on the active safety control model, and there is no need to use a rule-based method to determine the active safety control decision, so there will be no disadvantages such as large error accumulation, local optimum, and low accident scene recall rate caused by the rule-based method. Based on this, when the vehicle is actively controlled according to the active safety control decision, the safety and reliability of the control can be effectively guaranteed.
[0082] The above steps S101 to S102 are described below.
[0083] 1. Explain step S101.
[0084] In some implementations of the above step S101, a plurality of sensors may be provided on the vehicle, such as a camera, a laser radar, etc. When acquiring a data frame sequence, a plurality of data frame sequences may be acquired, and these data frame sequences correspond one-to-one to the above multiple sensors, and the frame information of the data frames in each data frame sequence comes from the data frames acquired by the sensors corresponding to each data frame sequence. For example, if a forward-looking camera and a laser radar are provided on the vehicle, a data frame sequence may be acquired using the image acquired by the forward-looking camera, and a data frame sequence may be acquired using the point cloud acquired by the laser radar.
[0085] Based on the above implementation, data frame sequences of multiple different modalities can be obtained. Compared with processing a data frame sequence of a single modality, the active safety control model processes these data frame sequences of different modalities and can fuse the information of obstacles in data frames of different modalities, thereby further improving the accuracy of information such as active safety control decisions.
[0086] 2. Explain step S102.
[0087] In some implementations of the above step S102, the active safety control model may also be used to obtain the attribute information and trajectory of the obstacle.
[0088] Specifically, the data frame sequence can be input into the active safety control model for processing to obtain the attribute information of the target obstacle at the target time and the future trajectory of the target obstacle after the target time, where the target obstacle is the obstacle in the Tth data frame. Based on the active safety control model, the above attribute information and future trajectory can be directly obtained from the data frame sequence, so the above attribute information and future trajectory are also obtained end-to-end.
[0089] When training the active safety control model, the attribute information of the target obstacle at the target time can be added to the annotation information of the sample. In this way, after using the sample and its annotation information to train the active safety control model, the model can learn the ability to predict the attribute information of the target obstacle at the target time, thereby achieving end-to-end acquisition of the above attribute information.
[0090] In addition, the historical trajectory of the target obstacle at the target moment and before, and the future trajectory after the target moment can also be added to the annotation information of the sample. In this way, after using the sample and its annotation information to train the active safety control model, the model can learn the ability to predict the future trajectory of the target obstacle after the target moment, thereby achieving end-to-end acquisition of the future trajectory.
[0091] In some embodiments, the attribute information of the obstacle may be the degree of danger of the obstacle. If the degree of danger is higher, the obstacle poses a greater threat to the safe driving of the vehicle; if the degree of danger is lower, the obstacle poses a smaller threat to the safe driving of the vehicle.
[0092] In some embodiments, the attribute information of the target obstacle includes the latest braking time based on the safety goal, the latest braking time is the latest time when the vehicle starts braking, and the safety goal is to prevent the vehicle from colliding with the target obstacle. If the latest braking time is smaller, it means that the possibility of the target obstacle colliding with the vehicle is greater, and the danger level of the target obstacle is higher; if the latest braking time is larger, it means that the possibility of the target obstacle colliding with the vehicle is smaller, and the danger level of the target obstacle is lower.
[0093] In some embodiments of the present application, when the active safety control decision is an automatic emergency braking decision, the above-mentioned latest braking time can be used to evaluate the automatic emergency braking decision. Specifically, when the decision content of the automatic emergency braking decision is to start the automatic emergency braking, it indicates that the danger level of the target obstacle is relatively high. If the latest braking time obtained at this time is relatively small, it also indicates that the danger level of the target obstacle is relatively high, so the automatic emergency braking decision obtained at this time is safe and reliable. However, if the latest braking time obtained at this time is relatively large, it indicates that the danger level of the target obstacle is relatively low, that is, the latest braking time and the automatic emergency braking decision are inconsistent in the risk assessment of the target obstacle, then the automatic emergency braking decision obtained at this time may not be safe and reliable. In order to ensure the safety and reliability of the automatic emergency braking decision, relevant data (including data frame sequence, original data frame collected by sensor, etc.) of the inconsistent risk assessment of the target obstacle by the above-mentioned latest braking time and the automatic emergency braking decision can be obtained, and these relevant data are used to optimize the active safety control model.
[0094] In some embodiments, when the active safety control model is actually applied to perform active safety control during the automatic driving process of the vehicle, the above evaluation will not be performed, and the above evaluation is performed offline. For example, the same active safety control model as that on the vehicle is deployed on a server (such as a cloud server), and the above-mentioned related data is used to perform evaluation on the server, and the active safety control model is optimized. After the optimization is completed, the optimized active safety control model can be redeployed to the vehicle, that is, replacing the existing active safety control model on the vehicle.
[0095] The following is an explanation of the annotation information used in the training of the active safety control model.
[0096] In some embodiments of the present application, the active safety control decision is an automatic emergency braking decision. In order to enable the active safety control model to accurately determine a safe and reliable automatic emergency braking decision, the following steps 11 to 13 can be used to obtain the labeling information of the samples of the data frame sequence, and then the samples of the data frame sequence and their labeling information are used to train the active safety control model. It should be noted that when the active safety control model is run during the actual driving of the vehicle, the trained active safety control model is run, and there is no need to first obtain the labeling information through the following steps, and then use the obtained labeling information to train the active safety control model.
[0097] Step 11: Acquire the attribute information of the target obstacle, the attribute information includes the latest braking time based on the safety goal, the target obstacle is the obstacle in the Tth data frame in the sample of the data frame sequence, the latest braking time is the latest time when the vehicle starts braking, and the safety goal is to prevent the vehicle from colliding with the target obstacle. The meanings of the latest braking time and the target obstacle are the same as those of the latest braking time and the target obstacle in the above-mentioned embodiment.
[0098] Step 12: Determine the active safety control decision at the target moment according to the latest braking time. If the latest braking time is smaller, it indicates that the target obstacle is more dangerous, so it is more necessary to control the vehicle to brake urgently to prevent collision with the target obstacle; if the latest braking time is larger, it indicates that the target obstacle is less dangerous, so it is less necessary to control the vehicle to brake urgently. Based on this, the decision content of the active safety control decision at the target moment can be determined according to the size of the latest braking time, that is, to start the automatic emergency braking decision or not to start the automatic emergency braking decision.
[0099] For example, a time threshold can be set and the latest braking time can be compared with the time threshold; if the latest braking time is less than the time threshold, it means that the latest braking time is relatively short and emergency braking is required, and the decision content can be set to start the automatic emergency braking decision; if the latest braking time is greater than or equal to the time threshold, it means that the latest braking time is relatively long and emergency braking is not required, and the decision content can be set to not start the automatic emergency braking decision.
[0100] When setting the specific value of the time threshold, the latest braking time in multiple scenarios where automatic emergency braking needs to be initiated can be obtained, and then the largest latest braking time is obtained from these latest braking times, and the value of the time threshold is set according to this largest latest braking time.
[0101] Step 13: Obtain annotation information according to the active safety control decision at the target time. The annotation information can be used to indicate the active safety control decision.
[0102] After the active safety control model is trained using the labeled information obtained by the method described in steps 11 to 13 above, the active safety control model can learn the influence of the latest braking time on the automatic emergency braking decision while learning to determine the automatic emergency braking decision. This makes the automatic emergency braking decision determined by the active safety control model more consistent with human subjective feelings about emergency braking, that is, how long it will take for the vehicle to collide with an obstacle, and make an emergency braking decision based on this.
[0103] The active safety control model in the embodiment of the present application is described below.
[0104] In this embodiment, the active safety control model can be a model based on a Transformer network. Figure 2 , Figure 2 The model structure of the active safety control model according to an embodiment of the present application is exemplarily shown. Figure 2 As shown, in this embodiment, the active safety control model may include a first encoding module 11, a second encoding module 12, and a first decoding module 13. These three modules are described below respectively.
[0105] 1. The first encoding module 11 is described.
[0106] In this embodiment, the first encoding module 11 can be configured to encode the data frame sequence to obtain the motion information sequence of the target obstacle. Specifically, the obstacle features in the data frame sequence can be encoded to obtain the motion information sequence of the target obstacle.
[0107] The target obstacle is the obstacle in the Tth data frame in the data frame sequence, and the motion information sequence includes the motion information of the target obstacle at the corresponding time of each data frame in the data frame sequence. The motion information may include the speed, acceleration, direction and other information of the target obstacle.
[0108] Specifically, when encoding the data frame sequence, obstacle tracking can be performed on the data frame sequence to obtain the association relationship between the target obstacle and the obstacles in the 1st to T-1th data frames; taking the T-1th data frame as an example, if the target obstacle has an association relationship with an obstacle in the T-1th data frame (hereinafter described as a historical obstacle), it indicates that the historical obstacle and the target obstacle represent the same obstacle; if there is no association relationship, the historical obstacle and the target obstacle represent different obstacles.
[0109] In addition, obstacle motion information detection can be performed on the data frame sequence to obtain the motion information of each obstacle in each data frame. Based on the above association relationship, historical obstacles (hereinafter described as candidate obstacles) that represent the same obstacle as the target obstacle in the 1st to T-1th data frames can be obtained. Based on the motion information of each obstacle in each of the above data frames, the motion information of the target obstacle and its candidate obstacles can be obtained, and then according to the motion information of the target obstacle and its candidate obstacles, the motion information sequence of the target obstacle can be obtained.
[0110] 2. Explain the second encoding module 12.
[0111] In this embodiment, the second encoding module 12 can be configured to encode the motion information sequence of the target obstacle, the state information sequence of the vehicle, and the road signs of the environment where the vehicle is located to obtain an environmental encoding result. The environmental encoding result includes the encoding information of the target obstacle, the vehicle, and the road signs, that is, the environmental encoding result is composed of the above three types of encoding information.
[0112] The vehicle status information sequence includes the vehicle status information at the corresponding time of each data frame in the data frame sequence.
[0113] The vehicle, target obstacle and road sign are all located in the environment where the vehicle is located. The vehicle, target obstacle and road sign can be fused together through the second encoding module 12, and the fusion result (ie the above-mentioned environment encoding result) can be used to represent the environment where the vehicle is located.
[0114] 3. The first decoding module 13 is described.
[0115] In this embodiment, the first decoding module 13 can be configured to use the vehicle's coding information as the Query feature of the attention mechanism, and the environmental coding results as the Key feature and Value feature of the attention mechanism, respectively, to perform cross-attention processing on the vehicle's coding information and the environmental coding results to obtain the active safety control decision at the target moment. That is to say, in this embodiment, the characteristics of the current vehicle (i.e., the vehicle's coding information) are used as the query (Query), and the characteristics of the environment where the current vehicle is located (i.e., the environmental coding results) are used as the key (Key) and value (Value) to implement attention processing and obtain the active safety control decision of the current vehicle. Taking the automatic emergency braking decision as an example, the decision content can be the braking force or no braking.
[0116] After determining the sources of the Query feature, Key feature, and Value feature, a conventional cross-attention processing method can be used to perform cross-attention processing on the vehicle's coding information and the environmental coding result to obtain a processing result. The first decoding module 13 can use the processing result to predict the active safety control decision at the target moment. Taking the active safety control decision as an automatic emergency braking decision as an example, the first decoding module 13 can use the processing result to predict the decision content of the automatic emergency braking decision (i.e., start the automatic emergency decision or not start the automatic emergency strategy).
[0117] Based on the above-mentioned first encoding module 11, second encoding module 12, and first decoding module 13, the fusion of obstacle information in data frames at different times, the fusion of obstacles, vehicles, and road signs in the vehicle's environment, and the determination of active safety control decisions based on the environmental fusion results are realized. Based on the active safety control decision, the vehicle can be guided or assisted to drive safely and avoid collisions with obstacles. Therefore, the active safety control model composed of the above-mentioned first encoding module 11, second encoding module 12, and first decoding module 13 actually realizes an integrated architecture for data fusion and determination of active safety control decisions. Based on this, the active safety control model can use the data frame sequence to obtain active safety control decisions end-to-end.
[0118] The active safety control model is described below.
[0119] 1. The second encoding module 12 is described.
[0120] In some embodiments of the present application, the second encoding module 12 may be configured to perform self-attention processing on a motion information sequence of a target obstacle, a state information sequence of a vehicle, and road signs in the environment in which the vehicle is located to obtain an environmental encoding result.
[0121] Specifically, the motion information sequence of the target obstacle, the state information sequence of the vehicle, and the road signs of the vehicle's environment can be combined to form a combined information, and then the combined information is processed by self-attention to obtain the environment encoding result.
[0122] In some implementations, the second encoding module 12 may include a first encoding unit and a second encoding unit, and the two units are described below respectively.
[0123] 1. The first coding unit is described.
[0124] In this embodiment, the first encoding unit is configured to use the first motion information in the motion information sequence as the Query feature of the attention mechanism, and the second motion information in the motion information sequence as the Key feature and Value feature of the attention mechanism, perform cross-attention processing on the first motion information and the second motion information, and obtain the encoded motion information of the target obstacle.
[0125] The first motion information is the motion information at the time corresponding to the Tth data frame in the motion information sequence, and the second motion information is the motion information at the time corresponding to the 1st to T-1st data frames.
[0126] Since the first motion information is used as the query feature and the second motion information is used as the key feature and the value feature during the cross-attention processing, the above processing actually integrates the motion information of all data frames at the corresponding moments in the data frame sequence into the moment corresponding to the Tth data frame, which is equivalent to realizing the temporal compression of the motion information sequence. For example: if the data tensor of the motion information sequence of the target obstacle is (N, T, D), the data tensor is (N, D) after being processed by the first encoding unit. T represents the number of data frames, N represents the maximum number of obstacles in a data frame, N ≥ 1, and D represents the feature dimension of the motion information.
[0127] In this embodiment, after the sources of the Query feature, the Key feature, and the Value feature are determined, a conventional cross-attention processing method can be used to perform cross-attention processing on the first motion information and the second motion information.
[0128] 2. Explain the second encoding unit.
[0129] In this embodiment, the second encoding unit is configured to use the first state information in the state information sequence as the Query feature of the attention mechanism, and the second state information in the state information sequence as the Key feature and Value feature of the attention mechanism, perform cross-attention processing on the first state information and the second state information, and obtain the encoded state information of the vehicle.
[0130] The first state information is the state information at the time corresponding to the Tth data frame in the state information sequence, and the second state information is the state information at the time corresponding to the 1st to T-1st data frames.
[0131] Since the first state information is used as the query feature and the second state information is used as the key feature and the value feature during the cross-attention processing, the above processing actually merges the state information of all data frames in the data frame sequence into the time corresponding to the Tth data frame, which is equivalent to achieving the time series compression of the state information sequence. For example: if the data tensor of the state information sequence is (T, D), after being processed by the second encoding unit, the data tensor is (1, D). T represents the number of data frames, and D represents the feature dimension of the state information.
[0132] In this embodiment, after the sources of the Query feature, the Key feature, and the Value feature are determined, a conventional cross-attention processing method can be used to perform cross-attention processing on the first state information and the second state information.
[0133] Based on the first encoding unit and the second encoding unit, the second encoding module 12 can be configured to perform self-attention processing on the encoded motion information of the target obstacle, the encoded state information of the vehicle and the road signs of the environment to obtain an environmental encoding result. That is, the encoded motion information, the encoded state information and the road signs are combined together and then self-attention processing is performed.
[0134] In the above embodiment, based on the above first encoding unit and the second encoding unit, the time compression of the above motion information sequence and the state information sequence is realized, which is beneficial for the second encoding module 12 to perform self-attention processing on the motion information sequence, the state information sequence and the road signs, thereby helping to improve the accuracy of the environmental coding results.
[0135] 2. The first decoding module 13 is described.
[0136] In some embodiments of the present application, the first decoding module 13 can be configured to use the vehicle's coding information as the Query feature of the attention mechanism, and the environment coding results as the Key feature and Value feature of the attention mechanism, respectively, to perform cross-attention processing on the vehicle's coding information and the environment coding results, and obtain the future trajectory of the vehicle after the target moment.
[0137] Based on this implementation, the active safety control model can directly obtain the future trajectory of the vehicle from the data frame sequence, so the future trajectory is also obtained end-to-end. In other words, the active safety control model composed of the above-mentioned first encoding module 11, the second encoding module 12, and the first decoding module 13 actually realizes an integrated architecture of data fusion, determination of active safety control decisions, and self-vehicle trajectory prediction. The self-vehicle trajectory is the future trajectory of the above-mentioned vehicle after the target time.
[0138] The active safety control model is described below.
[0139] See attached Figure 3 , Figure 3 The model structure of the active safety control model according to an embodiment of the present application is exemplarily shown. Figure 3 As shown, in this embodiment, the active safety control model may include a second decoding module 14 in addition to the first encoding module 11, the second encoding module 12, and the first decoding module 13. The second decoding module 14 is described below.
[0140] In this embodiment, the second decoding module 14 is configured to use the encoding information of the target obstacle as the Query feature of the attention mechanism, and the environmental encoding result as the Key feature and Value feature of the attention mechanism, respectively, to perform cross-attention processing on the encoding information of the target obstacle and the environmental encoding result, and obtain the attribute information of the target obstacle at the target moment and the future trajectory of the target obstacle after the target moment.
[0141] After determining the sources of the Query features, Key features, and Value features, conventional cross-attention processing methods can be used to perform cross-attention processing on the vehicle's coding information and the environment coding results.
[0142] Based on this implementation, the active safety control model can directly obtain the future trajectory of the target obstacle from the data frame sequence, so the future trajectory is also obtained end-to-end. In other words, the active safety control model composed of the above-mentioned first encoding module 11, the second encoding module 12, the first decoding module 13, and the second decoding module 14 actually realizes the integrated architecture of data fusion, determination of active safety control decisions, self-vehicle trajectory prediction, and obstacle trajectory prediction. The obstacle trajectory is the future trajectory of the above-mentioned target obstacle after the target moment.
[0143] The following takes the active safety control decision as the automatic emergency braking decision and combines the attached Figure 4 , the active safety control model provided in this application is explained.
[0144] In this embodiment, the vehicle is equipped with a laser radar and multiple cameras, and these cameras have different viewing angles. The vehicle is equipped with a perception model, which uses the perception model to perceive obstacles on the point cloud collected by the laser radar to obtain the obstacle features of the obstacles in the point cloud, and obtains a data frame sequence (i.e. Figure 4 The laser radar data frame sequence in the image is obtained from the images collected by each camera. The BEV image under the BEV (Bird's Eye View) perspective is obtained. The obstacle features of the obstacles in the BEV image are obtained by performing obstacle perception on the BEV image through the perception model. A data frame sequence (i.e. Figure 4 BEV data frame sequence in ). Figure 4 As shown, the lidar data frame sequence and the BEV data frame sequence are input into the active safety control model, and the active safety control model can output active safety control decisions, the future trajectory of the vehicle, the latest braking time, and the future trajectory of the obstacle.
[0145] Specifically, the first encoding module 11 encodes the laser radar data frame sequence and the BEV data frame sequence to obtain the obstacle association relationship and obstacle status. According to the obstacle association relationship and obstacle status, the motion information sequence of the target obstacle can be obtained. Among them, the obstacle association relationship has the same meaning as the association relationship between the target obstacle and the obstacles in the 1st to T-1th data frames in the aforementioned embodiment, and the obstacle status has the same meaning as the motion information of the obstacle in the aforementioned embodiment. The second encoding module 12 can encode the motion information sequence of the target obstacle, the state information sequence of the vehicle, and the road signs of the environment where the vehicle is located to obtain the environmental encoding result. The first decoding module 13 can use the vehicle's encoding information as the Query feature of the attention mechanism, and the environmental encoding results as the Key feature and Value feature of the attention mechanism, respectively, and perform cross-attention processing on the vehicle's encoding information and the environmental encoding results to obtain the active safety control decision at the target moment and the future trajectory of the vehicle after the target moment. The second decoding module 14 can use the coding information of the target obstacle as the Query feature of the attention mechanism, and the environmental coding result as the Key feature and Value feature of the attention mechanism, and perform cross-attention processing on the coding information of the target obstacle and the environmental coding result, and obtain the attribute information of the target obstacle at the target time and the future trajectory of the target obstacle after the target time. Among them, the attribute information is the latest braking time based on the safety goal. In the first decoding module 13, the characteristics of the current vehicle (i.e., the coding information of the vehicle) are used as the query (Query), and the characteristics of the environment where the current vehicle is located (i.e., the environmental coding result) are used as the key (Key) and the value (Value) to realize the attention processing, and obtain the active safety control decision of the current vehicle. Taking the automatic emergency braking decision as an example, the decision content can be the braking force or no braking. In the second decoding module 14, the characteristics of the target obstacle (i.e., the coding information of the target obstacle) are used as the query (Query), and the characteristics of the environment where the current vehicle is located (i.e., the environmental coding result) are used as the key (Key) and the value (Value) to realize the attention processing, and obtain the latest braking time of the target obstacle.
[0146] The following is combined with Figure 5 , taking the active safety control decision as the automatic emergency braking decision, the present application is compared with the rule-based method in the prior art. Figure 5The traditional method in the above-mentioned refers to the rule-based method in the prior art, the end-to-end method refers to the active safety control method provided by the present application, ego refers to the vehicle, and the numbers 1 and 2 respectively represent two obstacles in the environment where the vehicle ego is located. Perception is a perception model on the vehicle. The perception model can perform obstacle perception on the data frames collected by the sensors on the vehicle to obtain obstacle features, and perform road sign perception on the data frames to obtain road signs. Relative positioning refers to the relative position of the vehicle between the corresponding moments of two data frames.
[0147] 1. Explain the traditional method.
[0148] like Figure 5 As shown in the figure, the traditional method includes a fusion stage, a prediction stage, and a planning / decision stage. In the fusion stage, the obstacle features, road signs, and relative positioning of the vehicle obtained by the perception model are fused; in the prediction stage, the trajectories of obstacles 1 and 2 are predicted based on the results of the fusion stage; in the planning / decision stage, the vehicle trajectory is planned, and the collision between the vehicle trajectory and the trajectory of obstacles 1 and 2 is predicted to obtain the collision time TTC between the vehicle and obstacles 1 and 2. The collision risk of obstacles 1 and 2 is determined according to the judgment rule of the collision time TTC, and then the automatic emergency braking decision of the vehicle is determined. Finally, the vehicle is controlled according to the automatic emergency braking decision. For example, if the decision content is to start emergency braking, the vehicle is controlled to brake immediately.
[0149] The above-mentioned fusion stage, prediction stage, and planning / decision-making stage are independent of each other. Each stage will produce errors to varying degrees. The errors produced in the previous stage will accumulate to the next stage, and finally accumulate to the planning / decision-making stage, affecting the safety and reliability of the final decision. In order to avoid the above problems, after the decision is made in the planning / decision-making stage, an additional post-processing link needs to be added to post-process the decision in the post-processing link. The introduction of the post-processing link will not only affect the efficiency of active safety control of the vehicle, but may even introduce new errors. For example, in order to prevent misbraking, a whitelist or blacklist of driving scenarios will be added for scene suppression. Although this reduces the misbraking rate, it also reduces the recall rate of accident scenarios (scenarios that require the vehicle to initiate emergency braking).
[0150] 2. Explain the method provided in this application.
[0151] like Figure 5 As shown, the method provided by the present application integrates the fusion stage, prediction stage, and planning / decision-making stage in the traditional method with an active safety control model, and can obtain vehicle decision-making information end-to-end. Specifically, obstacle features, road signs, and relative positioning of the vehicle are input into the active safety control model, and the active safety control model can directly output the vehicle's active safety control decision and obstacle attribute information ( Figure 5 The latest braking time in ), the future trajectory of the vehicle and obstacles ( Figure 5 not shown). Figure 5 The scene understanding in the process refers to determining the type of driving scene, which includes accident scenes and safety scenes. Accident scenes are scenes where automatic emergency braking needs to be activated, and safety scenes are scenes where automatic emergency braking does not need to be activated.
[0152] Compared with the above traditional methods, the method provided by this application has the following beneficial effects:
[0153] (1) This application effectively reduces the accumulation of errors and ensures the reliability of information such as active safety control decisions by integrating the fusion stage, prediction stage, and planning / decision-making stage.
[0154] (2) The traditional method is to determine the control decision based on rules, which has high performance requirements for the perception model. The perception model needs to accurately perceive obstacles and other information before it can further judge the obstacles and other information based on rules and determine the control decision. The active safety control model provided by this application obtains control decisions end-to-end, and does not determine control decisions based on rules. Therefore, the method of this application can reduce the performance requirements for the perception model.
[0155] (3) Each stage of the traditional method requires the deployment of a model to be implemented separately, while the method of the present application only requires the deployment of an active safety control model. Therefore, compared with the traditional method, the network architecture of the present application is more lightweight and the processing efficiency is faster.
[0156] (4) Compared with the vehicle collision time TTC, the automatic emergency braking decision determined by the active safety control model of the present application is more in line with human's subjective feeling of emergency braking, that is, how long it will take to collide with an obstacle, and make an emergency braking decision based on this.
[0157] The following is combined with Figure 6 , the process of iterative training or iterative upgrading of the active safety control model provided in this application is explained. Figure 6The vehicle-side model in represents the active safety control model deployed on the vehicle, and the deep learning model represents the active safety control model deployed on the server (such as a cloud server). Asso represents the association between the target obstacle and the obstacles in the 1st to T-1th data frames, State represents the motion information of each obstacle in each data frame, Prediction represents the prediction of the future trajectory of the vehicle and the target obstacle, Time represents the latest braking time based on the safety goal, and Decision represents the active safety control decision output by the model. The vehicle state represents the state information sequence of the vehicle, the static environment represents the road signs in the vehicle's environment, and the dynamic information represents the obstacles in the vehicle's environment. Obstacles can be moving targets such as vehicles, motorcycles, bicycles, and pedestrians.
[0158] like Figure 6 As shown, an active safety control model is trained on the server, and the version of the model is version 1.0. This version 1.0 active safety control model is deployed on the vehicle, that is, the version 1.0 vehicle-side model. In the actual autonomous driving process, the vehicle will run this version 1.0 vehicle-side model for active safety control. After running for a period of time, the operation data generated by this version 1.0 vehicle-side model can be obtained, and new model training data can be generated based on the operation data. Then, using the new model training data, the active safety control model of version 1.0 is trained on the server to obtain the active safety control model of version 2.0, and then the active safety control model of version 2.0 is deployed on the vehicle, that is, the version 2.0 vehicle-side model. In the actual autonomous driving process, the vehicle will run this version 2.0 vehicle-side model for active safety control. The acquisition method of each version of the active safety control model after version 2.0 is the same as the acquisition method of version 2.0, which will not be repeated here.
[0159] See attached Figure 7 , Figure 7 The following table shows the data types used in different training stages. The main stages of model training include the cold start stage, the growth stage, and the emergence stage. Figure 7 As shown in the figure, in the cold start phase, FP valid data is mainly used as training data to train the active safety control model. After this phase, the amount of FP valid data is gradually reduced, and the amount of TP / FN valid data is increased. FP (False Positive) valid data is data whose predicted result is a positive sample but is actually a negative sample; TP (True Positive) valid data is data whose predicted result is a positive sample and is actually a positive sample; FN (False Negative) valid data is data whose predicted result is a negative sample but is actually a positive sample.
[0160] See attached Figure 8 , Figure 8 The example shows the change in mileage of the active safety control model's false triggering of automatic emergency braking and the change in the recall rate of accident scenarios (scenarios that require the activation or triggering of the automatic emergency system) at different training stages. The main stages of model training include the cold start stage, the growth stage, and the emergence stage. Figure 8 Versions 1.0 to 3.0 are active safety control models trained in the cold start phase, versions 4.0 to 7.0 are active safety control models trained in the growth phase, and version 8.0 and subsequent versions are active safety control models trained in the emergence phase.
[0161] Figure 8 The mileage is the vehicle's mileage when the active safety control model is actually running. The false trigger mileage is the vehicle's mileage when the automatic emergency braking is falsely activated. The active safety control model is verified during the actual operation of the vehicle. The mileage of the vehicle in this process is the verification mileage. Figure 8 The recall in is the recall rate.
[0162] like Figure 8 As shown in the figure, when the 1.0 version of the active safety control model is run on the vehicle, the automatic emergency brake will be falsely activated once every 0.6 km of vehicle travel. However, with the continuous upgrade of the model, the false trigger mileage is constantly increasing. When the 11.0 version of the active safety control model is run on the vehicle, the automatic emergency brake will be falsely activated once every 20wkm of vehicle travel. The safety of the automatic emergency braking strategy has been greatly improved. In addition, with the continuous increase in verification mileage, the recall rate of accident scenes is also increasing. When the verification mileage reaches more than 20000wkm, the recall rate of accident scenes can reach 70%.
[0163] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be executed in such an order, and they can be executed simultaneously (in parallel) or in other orders. These adjusted schemes are equivalent to the technical schemes described in this application, and therefore will also fall within the scope of protection of this application.
[0164] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code.
[0165] Another aspect of the present application also provides a computer-readable storage medium.
[0166] In an embodiment of a computer-readable storage medium according to the present application, the computer-readable storage medium may be configured to store a program for executing the active safety control method of a vehicle of the above-mentioned method embodiment, and the program may be loaded and run by a processor to implement the active safety control method of the above-mentioned vehicle. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium may be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.
[0167] Another aspect of the present application also provides a smart device.
[0168] In an embodiment of an intelligent device according to the present application, the intelligent device may include at least one processor; and a memory connected to the at least one processor in communication; wherein a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the method described in any of the above embodiments is implemented. The intelligent device described in the present application may include a driving device, a smart car, a robot, and the like. Fig. 9 , Fig. 9 FIG. 2 exemplarily shows that the memory 21 and the processor 22 are communicatively connected via a bus.
[0169] In some embodiments of the present application, the smart device may further include at least one sensor for sensing information. The sensor is communicatively connected to any type of processor mentioned in the present application. Optionally, the smart device may further include an autonomous driving system for guiding the smart device to drive itself or assist in driving. The processor communicates with the sensor and / or the autonomous driving system to complete the method described in any of the above embodiments.
[0170] So far, the technical solution of the present application has been described in conjunction with an embodiment shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.
Claims
1. A vehicle active safety control method, characterized in that: The vehicle is provided with a sensor, and the method comprises: Acquire a data frame sequence, the data frame sequence including frame information of T data frames, T>1, the data frame is a data frame collected by the sensor, the frame information includes environmental perception features of the environment where the vehicle is located in the data frame and vehicle state features of the vehicle at a time corresponding to the data frame, and the frame information of the first to Tth data frames in the data frame sequence are arranged in order from the first to the last according to the time corresponding to the data frame; the environmental perception features include obstacle features and road signs of obstacles in the environment, and the vehicle state features include vehicle state information; Inputting the data frame sequence into an active safety control model for processing to obtain an active safety control decision at a target time, where the target time is the time corresponding to the Tth data frame; performing active safety control on the vehicle according to the active safety control decision; in, The active safety control model is trained based on samples of the data frame sequence and their annotation information, wherein the annotation information includes the active safety control decision at the target moment; the active safety control model includes a first encoding module, a second encoding module and a first decoding module; The first encoding module is configured to: perform encoding processing on the data frame sequence to obtain a motion information sequence of a target obstacle, wherein the target obstacle is an obstacle in the Tth data frame, and the motion information sequence includes motion information of the target obstacle at a corresponding moment of each data frame in the data frame sequence; The second encoding module is configured to: encode the motion information sequence of the target obstacle, the state information sequence of the vehicle, and the road sign of the environment where the vehicle is located to obtain an environment encoding result, wherein the environment encoding result includes the encoding information of the target obstacle, the vehicle, and the road sign, and the state information sequence includes the state information of the vehicle at the corresponding time of each data frame in the data frame sequence; The first decoding module is configured to: use the vehicle's coded information as the Query feature of the attention mechanism, use the environment coding results as the Key feature and Value feature of the attention mechanism respectively, and perform cross-attention processing on the vehicle's coded information and the environment coding results to obtain the active safety control decision at the target moment.
2. The method according to claim 1, characterized in that: The method further comprises: The data frame sequence is input into the active safety control model for processing to obtain the attribute information of the target obstacle at the target moment and the future trajectory of the target obstacle after the target moment, wherein the target obstacle is the obstacle in the Tth data frame.
3. The method according to claim 2, characterized in that The attribute information of the target obstacle includes the latest braking time based on the safety target; The latest braking time is the latest time when the vehicle starts braking, and the safety goal is to prevent the vehicle from colliding with the target obstacle.
4. The method according to claim 3, characterized in that The active safety control decision includes an automatic emergency braking decision, and the method further includes: The automatic emergency braking decision is evaluated according to the latest braking time.
5. The method according to claim 1, characterized in that The active safety control decision includes an automatic emergency braking decision, and the labeling information is obtained in the following manner: Acquire attribute information of a target obstacle, the attribute information including a latest braking time based on a safety goal, the target obstacle is an obstacle in the Tth data frame in the samples of the data frame sequence, the latest braking time is the latest time when the vehicle starts braking, and the safety goal is to prevent the vehicle from colliding with the target obstacle; Determining an active safety control decision at the target moment according to the latest braking time; The annotation information is obtained according to the active safety control decision at the target moment.
6. The method according to claim 1, characterized in that There are multiple sensors, and the data frame sequence is acquired, including: Acquire a plurality of data frame sequences, wherein the plurality of data frame sequences correspond one-to-one to a plurality of sensors; The frame information of the data frames in the data frame sequence comes from the data frames collected by the sensor corresponding to the data frame sequence.
7. The method according to claim 1, characterized in that The second encoding module is configured to: Self-attention processing is performed on the motion information sequence of the target obstacle, the state information sequence of the vehicle, and the road signs of the environment to obtain the environment encoding result.
8. The method according to claim 1, characterized in that The second encoding module includes a first encoding unit and a second encoding unit; The first encoding unit is configured to: use the first motion information in the motion information sequence as the Query feature of the attention mechanism, use the second motion information in the motion information sequence as the Key feature and the Value feature of the attention mechanism, perform cross-attention processing on the first motion information and the second motion information, and obtain the encoded motion information of the target obstacle, wherein the first motion information is the motion information at the time corresponding to the Tth data frame in the motion information sequence, and the second motion information is the motion information at the time corresponding to the 1st to T-1st data frames; The second encoding unit is configured to: use the first state information in the state information sequence as the Query feature of the attention mechanism, and use the second state information in the state information sequence as the Key feature and Value feature of the attention mechanism, perform cross-attention processing on the first state information and the second state information, and obtain the encoded state information of the vehicle, wherein the first state information is the state information at the time corresponding to the Tth data frame in the state information sequence, and the second state information is the state information at the time corresponding to the 1st to T-1th data frames.
9. The method according to claim 8, characterized in that The second encoding module is configured to: The coded motion information of the target obstacle, the coded state information of the vehicle and the road signs of the environment are coded to obtain an environment coding result.
10. The method according to claim 1, characterized in that The first decoding module is configured to: use the vehicle's coding information as the Query feature of the attention mechanism, use the environment coding result as the Key feature and Value feature of the attention mechanism respectively, perform cross-attention processing on the vehicle's coding information and the environment coding result, and obtain the future trajectory of the vehicle after the target moment.
11. The method according to claim 1, characterized in that: The active safety control model includes a second decoding module, and the second decoding module is configured to: The encoding information of the target obstacle is used as the query feature of the attention mechanism, and the environment encoding result is used as the key feature and value feature of the attention mechanism respectively. The encoding information of the target obstacle and the environment encoding result are cross-attention processed to obtain the attribute information of the target obstacle at the target moment and the future trajectory of the target obstacle after the target moment.
12. The method according to any one of claims 1, 7 to 11, characterized in that: The active safety control model is a model based on the Transformer network.
13. A smart device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; Wherein, a computer program is stored in the memory, and when the computer program is executed by the at least one processor, the active safety control method of the vehicle according to any one of claims 1 to 12 is implemented.
14. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the active safety control method for a vehicle according to any one of claims 1 to 12.
Citation Information
Cited By
A convex hull model-based robot obstacle perception and autonomous obstacle avoidance method
CN119440000B
