Method for formulating training data of autonomous driving vehicle, electronic device and medium
By assigning and optimizing weights to the training dataset for the learning-based model of autonomous vehicles, the overfitting problem was solved, the model's performance in different driving scenarios was improved, and the stable operation of the vehicle was ensured.
Patent Information
- Application Number
- CN202310772903.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-06-30
- Filing Date
- 2023-06-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-06-27
AI Technical Summary
The learning-based components in existing autonomous vehicles are prone to overfitting during training, leading to performance degradation, especially poor performance in specific driving scenarios.
Multiple training datasets are assigned to different predefined driving scenarios through the tuner core, and the weights of each dataset are adjusted through an optimization algorithm until the performance of the learning-based model reaches a predetermined threshold.
This effectively avoids overfitting, ensures good performance of the learning-based model in various driving scenarios, and improves the overall driving performance of autonomous vehicles.
Smart Images

Figure CN117312841B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this disclosure generally relate to autonomous vehicles. More specifically, embodiments of this disclosure relate to scene-based training data weighting for learning-based components in autonomous vehicles. Background Technology
[0002] Autonomous driving vehicles (ADVs) can reduce some driving-related tasks for passengers, especially the driver, when operating in automatic mode. When the vehicle is running in automatic mode, onboard sensors can be used to navigate the vehicle to different locations, thus minimizing human-machine interaction or allowing the vehicle to operate without passengers.
[0003] Autonomous vehicles can include rule-based modules to perform various functions, enabling the vehicle to drive autonomously. However, in recent years, learning-based components have begun to be incorporated into these modules, allowing them to learn from historical driving data. Ideally, each of these learning-based components, once trained, should be able to process each driving scenario with equally high-quality performance. To achieve this, the training dataset for learning-based components needs to have the necessary weights so that driving scenarios are not overloaded with training data, which could lead to overfitting and performance degradation. Summary of the Invention
[0004] According to one aspect of the present disclosure, a computer-implemented method for formulating ADV training data for autonomous vehicles is provided, comprising:
[0005] Through the tuner core, multiple training datasets are allocated for training the learning-based model in the autonomous vehicle. Each of the multiple training datasets is assigned to one of the multiple predefined driving scenarios.
[0006] The weights of each training dataset in multiple training datasets are determined using the tuner core; and
[0007] The tuner core optimizes the weights of each dataset in multiple datasets in one or more iterations according to a predetermined algorithm until the performance of the learning-based model reaches a predetermined threshold.
[0008] According to another aspect of the embodiments of this disclosure, a non-transitory computer-readable medium storing instructions that, when executed by a processor of a tuner core, cause the processor to perform the following operations to formulate training data for an autonomous driving vehicle (ADV):
[0009] Multiple training datasets are allocated for training the learning-based model in the autonomous vehicle. Each training dataset is assigned to one of multiple predefined driving scenarios.
[0010] Determine the weights of each training dataset in a set of multiple training datasets; and
[0011] According to a predetermined algorithm, the weights of each dataset in multiple datasets are optimized in one or more iterations until the performance of the learning-based model reaches a predetermined threshold.
[0012] According to one aspect of the present disclosure, an electronic device is provided, comprising:
[0013] Processor; and
[0014] The memory coupled to the processor stores instructions that, when executed by the processor, cause the processor to perform the following operations:
[0015] Multiple training datasets are allocated for training the learning-based model in the autonomous vehicle. Each training dataset is assigned to one of multiple predefined driving scenarios.
[0016] Determine the weights of each training dataset in a set of multiple training datasets; and
[0017] According to a predetermined algorithm, the weights of each dataset in multiple datasets are optimized in one or more iterations until the performance of the learning-based model reaches a predetermined threshold.
[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0019] Embodiments of this disclosure are shown in the accompanying drawings by way of example rather than limitation, wherein similar reference numerals denote similar elements.
[0020] Figure 1 This paper illustrates a framework for adjusting the weights of the training dataset for different scenarios when training a learning-based model in an autonomous vehicle, according to one embodiment.
[0021] Figure 2 An example of initially assigning data points to different driving scenarios is shown according to one embodiment.
[0022] Figure 3An example of a network architecture based on a learning-based model is shown in one embodiment.
[0023] Figure 4 A machine learning platform for training and evaluating learning-based models is shown according to one embodiment.
[0024] Figure 5 An example of a method is shown. Figure 4 The image shows an example of a graphical user interface for data acquisition by a machine learning platform.
[0025] Figure 6 Examples of autonomous driving simulation platforms according to some embodiments of the present invention are shown.
[0026] Figure 7 This is a flowchart of the process for developing training data for autonomous vehicles (ADVs).
[0027] Figure 8 This is a block diagram of an autonomous vehicle according to one embodiment.
[0028] Figure 9 This is a block diagram illustrating a control system for an autonomous vehicle according to one embodiment.
[0029] Figure 10 This is a block diagram illustrating an example of an autonomous driving system for an autonomous vehicle according to one embodiment. Specific Implementation
[0030] Various embodiments and aspects of this disclosure will be described with reference to the following details, and the accompanying drawings will illustrate various embodiments. The following description and drawings are illustrative and should not be construed as limiting the scope of this disclosure. Numerous specific details have been described to provide a thorough understanding of the various embodiments of this disclosure. However, in some cases, well-known or conventional details have not been described in order to concisely illustrate the embodiments of this disclosure.
[0031] The phrase "an embodiment" or "embodiment" used in the specification means that a feature, structure, or characteristic described in connection with that embodiment may be included in at least one embodiment of this disclosure. The phrase "in an embodiment" appearing in different locations in the specification does not necessarily refer to the same embodiment.
[0032] According to various embodiments, this disclosure discloses a system, method, and medium for developing training datasets for learning-based components in autonomous vehicles (ADVs). In one embodiment, an exemplary method includes: allocating a plurality of training datasets for training a learning-based model in the ADV, each training dataset being assigned to one of a plurality of predefined driving scenarios; determining a weight for each training dataset; and optimizing the weights of each dataset in one or more iterations according to a predetermined algorithm until the performance of the learning-based model reaches a predetermined threshold. The predetermined algorithm is one of a random search algorithm, a grid search algorithm, or a Bayesian algorithm.
[0033] Learning-based models can perform one of a variety of autonomous driving functions, such as perception, planning, prediction, localization, and control. Each learning-based component can be used as part of a corresponding rule-based module to provide additional constraints, or can replace the corresponding rule-based module. In some embodiments, this disclosure uses a learning-based planner as an example to describe various embodiments of the invention. Those skilled in the art will understand that the embodiments described herein can be extended to other learning-based components in autonomous vehicles with or without modification.
[0034] Embodiments of the present invention can be used to find a suitable ratio for training datasets to be assigned to different driving scenarios, and to assign other training data to different driving scenarios according to the ratio, so that the performance of the learning-based component in one or more driving scenarios is not degraded due to over-assignment of training data to one or more driving scenarios.
[0035] As an example, a learning-based model was trained for 10 driving scenarios, including "overtaking a slow-moving vehicle." If the training data allocated to a driving scenario during training exceeds the required weight threshold, overfitting may occur, leading to a performance degradation in vehicles equipped with learning-based planners trained on the training data. Therefore, even if following the vehicle would be more efficient, the vehicle might decide to overtake the slow-moving one.
[0036] Therefore, once the ratio of training data allocated to each driving scenario is found through the optimization process, that ratio needs to be maintained. Thus, if the training data for one scenario is increased, the training data for all other driving scenarios also needs to be increased according to their respective ratios (also referred to as weights in this disclosure).
[0037] In one embodiment, each iteration in one or more iterations may include: receiving a performance score of the learning-based model; comparing the performance score with a predetermined threshold; and adjusting the weights of each training dataset in one or more training datasets in response to determining that the performance score is less than the predetermined threshold.
[0038] In one embodiment, each driving scenario can be defined by map information, traffic conditions, the driver's own driving behavior, and the driving behavior of surrounding vehicles. Driving scenarios in this disclosure can have different categories, such as cruising, intersections, static interaction scenarios, and dynamic interaction scenarios.
[0039] In one embodiment, when the learning-based model is a learning-based planner, the network architecture of the learning-based model may include a Convolutional Neural Network (CNN) backbone with an attention branch module, a Long Short-Term Memory (LSTM) decoder, and a differential rasterizer module. For each of the multiple driving scenarios, the input to the learning-based model includes a multi-channel bird's-eye view (BEV) representation rasterized through the scene, and the output of the learning-based model may be a planned trajectory in the time domain.
[0040] The above embodiments do not exhaustively cover all aspects of the invention. It can be understood that the invention includes all embodiments that can be derived from all suitable combinations of the embodiments outlined above and the embodiments disclosed below.
[0041] Scenario-based training data weight distribution
[0042] Figure 1 A framework 100 is shown for adjusting the weights of the training dataset for different scenarios when training a learning-based model in an autonomous vehicle, according to one embodiment.
[0043] In one embodiment, a learning-based model can be integrated into one module of an existing rule-based autonomous driving module, such as a planning module, prediction module, or perception module, or in some cases, it can replace one of these autonomous driving modules. When a learning-based model is integrated into a rule-based module in an autonomous vehicle, the autonomous vehicle can leverage the advantages of both rule-based and learning-based components. For example, a planning module can be rule-based and may include a learning-based planner. Therefore, the planning module can utilize the strengths of both the rule-based and learning-based components. The rule-based component can formulate motion planning as a constrained optimization problem, which is reliable and solvable, but its performance largely depends on the extent to which parameters are used to formulate the optimization problem. These parameters are designed for various purposes, such as modeling different scenarios and balancing the weights of each individual objective, thus requiring manual fine-tuning to achieve optimal performance. On the other hand, the learning-based component can learn from a large number of human demonstrations to create human-like driving plans, thereby avoiding the tedious design process of setting rules and constraints.
[0044] In one embodiment, the tuning framework 100 may include a training data input module 103, a model training process 117, a trained model 119, a model evaluation module 121, and a tuner core 123.
[0045] The training data input module 103 can be used to allocate and adjust the size of the training dataset for different driving scenarios. For example... Figure 1 As shown, each of driving scenarios A 107, B 111, and N 115 can be initially assigned training datasets A 105, B 109, and N 113. Each of training datasets 105, 109, and 113 includes data points for the corresponding driving scenario. These data points can be extracted from driving data demonstrated by human drivers operating autonomous driving test vehicles.
[0046] In one embodiment, as used herein, the size of the training dataset refers to the number of data points in the training dataset. Each data point in the training dataset for a given scene may include a multi-channel bird's-eye view (BEV) representation rasterized through the scene.
[0047] In one embodiment, training process 117 is a process for training a learning-based model 119. During training process 117, various training models can be used to train the learning-based model.
[0048] In one embodiment, the model evaluation module 121 can be an autonomous driving simulator, for example... The Apollo Dreamland simulator. The model evaluation module 121 can use specially created autonomous driving test scenarios to evaluate the basic driving capabilities of autonomous vehicles. The test scenarios can be manually created by the scenario designer or taken from logs of driving data different from the training data used to train the learning-based model 119; and the performance of the trained model 119 can be evaluated using a set of evaluation metrics.
[0049] In one embodiment, the trained model 119 can be used as a learning-based component for perception, prediction, planning, control, and other autonomous driving functions. Depending on the type of autonomous driving function the learning-based model 119 is configured to perform, different evaluation metrics can be used to assess the performance of the learning-based model 119.
[0050] In some embodiments of this disclosure, for ease of illustration, the learning-based model 119 is a learning-based planner. In these embodiments, the learning-based model can be evaluated based on a safety score and a comfort score. The safety score can be based on a set of safety-related indicators, including collision, leaving the road surface, speeding, violating traffic lights, timely arrival at the destination, etc. When any of these indicators are violated, the performance is rated as a failure, and the safety score is 0. If no of the above indicators are violated, the safety score can be set to a predetermined value, such as 80.
[0051] In one embodiment, a comfort score is calculated based on the similarity between the driving state of an agent equipped with a learning-based planner and that of a human driver. The comfort score can be based on one or more of the following evaluation metrics: longitudinal acceleration ratio, lateral acceleration ratio, longitudinal deceleration ratio, lateral deceleration ratio, longitudinal deceleration ratio, lateral deceleration ratio, distance to boundary ratio, distance to obstacle ratio, and time-collision ratio. The comfort score can be a weighted score based on the above evaluation metrics.
[0052] In one embodiment, each of the safety score and comfort score can be calculated based on the performance of the agent (e.g., a dynamic model in a simulation platform) across all driving scenarios 107, 111, and 115.
[0053] Then, the evaluation module 121 can use a predetermined algorithm to calculate an overall performance score based on the safety score and the comfort score, and compare the overall performance score with a predetermined threshold score, wherein the predetermined algorithm specifies the weight of each score in the safety score and the comfort score.
[0054] In one embodiment, the tuner core module 123 may include an objective function 125 to be optimized and an optimization algorithm 127 for optimizing the objective function 125. The objective function 125 may be expressed as x* = arg min f(x), where x ∈ X. In the above formula, f(x) represents the target cost to be minimized, x* is a set of parameters representing the weights assigned to the training datasets of driving scenarios 107, 111, and 115, and X is the search space from which the parameters can be obtained.
[0055] In one embodiment, the search space may include multiple sets of weights for driving scenarios 107, 111, and 115. For example, the search space may include three sets of weights (0.1, 0.5, 0.4; 0.2, 0.2, 0.6; and 0.2, 0.1, 0.7) for the three driving scenarios 107, 111, and 115, each set of weights representing a ratio, where each ratio is a percentage of data points in one of the training datasets 105, 109, and 113 out of the total number of data points in all training datasets 105, 109, and 113.
[0056] In one embodiment, optimization algorithm 127 may be one of grid search, random search, or Bayesian search. Tuner core 123 may be configured to find a set of weights that minimizes the cost to or below a predetermined threshold. When a set of weights is found to minimize the cost of the objective function to or below the threshold, a learning-based planner trained on a training dataset assigned according to that set of weights will have the best performance score.
[0057] In one embodiment, the same process may be performed one or more iterations to find the desired set of weights. Each iteration may include: adjusting the weights of training datasets 105, 109, and 113 for driving scenarios 107, 111, and 115; training or retraining the trained model 119 using training process 117; evaluating the trained model 119; and determining whether the performance of the trained model 119 has reached a predetermined threshold.
[0058] Figure 2 An example of initially assigning data points to different driving scenarios according to one embodiment is shown. As shown above, the training data distribution module 103 initially assigns dataset a 203 with 100 data points to driving scenario 211 of cruising on a straight road with no traffic participants, dataset b 205 with 300 data points to driving scenario 213 of turning left, dataset c 207 with 200 data points to driving scenario 215 of passing a stopped vehicle, and dataset N 209 with 500 data points to driving scenario 217 of passing a slow-moving vehicle.
[0059] Each of the driving scenarios 211, 213, 215 and 217 can be extracted from historical driving data collected by autonomous vehicles driven by humans or created manually, and can be defined by map information, traffic conditions, the vehicle's driving behavior and the driving behavior of surrounding vehicles. Figure 2 Other driving scenarios not shown may include cruising on curves where there are no other road users, turning right, making a U-turn, stopping at traffic lights, etc.
[0060] In one embodiment, the weights of the initial training data can be adjusted or optimized until a threshold performance score of the trained model is reached after one or more iterations, such as... Figure 1 As shown.
[0061] Figure 3 An example of a network architecture 300 based on a learning-based model is shown in one embodiment. More specifically, the figure illustrates a network architecture for a learning-based planner, which can be part of a rule-based planning module to impose additional constraints, or can replace a rule-based planning module in an autonomous vehicle.
[0062] like Figure 3 As shown, the network structure 300 may include a convolutional neural network (CNN) backbone 303 with a spatial attention branch structure, a long short-term memory (LSTM) decoder 305 with a kinematic layer, and a vehicle shape differential grating 307.
[0063] The CNN backbone 303 can be MobileNetV2, whose output features are passed through a multilayer perceptron (MLP) layer to produce flattened feature output h0, which is the initial hidden layer state of the LSTM decoder 305. Furthermore, to reduce computational workload, intermediate features FI from the CNN backbone 303, instead of the original image channels, are fed to the spatial attention module, which is derived from the intermediate features of the CNN backbone 303.
[0064] The LSTM decoder 305 can take the feature embeddings from the CNN backbone 303 as input and generate a planned trajectory in the time domain as output. During training, a differential rasterizer module 307 can be attached to the LSTM decoder 305 to rasterize the output planned trajectory into an image, which is then fed into the loss function.
[0065] like Figure 3 As further shown, the inputs to the network architecture 300 may include a top-down (or bird's-eye view) image representation of the environment, which combines static and dynamic information from an HD map; and may also include data from the perception system of the autonomous vehicle used to collect training data.
[0066] In one embodiment, the input to the network architecture 300 may include a rasterized scene in a bird's-eye view (BEV) as a multi-channel image. The rasterized scene may include: an agent (i.e., a dynamic model or virtual vehicle), rasterized as boxes; the agent's past trajectory, rasterized as a sequence of points with gradually decreasing brightness; obstacle prediction, rasterized as a sequence of boxes with gradually decreasing brightness; obstacle history; a color (3-channel) image rendered using surrounding road structures such as lanes, intersections, and crosswalks; a predetermined route, rasterized as a constant white; lanes colored according to known speed limits; and lanes affected by traffic lights, colored with different gray levels corresponding to different states of the traffic lights.
[0067] Figure 4 A machine learning platform 400, which can be used to train and evaluate learning-based models according to one embodiment, is shown.
[0068] like Figure 4 As shown, the machine learning platform 400 may include the following three parts: data acquisition 401, which collects data from vehicles 408, logs 410, and storage services 412; training pipeline 403, which includes large-scale data processing, feature extraction 414, model training 418, hyperparameter tuning 416, and offline evaluation 420; and validation 405, which includes scene selection 402, control-in-loop simulation 404, and performance rating 406.
[0069] In one embodiment, two types of training data can be collected through a data acquisition section. The first type of data is used for dynamic model training and validation, and the second type of data is used for model performance evaluation on continuous trajectories. For the first type of data, training data can be collected through a graphical user interface (GUI) to collect either human-driven or autonomous driving data (as long as the accelerator / brake / steering is activated by control commands), as exemplified by... Figure 5 As shown, the progress bar indicates the collection progress for a specific category. Based on the control commands and vehicle status shown in the figure, training data is collected for different driving scenarios: left / right fork (2 driving scenarios) 501, straight ahead 503, sharp left / right turn (2 driving scenarios) 505, and left / right turn (2 driving scenarios) 507. Figure 5 The training data collected by the GUI can be used to train learning-based models, including learning-based planners, although, as mentioned above, learning-based planners can also be trained using a bird's-eye view (BEV) image representation with multiple channels via scene rasterization.
[0070] The second type of training data can include information on left / right turns, stopping / non-stopping, and zigzag trajectories; combinations of this information encompass normal driving behavior. Unlike the training and validation datasets, the evaluation dataset can be a continuous time-series dataset.
[0071] In one embodiment, the training pipeline 403 may include a dynamic model (DM) that can model an open-loop vehicle dynamics system. Both rule-based and learning-based models can be integrated into the training pipeline 403.
[0072] In one embodiment, within the simulation component 404 of the control loop, a loop can be formed at each time cycle during the simulation by the sensing, prediction, planning, control, and localization modules. The control module can obtain input from the upstream planning module and generate commands to the dynamic model (i.e., the simulated or virtual vehicle). The state and pose of the dynamic model can be updated based on the control commands and the vehicle state. The output of the dynamic model can be fed to the localization module and used for the simulation in the next time cycle. When the same input is fed, the accurate dynamic model should behave the same as a real vehicle.
[0073] Figure 6 An example of an autonomous driving simulation platform 600 according to some embodiments of the present invention is shown.
[0074] In one embodiment, the example simulation platform 601 includes a dynamic model 602 of an autonomous vehicle, a game engine-based simulator 619, and a recording player 621. The game engine-based simulator 619 can provide a three-dimensional virtual world where sensors can perceive and provide accurate ground-based data for every part of the environment. The recording player 621 can replay recordings made in the real world to test the functionality and performance of the various modules of the dynamic model 602.
[0075] In one embodiment, the ADV dynamic model 602 may be a virtual vehicle including multiple core software modules such as a perception module 605, a prediction module 605, a planning module 609, a control module 609, a speed planner module 613, a CAN bus module 611, a speed planner module 613, and a positioning module 615. Figure 8 and Figure 10 The functions of these modules are described in detail.
[0076] As further shown, the simulation platform 601 may include a monitoring module 623, which is a safety module that performs the functions of the action center and intervenes when the monitor 625 detects a fault. When all modules are functioning as expected, the monitoring module 623 ensures that the control flow operates normally. When the monitor 625 detects a module failure, the monitoring module 623 can prevent control signals from reaching the CAN bus 611 and can stop the ADV dynamic model 602.
[0077] The simulation platform 601 may include a human machine interface (HMI) 627, which is a module used to view the status of the dynamic model 602 and control the dynamic model 602 in real time.
[0078] Figure 7 This is a flowchart of the process 700 for developing training data for autonomous vehicles (ADVs). Process 700 can be executed through processing logic, which may include software, hardware, or a combination thereof. For example, it can be done through... Figure 1 The components and services in the automated simulation platform execute process 700.
[0079] See Figure 7 In operation 701, the processing logic allocates multiple training datasets for training a learning-based model in an autonomous vehicle. Each training dataset in the multiple training datasets is assigned to one of multiple predefined driving scenarios. In operation 703, the processing logic determines the weights of each training dataset in the multiple training datasets. In operation 703, the processing logic optimizes the weights of each dataset in the multiple datasets in one or more iterations according to a predetermined algorithm until the performance of the learning-based model reaches a predetermined threshold.
[0080] autonomous vehicles
[0081] Figure 8 This is a block diagram illustrating an autonomous vehicle according to one embodiment. See also... Figure 8 The autonomous vehicle 801 can communicate with one or more servers via a network. The network can be any type of wired or wireless network, such as a local area network (LAN), a wide area network (WAN) such as the Internet, a cellular network, a satellite network, or a combination thereof. The server can be any type of server or server cluster, such as a web or cloud server, an application server, a backend server, or a combination thereof. The server can be a data analytics server, a content server, a traffic information server, a map and point of interest (MPOI) server, or a location server, etc.
[0082] An autonomous vehicle is a vehicle configurable to operate in an automatic mode, in which it can navigate with minimal or no driver input. Such an autonomous vehicle may include a sensor system with one or more sensors for detecting environmental information while the vehicle is operating. The vehicle and its associated controllers use the detected information to navigate in this environment. The autonomous vehicle 801 can operate in manual, fully automatic, or partially automatic modes.
[0083] In one embodiment, the autonomous vehicle 801 includes, but is not limited to, an Autonomous Driving System (ADS) 810, a vehicle control system 811, a wireless communication system 812, a user interface system 813, and a sensor system 815. The autonomous vehicle 801 may also include some common components found in ordinary vehicles, such as an engine, wheels, steering wheel, and transmission. These components can be controlled via the vehicle control system 811 and / or the autonomous driving system 810 using various communication signals and / or commands, such as acceleration signals or commands, deceleration signals or commands, steering signals or commands, and braking signals or commands.
[0084] Components 810-815 can be communicatively coupled to each other via interconnects, buses, networks, or combinations thereof. For example, components 810-815 can be communicatively coupled to each other via a Controller Area Network (CAN) bus. The CAN bus is a vehicle bus standard designed to enable communication between microcontrollers and devices in masterless applications. The CAN bus is a message-based protocol originally designed for multiplexing electrical wiring in automobiles, but it is also used in many other environments.
[0085] See Figure 9In one embodiment, the sensor system 815 includes, but is not limited to, one or more cameras 911, a Global Positioning System (GPS) unit 912, an Inertial Measurement Unit (IMU) 913, a radar unit 914, and a Light Detection and Range (LIDAR) unit 915. The GPS system 912 may include a transceiver for providing information related to the location of the autonomous vehicle. The IMU unit 913 may sense changes in the position and orientation of the autonomous vehicle based on inertial acceleration. The radar unit 914 may represent a system for sensing objects within the local environment of the autonomous vehicle using radio signals. In some embodiments, in addition to sensing objects, the radar unit 914 may also sense the velocity and / or heading of objects. The LiDAR unit 915 may use lasers to sense objects in the environment in which the autonomous vehicle is located. The LiDAR unit 915 may include one or more laser sources, a laser scanner, and one or more detectors, as well as other system components. The camera 911 may include one or more devices for capturing images of the environment surrounding the autonomous vehicle. The camera 911 may be a camera and / or a video camera. The camera may be mechanically movable, for example, by mounting it on a rotating and / or tilting platform.
[0086] The sensor system 815 may also include other sensors, such as sonar sensors, infrared sensors, steering sensors, throttle sensors, brake sensors, and audio sensors (e.g., microphones). Audio sensors can be used to capture sound from the environment surrounding the autonomous vehicle. Steering sensors can be used to sense the steering angle of the steering wheel, wheels, or a combination thereof. Throttle and brake sensors sense the throttle and brake positions of the vehicle, respectively. In some cases, the throttle and brake sensors can be integrated into an integrated throttle / brake sensor.
[0087] In one embodiment, the vehicle control system 811 includes, but is not limited to, a steering unit 901, a throttle unit 902 (also referred to as an acceleration unit), and a braking unit 903. The steering unit 901 is used to adjust the direction or heading of the vehicle. The throttle unit 902 is used to control the speed of the engine or motor, thereby controlling the speed and acceleration of the vehicle. The braking unit 903 decelerates the vehicle by providing friction to the wheels or tires. It should be noted that... Figure 9 The components shown can be implemented as hardware, software, or a combination thereof.
[0088] See you again Figure 8The wireless communication system 812 allows the autonomous vehicle 801 to communicate with external systems, such as devices, sensors, and other vehicles. For example, the wireless communication system 812 can communicate wirelessly with one or more devices directly, or via a communication network. The wireless communication system 812 can utilize any cellular communication network or wireless local area network (WLAN), such as WiFi, to communicate with another component or system. The wireless communication system 812 can communicate directly with devices (e.g., mobile devices of passengers within the vehicle 801, display devices, speakers), for example, using infrared links, Bluetooth, etc. The user interface system 813 may be some of the peripheral devices implemented within the vehicle 801, including, for example, a keyboard, a touchscreen display, a microphone, and speakers.
[0089] Some or all of the functions of the autonomous vehicle 801 can be controlled or managed by the autonomous driving system 810, especially when operating in autonomous driving mode. The autonomous driving system 810 includes the necessary hardware (e.g., processor, memory, storage) and software (e.g., operating system, planning and route selection program) to receive information from the sensor system 815, control system 811, wireless communication system 812, and / or user interface system 813, process the received information, plan a route or path from the origin to the destination, and then drive the vehicle 801 based on the planning and control information. Alternatively, the autonomous driving system 810 can be integrated with the vehicle control system 811.
[0090] For example, a passenger can specify the start and destination of their trip via a user interface. The autonomous driving system 810 obtains trip-related data. For instance, the autonomous driving system 810 can obtain location and route data from a map and point-of-interest (POI) server. The location server provides location services, and the map and POI server provides map services and points of interest for some locations. Alternatively, this location, map, and POI information can be cached locally in the persistent storage device of the autonomous driving system 810.
[0091] As the autonomous vehicle 801 moves along the route, the autonomous driving system 810 can also obtain real-time traffic information from a Traffic Information System or Server (TIS). It should be noted that the server can be operated by a third-party entity. Alternatively, the server's functionality can be integrated into the autonomous driving system 810. Based on real-time traffic information, map and point-of-interest information, location information, and real-time local environmental data (such as obstacles, objects, and nearby vehicles) detected or sensed by the sensor system 815, the autonomous driving system 810 can, for example, plan the optimal route according to the planned route via the control system 811 and drive the vehicle 801 to safely and efficiently reach the designated destination.
[0092] Figure 10 This is a block diagram illustrating an example of an autonomous driving system 910 according to one embodiment. The autonomous driving system 910 can be implemented as... Figure 9 It is part of the autonomous vehicle 901, including but not limited to the autonomous driving system 910, the control system 911, and the sensor system 915.
[0093] See Figure 10 The autonomous driving system 910 includes, but is not limited to, a positioning module 1001, a perception module 1002, a prediction module 1003, a decision-making module 1004, a planning module 1005, a control module 1006, a route module 1007, and a speed planner module 1008. The functions implemented by these modules are... Figure 6 The modules described are similar.
[0094] Some or all of modules 1001-1008 can be implemented as software, hardware, or a combination thereof. For example, these modules can be installed in persistent storage device 1052, loaded into memory 1051, and executed by one or more processors (not shown). It should be noted that some or all of these modules can be integrated with… Figure 9 Some or all of the modules of the vehicle control system 911 are communicatively coupled or integrated together. Some of the modules in modules 1001 to 1008 can be integrated into an integrated module.
[0095] The positioning module 1001 determines the current location of the autonomous vehicle 901 (e.g., using the GPS unit 1012) and manages any data related to the user's trip or route. The positioning module 1001 (also referred to as the map and route module) manages any data related to the user's trip or route. The user can log in, for example, through a user interface and specify the start and destination of the trip. The positioning module 1001 communicates with other components of the autonomous vehicle 901, such as map and route data 1011, to obtain trip-related data. For example, the positioning module 1001 can obtain location and route data from a location server and a map and point-of-interest (POI) server. The location server provides location services, and the map and POI server provides map services and points of interest for some locations, which can be cached as part of the map and route data 1011. As the autonomous vehicle 901 moves along the route, the positioning module 1001 can also obtain real-time traffic information from a traffic information system or server.
[0096] The perception module 1002 can determine the perceived information of the surrounding environment based on the sensor data provided by the sensor system 915 and the positioning information obtained by the positioning module 1001. The perceived information can represent information about the vehicle's surroundings that a normal driver can perceive while driving. The perceived information may include, for example, lane configurations in the form of objects, traffic light signals, the relative positions of other vehicles, pedestrians, buildings, crosswalks, or other traffic-related signs (e.g., stop signs, yield signs). Lane configurations include information describing one or more lanes, such as lane shape (e.g., straight or curved), lane width, number of lanes on the road, one-way or two-way lanes, merging or dividing lanes, lane departure, etc.
[0097] The perception module 1002 may include a computer vision system or the functionality of a computer vision system to process and analyze images captured by one or more cameras to identify objects and / or features in the environment of the autonomous vehicle. Objects may include traffic signals, road boundaries, other vehicles, pedestrians and / or obstacles, etc. The computer vision system may utilize object recognition algorithms, video tracking, and other computer vision techniques. In some embodiments, the computer vision system may map the environment, track objects, and estimate the velocity of objects, etc. The perception module 1002 may also detect objects based on additional sensor data provided by other sensors such as radar and / or lidar.
[0098] For each object, prediction module 1003 predicts the object's behavior in the environment. This prediction is performed based on perception data, which perceives the driving environment at a given point in time based on a set of map / route information 1011 and traffic rules 1012. For example, if the object is a vehicle traveling in the opposite direction and the current driving environment includes an intersection, prediction module 1003 will predict that the vehicle is likely to go straight or turn. If the perception data indicates that there are no traffic lights at the intersection, prediction module 1003 can predict that the vehicle must come to a complete stop before entering the intersection. If the perception data indicates that the vehicle is currently in a dedicated left-turn lane or a dedicated right-turn lane, prediction module 1003 can predict that the vehicle is more likely to turn left or right, respectively.
[0099] For each object, decision module 1004 makes a decision related to the object. For example, for an object (e.g., another vehicle on an intersecting road) and its metadata describing the object (e.g., speed, direction, turning angle), decision module 1004 decides how to deal with the object (e.g., overtake, yield, stop, pass). Decision module 1004 can make these decisions based on a set of rules such as traffic rules or driving rules 1012, which can be stored in persistent storage device 1052.
[0100] Route module 1007 provides one or more routes or paths from a starting point to a destination. For a given trip from a starting location to a destination location, such as received from a user, route module 1007 obtains route and map information 1011 and determines all possible routes or paths from the starting location to the destination location. Route module 1007 can generate a reference line in the form of a topographic map for each route it determines from the starting location to the destination location. The reference line refers to the ideal route or path in the absence of interference such as other vehicles, obstacles, or traffic conditions. That is, if there are no other vehicles, pedestrians, or obstacles on the road, the autonomous vehicle should follow the reference line exactly or approximately. The topographic map is then provided to decision module 1004 and / or planning module 1005. Decision module 1004 and / or planning module 1005 examine all possible routes to select and modify one of the optimal routes based on other data provided by other modules, such as traffic conditions from positioning module 1001, driving environment perceived by perception module 1002, and traffic conditions predicted by prediction module 1003. The actual path or route used to control an autonomous vehicle may be close to or different from the reference line provided by the route module 1007, depending on the specific driving environment at that point in time.
[0101] The planning module 1005 can plan the path or route of the autonomous vehicle and driving parameters (such as distance, speed, and / or turning angle) based on the decisions made for each perceived object and using reference lines provided by the route module 1007. That is, for a given object, the decision module 1004 decides what to do for that object, while the planning module 1005 decides how to do it. For example, for a given object, the decision module 1004 may decide to pass through the object, while the planning module 1005 may determine whether to pass from the left or right side of the object. The planning module 1005 generates planning and control data, including information describing how the vehicle 1001 will move in the next movement cycle (e.g., the next route / path segment). For example, the planning and control data may instruct the vehicle 912 to move 10 meters at a speed of 30 miles per hour (mph) and then change to the right lane at a speed of 25 miles per hour.
[0102] The speed planner 1008 can be part of the planning module 1005 or a separate module. Given a planned trajectory, the speed planner 1008 guides the autonomous vehicle to travel along the planned path at an appropriate speed sequence v = [vi, ...], i ∈ [0, N], where vi = dsi / dt, dsi is the distance traveled along the path at t = i, and dt is the sampling time.
[0103] The control module 1006 controls and drives the autonomous vehicle based on the planning and control data, according to the route or path defined by the planning and control information, by sending appropriate commands or signals to the vehicle control system 911. The planning and control data includes sufficient information to drive the vehicle from one point to another along the route or path at different times using appropriate vehicle settings or driving parameters (e.g., throttle, braking, steering commands).
[0104] In one embodiment, the planning phase is executed over multiple planning cycles, also known as driving cycles, for example, time intervals of 100 milliseconds (ms). For each planning cycle or driving cycle, one or more control commands can be issued based on the planning and control data. That is, for every 100 milliseconds, the planning module 1005 plans, for example, the next route segment or path segment including the target location and the time required for the autonomous vehicle to reach the target location. Alternatively, the planning module 1005 may also specify specific speeds, directions, and / or steering angles, etc. In one embodiment, the planning module 1005 plans, for example, the next predetermined time interval of 5 seconds. For each planning cycle, the planning module 1005 plans the target location for the current cycle (e.g., the next 5 seconds) based on the target location planned in the previous cycle. Subsequently, the control module 1006 generates one or more control commands (e.g., throttle, brake, steering control commands) based on the planning and control data of the current cycle.
[0105] It is important to note that the decision-making module 1004 and the planning module 1005 can be integrated into a single module. The decision-making module 1004 / planning module 1005 may include a navigation system or the functionality of a navigation system to determine the driving path of the autonomous vehicle. For example, the navigation system may determine a series of speeds and directional headings, causing the autonomous vehicle to move along a path that substantially avoids perceived obstacles, while also typically guiding the autonomous vehicle along a lane-based path leading to the final destination. The destination can be set based on user input via the user interface system 913. The navigation system can dynamically update the driving path while the autonomous vehicle is in operation. The navigation system can combine data from a GPS system and one or more maps to determine the driving path of the autonomous vehicle.
[0106] According to one embodiment, the system architecture of the autonomous driving system described above includes, but is not limited to, an application layer, a planning and control (PNC) layer, a perception layer, a device driver layer, a firmware layer, and a hardware layer. The application layer may include a user interface or configuration application that interacts with the user or passengers of the autonomous vehicle, for example, functions associated with the user interface system 913. The PNC layer may at least include the functions of the planning module 1005 and the control module 1006. The perception layer may at least include the functions of the perception module 1002. In one embodiment, an additional layer may be provided, including the functions of a prediction module 1003 and / or a decision module 1004. Alternatively, these functions may be included in the PNC layer and / or the perception layer. The firmware layer may at least represent the functions of the sensor system 915, which may be implemented in the form of a field-programmable gate array (FPGA). The hardware layer may represent the hardware of the autonomous vehicle, such as the control system 911. The application layer, PNC layer, and perception layer can communicate with the firmware layer and hardware layer through the device driver layer.
[0107] It should be noted that some or all of the components shown and described above may be implemented by software, hardware, or a combination thereof. For example, these components may be implemented as software installed and stored in persistent storage, which may be loaded into memory and executed by a processor (not shown) to perform the processes or operations described herein. Alternatively, these components may be implemented as executable code programmed or embedded in dedicated hardware, such as integrated circuits (e.g., application-specific integrated circuits or ASICs), digital signal processors (DSPs), or field-programmable gate arrays (FPGAs), which may be accessed from an application via appropriate drivers and / or operating systems. Furthermore, these components may be implemented as specific hardware logic within a processor or processor core as part of an instruction set accessible by software components via one or more specific instructions.
[0108] Some parts of the foregoing detailed description have been introduced based on algorithms and symbolic representations for manipulating data bits in computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing most effectively communicate the substance of their work to others skilled in the art. In this paper, algorithms are generally considered to be self-consistent sequences of operations that lead to desired results. These operations refer to those that require physical manipulation of physical quantities.
[0109] However, it should be remembered that all these terms and similar terms will be associated with appropriate physical quantities and are merely convenient notations applied to those quantities. Unless explicitly stated in the above discussion, it should be understood that throughout the specification, the use of terms such as those set forth in the appended claims refers to the operation and processing of a computer system or similar electronic computing device that manipulates data represented as physical (electronic) quantities in computer system registers and memories, and transforms that data into other data similarly represented as physical quantities in computer system memories or registers or other such information storage devices, transmission devices or display devices.
[0110] Embodiments of this disclosure also relate to means for performing the operations described herein. Such a computer program is stored in a non-transitory computer-readable medium. Machine-readable media include any mechanism for storing information in a machine-readable (e.g., computer-readable) form. For example, machine-readable (e.g., computer-readable) media include machine-readable (e.g., computer-readable) storage media (e.g., read-only memory (“ROM”), random access memory (“RAM”), disk storage media, optical storage media, flash memory devices).
[0111] The processes or methods depicted in the foregoing figures can be executed by processing logic, which includes hardware (e.g., circuits, special-purpose logic, etc.), software (e.g., embodied in a non-transitory computer-readable medium), or a combination of both. Although the process or method has been described above according to some sequential operations, it should be understood that some of the described operations can be performed in a different order. Furthermore, some operations can be performed in parallel rather than sequentially.
[0112] The embodiments disclosed herein are not described with reference to any particular programming language. It should be understood that the teachings of the embodiments of this disclosure as described herein can be implemented using a variety of programming languages.
[0113] In the foregoing description, embodiments of the present disclosure have been described with reference to specific examples. It is obvious that various modifications can be made to the present disclosure without departing from the broader spirit and scope of the disclosure as set forth in the appended claims. Therefore, the description and drawings should be regarded as illustrative rather than restrictive.
Claims
1. A method for generating ADV training data for a computer-implemented autonomous vehicle, comprising: Multiple training datasets are allocated through the tuner core. These multiple training datasets are used to train the learning-based model in the autonomous vehicle. Each of the multiple training datasets is assigned to one of a plurality of predefined driving scenarios. The weight of each training dataset in the plurality of training datasets is determined through the tuner core; the weight is used to characterize the proportion of the size of the training dataset in the plurality of training datasets; and Through the tuner core, the weights of each dataset in the plurality of training datasets are optimized in one or more iterations according to a predetermined algorithm until the performance of the learning-based model reaches a predetermined threshold. Each iteration in one or more iterations includes: The tuner core receives the performance score of the learning-based model trained using the multiple training datasets; wherein the learning-based model is trained using the multiple training datasets and the current weights of the training datasets; the performance score is determined based on the comfort score of the learning-based model in the multiple predefined driving scenarios and the safety score of the learning-based model in the multiple predefined driving scenarios. The performance score is compared with the predetermined threshold using the tuner core; and In response to determining that the performance score is less than the predetermined threshold, the weights of each training dataset in one or more of the plurality of training datasets are adjusted.
2. The computer-implemented method according to claim 1, wherein, The predetermined algorithm is one of the following: a random search algorithm, a grid search algorithm, or a Bayesian algorithm.
3. The computer-implemented method according to claim 1, wherein, Each of the multiple driving scenarios is defined by map information, traffic conditions, the driver's own driving behavior, and the driving behavior of surrounding vehicles.
4. The computer-implemented method according to claim 1, wherein, The multiple driving scenarios are categorized into multiple classes, including cruise, intersection, static interaction scenarios, and dynamic interaction.
5. The computer-implemented method according to claim 1, wherein, The learning-based model includes a convolutional neural network (CNN) backbone with an attention branch module, a long short-term memory (LSTM) decoder, and a differential grating module.
6. The computer-implemented method according to claim 5, wherein, For each of the multiple driving scenarios, the input of the learning-based model includes a multi-channel bird's-eye view BEV representation obtained by scene rasterization, and the output of the learning-based model is a planned trajectory in the time domain.
7. A non-transitory computer-readable medium storing instructions that, when executed by a processor of a tuner core, cause the processor to perform the following operations to formulate training data for an autonomous vehicle (ADV): Multiple training datasets are allocated, and these datasets are used to train the learning-based model in the autonomous vehicle. Each of the multiple training datasets is assigned to one of the multiple predefined driving scenarios; Determine the weights of each training dataset in the plurality of training datasets; The weights are used to characterize the proportion of the size of the training dataset in the multiple training datasets; as well as According to a predetermined algorithm, the weights of each dataset in the plurality of training datasets are optimized in one or more iterations until the performance of the learning-based model reaches a predetermined threshold. Each iteration in one or more iterations includes: Receive the performance score of the learning-based model trained using the plurality of training datasets; wherein the learning-based model is trained using the plurality of training datasets and the current weights of the training datasets; the performance score is determined based on the comfort score of the learning-based model in the plurality of predefined driving scenarios and the safety score of the learning-based model in the plurality of predefined driving scenarios. Compare the performance score with the predetermined threshold; and In response to determining that the performance score is less than the predetermined threshold, the weights of each training dataset in one or more of the plurality of training datasets are adjusted.
8. The non-transitory computer-readable medium according to claim 7, wherein, The predetermined algorithm is one of the following: a random search algorithm, a grid search algorithm, or a Bayesian algorithm.
9. The non-transitory computer-readable medium according to claim 7, wherein, Each of the multiple driving scenarios is defined by map information, traffic conditions, the driver's own driving behavior, and the driving behavior of surrounding vehicles.
10. The non-transitory computer-readable medium according to claim 7, wherein, The multiple driving scenarios are categorized into multiple classes, including cruise, intersection, static interaction scenarios, and dynamic interaction.
11. The non-transitory computer-readable medium according to claim 7, wherein, The learning-based model includes a convolutional neural network (CNN) backbone with an attention branch module, a long short-term memory (LSTM) decoder, and a differential grating module.
12. The non-transitory computer-readable medium according to claim 11, wherein, For each of the multiple driving scenarios, the input of the learning-based model includes a multi-channel bird's-eye view BEV representation obtained by scene rasterization, and the output of the learning-based model is a planned trajectory in the time domain.
13. An electronic device, comprising: processor; as well as A memory coupled to the processor stores instructions that, when executed by the processor, cause the processor to perform the following operations: Multiple training datasets are allocated for training a learning-based model in an autonomous vehicle, wherein each training dataset is assigned to one of multiple predefined driving scenarios. Determine the weight of each training dataset in the plurality of training datasets; the weight is used to characterize the proportion of the size of the training dataset in the plurality of training datasets; and According to a predetermined algorithm, the weights of each dataset in the plurality of training datasets are optimized in one or more iterations until the performance of the learning-based model reaches a predetermined threshold. Each iteration in one or more iterations includes: Receive the performance score of the learning-based model trained using the plurality of training datasets; wherein the learning-based model is trained using the plurality of training datasets and the current weights of the training datasets; the performance score is determined based on the comfort score of the learning-based model in the plurality of predefined driving scenarios and the safety score of the learning-based model in the plurality of predefined driving scenarios. Compare the performance score with the predetermined threshold; and In response to determining that the performance score is less than the predetermined threshold, the weights of each training dataset in one or more of the plurality of training datasets are adjusted.
14. The electronic device according to claim 13, wherein, The predetermined algorithm is one of the following: a random search algorithm, a grid search algorithm, or a Bayesian algorithm.
15. The electronic device according to claim 13, wherein, Each of the multiple driving scenarios is defined by map information, traffic conditions, the driver's own driving behavior, and the driving behavior of surrounding vehicles.
16. The electronic device according to claim 13, wherein, The multiple driving scenarios are categorized into multiple classes, including cruise, intersection, static interaction scenarios, and dynamic interaction.
17. The electronic device according to claim 13, wherein, The learning-based model includes a convolutional neural network (CNN) backbone with an attention branch module, a long short-term memory (LSTM) decoder, and a differential grating module.
Citation Information
Patent Citations
A multi-classification method based on adaptive balanced integration and dynamic hierarchical decision-making
CN109359704A
Driving control strategy training method based on scene segmentation and local path planning
CN111310919A
