Method, device and vehicle for training and using prediction model in autonomous driving vehicle
Through end-to-end prediction model training, combined with target detection and intention prediction models, intersection driving strategies are generated, which solves the problems of autonomous vehicles' strong dependence on traffic light information and insufficient accuracy of high-precision maps, and improves recognition accuracy and detection efficiency. , enhanced driving safety.
Patent Information
- Application Number
- CN202410760362.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-13
AI Technical Summary
In the identification of autonomous vehicles at intersections, existing prediction models are highly dependent on traffic light information, and the accuracy and update frequency of three-dimensional high-precision maps are insufficient, resulting in inaccurate identification and failed decision-making.
Adopting an end-to-end prediction model, by training the target detection model and intention prediction model, using intersection images and feature fusion images to generate driving strategies, reducing dependence on detailed traffic light information and high-precision maps, and combining the correlation of multiple driving strategies Set up the prediction module.
It improves the recognition accuracy and detection efficiency of driving strategies, reduces the difficulty of detection, saves the cost of labeling and maintenance of high-precision maps, and enhances the driving safety of autonomous vehicles in complex environments.
Smart Images

Figure CN118323197B
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and in particular to a method, device and vehicle for training and using a prediction model in an autonomous driving vehicle. Background Art
[0002] When an autonomous vehicle drives to an intersection, the prediction model deployed in the autonomous vehicle needs to identify the driving environment of the intersection, generate decision instructions based on the identification results and send them to the execution module, which guides the actual driving of the autonomous vehicle.
[0003] In the related technology, the prediction model strongly relies on traffic lights to identify the driving environment of the intersection. Specifically, the cameras deployed in the autonomous driving vehicle will collect image information around the intersection from different angles. These images include not only the road conditions and vehicle positions, but also key traffic lights, road signs and other important elements, providing valuable visual data for subsequent detection and decision-making. Then, the collected images are detected using target detection algorithms, such as the YOLO series, to identify the traffic light information such as the position, color, direction and light type of each traffic light in the image. Then, the detected traffic light information is matched with the traffic light position in the pre-built three-dimensional high-precision map. After successful matching, the color, light type and other important information of the traffic light to be seen in the driving direction of the autonomous driving vehicle can be obtained. Finally, based on the state of the traffic light obtained by matching, combined with the complex decision rules pre-set in the prediction model, it can be inferred whether the autonomous driving vehicle can make action decisions such as going straight, turning left, turning right or stopping in the current intersection environment. These decision rules are determined by multiple factors such as traffic regulations and safe distances, and require developers to carefully design and debug them based on actual conditions to ensure the accuracy of decisions and vehicle driving safety.
[0004] When identifying the driving environment at an intersection, the target detection algorithm is not only required to have excellent detection accuracy, but also to be highly robust and able to adapt to various complex environmental conditions, such as direct sunlight, dark and humid weather, haze and other adverse weather conditions. In addition, the target detection algorithm is required to be able to reliably identify traffic lights of various shapes, sizes, and directions, including pedestrian lights, car lights, arrow lights and other types. This places high demands on the design of the target detection algorithm and the quality and quantity of training data. When the accuracy of the three-dimensional high-precision map is not high and the update frequency is low, matching failures or even mismatches are prone to occur. In addition, the decision rules set in the prediction model cannot cover all driving environments, which results in the prediction model being unable to generate accurate decision instructions, resulting in the inability of the autonomous driving vehicle to drive normally. Summary of the invention
[0005] The present application provides a method, device and vehicle for training and using a prediction model in an autonomous driving vehicle, which is used to solve the problem of inaccurate recognition of the driving environment at an intersection and inability to provide decision guidance. The technical solution is as follows:
[0006] According to a first aspect of the present application, a method for training a prediction model in an autonomous driving vehicle is provided, the method comprising:
[0007] Obtaining a first training set and a second training set, wherein the training samples in the first training set include an intersection image and a first label, and the training samples in the second training set include an intersection feature fusion image and a second label, wherein the first label is used to annotate the real target information of each target in the intersection image, and the second label is used to annotate the real driving strategy, wherein the intersection feature fusion image is an image obtained by fusing the intersection image and the real target information, and the real driving strategy is a correct driving strategy selected from a plurality of driving strategies based on the driving environment of the intersection shown in the intersection image;
[0008] Creating a prediction model, the prediction model comprising a target detection model and an intention prediction model, the intention prediction model comprising a prediction module for predicting a probability value of each driving strategy, and the prediction module is set based on the correlation between the multiple driving strategies;
[0009] Training the object detection model using the intersection images and the first labels in the first training set;
[0010] The intention prediction model is trained using the intersection feature fusion image and the second label in the second training set to obtain a trained prediction model, and the trained prediction model is used to predict the driving strategy of the autonomous driving vehicle based on the input intersection image.
[0011] In a possible implementation, the method further includes:
[0012] Generate a single-channel binary image according to the real target information of the intersection image;
[0013] The three-channel intersection image and the single-channel binary image are spliced to obtain a four-channel intersection feature fusion image.
[0014] In a possible implementation, the training of the object detection model using the intersection image and the first label in the first training set includes:
[0015] In each round of training, the target detection model is used to process the intersection images in the first training set to obtain predicted target information; loss calculation is performed on the predicted target information and the corresponding real target information according to a first loss function, and the target detection model is updated according to the loss calculation.
[0016] In a possible implementation, the training of the intention prediction model by using the intersection feature fusion image and the second label in the second training set includes:
[0017] In each round of training, the intention prediction model is used to process the intersection feature fusion image in the second training set to obtain a predicted driving strategy; the loss of the predicted driving strategy and the corresponding actual driving strategy is calculated according to the second loss function, and the intention prediction model is updated according to the loss calculation.
[0018] In a possible implementation, the distribution function and hyperparameters in the prediction module are set based on the correlation between the multiple driving strategies.
[0019] According to a second aspect of the present application, a method for using a prediction model in an autonomous driving vehicle is provided, the method comprising:
[0020] Obtaining intersection images collected by the autonomous driving vehicle at the intersection;
[0021] Obtaining a pre-trained prediction model, wherein the prediction model is trained using the training method described above;
[0022] Processing the intersection image using the prediction model to obtain a probability value for each driving strategy;
[0023] The driving strategy with the largest probability value is determined as the predicted driving strategy, and the predicted driving strategy is used to indicate the driving strategy of the automatic driving vehicle at the intersection.
[0024] According to a third aspect of the present application, a training device for a prediction model in an autonomous driving vehicle is provided, the device comprising:
[0025] a training set acquisition module, used to acquire a first training set and a second training set, wherein the training samples in the first training set include an intersection image and a first label, and the training samples in the second training set include an intersection feature fusion image and a second label, wherein the first label is used to annotate the real target information of each target in the intersection image, and the second label is used to annotate the real driving strategy, wherein the intersection feature fusion image is an image obtained by fusing the intersection image and the real target information, and the real driving strategy is a correct driving strategy selected from a plurality of driving strategies based on the driving environment of the intersection shown in the intersection image;
[0026] A model creation module, used to create a prediction model, the prediction model includes a target detection model and an intention prediction model, the intention prediction model includes a prediction module for predicting the probability value of each driving strategy, and the prediction module is set based on the correlation between the multiple driving strategies;
[0027] A first training module, used to train the object detection model using the intersection images and the first labels in the first training set;
[0028] The second training module is used to train the intention prediction model using the intersection feature fusion image and the second label in the second training set to obtain a trained prediction model, and the trained prediction model is used to predict the driving strategy of the autonomous driving vehicle based on the input intersection image.
[0029] According to a fourth aspect of the present application, a device for using a prediction model in an autonomous driving vehicle is provided, the device comprising:
[0030] An image acquisition module, used to acquire intersection images collected by the autonomous driving vehicle at the intersection;
[0031] A model acquisition module, used to acquire a pre-trained prediction model, wherein the prediction model is trained using the training method described above;
[0032] A probability calculation module, used to process the intersection image using the prediction model to obtain a probability value of each driving strategy;
[0033] A strategy determination module is used to determine the driving strategy with the largest probability value as the predicted driving strategy, and the predicted driving strategy is used to indicate the driving strategy of the autonomous driving vehicle at the intersection.
[0034] According to a fifth aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction is stored. The at least one instruction is loaded and executed by a processor to implement the training method of the prediction model in the autonomous driving vehicle as described above, or the at least one instruction is loaded and executed by a processor to implement the method of using the prediction model in the autonomous driving vehicle as described above.
[0035] According to a sixth aspect of the present application, an autonomous driving vehicle is provided, the autonomous driving vehicle comprising: a device for using the prediction model in the autonomous driving vehicle as described above.
[0036] The beneficial effects of the technical solution provided by this application include at least:
[0037] By training an end-to-end prediction model, the corresponding driving strategy can be generated directly based on the global information in the intersection image. There is no need to identify detailed information such as the color, direction, and light type of traffic lights, nor is there any need to rely on high-precision maps and complex manually designed rules. This can save a lot of high-precision map annotation and maintenance costs, reduce detection difficulty, and improve detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 It is a schematic diagram of the structure of a prediction model;
[0040] Figure 2 is a flowchart of a method for training a prediction model in an autonomous driving vehicle provided by one embodiment of the present application;
[0041] Figure 3 is a flowchart of a method for using a prediction model in an autonomous driving vehicle provided by one embodiment of the present application;
[0042] Figure 4 is a schematic diagram of using the prediction model when the traffic light is blocked;
[0043] Figure 5 is a schematic diagram of using the prediction model when the traffic light is blocked;
[0044] Figure 6 It is a schematic diagram of using the prediction model when the traffic light is reflected by sunlight;
[0045] Figure 7 It is a structural block diagram of a training device for a prediction model in an autonomous driving vehicle provided by an embodiment of the present application;
[0046] Figure 8 This is a structural block diagram of a device for using a prediction model in an autonomous driving vehicle provided by one embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0048] This application designs an end-to-end prediction model, which adopts an end-to-end deep learning architecture. Its function is to accurately identify and locate targets at intersections, such as vehicles, pedestrians, traffic signs, etc., based on the collected images, and can also simultaneously predict all driving strategies that the autonomous driving vehicle can execute at the intersection. The driving strategies mentioned here include at least one of straight, left, right, and U-turn, and may also include other strategies not mentioned here, which are not limited in this embodiment.
[0049] like Figure 1 As shown in the figure, the prediction model includes the target detection model and the intention prediction model. The structures and input and output data of these two models are described below:
[0050] (1) The target detection model includes three parts: backbone, neck and head. The main function of the backbone is to extract features, the main function of the neck is to fuse multi-scale feature information, and the main function of the head is to output predicted target information. The specific structures of the backbone, neck and head can be set according to actual business needs, and this embodiment does not limit this.
[0051] The input of the target detection model is an intersection image, and the output is the target information of each target object in the intersection image, including: target position (Reg), target confidence (Obj), and target category (Cls).
[0052] For example, Figure 1 In the first row of detection results, [3008, 859, 3101, 1027] represent the coordinates of the upper left and lower right corners of a detection box, which are used to locate the position of the target object in the intersection image. [0] represents the category of the target object, and 0 represents the category of traffic lights. [0.922] represents the confidence that the detection box is a target object. The closer the value is to 1, the more likely it is a target object.
[0053] The role of the target detection model is to quickly and accurately identify and locate target objects in intersection images, such as vehicles, pedestrians, traffic signs, etc.
[0054] (2) The intention prediction model includes two parts: a backbone and a head. The main function of the backbone is to extract features, and the main function of the head is to output the probability value of each driving strategy. The specific structure of the backbone and the head can be set according to actual business needs, and this embodiment does not limit this.
[0055] The input of the intention prediction model is an intersection feature fusion image, which is an image obtained by fusing the intersection image and target information. The output is the probability value of each driving strategy.
[0056] The intention prediction module predicts all driving strategies that the autonomous vehicle can execute at the intersection based on the current traffic environment. The intention prediction model can accurately fuse images based on intersection features, associate key intersection information such as vehicles traveling in the same direction, vehicles traveling sideways, and traffic lights, and determine whether the autonomous vehicle can go straight, turn left, turn around, or turn right in the current situation based on the comprehensive information.
[0057] The following is an explanation of the training process of the prediction model.
[0058] like Figure 2 As shown, it shows a method flow chart of a method for training a prediction model in an autonomous driving vehicle provided by an embodiment of the present application. The method for training a prediction model in an autonomous driving vehicle may include:
[0059] Step 201, obtaining a first training set and a second training set, wherein the training samples in the first training set include an intersection image and a first label, and the training samples in the second training set include an intersection feature fusion image and a second label, wherein the first label is used to annotate the real target information of each target in the intersection image, and the second label is used to annotate the real driving strategy, and the intersection feature fusion image is an image obtained by fusing the intersection image and the real target information, and the real driving strategy is a correct driving strategy selected from a plurality of driving strategies based on the driving environment of the intersection shown in the intersection image.
[0060] The training set in this embodiment includes a first training set and a second training set, the first training set is used to train the target detection model, and the second training set is used to train the intention prediction model. The intersection image in the first training set is an image obtained by photographing the intersection, and the intersection feature fusion module in the second training set is obtained by fusing the real target information and the intersection image. The label is manually annotated and is used to represent information related to the intersection image.
[0061] For the sake of distinction, in this embodiment, the labels in the first training set are referred to as first labels, and the labels in the second training set are referred to as second labels.
[0062] The first label is the real target information of each target object in the intersection image. The target objects mentioned here may include vehicles, pedestrians, traffic signs, etc. The real target information may include target position (Reg), target confidence (Obj), target category (Cls), etc.
[0063] The second label is the actual driving strategy corresponding to the intersection image. The actual driving strategy here can be one of straight, left, right, and U-turn.
[0064] When generating the intersection feature fusion image, the target information needs to be fused with the intersection image. The purpose of this step is to fuse the perceived result with the original image so that the intention prediction model can pay more attention to the target object information in the image rather than other information in the image (such as tall buildings and trees, which are difficult to help the autonomous vehicle determine whether to pass this intersection).
[0065] Specifically, a single-channel binary image can be generated based on the real target information of the intersection image; the three-channel intersection image and the single-channel binary image are spliced to obtain a four-channel intersection feature fusion image. The grayscale value of the foreground area (with the target object) in the binary image can be set to 255, and the grayscale value of the background area can be set to 0, such as Figure 1 shown.
[0066] Step 202, creating a prediction model, the prediction model includes a target detection model and an intention prediction model, the intention prediction model includes a prediction module for predicting the probability value of each driving strategy, and the prediction module is set based on the correlation between multiple driving strategies.
[0067] The intention prediction model is also provided with a prediction module, which is used to predict the probability value of each driving strategy.
[0068] In the related art, the model only believes the real driving strategy marked in the second label and completely denies other driving strategies. The formula of its prediction module is as follows:
[0069] Where k represents the category, k∈{1,…,K}, x represents the predicted value, y represents the true value, represents the distribution of predicted values, The distribution of the true value is a Dirac distribution, that is, only when k=y, =1, other cases =0. This paradigm easily leads to overfitting of the model and reduces the generalization ability. Although the labels are manually annotated with a very high accuracy, there will be a small number of mislabeling. In order to make the intent prediction model more robust, we modified the prediction module. The formula of the new prediction module is as follows:
[0070] in, represents the new predicted value distribution, is a hyperparameter used to control the degree of label smoothing, and its value range satisfies 0< <1, The larger it is, the smoother the label is. u(k) represents a certain distribution, such as uniform distribution, Gaussian distribution, etc. When u(k) represents uniform distribution, u(k)=1 / K, and the corresponding formula of the new prediction module is as follows:
[0071] To more intuitively understand the changes in the distribution of predicted values before and after the change, let's take an example: y=3, k=4, =0.1, then: {0, 0, 1, 0} ={0.025, 0.025, 0.925, 0.025}
[0072] The distribution function and hyperparameters in the prediction module are set based on the correlation between multiple driving strategies to make the prediction model more suitable for the application scenario of the intersection. For example, in the real world intersection, left turn is often mutually exclusive with right turn and straight driving, and is associated with U-turn. When the true value is left turn, the probability value of U-turn with higher correlation can be given a larger value than the mutually exclusive probability value.
[0073] Step 203: Train the object detection model using the intersection images and the first labels in the first training set.
[0074] Specifically, using the intersection images in the first training set and the first label to train the target detection model may include: in each round of training, using the target detection model to process the intersection images in the first training set to obtain predicted target information; performing loss calculation on the predicted target information and the corresponding real target information according to the first loss function, and updating the target detection model according to the loss calculation. The first loss function is Loss=L reg +L obj +L cls , L reg Represents the loss function of the target position, L obj Represents the loss function of target confidence, L cls Denotes the loss function for the target class.
[0075] Step 204, using the intersection feature fusion image and the second label in the second training set to train the intention prediction model to obtain a trained prediction model, and the trained prediction model is used to predict the driving strategy of the autonomous driving vehicle based on the input intersection image.
[0076] Specifically, using the intersection feature fusion image and the second label in the second training set to train the intention prediction model may include: in each round of training, using the intention prediction model to process the intersection feature fusion image in the second training set to obtain a predicted driving strategy; calculating the loss between the predicted driving strategy and the corresponding actual driving strategy according to the second loss function, and updating the intention prediction model according to the loss calculation. The second loss function is Loss = L straight +L left +L right +L uturn , L straight represents the loss function for straight line, L left represents the loss function for turning left, L right represents the loss function for right turn, L uturn represents the loss function of U-turn.
[0077] To summarize, the training method of the prediction model in the autonomous driving vehicle provided in the embodiment of the present application can generate the corresponding driving strategy directly according to the global information in the intersection image by training an end-to-end prediction model. It is no longer necessary to identify the color, direction, light type and other detailed information of the traffic lights, and it is no longer necessary to rely on high-precision maps and manually designed complex rules. It can save a lot of high-precision map annotation and maintenance costs, reduce the detection difficulty and improve the detection efficiency.
[0078] The following is an explanation of how the prediction model is used.
[0079] like Figure 3 As shown, it shows a flow chart of a method for using a prediction model in an autonomous driving vehicle provided by an embodiment of the present application. The method for using a prediction model in an autonomous driving vehicle may include:
[0080] Step 301, obtaining an intersection image collected by the autonomous driving vehicle at the intersection.
[0081] Autonomous vehicles use high-resolution cameras installed on the vehicle to collect real-time intersection images, which include key information such as traffic lights, vehicles, pedestrians, etc. High-quality images enable autonomous vehicles to perceive at a greater distance and are the basis for ensuring the accuracy of subsequent processing links.
[0082] Step 302: Obtain a pre-trained prediction model.
[0083] The prediction model uses Figure 2 It is obtained by training using the training method.
[0084] Step 303: Process the intersection image using the prediction model to obtain the probability value of each driving strategy.
[0085] In this embodiment, the intersection image is first processed using the target detection model to obtain predicted target information; the predicted target information and the intersection image are then fused to obtain an intersection feature fusion image; finally, the intersection feature fusion image is processed using the intention prediction model to obtain the probability value of each driving strategy.
[0086] Step 304: determine the driving strategy with the largest probability value as the predicted driving strategy, and the predicted driving strategy is used to indicate the driving strategy of the autonomous driving vehicle at the intersection.
[0087] The autonomous driving vehicle can match the driving strategy related to the current driving direction according to the probability values of various driving strategies given by the intention prediction model, and send the driving strategy to the execution module to guide the actual driving of the autonomous driving vehicle.
[0088] In this embodiment, the prediction model can autonomously learn to extract key information from intersection images and directly map the intersection images to the traffic actions that need to be performed. There is no need to manually design complex rules or processes, thereby realizing intelligent traffic decisions for autonomous driving at intersections.
[0089] To summarize, the method for using the prediction model in an autonomous driving vehicle provided in the embodiment of the present application, by training an end-to-end prediction model, can directly generate a corresponding driving strategy based on the global information in the intersection image. There is no need to identify detailed information such as the color, direction, and light type of traffic lights, nor is there any need to rely on high-precision maps and manually designed complex rules. This can save a lot of high-precision map annotation and maintenance costs, reduce detection difficulty, and improve detection efficiency.
[0090] like Figure 4 As shown, the traffic light information at the intersection is blocked by a large truck. The perception + matching method can no longer make predictions and judgments, which can easily lead to safety hazards. The prediction model in this application can not only rely on traffic lights, but also make judgments based on the horizontal large truck to determine whether the current intersection prohibits straight driving / left turning / U-turning.
[0091] like Figure 5 As shown, the traffic light information at the intersection is blocked by the truck. The perception + matching method can no longer make predictions and judgments, which may easily lead to safety hazards. The prediction model in this application can not only rely on traffic lights, but also make judgments based on the driving direction of the truck to determine whether the current intersection can go straight / turn left / turn right / turn around.
[0092] like Figure 6 As shown, since the traffic lights are reflected by sunlight, it is impossible to distinguish the color and shape of the traffic lights. The perception + matching method is difficult to predict and judge, which is prone to safety hazards. The prediction model in this application can judge whether the current intersection prohibits straight driving / left turning / U-turn according to the lateral driving direction of the car.
[0093] like Figure 7 As shown, it shows a structural block diagram of a training device for a prediction model in an autonomous driving vehicle provided by an embodiment of the present application. The training device for a prediction model in an autonomous driving vehicle may include:
[0094] The training set acquisition module 710 is used to acquire a first training set and a second training set, wherein the training samples in the first training set include an intersection image and a first label, and the training samples in the second training set include an intersection feature fusion image and a second label, wherein the first label is used to annotate the real target information of each target in the intersection image, and the second label is used to annotate the real driving strategy, and the intersection feature fusion image is an image obtained by fusing the intersection image and the real target information, and the real driving strategy is a correct driving strategy selected from a plurality of driving strategies based on the driving environment of the intersection shown in the intersection image;
[0095] A model creation module 720, which is used to create a prediction model, wherein the prediction model includes a target detection model and an intention prediction model, wherein the intention prediction model includes a prediction module for predicting the probability value of each driving strategy, and the prediction module is set based on the correlation between multiple driving strategies;
[0096] A first training module 730, used to train the object detection model using the intersection images and the first labels in the first training set;
[0097] The second training module 740 is used to train the intention prediction model using the intersection feature fusion image and the second label in the second training set to obtain a trained prediction model. The trained prediction model is used to predict the driving strategy of the autonomous driving vehicle based on the input intersection image.
[0098] In an optional embodiment, the training set acquisition module 710 is further used to:
[0099] Generate a single-channel binary image based on the real target information of the intersection image;
[0100] The three-channel intersection image is spliced with the single-channel binary image to obtain a four-channel intersection feature fusion image.
[0101] In an optional embodiment, the first training module 730 is further configured to:
[0102] In each round of training, the target detection model is used to process the intersection images in the first training set to obtain predicted target information; the loss of the predicted target information and the corresponding real target information is calculated according to the first loss function, and the target detection model is updated according to the loss calculation.
[0103] In an optional embodiment, the second training module 740 is further configured to:
[0104] In each round of training, the intention prediction model is used to process the intersection feature fusion image in the second training set to obtain the predicted driving strategy; the loss of the predicted driving strategy and the corresponding actual driving strategy is calculated according to the second loss function, and the intention prediction model is updated according to the loss calculation.
[0105] In an optional embodiment, the distribution function and hyperparameters in the prediction module are set based on the correlation between multiple driving strategies.
[0106] To summarize, the training device for the prediction model in the autonomous driving vehicle provided in the embodiment of the present application can generate the corresponding driving strategy directly according to the global information in the intersection image by training an end-to-end prediction model. It is no longer necessary to identify the color, direction, light type and other detailed information of the traffic lights, and it is no longer necessary to rely on high-precision maps and manually designed complex rules. It can save a lot of high-precision map annotation and maintenance costs, reduce the detection difficulty and improve the detection efficiency.
[0107] like Figure 8 As shown, it shows a structural block diagram of a device for using a prediction model in an autonomous driving vehicle provided by an embodiment of the present application. The device for using a prediction model in an autonomous driving vehicle may include:
[0108] An image acquisition module 810 is used to acquire an intersection image collected by the autonomous driving vehicle at the intersection;
[0109] Model acquisition module 820 is used to acquire a pre-trained prediction model. The prediction model adopts Figure 2 The training method shown is used for training;
[0110] The probability calculation module 830 is used to process the intersection image using the prediction model to obtain the probability value of each driving strategy;
[0111] The strategy determination module 840 is used to determine the driving strategy with the largest probability value as the predicted driving strategy, and the predicted driving strategy is used to indicate the driving strategy of the autonomous driving vehicle at the intersection.
[0112] In an optional embodiment, the distribution function and hyperparameters in the prediction module are set based on the correlation between multiple driving strategies.
[0113] To summarize, the device for using the prediction model in the autonomous driving vehicle provided in the embodiment of the present application can generate a corresponding driving strategy directly based on the global information in the intersection image by training an end-to-end prediction model. It is no longer necessary to identify detailed information such as the color, direction, and light type of traffic lights, and it is no longer necessary to rely on high-precision maps and manually designed complex rules. This can save a lot of high-precision map annotation and maintenance costs, reduce detection difficulty, and improve detection efficiency.
[0114] An embodiment of the present application provides a computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the training method of the prediction model in the autonomous driving vehicle as described above, or the at least one instruction is loaded and executed by a processor to implement the method of using the prediction model in the autonomous driving vehicle as described above.
[0115] An embodiment of the present application provides an autonomous driving vehicle, which includes a device for using the prediction model in any of the above-mentioned autonomous driving vehicles.
[0116] It should be noted that: the training and use device of the prediction model in the autonomous driving vehicle provided in the above embodiment only uses the division of the above functional modules as an example when training and using the prediction model in the autonomous driving vehicle. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the training and use device of the prediction model in the autonomous driving vehicle is divided into different functional modules to complete all or part of the functions described above. In addition, the training and use device of the prediction model in the autonomous driving vehicle provided in the above embodiment and the training and use method of the prediction model in the autonomous driving vehicle belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0117] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0118] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.
Claims
1. A method for training a prediction model in an autonomous driving vehicle, characterized in that: The method comprises: Obtaining a first training set and a second training set, wherein the training samples in the first training set include an intersection image and a first label, and the training samples in the second training set include an intersection feature fusion image and a second label, wherein the first label is used to annotate the real target information of each target in the intersection image, and the second label is used to annotate the real driving strategy, wherein the intersection feature fusion image is an image obtained by fusing the intersection image and the real target information, and the real driving strategy is a correct driving strategy selected from a plurality of driving strategies based on the driving environment of the intersection shown in the intersection image; Creating a prediction model, the prediction model comprising a target detection model and an intention prediction model, the intention prediction model comprising a prediction module for predicting a probability value of each driving strategy, and the prediction module is set based on the correlation between the multiple driving strategies; Training the object detection model using the intersection images and the first labels in the first training set; Using the intersection feature fusion image and the second label in the second training set to train the intention prediction model to obtain a trained prediction model, wherein the trained prediction model is used to predict the driving strategy of the autonomous driving vehicle based on the input intersection image; The training of the target detection model using the intersection images and the first label in the first training set includes: in each round of training, using the target detection model to process the intersection images in the first training set to obtain predicted target information; performing loss calculation on the predicted target information and the corresponding real target information according to a first loss function, and updating the target detection model according to the loss calculation; The intention prediction model is trained using the intersection feature fusion image and the second label in the second training set, including: in each round of training, the intersection feature fusion image in the second training set is processed using the intention prediction model to obtain a predicted driving strategy; the loss of the predicted driving strategy and the corresponding actual driving strategy is calculated according to a second loss function, and the intention prediction model is updated according to the loss calculation.
2. The method for training a prediction model in an autonomous driving vehicle according to claim 1, characterized in that: The method further comprises: Generate a single-channel binary image according to the real target information of the intersection image; The three-channel intersection image and the single-channel binary image are spliced to obtain a four-channel intersection feature fusion image.
3. The method for training a prediction model in an autonomous driving vehicle according to claim 1 or 2, characterized in that: The distribution function and hyperparameters in the prediction module are set based on the correlation between the multiple driving strategies.
4. A method for using a prediction model in an autonomous driving vehicle, characterized in that: The method comprises: Obtaining intersection images collected by the autonomous driving vehicle at the intersection; Obtaining a pre-trained prediction model, wherein the prediction model is trained using the training method described in any one of claims 1 to 3; Processing the intersection image using the prediction model to obtain a probability value for each driving strategy; The driving strategy with the largest probability value is determined as the predicted driving strategy, and the predicted driving strategy is used to indicate the driving strategy of the automatic driving vehicle at the intersection.
5. A training device for a prediction model in an autonomous driving vehicle, characterized in that: For implementing the training method according to claim 1, the device comprises: a training set acquisition module, used to acquire a first training set and a second training set, wherein the training samples in the first training set include an intersection image and a first label, and the training samples in the second training set include an intersection feature fusion image and a second label, wherein the first label is used to annotate the real target information of each target in the intersection image, and the second label is used to annotate the real driving strategy, wherein the intersection feature fusion image is an image obtained by fusing the intersection image and the real target information, and the real driving strategy is a correct driving strategy selected from a plurality of driving strategies based on the driving environment of the intersection shown in the intersection image; A model creation module, used to create a prediction model, the prediction model includes a target detection model and an intention prediction model, the intention prediction model includes a prediction module for predicting the probability value of each driving strategy, and the prediction module is set based on the correlation between the multiple driving strategies; A first training module, used to train the object detection model using the intersection images and the first labels in the first training set; The second training module is used to train the intention prediction model using the intersection feature fusion image and the second label in the second training set to obtain a trained prediction model, and the trained prediction model is used to predict the driving strategy of the autonomous driving vehicle based on the input intersection image.
6. A device for using a prediction model in an autonomous driving vehicle, characterized in that: The device comprises: An image acquisition module, used to acquire intersection images collected by the autonomous driving vehicle at the intersection; A model acquisition module, used to acquire a pre-trained prediction model, wherein the prediction model is trained using the training method according to any one of claims 1 to 3; A probability calculation module, used to process the intersection image using the prediction model to obtain a probability value of each driving strategy; A strategy determination module is used to determine the driving strategy with the largest probability value as the predicted driving strategy, and the predicted driving strategy is used to indicate the driving strategy of the autonomous driving vehicle at the intersection.
7. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the training method of the prediction model in the autonomous driving vehicle as described in any one of claims 1 to 3, or the at least one instruction is loaded and executed by the processor to implement the method of using the prediction model in the autonomous driving vehicle as described in claim 4.
8. An autonomous driving vehicle, characterized in that: The autonomous driving vehicle includes: a device for using the prediction model in the autonomous driving vehicle as described in claim 6.
