Unmanned system safety decision-making method and system based on action constraint and medium

By using a combination of actor-critic algorithm and multi-dimensional value network in unmanned systems, a safety decision-making model is designed, which solves the problem of difficulty in balancing mission success rate and safety in traditional methods, and realizes the control of unmanned systems in real environments. Security decisions.

CN118550194APending Publication Date: 2024-08-27SHANGHAI UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410620812.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Traditional deep reinforcement learning methods are difficult to achieve a balance between mission success rate and safety in unmanned systems, resulting in unsafe actions that may occur in real environments, causing damage to the environment and unmanned systems.

Method used

The policy network and multi-dimensional value network are designed based on the actor-critic algorithm, and the strategic actions of the unmanned system are evaluated and optimized for safety constraints through multiple auxiliary value evaluation networks, and a safety decision-making model is constructed to ensure the safety of the actions.

Benefits of technology

It enables the unmanned system to make safer decisions while completing tasks, balances decision-making safety and task completion efficiency, avoids unsafe actions, and improves the safety of the unmanned system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550194A
    Figure CN118550194A
Patent Text Reader

Abstract

The invention discloses an unmanned system safety decision-making method and system based on action constraint and a medium, and relates to the field of automatic driving, and the method comprises the steps: designing a strategy network and a multi-dimensional value network of an unmanned system based on an actor-commentator algorithm; the multi-dimensional value network comprises a backbone network and a plurality of auxiliary value evaluation networks; one auxiliary value evaluation network corresponds to one safety action constraint; the strategy network is used for determining the current strategy action of the unmanned system according to the current state of the unmanned system; the auxiliary value evaluation network is used for judging whether the current strategy action of the unmanned system meets the corresponding safety action constraint or not; performing training optimization on the strategy network and the multi-dimensional value network based on historical training samples; determining the trained and optimized strategy network and the multi-dimensional value network as a security decision model; and obtaining the current state of the unmanned system and inputting the safety decision model to obtain an optimal strategy. According to the invention, the unmanned system can make a security decision while successfully completing a task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to an unmanned system safety decision-making method, system and medium based on action constraints. Background Art

[0002] Deep reinforcement learning is a method in which unmanned systems learn strategies that maximize the expected cumulative rewards based on feedback from the environment through interaction with the environment and continuous trial and error. However, in the actual exploration process, unmanned systems will take many unsafe actions, such as colliding with walls or changing their direction rapidly. Although these behaviors will not cause serious consequences in a simulated environment, in a real environment, unsafe actions may cause irreversible damage to both the environment and the unmanned system. Therefore, when making decisions in a real environment, unmanned systems need to limit and avoid these unsafe actions as much as possible.

[0003] In traditional deep reinforcement learning, methods to solve safety problems include: setting negative rewards, limiting action space, designing unsafe states or actions as terminal states, etc. Although these methods can prevent unmanned systems from making certain unsafe actions, it is difficult to completely solve safety problems. For example: when the negative reward is set too small, the unmanned system will ignore the punishment in order to complete the task; when the negative reward is set too large, the unmanned system will adopt an extremely conservative strategy to avoid being punished; when the action space is restricted, the decision-making ability of the unmanned system may be reduced, resulting in failure to converge to the optimal solution. Therefore, traditional deep reinforcement learning methods cannot achieve a good balance between task success rate and safety. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide an unmanned system safety decision-making method, system and medium based on action constraints, so that the unmanned system can make safer decisions while successfully completing the task.

[0005] To achieve the above purpose, the embodiment of the present invention provides the following solution:

[0006] A method for unmanned system safety decision-making based on action constraints, the method comprising:

[0007] Based on the actor-critic algorithm, a policy network and a multidimensional value network of an unmanned system are designed; the multidimensional value network includes: a backbone network and multiple auxiliary value evaluation networks; one auxiliary value evaluation network corresponds to a safety action constraint; the safety action constraint is a constraint to ensure that the unmanned system performs a safety action; the policy network is used to determine the current policy action of the unmanned system according to the current state of the unmanned system; the backbone network is used to evaluate the value of the current state of the unmanned system; the auxiliary value evaluation network is used to determine whether the current policy action of the unmanned system meets the corresponding safety action constraint;

[0008] Obtain historical training samples; the historical training samples at least include: the state of the unmanned system at different historical moments, the executed actions and the executed action rewards;

[0009] Based on the historical training samples, with the goal of maximizing the expected cumulative reward, a policy gradient algorithm is used to train and optimize the policy network;

[0010] Based on the historical training samples, the backbone network is trained and optimized with the goal of minimizing the loss function, and each of the auxiliary value assessment networks is trained and optimized using a weight update formula;

[0011] The trained and optimized policy network, backbone network and multiple auxiliary value assessment networks are determined as a security decision model;

[0012] The current state of the unmanned system is obtained and input into the safety decision model to obtain the current optimal strategy of the unmanned system; the optimal strategy at least includes the current execution action of the unmanned system.

[0013] Optionally, historical training samples are obtained, including:

[0014] Get the status of the unmanned system at different historical moments; for the status of the unmanned system at any historical moment, perform the following steps:

[0015] Inputting the current state of the unmanned system into the policy network to obtain the current policy action of the unmanned system; the current state of the unmanned system is any state of the unmanned system at different historical moments;

[0016] Perform multiple sampling within the setting range of the current strategy action of the unmanned system to obtain multiple current sampling actions of the unmanned system;

[0017] Input all current sampling actions of the unmanned system into the multi-dimensional value network for evaluation to determine whether all sampling actions do not satisfy all safety action constraints; if so, expand the set range and re-sample; if not, use the sampling actions that satisfy all safety action constraints as alternative actions;

[0018] Randomly select an action from the candidate actions as the current execution action of the unmanned system;

[0019] Based on the unmanned system's current execution action and reward function, determine the unmanned system's current execution action reward.

[0020] Optionally, each auxiliary value assessment network is trained and optimized using a weight update formula, specifically including:

[0021] Determining a weight update period for each of the auxiliary value assessment networks;

[0022] Counting the completed task information of the unmanned system in each weight update cycle of the auxiliary value assessment network; the completed task information includes: the number of times the unmanned system completes the task without violating the safety action constraint, the number of times the task is completed while violating the safety action constraint, the number of times the safety action constraint is not violated, and the number of times the safety action constraint is violated;

[0023] Based on the weight update cycle of all auxiliary value assessment networks and the completed task information within the weight update cycle, each of the auxiliary value assessment networks is trained and optimized using the weight update formula.

[0024] Optionally, the calculation formula of the policy gradient algorithm is:

[0025]

[0026] Where θ is the policy network parameter, J(·) is the expected cumulative reward obtained by the unmanned system, and f π (·) is the policy network, f Q (·) is a multi-dimensional value network, S t is the state of the unmanned system at time t, is the execution action of the unmanned system at time t, r t is the reward for the unmanned system to perform the action at time t, An experience pool for storing historical training samples.

[0027] Optionally, the loss function is:

[0028]

[0029]

[0030] In the formula, is the backbone network parameter, L(·) is the backbone network loss, S t is the state of the unmanned system at time t, is the execution action of the unmanned system at time t, is the experience pool for storing historical training samples, f Q (·) is a multi-dimensional value network, is the adjusted reward of the unmanned system at time t, r t is the reward for the unmanned system’s action at time t, λ is a hyperparameter, is the i-th cost function C i The cumulative cost under the constraint, π t is the strategy of the unmanned system at time t.

[0031] Optionally, the weight update formula is:

[0032]

[0033] In the formula, is the weight of the i-th auxiliary value assessment network at the k-th iteration, α i is the weight update cycle of the i-th auxiliary value assessment network, B i is the number of times the unmanned system completes the task without violating the safety action constraints within the weight update cycle of the i-th auxiliary value assessment network, b i is the number of times the unmanned system does not violate the safety action constraints during the weight update cycle of the i-th auxiliary value assessment network, C i is the number of times the unmanned system completes the task in violation of the safety action constraint during the weight update cycle of the i-th auxiliary value assessment network, c i It is the number of times that the unmanned system does not violate the safety action constraints during the weight update cycle of the i-th auxiliary value assessment network.

[0034] Optionally, the current optimal strategy of the unmanned system is:

[0035]

[0036]

[0037]

[0038] In the formula, is the current optimal strategy of the unmanned system, J(·) is the expected cumulative reward obtained by the unmanned system, π t The current strategy for unmanned systems is C is the set of all strategies of the unmanned system under the cost function C, Π is the set of all strategies of the unmanned system, C i is the i-th cost function, is the cumulative cost under the constraints of the i-th cost function, d i is the safety action constraint corresponding to the i-th cost function, γ t is the discount factor of the unmanned system at time t, S t is the state of the unmanned system at time t, is the execution action of the unmanned system at time t.

[0039] A computer system comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the unmanned system safety decision-making method based on action constraints.

[0040] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the unmanned system safety decision-making method based on action constraints.

[0041] According to the specific embodiments provided by the embodiments of the present invention, the present invention discloses the following technical effects:

[0042] The present invention designs a policy network and a multidimensional value network based on the actor-critic algorithm, and uses the policy network to determine the policy action corresponding to the current state of the unmanned system. In order to improve the safety of the unmanned system when completing tasks, the present invention designs different auxiliary value evaluation networks in the multidimensional value network for different safety action constraints, and uses different auxiliary value evaluation networks to further evaluate whether the current policy action of the unmanned system meets the corresponding safety action constraints. Finally, the safety decision-making model composed of the policy network and the multidimensional value network is used to effectively constrain the action generation and selection of the unmanned system, so that the unmanned system can comply with a variety of different types of safety action constraints while successfully completing the task, thereby achieving a balance between decision-making safety and task completion efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. 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 paying creative labor.

[0044] Figure 1 A flowchart of an unmanned system safety decision-making method based on action constraints provided by an embodiment of the present invention;

[0045] Figure 2 A diagram of a driverless vehicle lane mission scenario provided by an embodiment of the present invention;

[0046] Figure 3 A curve diagram showing the relationship between the number of trainings and the average reward under different reinforcement learning methods provided in an embodiment of the present invention;

[0047] Figure 4 A curve diagram showing the relationship between the number of training times and the cost under different reinforcement learning methods provided in the embodiments of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The purpose of the present invention is to provide an unmanned system safety decision-making method, system and medium based on action constraints, so that the unmanned system can make safer decisions while successfully completing the task.

[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0051] The present invention models the safety of the process of unmanned systems sensing and acquiring external environment information and making decisions. Because unmanned systems often have multiple safety action constraints in the task environment decision-making process, the present invention defines this process as a seven-tuple form, namely:

[0052] <S,A,P,R,C,γ,d>

[0053] Among them, S is the set of finite states in the external environment of the unmanned system (that is, the set of state information in the external environment that can be observed by the visual sensors, lidar sensors, etc. of the unmanned system); A is the set of finite actions that the unmanned system can perform; p is the state transfer matrix, which is used to represent the probability that the state of the external environment changes to s' after the unmanned system takes action a in state s, that is, R is the reward function, which is used to represent the reward obtained from the environment after the unmanned system takes action a in state s, that is, C is the cost function of a single step, which is similar to the reward; γ is the discount factor, which is used to constrain the impact of future rewards on the current state, γ∈[0,1]; d is the safety action constraint imposed on the unmanned system when taking action.

[0054] Based on the above seven-tuple, the present invention provides an unmanned system safety decision-making method based on action constraints. Figure 1 As shown, the unmanned system safety decision-making method based on action constraints specifically includes:

[0055] Step S1: Design the policy network f of the unmanned system based on the actor-critic algorithm π (·) and multidimensional value network f Q (·); Multidimensional value network f Q(·) Includes: a backbone network and multiple auxiliary value assessment networks; one auxiliary value assessment network corresponds to one safety action constraint; the safety action constraint is a constraint to ensure that the unmanned system performs safety actions; the strategy network f π (·) is used to determine the current policy action of the unmanned system according to the current state of the unmanned system; the backbone network is used to evaluate the value of the current state of the unmanned system; the auxiliary value evaluation network is used to determine whether the current policy action of the unmanned system meets the corresponding safety action constraints.

[0056] Among them, the policy network f π The design of (·) refers to the actor-critic network in reinforcement learning, which is specifically embodied in a multi-layer neural network. The policy network f π The input of (·) is the state S of the unmanned system at time t t , the output is the strategy action a of the unmanned system at time t t , that is, satisfying: a t =f π (S t ;θ)(θ is the policy network parameter), policy network f π (·) Generate strategy action a t When , we only need to consider maximizing the expected cumulative reward J(·) obtained by the unmanned system. Q (·) For example, referring to the actor-critic network in reinforcement learning, a backbone network and multiple auxiliary value evaluation networks are designed. Different auxiliary value evaluation networks are designed for different types of safety action constraints. Strategy actions that do not meet different safety action constraints will be rejected by their corresponding auxiliary value evaluation networks. The entire multidimensional value network f Q (·)satisfy: (Q is the evaluation result "conforms to the safety action constraint or does not conform to the safety action constraint", is the multi-dimensional value network parameter).

[0057] Step S2: Obtain historical training samples; the historical training samples at least include: the state of the unmanned system at different historical moments, the executed actions and the executed action rewards.

[0058] In this embodiment, step S2 specifically includes:

[0059] Get the status of the unmanned system at different historical moments; for the status of the unmanned system at any historical moment, perform the following steps:

[0060] Input the current state of the unmanned system into the policy network f π (·), obtain the current policy action of the unmanned system; the current state of the unmanned system is any state of the unmanned system at different historical moments;

[0061] Perform multiple sampling within the setting range of the current strategy action of the unmanned system to obtain multiple current sampling actions of the unmanned system;

[0062] Input all current sampled actions of the unmanned system into the multidimensional value network f Q (·) Evaluate to determine whether all sampling actions do not satisfy all safety action constraints; if so, expand the set range and re-sample; if not, take the sampling actions that satisfy all safety action constraints as alternative actions;

[0063] Randomly select an action from the candidate actions as the current execution action of the unmanned system;

[0064] Based on the unmanned system's current execution action and reward function R, determine the unmanned system's current execution action reward.

[0065] Step S3: Based on historical training samples, with the goal of maximizing the expected cumulative reward, the policy gradient algorithm is used to train the policy network f π (·) for training optimization. The calculation formula of the policy gradient algorithm is:

[0066]

[0067] Where is the gradient operator, J(·) is the expected cumulative reward obtained by the unmanned system, S t is the state of the unmanned system at time t, is the execution action of the unmanned system at time t, r t is the reward for the unmanned system to perform the action at time t, An experience pool for storing historical training samples.

[0068] Step S4: Based on historical training samples, the backbone network is trained and optimized with the goal of minimizing the loss function, and each auxiliary value assessment network is trained and optimized using the weight update formula. The loss function is:

[0069]

[0070]

[0071] Where L(·) is the loss of the backbone network, is the adjusted reward of the unmanned system at time t, λ is a hyperparameter, is the i-th cost function C i The cumulative cost under the constraint, π t is the strategy of the unmanned system at time t.

[0072] Furthermore, each auxiliary value assessment network is trained and optimized using the weight update formula, including:

[0073] Determine the weight update cycle of each auxiliary value assessment network;

[0074] Count the completed tasks of the unmanned system in each weight update cycle of the auxiliary value assessment network; the completed tasks information includes: the number of times the unmanned system completes tasks without violating the safety action constraints, the number of times the unmanned system completes tasks while violating the safety action constraints, the number of times the safety action constraints are not violated, and the number of times the safety action constraints are violated;

[0075] Based on the weight update cycle of all auxiliary value assessment networks and the completed task information within the weight update cycle, the weight update formula is used to train and optimize each auxiliary value assessment network. The weight update formula is:

[0076]

[0077] In the formula, is the weight of the i-th auxiliary value assessment network at the k-th iteration, α i is the weight update cycle of the i-th auxiliary value assessment network, B i is the number of times the unmanned system completes the task without violating the safety action constraints within the weight update cycle of the i-th auxiliary value assessment network, b i is the number of times the unmanned system does not violate the safety action constraints during the weight update cycle of the i-th auxiliary value assessment network, C i is the number of times the unmanned system completes the task in violation of the safety action constraint during the weight update cycle of the i-th auxiliary value assessment network, c i It is the number of times that the unmanned system does not violate the safety action constraints during the weight update cycle of the i-th auxiliary value assessment network.

[0078] Step S5: The trained and optimized policy network, backbone network and multiple auxiliary value assessment networks are determined as a security decision model.

[0079] Step S6: Obtain the current state of the unmanned system and input it into the safety decision model to obtain the current optimal strategy of the unmanned system; the optimal strategy at least includes the current execution action of the unmanned system. Among them, the current optimal strategy of the unmanned system is:

[0080]

[0081]

[0082]

[0083] In the formula, is the current optimal strategy of the unmanned system, Π t is the current strategy for unmanned systems, ΠC is the set of all strategies of the unmanned system under the cost function C, Π is the set of all strategies of the unmanned system, C i is the i-th cost function, is the cumulative cost under the constraints of the i-th cost function, d i is the safety action constraint corresponding to the i-th cost function, γ t is the discount factor of the unmanned system at time t, E[·] is the mean operation, For the approximately equal sign.

[0084] Based on the above steps, the present invention is based on multi-dimensional safety action constraint-based safety reinforcement learning, which can utilize the experience gained from the interaction between the unmanned system and the external environment, continuously update the weights, and optimize the impact of different safety action constraints on the actions of the unmanned system.

[0085] In order to better verify the effectiveness of the above-mentioned unmanned system safety decision-making method based on action constraints, this embodiment uses the unmanned vehicle lane keeping task as a specific application example for analysis:

[0086] First, we built a 3D virtual simulation engine in Unity. Figure 2 The following is a scene of the unmanned vehicle lane keeping task. In this task, the left car needs to bypass the middle car and reach the green area on the right. The unmanned vehicle will be given a certain reward when it reaches the green area, specifically +30; when driving in the upper lane, the unmanned vehicle will be given a constraint penalty every once in a while, specifically -1.

[0087] In this task, all unmanned vehicles' observation information is provided by radar sensors, with a maximum observable angle of 180 degrees and a total of 20 rays, which can obtain the distance and angle information between the unmanned vehicle and obstacles, vacant parking spaces and other unmanned vehicles. The action space of each unmanned vehicle is a two-dimensional discrete action. The first dimension controls the unmanned vehicle to move forward and backward, and the second dimension controls the steering of the unmanned vehicle.

[0088] In the comparative experiment of the above-mentioned action-constrained unmanned system safety decision-making method, this embodiment selects two classic reinforcement learning algorithms PPO and PDO as baseline algorithms. The experimental indicators are average reward and average cost. The average reward represents the reward obtained by the unmanned system for completing the task in each episode, the larger the better; the average cost represents the constraint penalty that the unmanned system needs to obtain for completing the task in each episode, the smaller the better.

[0089] Figure 3 and Figure 4The learning performance of each algorithm model is shown from the two indicators of average reward and cost. The PDO algorithm cannot converge to the correct strategy. Although the PPO algorithm can learn the strategy of maximum reward, the cost function is not considered during the training process. The unmanned system safety decision method WCQ based on action constraints of the present invention can not only learn better rewards, but also obtain less punishment. The method proposed in the present invention designs lane constraints as weak constraints. Therefore, during the learning process of the unmanned system, this type of constraint will not affect the unmanned system's generated actions, and the weight of the sub-network is only used to select the best action from the generated actions. The unmanned system can learn a complex strategy of avoiding obstacles while trying to stay in the lower lane, so it shows good performance.

[0090] In addition, the present invention also provides a computer system, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned unmanned system safety decision-making method based on action constraints.

[0091] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned unmanned system safety decision-making method based on action constraints.

[0092] To sum up, the present invention aims at the safety issues faced by unmanned systems in decision-making in real environments. From the perspective of multi-dimensional safety action constraints, a safety decision-making method for unmanned systems based on action constraints is proposed. In the process of strategy learning, constraints are imposed on the action generation and selection of the safety decision-making model, so that the unmanned system can comply with different types of constraints while completing the task.

[0093] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0094] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A safety decision-making method for unmanned systems based on action constraints, characterized in that: The method comprises: Based on the actor-critic algorithm, a policy network and a multidimensional value network of an unmanned system are designed; the multidimensional value network includes: a backbone network and multiple auxiliary value evaluation networks; one auxiliary value evaluation network corresponds to a safety action constraint; the safety action constraint is a constraint to ensure that the unmanned system performs a safety action; the policy network is used to determine the current policy action of the unmanned system according to the current state of the unmanned system; the backbone network is used to evaluate the value of the current state of the unmanned system; the auxiliary value evaluation network is used to determine whether the current policy action of the unmanned system meets the corresponding safety action constraint; Obtain historical training samples; the historical training samples at least include: the state of the unmanned system at different historical moments, the executed actions and the executed action rewards; Based on the historical training samples, with the goal of maximizing the expected cumulative reward, a policy gradient algorithm is used to train and optimize the policy network; Based on the historical training samples, the backbone network is trained and optimized with the goal of minimizing the loss function, and each of the auxiliary value assessment networks is trained and optimized using a weight update formula; The trained and optimized policy network, backbone network and multiple auxiliary value assessment networks are determined as a security decision model; The current state of the unmanned system is obtained and input into the safety decision model to obtain the current optimal strategy of the unmanned system; the optimal strategy at least includes the current execution action of the unmanned system.

2. The unmanned system safety decision-making method based on action constraints according to claim 1 is characterized in that: Obtain historical training samples, including: Get the status of the unmanned system at different historical moments; for the status of the unmanned system at any historical moment, perform the following steps: Inputting the current state of the unmanned system into the policy network to obtain the current policy action of the unmanned system; the current state of the unmanned system is any state of the unmanned system at different historical moments; Perform multiple sampling within the setting range of the current strategy action of the unmanned system to obtain multiple current sampling actions of the unmanned system; Input all current sampling actions of the unmanned system into the multi-dimensional value network for evaluation to determine whether all sampling actions do not satisfy all safety action constraints; if so, expand the set range and re-sample; if not, use the sampling actions that satisfy all safety action constraints as alternative actions; Randomly select an action from the candidate actions as the current execution action of the unmanned system; Based on the unmanned system's current execution action and reward function, determine the unmanned system's current execution action reward.

3. The unmanned system safety decision-making method based on action constraints according to claim 1 is characterized in that: The weight update formula is used to train and optimize each auxiliary value assessment network, specifically including: Determining a weight update period for each of the auxiliary value assessment networks; Counting the completed task information of the unmanned system in each weight update cycle of the auxiliary value assessment network; the completed task information includes: the number of times the unmanned system completes the task without violating the safety action constraint, the number of times the task is completed while violating the safety action constraint, the number of times the safety action constraint is not violated, and the number of times the safety action constraint is violated; Based on the weight update cycle of all auxiliary value assessment networks and the completed task information within the weight update cycle, each of the auxiliary value assessment networks is trained and optimized using the weight update formula.

4. The unmanned system safety decision-making method based on action constraints according to claim 1 is characterized in that: The calculation formula of the policy gradient algorithm is: Where θ is the policy network parameter, J(·) is the expected cumulative reward obtained by the unmanned system, and f π (·) is the policy network, f Q (·) is a multi-dimensional value network, S t is the state of the unmanned system at time t, is the execution action of the unmanned system at time t, r t is the reward for the unmanned system to perform the action at time t, An experience pool for storing historical training samples.

5. The unmanned system safety decision-making method based on action constraints according to claim 1 is characterized in that: The loss function is: In the formula, is the backbone network parameter, L(·) is the backbone network loss, S t is the state of the unmanned system at time t, is the execution action of the unmanned system at time t, is the experience pool for storing historical training samples, f Q (·) is a multi-dimensional value network, is the adjusted reward of the unmanned system at time t, r t is the reward for the unmanned system’s action at time t, λ is a hyperparameter, is the i-th cost function C i The cumulative cost under the constraint, π t is the strategy of the unmanned system at time t.

6. The unmanned system safety decision-making method based on action constraints according to claim 1 is characterized in that: The weight update formula is: In the formula, is the weight of the i-th auxiliary value assessment network at the k-th iteration, α i is the weight update cycle of the i-th auxiliary value assessment network, B i is the number of times the unmanned system completes the task without violating the safety action constraints within the weight update cycle of the i-th auxiliary value assessment network, b i is the number of times the unmanned system does not violate the safety action constraints during the weight update cycle of the i-th auxiliary value assessment network, C i is the number of times the unmanned system completes the task in violation of the safety action constraint during the weight update cycle of the i-th auxiliary value assessment network, c i It is the number of times that the unmanned system does not violate the safety action constraints during the weight update cycle of the i-th auxiliary value assessment network.

7. The unmanned system safety decision-making method based on action constraints according to claim 1 is characterized in that: The current optimal strategy for unmanned systems is: In the formula, is the current optimal strategy of the unmanned system, J(·) is the expected cumulative reward obtained by the unmanned system, π t is the current strategy for unmanned systems, Π C is the set of all strategies of the unmanned system under the cost function C, Π is the set of all strategies of the unmanned system, C i is the i-th cost function, is the cumulative cost under the constraints of the i-th cost function, d i is the safety action constraint corresponding to the i-th cost function, γ t is the discount factor of the unmanned system at time t, S t is the state of the unmanned system at time t, is the execution action of the unmanned system at time t.

8. A computer system comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the unmanned system safety decision-making method based on action constraints as described in any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the unmanned system safety decision-making method based on action constraints described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Strategy model training method and device, computer equipment and storage medium

    CN120278215A

  • Safety reinforcement learning automatic driving decision-making method and system based on cognitive uncertainty evaluation, and vehicle

    CN122646159A