Reinforcement learning automatic driving decision switching method based on sustainable learning
By training and switching reinforcement learning decision model in multiple scenarios, combining graph neural network and sustainable learning, the problem of poor convergence speed and effect of reinforcement learning in multiple scenarios is solved, and adaptive unknown scenario decision-making and efficient decision performance.
Patent Information
- Application Number
- CN202410891616.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-11-01
AI Technical Summary
The existing reinforcement learning has a long training time for decision-making models in multiple scenarios, which is difficult to converge, and cannot adapt to unknown scenarios, resulting in poor decision-making effects and unable to design reward functions for different scenarios, and multiple decision models need to be maintained.
Adopt reinforcement learning autonomous driving decision switching method based on sustainable learning, by creating a multi-scene decision environment, training multiple converged decision models, and using graph neural network to build a decision switching model, obtaining car perception information in real time, performing data processing and Threshold filtering, implement decision calls, and perform dataset reconstruction and decision adaptation through sustainable learning in unknown scenarios.
It improves the transferability and multi-scenario decision-making performance of the decision-making model, reduces training time, realizes adaptive decision-making in unknown scenarios, and enhances decision-making effect and efficiency.
Smart Images

Figure CN118877010A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of autonomous driving decision switching, and in particular to a reinforcement learning autonomous driving decision switching method and system based on sustainable learning. Background Art
[0002] In the current decision-making method based on deep reinforcement learning, it is possible to achieve better decision-making efficiency and performance in some more complex environments than traditional rule-based or optimized non-learning methods. However, for multi-scenario decision-making, single reinforcement learning will face the problem of long training time and difficulty in training convergence. Training a multi-scenario decision-making model will increase the model size and corresponding complexity at the expense of unnecessary complexity, especially in simple scenarios. Usually, different reward functions need to be designed for different scenarios, and in some complex scenarios with uncertainty, scene-specific auxiliary learning methods still need to be proposed for decision-making assistance to improve the learning efficiency of reinforcement learning and its decision-making effect. Therefore, it is necessary to establish separate decision models for different types of scenarios and maintain multi-model decision-making methods. However, current methods usually have the disadvantages of being unable to adaptively make decision calls in unknown scenarios, or having the above-mentioned shortcomings of training separate decision models in multiple scenarios. Summary of the invention
[0003] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0004] In view of the above problems or problems existing in the prior art, the present invention is proposed.
[0005] Therefore, the technical problem solved by the present invention is: to improve the transferability of reinforcement learning decision-making in multiple real scenarios, to solve the problems of poor convergence speed and convergence effect of reinforcement learning decision-making models in multiple scenarios, which greatly increases the training time and leads to poor decision-making effect, and to be unable to adapt to scene changes in multiple scenarios, as well as to be unable to design reward functions for scenes separately. In addition, some auxiliary learning methods can be introduced into separate scenes to improve their decision-making performance in separate scenes, thereby realizing adaptive optimal decision-making calls for unknown scenarios.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a reinforcement learning autonomous driving decision switching method based on sustainable learning, which includes creating a multi-scenario decision environment, training a reinforcement learning decision model in the divided scenarios, obtaining multiple converged reinforcement learning decision models, and completing testing in each scenario;
[0007] Build a decision switching model through graph neural network, collect data in the scenario, and perform data processing and data set establishment;
[0008] Adjust various parameters in the decision switching model, perform graph-structured processing on the established data set, and perform training based on this data set to obtain a decision switching model that can accurately identify the training scenario;
[0009] Obtain the information of the vehicle and the current scene in the perception information of the autonomous driving car in real time, input it into the decision switching model, perform threshold screening on the output to obtain its corresponding decision label, and automatically make a decision call based on the label;
[0010] Set up sustainable learning for the decision switching model, select the sustainable learning method of replay training, and set up a replay data pool to store the previously trained scenarios and vehicle information for subsequent continuous learning and data set reconstruction;
[0011] When an autonomous vehicle enters an unknown scene, it will use the continuous learning setting to perform continuous learning, obtain a converged decision switching model, and automatically screen the scene, converting the unknown scene into a known scene and performing threshold screening based on the output of the decision switching model to obtain the decision label for decision calling, thus completing the decision in the unknown scene.
[0012] As a preferred solution of the reinforcement learning autonomous driving decision switching method based on sustainable learning described in the present invention, wherein: the creation of a multi-scenario decision environment, training of a reinforcement learning decision model in the divided scenarios, obtaining multiple converged reinforcement learning decision models, and completing the test in each scenario include:
[0013] Build a multi-scenario decision environment and divide the scenarios, including but not limited to ramp ingress, ramp egress, and two-lane merging;
[0014] Conduct decision modeling for different scenarios;
[0015] The RainbowDQN reinforcement learning algorithm is used for training according to the divided scenarios, and different auxiliary learning methods are used to expand the state space to increase auxiliary information that is effective for decision-making;
[0016] Load the corresponding reinforcement learning decision model in the divided scenario for separate testing.
[0017] As a preferred solution of the reinforcement learning automatic driving decision switching method based on sustainable learning of the present invention, wherein: the decision modeling for different scenarios includes:
[0018] With a four-tuple state, action, reward and state transition function<S,A,R,p> Constitute an MDP process; for the state information s obtained at this time t , the agent will choose the appropriate action a t , after executing this action, it enters the state of the next moment, as shown in the following formula:
[0019] s t+1 =p(s t+1 |s t ,a t )=Pγ(s t+1 |s t ,a t )
[0020] The reward value R at this moment is given by the reward function r(s t ,a t ) to get r:S×A×S→R; reinforcement learning ultimately hopes to find a strategy π(s t ,a t ) to achieve the maximum expected cumulative reward value. For T time ranges, the cumulative reward value G at time t is t The calculation of is as follows:
[0021]
[0022] Where γ represents the discount factor;
[0023] For reinforcement learning, the decision-making process is usually based on the action value function q π (s,a) makes a decision, which means that the agent obtains the accumulated reward value G after selecting the corresponding action a in the current state s according to the strategy π t , the action value function q π (s,a) is a certain evaluation of the quality of each action under the same environmental state, and its definition equation is as follows:
[0024]
[0025] Among them, E π It means that the agent gets the cumulative reward value G after selecting the corresponding action a in state s according to strategy π in one round. t The mean of
[0026] In the MDP problem, when the strategy changes, the corresponding value function will also change accordingly. It is necessary to obtain the optimal strategy π * , taking the action corresponding to the maximum action value function as the optimal strategy, the formula is as follows:
[0027]
[0028] As a preferred solution of the reinforcement learning autonomous driving decision switching method based on sustainable learning described in the present invention, wherein: the RainbowDQN reinforcement learning algorithm is used for training for the divided scenes, and different auxiliary learning methods are used for state space expansion, and the auxiliary information effective for decision-making is added, including:
[0029] The RainbowDQN algorithm uses neural networks to avoid the situation where the dimension is too large. At the same time, the main network and the target network are built. The target network is updated with the parameters of the main network every certain rounds, and the required TD error value is obtained with the help of the target network. The calculation formula is as follows:
[0030] δ RainbowDQN =R t+1 +γ(1-d)maxa′Q θ- (s′,a′)-Q θ (s,a)
[0031] Among them, δ represents the TD error; R represents the reward value; γ represents the discount factor; d is the sample termination mark
[0033] If the value of d is 1, it means that the sample has reached the end, otherwise the value of d is 0; θ and θ - Represent the parameters of the main network and the target network respectively; Q represents the action value function; s represents the state information; a represents the action;
[0034] In addition, the experience replay method is used to store the interaction sample data obtained during the training process in the experience pool, and a batch of samples is randomly selected to train the main network. At the same time, the loss function is obtained through the TD error, and the gradient descent method is used to update the relevant parameters of the main network. The formula is as follows:
[0035]
[0036] Among them, N represents the number of samples in a batch, Q θ (s i ,a i ) indicates that the main network, i.e., the policy network, is in the state-action pair (s i ,a i ) is the action value output when .
[0037] As a preferred solution of the reinforcement learning autonomous driving decision switching method based on sustainable learning described in the present invention, wherein: the decision switching model is built by using a graph neural network, data is collected in the scenario, and data processing and data set establishment include:
[0038] The decision switching model uses a fully connected layer, a convolutional neural network, and a self-attention mechanism to build a graph structure network. It also uses layer standardization to avoid overfitting during training. Its input selects the perception information and road information of seven vehicles including the self-vehicle as state features. The obtained state features f i t As shown below:
[0039] f i t =[x i t ,y i t ,vx i t ,vy i t ,l num ,l w ]
[0040] Among them, t represents the time when the information is obtained, x, y, vx, and vy represent the longitudinal and lateral positions and speeds of the vehicle, respectively. The settings are consistent with the trajectory prediction part. num represents the number of lanes, l w Indicates lane width;
[0041] The overall model is shown as follows:
[0042] L C1 =Maxpolling(Conv1D(L,θ C ))
[0043] L C2 =LN(Dense(L C2 ,θ D ))
[0044] C1=LN(Dense(C,θ D ))
[0045]
[0046] S1=LN(Dense(S,θ D ))
[0047] Label=Dense(LN(Dense(Concat(S1,H),θ D )),θ D )
[0048] Wherein, L represents road information, including the above l num With l w, C represents the interaction information between vehicles, specifically the relative position and speed between vehicles, S represents the position and speed information of each vehicle, Conv1D represents the convolutional network layer, θ C is the neural network parameter, Maxpolling represents the pooling network layer, Dense represents the fully connected layer, θ D is its neural network parameter, LN is the normalization layer, Att represents the self-attention mechanism, focusing on screening environmental information and vehicle interaction information, Represents its neural network parameters, and Concat is a concatenation operation.
[0049] As a preferred solution of the reinforcement learning autonomous driving decision switching method based on sustainable learning described in the present invention, wherein: the adjustment of various parameters in the decision switching model, the graph structured processing of the established data set, and the training based on the data set to obtain the decision switching model that can accurately identify the trained scene include:
[0050] Initialize the network parameters of the constructed graph network and set its hyperparameters. During the training process, the learning rate will be reduced to half of the original rate every 50 rounds.
[0051] The data in the dataset is structured into a graph. Specifically, the position and speed information of the vehicles in the dataset are used as points of the graph structure, their relative position and speed information are used as a set of edges, and the scene feature information is used as another set of edges, which correspond to the three corresponding inputs of the graph network respectively.
[0052] Match the known scene labels with the corresponding decision model labels, and use them as fitting labels as the output fitting of the neural network;
[0053] The processed graph structure data is input into the decision switching model for training to obtain a decision switching model that can accurately identify the trained scenarios.
[0054] As a preferred solution of the reinforcement learning autonomous driving decision switching method based on sustainable learning described in the present invention, wherein: the real-time acquisition of the vehicle and current scene information in the autonomous driving vehicle perception information is input into the decision switching model and the output is threshold screened to obtain its corresponding decision label, and the automatic decision call is made according to the label, including:
[0055] Load the pre-trained decision switching model parameters and all reinforcement learning decision model parameters;
[0056] Initialize scene and vehicle status;
[0057] S41: obtaining information about the vehicle and the current scene in the perception information of the autonomous driving vehicle in real time, and inputting the information into the decision switching model;
[0058] S42: Analyze the output of the decision switching model and retain a certain redundancy, set its error range to 0.2 as the error threshold for threshold screening, that is, the output value of each scene label value whose fluctuation is less than this threshold is determined as the scene label;
[0059] S43: calling the decision model of the corresponding label and obtaining the vehicle state input of the decision model in the perception information. The decision model selects the best decision action in the action space according to the input, and inputs it into the underlying planning control model for execution, and the vehicle state is updated;
[0060] Repeat the operations of S41 to S43 to complete the multi-scenario reinforcement learning decision in the known scenario.
[0061] As a preferred solution of the reinforcement learning automatic driving decision switching method based on sustainable learning described in the present invention, wherein: the setting of sustainable learning of the decision switching model, selecting the sustainable learning method of playback training, and setting the playback data pool to store the previously trained scenes and vehicle information for subsequent continuous learning to reconstruct the data set include:
[0062] Create a playback data pool to store vehicle and scene data information retained in known scenes;
[0063] When faced with an unrecognized scenario, the reinforcement learning decision model with the lowest reciprocal action value function value will be selected to make a decision, and the corresponding labels of the scenario and decision will be automatically assigned;
[0064] In unrecognized scenes, the autonomous vehicle will automatically collect 10,000 sets of vehicle information and scene information and store them in the playback data pool for data set reconstruction;
[0065] After completing the information collection, the decision switching model parameters will be automatically loaded, and continuous training will be performed based on the reconstructed dataset after reducing its learning rate.
[0066] As a preferred solution of the reinforcement learning autonomous driving decision switching method based on sustainable learning described in the present invention, wherein: when the autonomous driving car enters an unknown scene, it will use the setting of sustainable learning to perform sustainable learning, obtain a converged decision switching model, and automatically screen the scene, convert the unknown scene into a known scene, and perform threshold screening according to the output of the decision switching model to obtain a decision label for decision calling, and complete the decision in the unknown scene, including:
[0067] Load the pre-trained decision switching model parameters and all reinforcement learning decision model parameters;
[0068] When an autonomous vehicle drives into an unknown scene, it obtains the vehicle and current scene information in real time and inputs it into the decision-making switching model;
[0069] The decision switching model outputs an unknown label, and the autonomous driving vehicle will automatically perform sustainable learning settings on the decision switching model according to the above to obtain a converged decision switching model;
[0070] Automatically reload the converged decision switching model, input the vehicle and scene information in the perception information into the decision switching model, obtain the corresponding decision label through threshold screening, and make a decision call;
[0071] The decision model selects the best decision action in the action space based on its perception information, and inputs it into the underlying planning control model for execution. The vehicle status is updated and this step is repeated until the decision is completed.
[0072] The beneficial effects of the present invention are as follows: 1. The present invention performs scene recognition based on deep learning and switches decisions according to the recognition results. In decision-making tasks in multiple scenarios, it can autonomously call the corresponding decision models and maintain the multi-model decision-making method. It can keep each decision model making decisions in each adaptive decision scenario, thereby improving the decision-making performance in multiple scenarios, and can realize parallel training, greatly reducing the training time.
[0073] 2. The present invention introduces a sustainable learning method, which can realize adaptive scene recognition and decision-making in the face of unknown scenarios, realize lifelong learning, achieve efficient decision-making in all scenarios, and improve the transferability of decision-making models to real scenarios.
[0074] 3. The present invention utilizes the reinforcement learning action value function to represent the uncertainty characteristics of the model for the scene, and uses the inverse of its action value function as the label basis for decision switching when facing a new scene. According to this value, it is possible to automatically correspond to the label connection between the scene and the decision when driving in an unknown scene, and use it as a training fitting label for the decision switching model for new scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0076] Figure 1 The overall flow chart of the decision switching method for autonomous driving based on reinforcement learning based on sustainable learning.
[0077] Figure 2 The scene recognition result after pre-training of the reinforcement learning autonomous driving decision switching method based on sustainable learning
[0078] Figure 3 This is a diagram of the scene recognition results after sustainable training of the reinforcement learning autonomous driving decision switching method based on sustainable learning.
[0079] Figure 4 This is a comparison chart of multi-scenario decision-making test results of the reinforcement learning autonomous driving decision switching method based on sustainable learning. DETAILED DESCRIPTION
[0080] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0081] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0082] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0083] Example 1
[0084] Reference Figures 1 to 4 , which is an embodiment of the present invention, provides a reinforcement learning autonomous driving decision switching method based on sustainable learning, including:
[0085] S1: Create a multi-scenario decision-making environment, train the reinforcement learning decision model in the divided scenarios, obtain multiple converged reinforcement learning decision models, and complete the testing in each scenario.
[0086] Furthermore, the creation of a multi-scenario decision environment, training of a reinforcement learning decision model in the divided scenarios, obtaining multiple converged reinforcement learning decision models, and completing testing in each scenario include:
[0087] Build a multi-scenario decision environment and divide the scenarios, including but not limited to ramp ingress, ramp egress, and two-lane merging;
[0088] Conduct decision modeling for different scenarios;
[0089] The RainbowDQN reinforcement learning algorithm is used for training according to the divided scenarios, and different auxiliary learning methods are used to expand the state space to increase auxiliary information that is effective for decision-making;
[0090] Load the corresponding reinforcement learning decision model in the divided scenario for separate testing.
[0091] Furthermore, the decision modeling for different scenarios includes:
[0092] With a four-tuple state, action, reward and state transition function<S,A,R,p> Constitute an MDP process; for the state information s obtained at this time t , the agent will choose the appropriate action a t , after executing this action, it enters the state of the next moment, as shown in the following formula:
[0093] s t+1 =p(s t+1 |s t ,a t )=Pγ(s t+1 |s t ,a t )
[0094] The reward value R at this moment is given by the reward function r(s t ,a t ) to get r:S×A×S→R; reinforcement learning ultimately hopes to find a strategy π(s t ,a t ) to achieve the maximum expected cumulative reward value. For T time ranges, the cumulative reward value G at time t is t The calculation of is as follows:
[0095]
[0096] Among them, γ represents the discount factor; its value range is roughly between 0.9 and 1, mainly to consider the weight of the future reward in the accumulated reward value at the current moment, and the k-1 calculated at the future t+k moment
[0097] The reward received will be multiplied by γ and added to the accumulated reward value at the current moment. It can be found that the closer the value of γ is to 1, the more "valued" the reward received in the future moment will be.
[0098] For reinforcement learning, the decision-making process is usually based on the action value function q π (s,a) makes a decision, which means that the agent obtains the accumulated reward value G after selecting the corresponding action a in the current state s according to the strategy π t , the action value function q π (s,a) is a certain evaluation of the quality of each action under the same environmental state, and its definition equation is as follows:
[0099]
[0100] Among them, E π It means that the agent gets the cumulative reward value G after selecting the corresponding action a in state s according to strategy π in one round. t The mean of
[0101] In the MDP problem, if the strategy changes, the corresponding value function will also change accordingly. To obtain the optimal strategy π * , directly take the action corresponding to the maximum action value function as the optimal strategy, and the formula is as follows:
[0102]
[0103] Furthermore, the RainbowDQN reinforcement learning algorithm is used for training the divided scenarios, and different auxiliary learning methods are used to expand the state space, and the auxiliary information effective for decision-making is added, including:
[0104] The deep reinforcement learning RainbowDQN algorithm is a reinforcement learning algorithm based on the DQN algorithm. The RainbowDQN algorithm uses neural networks to avoid the situation where the dimension is too large. At the same time, the main network and the target network are built. The target network is updated with the parameters of the main network at regular intervals. The required TD error value is obtained with the help of the target network. The calculation formula is as follows:
[0105] δ RainbowDQN =R t+1 +γ(1-d)max a′ Q θ- (s′,a′)-Q θ (s,a)
[0106] Among them, δ represents the TD error; R represents the reward value; γ represents the discount factor; d is the sample termination indicator. If the value of d is 1, it means that the sample has reached the termination, otherwise the value of d is 0; θ and θ - Represent the parameters of the main network and the target network respectively; Q represents the action value function; s represents the state information; a represents the action;
[0107] In addition, the experience replay method is used to store the interaction sample data obtained during the training process in the experience pool, and a batch of samples is randomly selected to train the main network. At the same time, the loss function is obtained through the TD error, and the gradient descent method is used to update the relevant parameters of the main network. The formula is as follows:
[0108]
[0109] Among them, N represents the number of samples in a batch, Qθ (s i ,a i ) indicates that the main network, i.e., the policy network, is in the state-action pair (s i ,a i ) is the action value output when .
[0110] The RainbowDQN algorithm combines the advantages of six DQN variant algorithms, including Double Q learning, experience priority replay, Dueling network, Multi-step learning, Distributive RL and Noisy Nets. Compared with DQN and its other variant algorithms, it has better convergence speed and decision-making performance.
[0111] S2: Build a decision switching model through graph neural network, collect data in the above scenario, and perform data processing and data set establishment.
[0112] Furthermore, the decision switching model is built through the graph neural network, data is collected in the scenario, and data processing and data set establishment include:
[0113] The decision switching model uses a fully connected layer, a convolutional neural network, and a self-attention mechanism to build a graph structure network. It also uses layer standardization to avoid overfitting during training. Its input selects the perception information and road information of seven vehicles including the self-vehicle as state features. The obtained state features f i t As shown below:
[0114] f i t =[x i t ,y i t ,vx i t ,vy i t ,l num ,l w ]
[0115] Among them, t represents the time when the information is obtained, x, y, vx, and vy represent the longitudinal and lateral positions and speeds of the vehicle, respectively. The settings are consistent with the trajectory prediction part. num represents the number of lanes, l w Indicates lane width;
[0116] The overall model is shown as follows:
[0117] L C1 =Maxpolling(Conv1D(L,θC ))
[0118] L C2 =LN(Dense(L C2 ,θ D ))
[0119] C1=LN(Dense(C,θ D ))
[0120]
[0121] S1=LN(Dense(S,θ D ))
[0122] Label=Dense(LN(Dense(Concat(S1,H),θ D )),θ D )
[0123] Wherein, L represents road information, including the above l num With l w , C represents the interaction information between vehicles, specifically the relative position and speed between vehicles, S represents the position and speed information of each vehicle, Conv1D represents the convolutional network layer, θ C is the neural network parameter, Maxpolling represents the pooling network layer, Dense represents the fully connected layer, θ D is its neural network parameter, LN is the normalization layer, Att represents the self-attention mechanism, focusing on screening environmental information and vehicle interaction information, Represents its neural network parameters, and Concat is a concatenation operation.
[0124] In this example, the data set collected 100,000 sets of information for training, and retained 10,000 sets of data in each divided scene as data for subsequent sustainable training. The scenes were divided into known scenes and unknown scenes, and data collection was only performed in known scenes. The data in the data set include: the lateral and longitudinal position, lateral and longitudinal speed of the vehicle, and the lateral and longitudinal position and speed of surrounding vehicles within the perception range; scene feature information includes the number of lanes and lane width.
[0125] S3: Adjust various parameters in the decision switching model, perform graph-structured processing on the established data set, and perform training based on this data set to obtain a decision switching model that can accurately identify the trained scenario.
[0126] Further, the adjusting of various parameters in the decision switching model, graph-structuring of the established data set, and training based on the data set to obtain a decision switching model that can accurately identify the trained scenario includes:
[0127] Initialize the network parameters of the constructed graph network and set its hyperparameters. During the training process, the learning rate will be reduced to half of the original rate every 50 rounds.
[0128] The data in the dataset is structured into a graph. Specifically, the position and speed information of the vehicles in the dataset are used as points of the graph structure, their relative position and speed information are used as a set of edges, and the scene feature information is used as another set of edges, which correspond to the three corresponding inputs of the graph network respectively.
[0129] Match the known scene labels with the corresponding decision model labels, and use them as fitting labels as the output fitting of the neural network;
[0130] The processed graph structure data is input into the decision switching model for training to obtain a decision switching model that can accurately identify the trained scenarios.
[0131] S4: Obtain the information of the vehicle and the current scene in the perception information of the autonomous driving car in real time, input it into the decision switching model, perform threshold screening on the output to obtain its corresponding decision label, and automatically make a decision call based on the label.
[0132] Furthermore, the real-time acquisition of the vehicle and current scene information in the perception information of the autonomous driving vehicle is input into the decision switching model and the output is threshold screened to obtain the corresponding decision label, and the decision call is automatically made according to the label, including:
[0133] Load the pre-trained decision switching model parameters and all reinforcement learning decision model parameters;
[0134] Initialize scene and vehicle status;
[0135] S41: obtaining information about the vehicle and the current scene in the perception information of the autonomous driving vehicle in real time, and inputting the information into the decision switching model;
[0136] S42: Analyze the output of the decision switching model and retain a certain redundancy, set its error range to 0.2 as the error threshold for threshold screening, that is, the output value of each scene label value whose fluctuation is less than this threshold is determined as the scene label;
[0137] S43: calling the decision model of the corresponding label and obtaining the vehicle state input of the decision model in the perception information. The decision model selects the best decision action in the action space according to the input, and inputs it into the underlying planning control model for execution, and the vehicle state is updated;
[0138] Repeat the operations of S41 to S43 to complete the multi-scenario reinforcement learning decision in the known scenario.
[0139] S5: Set up sustainable learning for the decision switching model, select the sustainable learning method of replay training, and set up a replay data pool to store the previously trained scenarios and vehicle information for subsequent continuous learning and data set reconstruction.
[0140] Furthermore, the setting of continuous learning of the decision switching model, selecting a continuous learning method of playback training, and setting a playback data pool to store previously trained scenes and vehicle information for subsequent continuous learning and data set reconstruction include:
[0141] Create a playback data pool to store vehicle and scene data information retained in known scenes;
[0142] When faced with an unrecognized scenario, the reinforcement learning decision model with the lowest reciprocal action value function value will be selected to make a decision, and the corresponding labels of the scenario and decision will be automatically assigned;
[0143] In unrecognized scenes, the autonomous vehicle will automatically collect 10,000 sets of vehicle information and scene information and store them in the playback data pool for data set reconstruction;
[0144] After completing the information collection, the decision switching model parameters will be automatically loaded, and continuous training will be performed based on the reconstructed dataset after reducing its learning rate.
[0145] S6: When an autonomous vehicle enters an unknown scene, it will use the continuous learning setting to perform continuous learning, obtain a converged decision switching model, and automatically screen the scene, convert the unknown scene into a known scene, and perform threshold screening based on the output of the decision switching model to obtain the decision label for decision calling, and complete the decision in the unknown scene.
[0146] Furthermore, when the autonomous driving car enters an unknown scene, it will use the setting of continuous learning to perform continuous learning, obtain a converged decision switching model, and automatically screen the scene, convert the unknown scene into a known scene, and perform threshold screening according to the output of the decision switching model to obtain a decision label for decision calling, and complete the decision in the unknown scene, including:
[0147] Load the pre-trained decision switching model parameters and all reinforcement learning decision model parameters;
[0148] When an autonomous vehicle drives into an unknown scene, it obtains the vehicle and current scene information in real time and inputs it into the decision-making switching model;
[0149] The decision switching model outputs an unknown label, and the autonomous driving vehicle will automatically perform sustainable learning settings on the decision switching model according to the above to obtain a converged decision switching model;
[0150] Automatically reload the converged decision switching model, input the vehicle and scene information in the perception information into the decision switching model, obtain the corresponding decision label through threshold screening, and make a decision call;
[0151] The decision model selects the best decision action in the action space based on its perception information, and inputs it into the underlying planning control model for execution. The vehicle status is updated and this step is repeated until the decision is completed.
[0152] In summary, the present invention improves the transferability of reinforcement learning decision-making in multiple realistic scenarios, solves the problems of poor convergence speed and convergence effect of reinforcement learning decision-making models in multiple scenarios, which greatly increases the training time and causes poor decision-making effect, and cannot adapt to scene changes in multiple scenarios, as well as cannot design reward functions for individual scenes. In addition, some auxiliary learning methods can be introduced into individual scenes to improve their decision-making performance in individual scenes, thereby realizing adaptive optimal decision-making calls for unknown scenarios.
[0153] The above is a schematic scheme of a reinforcement learning autonomous driving decision switching method based on sustainable learning in this embodiment. It should be noted that the technical scheme of the system for reinforcement learning autonomous driving decision switching based on sustainable learning and the technical scheme of the reinforcement learning autonomous driving decision switching method based on sustainable learning belong to the same concept. The details not described in detail in the technical scheme of the reinforcement learning autonomous driving decision switching system based on sustainable learning in this embodiment can be found in the description of the technical scheme of the reinforcement learning autonomous driving decision switching method based on sustainable learning.
[0154] This embodiment further provides a computing device, which is applicable to the case of decision switching of autonomous driving based on continuous learning reinforcement learning, including:
[0155] Memory and processor; the memory is used to store computer-executable instructions, and the processor is used to execute computer-executable instructions to implement the reinforcement learning autonomous driving decision switching method based on sustainable learning as proposed in the above embodiment.
[0156] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for implementing reinforcement learning autonomous driving decision switching based on sustainable learning as proposed in the above embodiment is implemented.
[0157] The storage medium proposed in this embodiment and the method for implementing reinforcement learning autonomous driving decision switching based on sustainable learning proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0158] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ReadOnly, Memory, ROM), random access memory (RandomAccess Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.
[0159] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0160] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0161] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.
[0162] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc. It should be noted that the above embodiments are only used to illustrate the technical solution of the present invention and are not limited. Although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
[0163] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A reinforcement learning autonomous driving decision switching method based on sustainable learning, characterized by: include, Create a multi-scenario decision-making environment, train the reinforcement learning decision model in the divided scenarios, obtain multiple converged reinforcement learning decision models, and complete the test in each scenario; Build a decision switching model through graph neural network, collect data in the scenario, and perform data processing and data set establishment; Adjust various parameters in the decision switching model, perform graph-structured processing on the established data set, and perform training based on this data set to obtain a decision switching model that can accurately identify the training scenario; Obtain the information of the vehicle and the current scene in the perception information of the autonomous driving car in real time, input it into the decision switching model, perform threshold screening on the output to obtain its corresponding decision label, and automatically make a decision call based on the label; Set up sustainable learning for the decision switching model, select the sustainable learning method of replay training, and set up a replay data pool to store the previously trained scenarios and vehicle information for subsequent continuous learning and data set reconstruction; When an autonomous vehicle enters an unknown scene, it will use the continuous learning setting to perform continuous learning, obtain a converged decision switching model, and automatically screen the scene, converting the unknown scene into a known scene and performing threshold screening based on the output of the decision switching model to obtain the decision label for decision calling, thus completing the decision in the unknown scene.
2. The reinforcement learning autonomous driving decision switching method based on sustainable learning as claimed in claim 1, characterized in that: The creation of a multi-scenario decision environment, training of reinforcement learning decision models in the divided scenarios, obtaining multiple converged reinforcement learning decision models, and completing testing in each scenario include: Build a multi-scenario decision environment and divide the scenarios, including but not limited to ramp ingress, ramp egress, and two-lane merging; Conduct decision modeling for different scenarios; The RainbowDQN reinforcement learning algorithm is used for training according to the divided scenarios, and different auxiliary learning methods are used to expand the state space to increase auxiliary information that is effective for decision-making; Load the corresponding reinforcement learning decision model in the divided scenario for separate testing.
3. The reinforcement learning automatic driving decision switching method based on sustainable learning as claimed in claim 2, characterized in that: The decision modeling for different scenarios includes: With a four-tuple state, action, reward and state transition function<S,A,R,p> Constitute an MDP process; for the state information s obtained at this time t , the agent will choose the appropriate action a t , after executing this action, it enters the state of the next moment, as shown in the following formula: s t+1 =p(s t+1 |s t ,a t )=Pγ(s t+1 |s t ,a t ) The reward value R at this moment is given by the reward function r(s t ,a t ) to get r:S×A×S→R; reinforcement learning ultimately hopes to find a strategy π(s t ,a t ) to achieve the maximum expected cumulative reward value. For T time ranges, the cumulative reward value G at time t is t The calculation of is as follows: Where γ represents the discount factor; For reinforcement learning, the decision-making process is usually based on the action value function q π (s,a) makes a decision, which means that the agent obtains the accumulated reward value G after selecting the corresponding action a in the current state s according to the strategy π t , the action value function q π (s,a) is a certain evaluation of the quality of each action under the same environmental state, and its definition equation is as follows: Among them, E π It means that the agent gets the cumulative reward value G after selecting the corresponding action a in state s according to strategy π in one round. t The mean of In the MDP problem, when the strategy changes, the corresponding value function will also change accordingly. It is necessary to obtain the optimal strategy π * , taking the action corresponding to the maximum action value function as the optimal strategy, the formula is as follows:
4. The reinforcement learning automatic driving decision switching method based on sustainable learning as claimed in claim 3, characterized in that: The RainbowDQN reinforcement learning algorithm is used for training the divided scenarios, and different auxiliary learning methods are used to expand the state space, and the auxiliary information effective for decision-making is added, including: The RainbowDQN algorithm uses neural networks to avoid the situation where the dimension is too large. At the same time, the main network and the target network are built. The target network is updated with the parameters of the main network every certain rounds, and the required TD error value is obtained with the help of the target network. The calculation formula is as follows: Where δ represents the TD error; R represents the reward value; γ represents the discount factor; d is the sample termination indicator. If the value of d is 1, it means that the sample has reached the termination, otherwise the value of d is 0; θ and θ - Represent the parameters of the main network and the target network respectively; Q represents the action value function; s represents the state information; a represents the action; In addition, the experience replay method is used to store the interaction sample data obtained during the training process in the experience pool, and a batch of samples is randomly selected to train the main network. At the same time, the loss function is obtained through the TD error, and the gradient descent method is used to update the relevant parameters of the main network. The formula is as follows: Among them, N represents the number of samples in a batch, Q θ (s i ,a i ) indicates that the main network, i.e., the policy network, is in the state-action pair (s i ,a i ) is the action value output when .
5. The reinforcement learning automatic driving decision switching method based on sustainable learning as claimed in claim 4, characterized in that: The decision switching model is built by using a graph neural network, data is collected in the scenario, and data processing and data set establishment are performed, including: The decision switching model uses a fully connected layer, a convolutional neural network, and a self-attention mechanism to build a graph structure network. It also uses layer standardization to avoid overfitting during training. Its input selects the perception information and road information of seven vehicles including the self-vehicle as state features. The obtained state features f i t As shown below: f i t =[x i t ,y i t ,vx i t ,vy i t ,L num ,L w ] Among them, t represents the time when the information is obtained, x, y, vx, and vy represent the longitudinal and lateral positions and speeds of the vehicle, respectively. The settings are consistent with the trajectory prediction part. num represents the number of lanes, l w Indicates lane width; The overall model is shown as follows: L C1 =Maxpolling(Conv1D(L,θ C )) L C2 =LN(Dense(L C2 ,θ D )) C1=LN(Dense(C,θ D )) S1=LN(Dense(S,θ D )) Label=Dense(LN(Dense(Concat(S1,H),θ D )),θ D ) Wherein, L represents road information, including the above l num With l w , C represents the interaction information between vehicles, specifically the relative position and speed between vehicles, S represents the position and speed information of each vehicle, Conv1D represents the convolutional network layer, θ C is the neural network parameter, Maxpolling represents the pooling network layer, Dense represents the fully connected layer, θ D is the neural network parameter, LN is the normalization layer, Att represents the self-attention mechanism, focusing on screening environmental information and vehicle interaction information. Represents its neural network parameters, and Concat is a concatenation operation.
6. The reinforcement learning autonomous driving decision switching method based on sustainable learning as claimed in claim 5, characterized in that: The adjusting of various parameters in the decision switching model, graph-structuring of the established data set, and training based on the data set to obtain a decision switching model capable of accurately identifying the trained scenario include: Initialize the network parameters of the constructed graph network and set its hyperparameters. During the training process, the learning rate will be reduced to half of the original rate every 50 rounds. The data in the dataset is structured into a graph. Specifically, the position and speed information of the vehicles in the dataset are used as points of the graph structure, their relative position and speed information are used as a set of edges, and the scene feature information is used as another set of edges, which correspond to the three corresponding inputs of the graph network respectively. Match the known scene labels with the corresponding decision model labels, and use them as fitting labels as the output fitting of the neural network; The processed graph structure data is input into the decision switching model for training to obtain a decision switching model that can accurately identify the trained scenarios.
7. The reinforcement learning automatic driving decision switching method based on sustainable learning according to claim 6, characterized in that: The real-time acquisition of the vehicle and current scene information in the perception information of the autonomous driving vehicle is input into the decision switching model and the output is threshold screened to obtain the corresponding decision label, and the decision call is automatically made according to the label, including: Load the pre-trained decision switching model parameters and all reinforcement learning decision model parameters; Initialize scene and vehicle status; S41: obtaining information about the vehicle and the current scene in the perception information of the autonomous driving vehicle in real time, and inputting the information into the decision switching model; S42: Analyze the output of the decision switching model and retain a certain redundancy, set its error range to 0.2 as the error threshold for threshold screening, that is, the output value of each scene label value whose fluctuation is less than this threshold is determined as the scene label; S43: calling the decision model of the corresponding label and obtaining the vehicle state input of the decision model in the perception information. The decision model selects the best decision action in the action space according to the input, and inputs it into the underlying planning control model for execution, and the vehicle state is updated; Repeat the operations of S41 to S43 to complete the multi-scenario reinforcement learning decision in the known scenario.
8. The reinforcement learning automatic driving decision switching method based on sustainable learning as claimed in claim 7, characterized in that: The setting of the decision switching model for sustainable learning, selecting a sustainable learning method for playback training, and setting a playback data pool to store previously trained scenes and vehicle information for subsequent continuous learning and data set reconstruction include: Create a playback data pool to store vehicle and scene data information retained in known scenes; When faced with an unrecognized scenario, the reinforcement learning decision model with the lowest reciprocal action value function value will be selected to make a decision, and the corresponding labels of the scenario and decision will be automatically assigned; In unrecognized scenes, the autonomous vehicle will automatically collect 10,000 sets of vehicle information and scene information and store them in the playback data pool for data set reconstruction; After completing the information collection, the decision switching model parameters will be automatically loaded, and continuous training will be performed based on the reconstructed dataset after reducing its learning rate.
9. The reinforcement learning automatic driving decision switching method based on sustainable learning as claimed in claim 8, characterized in that: When the autonomous driving car enters an unknown scene, it will use the setting of continuous learning to perform continuous learning, obtain a converged decision switching model, and automatically screen the scene, convert the unknown scene into a known scene, and perform threshold screening based on the output of the decision switching model to obtain a decision label for decision calling. The decision-making in the unknown scene includes: Load the pre-trained decision switching model parameters and all reinforcement learning decision model parameters; When an autonomous vehicle drives into an unknown scene, it obtains information about the vehicle and the current scene in real time from the perception information and inputs it into the decision-making switching model; The decision switching model outputs an unknown label, and the autonomous driving vehicle will automatically perform sustainable learning settings on the decision switching model according to the above to obtain a converged decision switching model; Automatically reload the converged decision switching model, input the vehicle and scene information in the perception information into the decision switching model, obtain the corresponding decision label through threshold screening and make a decision call; The decision model selects the best decision action in the action space based on its perception information, and inputs it into the underlying planning control model for execution. The vehicle status is updated and this step is repeated until the decision is completed.
Citation Information
Cited By
Intelligent network connection vehicle autonomous decision-making method, system and device based on reinforcement learning
CN119296054A
Vehicle behavior prediction method and device with task-free lifelong learning capability, equipment, medium and product
CN119807653A
Model training method, information processor, and platform
WO2026214003A1
