Constraint type environment safety exploration method for autonomous vehicle

Through fixed point iteration and maximum group search technology, the problem of self-driving cars being safely explored in a constrained environment is solved, and the feasible area is maximized and model errors are minimized, which improves driving performance and data acquisition quality. .

CN118964791APending Publication Date: 2024-11-15TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410966744.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The area where existing autonomous vehicles can safely explore in constrained environments is too small, resulting in insufficient data collection and affecting driving performance.

Method used

The minimum uncertain model is solved by using fixed point iteration to solve the maximum feasible area and the maximum cluster search, and iterate alternately until converge, ensuring that the autonomous vehicle collects environmental data within the maximum range.

Benefits of technology

Maximizes the safely explored areas in a constrained environment, improves the driving strategy performance of autonomous vehicles, and ensures the comprehensiveness and quality of data collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964791A_ABST
    Figure CN118964791A_ABST
Patent Text Reader

Abstract

The invention provides a constrained environment safety exploration method for an automatic driving automobile, and relates to the technical field of automatic driving, and the method comprises the steps: S1, obtaining an initial uncertain model; s2, solving a maximum feasible region under the uncertain model by adopting fixed point iteration; s3, traversing all state action pairs in the maximum feasible region, and collecting environment data through interaction with the environment; s4, solving an approximate minimum uncertain model in the maximum feasible region by using the environmental data in the maximum feasible region and adopting maximum clique search, and updating the uncertain model into the approximate minimum uncertain model; and S5, iteratively carrying out the steps S2-S4 until the maximum feasible region and the uncertain model are not updated any more, and obtaining the maximum feasible region of the driving strategy. By the adoption of the scheme, the maximum feasible area capable of being explored safely in the constrained environment can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of autonomous driving technology, and in particular to a method and device for safely exploring a constrained environment for an autonomous driving vehicle. Background Art

[0002] With the rapid development of artificial intelligence technology, the decision-making and control methods of autonomous vehicles have gradually changed from traditional model-based rules to data-driven methods. Data-driven decision-making and control methods do not rely on explicit modeling of control systems, but use a large amount of driving data obtained by sensors and combine machine learning algorithms to continuously optimize driving strategies, so as to better cope with complex and changing traffic environments. The effectiveness of data-driven decision-making and control methods depends on a large amount of high-quality data, which needs to be obtained through the continuous exploration of the road environment by autonomous vehicles. In the actual road environment, unconstrained exploration may cause safety problems and lead to serious consequences. For example, non-compliant driving behavior may cause autonomous vehicles to collide with other traffic participants. To ensure driving safety, autonomous vehicles must always meet a series of safety constraints when exploring the environment, such as vehicles cannot drive out of the road boundary and the distance between vehicles must be greater than a certain threshold. This environment with safety constraints is called a constrained environment, and exploration that always meets the constraints in such an environment is called safe exploration. Due to the existence of safety constraints, autonomous vehicles cannot explore all areas of the driving environment, but can only explore in some areas. The area that can be safely explored is called a feasible area. The size of the feasible region determines how much environmental data the driving strategy can obtain, which affects driving performance. The larger the feasible region, the higher the performance ceiling of the driving strategy. To ensure the comprehensiveness of environmental data collection, autonomous vehicles need a constrained environmental safety exploration method that can maximize the feasible region.

[0003] In autonomous driving, the standard method for safe exploration of constrained environments is divided into three steps: solving the feasible region, collecting environmental data, and updating the environmental model. The safe exploration algorithm performs these three steps alternately and iteratively until the feasible region and the environmental model converge. Solving the feasible region and updating the environmental model are key steps in safe exploration.

[0004] For solving the feasible region, the prior art adopts an incremental region expansion method, and for updating the environmental model, the prior art adopts an empirical data fitting method.

[0005] The disadvantage of existing constraint-based environmental safety exploration methods is that the feasible region obtained is too small. There are two reasons for this problem: first, in solving the feasible region, the calculated feasible region is not the maximum feasible region under the current environmental model; second, in updating the environmental model, the calculated environmental model is not the model with the minimum error under the current feasible region.

[0006] In solving the feasible region, the existing incremental region expansion method requires that the state newly included in the feasible region must be able to enter the current feasible region. In a constrained environment, this requirement is often too strict, resulting in some states that should be included in the feasible region not being included, thereby limiting the extent of the feasible region expansion. The reason for this is that although some states outside the region cannot enter the region, starting from these states will not violate the safety constraints, so they belong to the area that can be safely explored. In fact, these states will enter some feasible regions outside the current feasible region that have not yet been discovered. A typical example in autonomous driving is that the current feasible region is a road within a certain range centered on the self-vehicle. For a state outside a feasible region ahead, since the self-vehicle is moving forward, it cannot enter the current feasible region from this state, but its subsequent state can still remain safe. In this case, the state should have been included in the feasible region, but the incremental region expansion method will exclude it from the region.

[0007] In the updating of environmental models, the existing empirical data fitting methods do not make full use of the environmental data in the feasible area and the continuity conditions of the model. When updating the model, the environmental data is used to reduce the model error in the feasible area, and the continuity conditions are used to reduce the model error outside the feasible area. The criterion for judging whether the environmental data and continuity conditions are fully utilized is whether the environmental data and continuity conditions can be used to further reduce the model error on the basis of the existing model. If they cannot be further reduced, both have been fully utilized, and the model error is minimized at this time. However, the existing technology lacks attention to the full utilization of environmental data and continuity conditions, and only uses empirical methods to utilize part of the environmental data and the continuity conditions only on part of the states. For example, for a model with Lipschitz continuity, continuity constraints can be generated between any two states in space, while the existing technology only considers the continuity constraints between some states in the region and some states outside the region, thereby failing to give full play to the limitation of Lipschitz continuity on the size of the model error.

[0008] In summary, it is difficult for existing technologies to calculate the maximum feasible area under a given environmental model, and it is difficult to calculate the environmental model with the minimum error under a given feasible area. Both of these lead to the area that can be safely explored in a constrained environment being too small, thereby limiting the amount and quality of data that can be obtained by autonomous vehicles, further restricting their driving performance. Summary of the invention

[0009] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0010] To this end, the first purpose of this application is to propose a method for safe exploration of constrained environments for autonomous vehicles, which solves the technical problem that the existing methods result in too small an area that can be safely explored in a constrained environment, and achieves the maximization of the feasible area that can be safely explored in the constrained environment.

[0011] The second objective of this application is to propose a constrained environment safety exploration system for autonomous vehicles.

[0012] The third objective of the present application is to provide a computer device.

[0013] A fourth object of the present application is to provide a non-transitory computer-readable storage medium.

[0014] To achieve the above-mentioned purpose, the first aspect of the present application proposes a constrained environment safety exploration method for autonomous driving vehicles, including: step S1: obtaining an initial uncertain model; step S2: using fixed point iteration to solve the maximum feasible area under the uncertain model; step S3: traversing all state-action pairs in the maximum feasible area, and collecting environmental data by interacting with the environment; step S4: using the environmental data in the maximum feasible area, using maximum clique search to solve the approximate minimum uncertain model under the maximum feasible area, and updating the uncertain model to the approximate minimum uncertain model; step S5: iterating steps S2-S4 until the maximum feasible area and the uncertain model are no longer updated, and the maximum feasible area of ​​the driving strategy is obtained.

[0015] The constrained environment safety exploration method for autonomous vehicles in the embodiment of the present application adopts fixed point iteration to solve the maximum feasible area under a given environmental model, and adopts maximum clique search to solve the minimum uncertainty model under a given feasible area. The two are iterated alternately and finally converge to the maximum feasible area that can be safely explored, thereby ensuring that the autonomous vehicle can collect environmental data in the largest range, thereby laying the foundation for improving the performance of its driving strategy.

[0016] Optionally, in one embodiment of the present application, a fixed point iteration is used to solve the maximum feasible region under the uncertain model, including:

[0017] Step S21: obtaining an initial constraint attenuation function, wherein the initial constraint attenuation function is an arbitrary function;

[0018] Step S22: traverse all state-action pairs and perform the next step operation one by one;

[0019] Step S23: using the update formula of the constraint decay function to update the constraint decay function value of each state-action pair;

[0020] Step S24: Iterate steps S22 to S23 until the constraint attenuation function value of each state-action pair is no longer updated, and the optimal constraint attenuation function is obtained, and the zero level set of the optimal constraint attenuation function is used as the maximum feasible region of the uncertain model.

[0021] Optionally, in one embodiment of the present application, assuming that the current number of iterations is k, the update formula of the constraint decay function is:

[0022]

[0023] Where c(x) is the indicator function of constraint violation, c(x)=1[h(x)>0], h(x) is the constraint function, γ∈(0,1) is the discount factor, is the value of the uncertain model under the state and action at the current moment, x′ is the state at the next moment, is the action space, u′ is the action at the next moment, G k-1 (x′,u′) is the value of the constraint decay function of the previous iteration under the state and action at the next moment, G k (x,u) is the value of the constraint attenuation function of the current iteration under the current state and action.

[0024] Optionally, in one embodiment of the present application, a maximum clique search is used to solve a minimum uncertainty model under a maximum feasible region, including:

[0025] Step S41: updating the state transition within the maximum feasible area through the collected environmental data;

[0026] Step S42: traverse all state-action pairs outside the maximum feasible region;

[0027] Step S43: traverse the state-action pairs in the maximum feasible area;

[0028] Step S44: deleting the state transitions that violate the Lipschitz continuity condition outside the maximum feasible region;

[0029] Step S45: Repeat steps S42-S44 until the transition set of each state-action pair is no longer updated, and the minimum uncertainty model is obtained.

[0030] To achieve the above-mentioned purpose, the second embodiment of the present invention proposes a constrained environment safety exploration device for an autonomous driving vehicle, comprising:

[0031] Model initialization module, used to obtain the initial uncertain model;

[0032] The feasible region solving module is used to solve the maximum feasible region under the uncertain model by fixed point iteration;

[0033] Environmental data collection module, used to traverse all state-action pairs in the maximum feasible area and collect environmental data by interacting with the environment;

[0034] An environmental model updating module is used to use the environmental data in the maximum feasible area, adopt the maximum clique search to solve the approximate minimum uncertainty model in the maximum feasible area, and update the uncertain model to the approximate minimum uncertainty model;

[0035] The iterative solution module is used to iteratively call the feasible area solution module, the environmental data acquisition module and the environmental model update module until the maximum feasible area and the uncertain model are no longer updated, thereby obtaining the maximum feasible area of ​​the driving strategy.

[0036] Optionally, in one embodiment of the present application, the feasible region solving module specifically includes:

[0037] An initialization unit, used to obtain an initial constraint attenuation function, wherein the initial constraint attenuation function is an arbitrary function;

[0038] The first traversal unit is used to traverse all state-action pairs and perform the next operation one by one;

[0039] A first updating unit, configured to update the constraint decay function value of each state-action pair by using an updating formula of the constraint decay function;

[0040] The first iterative solution unit is used to iteratively call the traversal unit and the function update unit until the constraint attenuation function value of each state-action pair is no longer updated, and the optimal constraint attenuation function is obtained, and the zero level set of the optimal constraint attenuation function is used as the maximum feasible region of the uncertain model.

[0041] Optionally, in one embodiment of the present application, assuming that the current number of iterations is k, the update formula of the constraint decay function is:

[0042]

[0043] Where c(x) is the indicator function of constraint violation, c(x)=1[h(x)>0], h(x) is the constraint function, γ∈(0,1) is the discount factor, is the value of the uncertain model under the state and action at the current moment, x′ is the state at the next moment, is the action space, u′ is the action at the next moment, G k-1 (x′,u′) is the value of the constraint decay function of the previous iteration under the state and action at the next moment, G k (x,u) is the value of the constraint attenuation function of the current iteration under the current state and action.

[0044] Optionally, in one embodiment of the present application, the environment model updating module specifically includes:

[0045] A second updating unit, used for updating the state transition within the maximum feasible area through the collected environmental data;

[0046] The second traversal unit is used to traverse all state-action pairs outside the maximum feasible region;

[0047] A third traversal unit, used for traversing state-action pairs within the maximum feasible region;

[0048] The third updating unit is used to delete the state transitions that violate the Lipschitz continuity condition outside the maximum feasible region;

[0049] The second iterative solution unit is used to iteratively call the first traversal unit, the second traversal unit and the second transfer set updating unit until the transfer set of each state-action pair is no longer updated, thereby obtaining a minimum uncertainty model.

[0050] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned constrained environment safety exploration method for autonomous driving vehicles is implemented.

[0051] In order to achieve the above-mentioned objectives, the fourth aspect embodiment of the present invention proposes a non-temporary computer-readable storage medium, which, when the instructions in the storage medium are executed by a processor, enables the execution of the above-mentioned constrained environment safety exploration method for autonomous driving vehicles.

[0052] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0054] Figure 1 A flowchart of a method for safety exploration of a constrained environment for an autonomous driving vehicle provided in Example 1 of the present application;

[0055] Figure 2 A flowchart of a constrained environment safety exploration method for an autonomous driving vehicle provided in Example 2 of the present application;

[0056] Figure 3 A schematic diagram of a flow chart of a method for solving a maximum feasible area based on fixed point iteration according to an embodiment of the present application;

[0057] Figure 4 This is a flow chart of a method for solving a maximum feasible area based on fixed point iteration according to an embodiment of the present application;

[0058] Figure 5 A schematic diagram of the structure of a constrained environment safety exploration device for an autonomous driving vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0060] Introduce some concepts used in this application.

[0061] Uncertain Model: Uncertain Model is an environment model, which is a function defined on the state-action space, which maps a state-action pair to a set of states, i.e. in, is the state space, is the action space, yes The power set of In autonomous driving, the state space includes physical quantities such as the position, speed, and heading angle of the vehicle, as well as information such as the road structure, driving target, and surrounding traffic participants. The action space can include decision quantities such as driving behavior and planned trajectory, or control quantities such as acceleration and front wheel angle. The set obtained after mapping is called the transition set, which contains all the states that the environment may transfer to in the next step. The size of the transition set reflects The uncertainty of The smaller the uncertainty, the smaller the error. When completely accurate, the transition set degenerates into a single point set, whose elements are the states that the environment actually transitions to in the next step.

[0062] Feasible region: The feasible region Z is a subset of the state-action space, that is, The feasible region needs to satisfy two properties: constraint satisfaction and control invariance. Constraint satisfaction means that all states in the feasible region satisfy the safety constraints, that is,

[0063]

[0064] in, Indicates that Z is The projection on

[0065]

[0066] X cstr Represents a constraint set, that is, a set of all states that satisfy safety constraints:

[0067]

[0068] Among them, h(x) is a constraint function, and h(x)≤0 is a safety constraint. In autonomous driving, the constraint function can be selected as the inverse of the distance between the vehicle and other traffic participants. In this case, the safety constraint requires that the vehicle does not collide. Another property of the feasible region, control invariance, means that the subsequent state of any state-action pair in the region is still in the feasible region, that is,

[0069]

[0070] in, is an uncertain model. This property shows that defining a feasible region Z requires specifying an uncertain model Z is The control invariance ensures that starting from any state-action pair in the feasible region, we can always stay in the feasible region. Constraint satisfaction and control invariance together ensure that starting from the feasible region, we can always not violate the safety constraints.

[0071] The following describes the constrained environment safety exploration method and device for an autonomous driving vehicle in an embodiment of the present application with reference to the accompanying drawings.

[0072] Figure 1 A flowchart of a constrained environment safety exploration method for an autonomous driving vehicle provided in Example 1 of the present application.

[0073] like Figure 1 As shown, the constrained environment safety exploration method for autonomous driving vehicles includes the following steps:

[0074] Step S1: Obtain an initial uncertain model;

[0075] Step S2: Using fixed point iteration to solve the maximum feasible region under the uncertain model;

[0076] Step S3: traverse all state-action pairs in the maximum feasible area and collect environmental data by interacting with the environment;

[0077] Step S4: using the environmental data in the maximum feasible area, adopting the maximum clique search to solve the approximate minimum uncertainty model under the maximum feasible area, and updating the uncertain model to the approximate minimum uncertainty model;

[0078] Step S5: Iterate steps S2-S4 until the maximum feasible area and the uncertainty model are no longer updated, and the maximum feasible area of ​​the driving strategy is obtained.

[0079] The constrained environment safety exploration method for autonomous vehicles in the embodiment of the present application adopts fixed point iteration to solve the maximum feasible area under a given environmental model, and adopts maximum clique search to solve the minimum uncertainty model under a given feasible area. The two are iterated alternately and finally converge to the maximum feasible area that can be safely explored, thereby ensuring that the autonomous vehicle can collect environmental data in the largest range, thereby laying the foundation for improving the performance of its driving strategy.

[0080] See also Figure 2 , Figure 2 A flowchart of a method for safety exploration of a constrained environment for an autonomous driving vehicle provided in Embodiment 2 of the present application is shown. The method is executed by an electronic device.

[0081] like Figure 2 As shown, the specific steps of this method are as follows:

[0082] (1) Input the initial uncertain model of the driving environment. Any safe exploration algorithm requires a certain amount of prior knowledge of the environment in order to effectively avoid constraint violations that may occur during exploration. The role of the initial uncertain model is to provide this prior knowledge, and its symbol is The initial uncertain model of the driving environment includes the vehicle dynamics model and the behavior prediction model of other traffic participants. The initial uncertain model does not need to be accurate and can have a certain error, which will gradually decrease during the algorithm iteration process.

[0083] (2) Given an uncertain model, find the corresponding maximum feasible region. Under the same uncertain model, there may be multiple feasible regions. In order to maximize the scope of safe exploration, this embodiment solves the largest feasible region. In contrast, the existing technology can only find a feasible region and cannot guarantee the maximum, resulting in a small scope of safe exploration. This embodiment uses the uncertain model to solve the largest feasible region. The maximum feasible region under Assuming that the current algorithm iteration number is k, this step can be expressed as

[0084]

[0085] The solution process adopts the maximum feasible area solution method based on fixed point iteration.

[0086] (3) Traverse all state-action pairs in the feasible region and collect their subsequent states by interacting with the environment. Since the feasible region has constraint satisfaction and control invariance, starting from any state-action pair in it will not violate the constraints, so environmental exploration in the feasible region can always be guaranteed to be safe. By interacting with the environment, accurate information about state transitions in the feasible region can be directly obtained. Let the state transition function of the environment be f, then the collected subsequent state x ′ It can be expressed as

[0087]

[0088] The state transition data provides the basis for subsequent uncertain model updates.

[0089] (4) Using the environmental data in the feasible region, the uncertain model is updated to an approximate minimum uncertainty model under the current feasible region. The environmental data provides accurate state transition information in the feasible region. When there is sufficient data, the uncertainty of the model in the region can be completely eliminated. Outside the feasible region, the elements in some transition sets can be deleted by using the Lipschitz continuity of the model, thereby reducing the uncertainty of the model outside the region. This embodiment proposes the concept of a minimum uncertainty model: if elements cannot be deleted from any transition set of the model under a given feasible region and Lipschitz constant, the model is called a minimum uncertainty model. The minimum uncertainty model is the most accurate model obtained by making maximum use of the feasible region information and the Lipschitz continuity condition. In contrast, the prior art can only reduce the uncertainty of the model to a certain extent, and cannot guarantee the minimization of uncertainty, resulting in the subsequent expansion of the feasible region being limited. This embodiment updates the feasible region Z. The minimum uncertainty model obtained is denoted as Assuming that the current algorithm iteration number is k, this step can be expressed as

[0090]

[0091] The updating process adopts the uncertain model updating method based on maximum clique.

[0092] (5) Determine whether the feasible region and uncertainty model obtained in this iteration are the same as those in the previous iteration. If both are the same, the feasible region and the uncertainty model have reached an exploration balance, and neither can be optimized further. The feasible region at this time is the maximum feasible region that can be explored, and the iteration ends. This is also the origin of the name "safe balance exploration". If one of them is different, return to step (2) and continue to the next iteration.

[0093] (6) Output the maximum feasible area of ​​the driving strategy. This area represents the maximum area that the driving strategy can safely explore under the current uncertain model. Limiting the environment exploration to this area can ensure that the autonomous driving car always meets the safety constraints.

[0094] Figure 3 FIG. 4 is a flow chart of the maximum feasible region solving method based on fixed point iteration in this embodiment. Figure 3 As shown, the process includes:

[0095] (1) Input the uncertain model and the initial constraint decay function. The uncertain model here comes from the input of the safe balance exploration algorithm or the result of the model update in the previous iteration. The constraint decay function G is a function defined on the state-action space and is used to represent the feasible region. In this step, G can be initialized to any function, such as a constant function with a value of zero. G will be updated to convergence in subsequent steps.

[0096] (2) Traverse all state-action pairs and perform the next step one by one.

[0097] (3) Update the constraint decay function value of each state-action pair. This step is the core of the feasible region solution, which ensures that the zero level set of the constraint decay function converges to the maximum feasible region under the given uncertain model. Assuming that the current number of iterations is k, the update formula of the constraint decay function is:

[0098]

[0099] Where c(x) is the indicator function of constraint violation, that is, c(x) = 1[h(x)>0], and γ∈(0,1) is the discount factor. The update formula comes from the risk Bellman equation of the constraint attenuation function. k and G k-1 Replace it with the same function G, which is the risk Bellman equation. It can be proved that the right side of the risk Bellman equation is a compression mapping about G. According to Banach fixed point theorem, the solution of this equation is the optimal constraint decay function, whose zero level set is the uncertainty model The above update formula is essentially a fixed point iteration method to solve the risk Bellman equation. Banach fixed point theorem ensures that this iterative process can converge to the solution of the equation.

[0100] (4) Determine whether the constraint decay function value of each state-action pair is the same as that of the previous iteration. If the function values ​​are the same, the constraint decay function has converged to the optimum, and its zero level set is the maximum feasible region under the current uncertain model, and the iteration ends. If the function values ​​are different, return to step (2) and continue to the next iteration.

[0101] (5) Output the optimal constraint attenuation function.

[0102] Figure 4 FIG. 4 is a flow chart of the maximum feasible region solving method based on fixed point iteration in this embodiment. Figure 4 As shown, the process includes:

[0103] (1) Input the feasible region and the initial uncertain model. The feasible region here comes from the result of solving the feasible region in this iteration, and the uncertain model comes from the input of the safety exploration method or the result of the model update in the previous iteration.

[0104] (2) Update the state transitions in the feasible region with the collected environmental data. During the environmental data collection phase, the safe balance exploration algorithm collects the subsequent states of all state-action pairs in the feasible region. This step updates the transition set of these state-action pairs in the uncertain model to a single point set containing only their subsequent states, thereby completely eliminating the model uncertainty in the feasible region.

[0105] (3) Traverse all state-action pairs outside the feasible region and update their transition sets one by one in subsequent steps.

[0106] (4) Traverse the state-action pairs in the feasible region. Steps (3) and (4) traverse all combinations of two state-action pairs in and outside the feasible region.

[0107] (5) Delete the states that violate Lipschitz continuity in the transition set outside the feasible region. There may be multiple states in the transition set outside the feasible region, while there is only one state in the transition set inside the feasible region because it has been updated to a single point set in step (2). Since the environmental model has Lipschitz continuity, the state transitions inside and outside the feasible region must satisfy a certain inequality relationship. Specifically, assume that (x1,u1) and (x2,u2) are two state-action pairs inside and outside the feasible region, respectively, and the transition set of (x1,u1) is {x1′}, and x2′ is a state in the transition set of (x2,u2). According to the Lipschitz continuity condition,

[0108] d(x1′,x2′)≤Ld((x1,u1),(x2,u2))

[0109] Where d(·) represents the Euclidean norm, and L is called the Lipschitz constant, which is a positive real number. If the above inequality holds, x2′ satisfies Lipschitz continuity and can be retained in the transition set. On the contrary, if the above inequality does not hold, x2′ violates Lipschitz continuity and should be deleted from the transition set. Since each state-action pair in the feasible region can provide an inequality relationship about continuity, it is necessary to traverse the feasible region in step (4) to delete as many elements in the state transition set outside the region as possible, thereby minimizing the uncertainty of the model.

[0110] (6) Determine whether the transition set of each state-action pair given by the uncertain model is the same as that of the previous iteration. If they are the same, the model has converged to the approximate minimum uncertainty model, and its error cannot be further reduced, and the iteration ends. If they are different, return to step (3) and continue to the next iteration.

[0111] (7) Output an approximate minimum uncertainty model.

[0112] The above process of updating the uncertain model can be approximated as searching for the largest clique of an undirected graph. Contains all state-action pairs and their uncertainty models The subsequent state given is

[0113]

[0114] The condition for an edge connection between two vertices (x1,u1,x1′) and (x2,u2,x2′) is that they satisfy Lipschitz continuity, that is,

[0115] d(x1′,x2′)≤Ld((x1,u1),(x2,u2))

[0116] It can be proved that the minimum uncertainty model is the maximum clique of the undirected graph. Since the maximum clique search problem of undirected graphs is NP-hard, a model update method for approximate search of the maximum clique is adopted here. The approximation of this method lies in that in steps (4) and (5), when deleting the state transition outside the feasible region, only its Lipschitz continuity with the feasible region is considered, while the continuity with the outside of the region is not considered. Although this approximation may make the updated model error slightly larger than the minimum uncertainty model, it reduces the time complexity of the algorithm to the polynomial level, ensuring that the method is feasible in practical problems.

[0117] The constrained environment safety exploration method for autonomous vehicles in this embodiment is called a safety balance exploration method. In the standard three-step iterative framework of safety exploration, this method improves the feasible area solution and environmental model update, and maximizes the feasible area by iteratively finding the balance between the area and the model, overcoming the problem of too small feasible area in the prior art. In the feasible area solution, this embodiment proposes a solution method based on fixed point iteration, called a feasible area iteration algorithm, which can ensure that the area converges to the maximum feasible area under a given environmental model. In the environmental model update, this embodiment proposes an update method based on maximum clique search, called an uncertain model iteration algorithm, which can approximately solve the environmental model with the minimum error under a given feasible area. In the iterative process of the safety balance exploration algorithm, the feasible area continues to expand and the model error continues to decrease. Finally, the two converge to reach an exploration balance and give the maximum feasible area.

[0118] In order to implement the above embodiments, the present application also proposes a constrained environment safety exploration device for autonomous driving vehicles.

[0119] Figure 5 A schematic diagram of the structure of a constrained environment safety exploration device for an autonomous driving vehicle provided in an embodiment of the present application.

[0120] like Figure 5 As shown, the constrained environment safety exploration device for autonomous driving vehicles includes:

[0121] Model initialization module, used to obtain the initial uncertain model;

[0122] The feasible region solving module is used to solve the maximum feasible region under the uncertain model by fixed point iteration;

[0123] Environmental data collection module, used to traverse all state-action pairs in the maximum feasible area and collect environmental data by interacting with the environment;

[0124] An environmental model updating module is used to use the environmental data in the maximum feasible area, adopt the maximum clique search to solve the approximate minimum uncertainty model in the maximum feasible area, and update the uncertain model to the approximate minimum uncertainty model;

[0125] The iterative solution module is used to iteratively call the feasible area solution module, the environmental data acquisition module and the environmental model update module until the maximum feasible area and the uncertain model are no longer updated, thereby obtaining the maximum feasible area of ​​the driving strategy.

[0126] Optionally, in one embodiment of the present application, the feasible region solving module specifically includes:

[0127] An initialization unit, used to obtain an initial constraint attenuation function, wherein the initial constraint attenuation function is an arbitrary function;

[0128] The first traversal unit is used to traverse all state-action pairs and perform the next operation one by one;

[0129] A first updating unit, configured to update the constraint decay function value of each state-action pair by using an updating formula of the constraint decay function;

[0130] The first iterative solution unit is used to iteratively call the traversal unit and the function update unit until the constraint attenuation function value of each state-action pair is no longer updated, and the optimal constraint attenuation function is obtained, and the zero level set of the optimal constraint attenuation function is used as the maximum feasible region of the uncertain model.

[0131] Optionally, in one embodiment of the present application, assuming that the current number of iterations is k, the update formula of the constraint decay function is:

[0132]

[0133] Where c(x) is the indicator function of constraint violation, c(x)=1[h(x)>0], h(x) is the constraint function, γ∈(0,1) is the discount factor, is the value of the uncertain model under the state and action at the current moment, x′ is the state at the next moment, is the action space, u′ is the action at the next moment, G k-1 (x′,u′) is the value of the constraint decay function of the previous iteration under the state and action at the next moment, G k (x,u) is the value of the constraint attenuation function of the current iteration under the current state and action.

[0134] Optionally, in one embodiment of the present application, the environment model updating module specifically includes:

[0135] A second updating unit, used for updating the state transition within the maximum feasible area through the collected environmental data;

[0136] The second traversal unit is used to traverse all state-action pairs outside the maximum feasible region;

[0137] A third traversal unit, used for traversing state-action pairs within the maximum feasible region;

[0138] The third updating unit is used to delete the state transitions that violate the Lipschitz continuity condition outside the maximum feasible region;

[0139] The second iterative solution unit is used to iteratively call the first traversal unit, the second traversal unit and the second transfer set updating unit until the transfer set of each state-action pair is no longer updated, thereby obtaining a minimum uncertainty model.

[0140] It should be noted that the aforementioned explanation of the embodiment of the constrained environment safety exploration method for autonomous driving vehicles is also applicable to the constrained environment safety exploration device for autonomous driving vehicles in this embodiment, and will not be repeated here.

[0141] In order to implement the above embodiments, the present invention further proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method described in the above embodiments is implemented.

[0142] In order to implement the above embodiments, the present invention further proposes a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method of the above embodiments is implemented.

[0143] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0144] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0145] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0146] 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 the instructions), or in combination with these 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 combination with these instruction execution systems, devices or apparatuses. 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 box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be 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 and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0147] It should be understood that the various parts of the present application 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.

[0148] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0149] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0150] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A constrained environment safety exploration method for autonomous vehicles, It is characterized in that include: Step S1: Obtain an initial uncertain model; Step S2: Using fixed point iteration to solve the maximum feasible region under the uncertain model; Step S3: traverse all state-action pairs in the maximum feasible area and collect environmental data by interacting with the environment; Step S4: using the environmental data in the maximum feasible area, adopting the maximum clique search to solve the approximate minimum uncertainty model under the maximum feasible area, and updating the uncertain model to the approximate minimum uncertainty model; Step S5: Iterate steps S2-S4 until the maximum feasible area and the uncertainty model are no longer updated, and the maximum feasible area of ​​the driving strategy is obtained.

2. The method according to claim 1, It is characterized in that The method of using fixed point iteration to solve the maximum feasible region under the uncertain model includes: Step S21: obtaining an initial constraint attenuation function, wherein the initial constraint attenuation function is an arbitrary function; Step S22: traverse all state-action pairs and perform the next step operation one by one; Step S23: using the update formula of the constraint decay function to update the constraint decay function value of each state-action pair; Step S24: Iterate steps S22 to S23 until the constraint attenuation function value of each state-action pair is no longer updated, and the optimal constraint attenuation function is obtained, and the zero level set of the optimal constraint attenuation function is used as the maximum feasible region of the uncertain model.

3. The method according to claim 2, It is characterized in that Assuming the current number of iterations is k, the update formula of the constraint decay function is: Where c(x) is the indicator function of constraint violation, c(x)=1[h(x)>0], h(x) is the constraint function, γ∈(0,1) is the discount factor, is the value of the uncertain model under the state and action at the current moment, x′ is the state at the next moment, is the action space, u′ is the action at the next moment, G k-1 (x′,u′) is the value of the constraint decay function of the previous iteration under the state and action at the next moment, G k (x,u) is the value of the constraint attenuation function of the current iteration under the current state and action.

4. The method according to claim 1, It is characterized in that The method of using the maximum clique search to solve the minimum uncertainty model under the maximum feasible region includes: Step S41: updating the state transition within the maximum feasible area through the collected environmental data; Step S42: traverse all state-action pairs outside the maximum feasible region; Step S43: traverse the state-action pairs in the maximum feasible area; Step S44: deleting the state transitions that violate the Lipschitz continuity condition outside the maximum feasible region; Step S45: Repeat steps S42-S44 until the transition set of each state-action pair is no longer updated, and the minimum uncertainty model is obtained.

5. A constrained environment safety exploration device for autonomous vehicles, It is characterized in that include: Model initialization module, used to obtain the initial uncertain model; The feasible region solving module is used to solve the maximum feasible region under the uncertain model by fixed point iteration; Environmental data collection module, used to traverse all state-action pairs in the maximum feasible area and collect environmental data by interacting with the environment; An environmental model updating module is used to use the environmental data in the maximum feasible area, adopt the maximum clique search to solve the approximate minimum uncertainty model in the maximum feasible area, and update the uncertain model to the approximate minimum uncertainty model; The iterative solution module is used to iteratively call the feasible area solution module, the environmental data acquisition module and the environmental model update module until the maximum feasible area and the uncertain model are no longer updated, thereby obtaining the maximum feasible area of ​​the driving strategy.

6. The device as claimed in claim 5, It is characterized in that The feasible region solving module specifically includes: An initialization unit, used to obtain an initial constraint attenuation function, wherein the initial constraint attenuation function is an arbitrary function; The first traversal unit is used to traverse all state-action pairs and perform the next operation one by one; A first updating unit, configured to update the constraint decay function value of each state-action pair by using an updating formula of the constraint decay function; The first iterative solution unit is used to iteratively call the traversal unit and the function update unit until the constraint attenuation function value of each state-action pair is no longer updated, and the optimal constraint attenuation function is obtained, and the zero level set of the optimal constraint attenuation function is used as the maximum feasible region of the uncertain model.

7. The device according to claim 6, It is characterized in that Assuming the current number of iterations is k, the update formula of the constraint decay function is: Where c(x) is the indicator function of constraint violation, c(x)=1[h(x)>0], h(x) is the constraint function, γ∈(0,1) is the discount factor, is the value of the uncertain model under the state and action at the current moment, x′ is the state at the next moment, is the action space, u′ is the action at the next moment, G k-1 (x′,u′) is the value of the constraint decay function of the previous iteration under the state and action at the next moment, G k (x,u) is the value of the constraint attenuation function of the current iteration under the current state and action.

8. The device according to claim 5, It is characterized in that The environment model updating module specifically includes: A second updating unit, used for updating the state transition within the maximum feasible area through the collected environmental data; The second traversal unit is used to traverse all state-action pairs outside the maximum feasible region; A third traversal unit, used for traversing state-action pairs within the maximum feasible region; The third updating unit is used to delete the state transitions that violate the Lipschitz continuity condition outside the maximum feasible region; The second iterative solution unit is used to iteratively call the first traversal unit, the second traversal unit and the second transfer set updating unit until the transfer set of each state-action pair is no longer updated, thereby obtaining a minimum uncertainty model.

9. A computer device, It is characterized in that The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.

10. A non-transitory computer-readable storage medium having stored thereon a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.