Path planning method, device, terminal and readable storage medium

By using inverse reinforcement learning and transfer learning in path planning, the expert path trajectories of the first environment and the second environment are obtained, and the path planning is optimized, which solves the problem of low learning efficiency of path planning strategies in the existing technology and improves path planning. generalization ability.

CN114577226BActive Publication Date: 2024-10-29WEBANK (CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011383286.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-01
Publication Date
2024-10-29
Estimated Expiration
2040-12-01

AI Technical Summary

Technical Problem

Existing path planning strategies have low learning efficiency and poor generalization ability. Especially when data mobility becomes worse after the promotion of privacy protection laws, it is difficult to obtain enough expert driving trajectories to support path planning.

Method used

By obtaining the expert path trajectories of the first environment and the second environment, performing inverse reinforcement learning and transfer learning, the first weight vector and the second weight vector are obtained, and these weight vectors are used to optimize the path planning, overcoming the path planning strategies of the existing technology. The defect of low learning efficiency improves the generalization ability of the path planning strategy.

Benefits of technology

Through transfer learning and iterative inverse reinforcement learning, the learning efficiency and generalization ability of the path planning strategy are improved, and the parameters of the path planning model can be effectively determined in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114577226B_ABST
    Figure CN114577226B_ABST
Patent Text Reader

Abstract

The present invention discloses a path planning method, device, terminal and readable storage medium, the method comprising: obtaining a first expert path trajectory in a first environment and a second expert path trajectory in a second environment, performing inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the first weight vector is the weight of the first expert path trajectory, and based on the first weight vector, performing inverse reinforcement transfer learning on the second expert path trajectory to obtain a second weight vector, wherein the elements in the second weight vector are the weights of multiple path parameters that each affect the path planning result in the second environment. Compared with the prior art that uses local limited expert trajectories to learn path planning strategies, the present invention overcomes the defect of low learning efficiency of path planning strategies in the prior art through transfer learning and iterative inverse reinforcement learning, thereby improving the learning efficiency of path planning strategies and the generalization ability of path planning strategies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular to a path planning method, device, terminal and readable storage medium. Background Art

[0002] The industry pain point of path planning technology is the robustness of the technology in complex environments. Conventional robotics technology cannot solve the problems of complex scenarios very well. Reinforcement learning technology has been introduced into path planning. Reinforcement learning is to obtain better robustness than previous technologies through repeated trial and error of autonomous driving vehicles in a simulated environment. However, reinforcement learning technology is highly dependent on the constructed simulation environment. In other words, a certain degree of change in the simulation environment will cause changes in the path planning strategy. Therefore, in response to the difficulties of the simulation environment, scholars have proposed the use of inverse reinforcement learning, using the techniques in the field of mathematical inverse problems, and using the collected expert driving trajectories to obtain a path planning strategy trained in a simulated environment, which has good robustness.

[0003] With the promotion of privacy protection laws, data mobility has deteriorated. Different companies are having difficulty obtaining enough expert driving trajectories to support their path planning strategies, resulting in low learning efficiency of path planning strategies, poor generalization ability, and irrational path planning.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a path planning method, device, terminal and readable storage medium, aiming to solve the technical problems of low learning efficiency, poor generalization ability and irrational path planning of existing path planning strategies.

[0006] To achieve the above object, the present invention provides a path planning method, which comprises the following steps:

[0007] Obtain a first expert path trajectory in a first environment and a second expert path trajectory in a second environment;

[0008] Performing inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are weights of a plurality of path parameters each affecting a path planning result in the first environment as the first expert path trajectory;

[0009] Based on the first weight vector, the second expert path trajectory is inversely reinforced transferred to learn to obtain a second weight vector, wherein the elements in the second weight vector are the weights of each of the multiple path parameters affecting the path planning result in the second environment.

[0010] Furthermore, after the step of performing inverse reinforcement transfer learning on the second expert path trajectory based on the first weight vector to obtain the second weight vector, the method further includes:

[0011] Obtaining a path planning request, wherein the path planning request carries environmental information, departure point coordinates, and destination point coordinates;

[0012] Determine multiple candidate paths according to the departure point coordinates and the destination point coordinates corresponding to the path planning request;

[0013] If the environment corresponding to the environmental information is the second environment, a target path that responds to the path planning request is determined according to the second weight vector and the path parameters corresponding to the multiple candidate paths.

[0014] Furthermore, the step of performing inverse reinforcement transfer learning on the second expert path trajectory based on the first weight vector to obtain a second weight vector includes:

[0015] Determine the sub-potential energy functions corresponding to the respective path parameters based on the second expert path trajectory;

[0016] Performing transfer learning using the first weight vector, the sub-potential energy function, and the second expert path trajectory to obtain a mean of the accumulated potential energy, and optimizing the first weight vector based on the mean of the accumulated potential energy;

[0017] Iterative inverse reinforcement learning is performed based on the optimized first weight vector until an iterative stop condition is detected to obtain the second weight vector.

[0018] Furthermore, the step of determining the sub-potential energy functions corresponding to the respective path parameters based on the second expert path trajectory includes:

[0019] Calculating the minimum distance between the trajectory point and the lane boundary based on the vehicle orientation parameter and the vehicle motion angle parameter corresponding to the trajectory point in the second expert path trajectory, and determining the angle between the boundary point corresponding to the minimum distance and the trajectory point and the vehicle motion angle parameter;

[0020] The sub-potential energy function is constructed using the vehicle orientation parameters, vehicle motion angle parameters, the minimum distance and the angle corresponding to the trajectory points.

[0021] Furthermore, the step of performing transfer learning using the first weight vector, the sub-potential energy function, and the second expert path trajectory to obtain a mean of the cumulative potential energy, and optimizing the first weight vector based on the mean of the cumulative potential energy includes:

[0022] Based on the first weight vector, determining the optimal trajectory corresponding to each of the sub-potential energy functions in the second expert path trajectory;

[0023] The average value of the accumulated potential energy is calculated using the optimal trajectory corresponding to each of the sub-potential energy functions, and the empirical value of the accumulated potential energy is calculated using the second expert path trajectory;

[0024] The first weight vector is updated based on a comparison result of the mean value of the accumulated potential energy and the empirical value of the accumulated potential energy.

[0025] Furthermore, the step of calculating the mean value of the accumulated potential energy using the optimal trajectories corresponding to each of the sub-potential energy functions comprises:

[0026] Taking the optimal trajectory corresponding to each of the sub-potential energy functions as an optimal trajectory set, accumulating multiple sub-potential energies obtained by traversing the optimal trajectory set for each sub-potential energy function, and obtaining the sub-accumulated potential energy corresponding to the sub-potential energy function;

[0027] The weighted sum of each sub-accumulated potential energy is performed to obtain the average value of the accumulated potential energy.

[0028] Furthermore, the step of using the second expert path to calculate the empirical value of the accumulated potential energy includes:

[0029] Traversing each of the sub-potential energy functions through the second expert path respectively to obtain the empirical value of the sub-accumulated potential energy corresponding to each of the sub-potential energy functions;

[0030] The empirical values ​​of the sub-accumulated potential energies are averaged, and the calculated average value is used as the empirical value of the accumulated potential energy.

[0031] Furthermore, the iterative stopping condition is: calculating the norm corresponding to the currently optimized first weight vector, and when the norm corresponding to the first weight vector is less than or equal to a threshold, stopping the iterative inverse reinforcement learning.

[0032] Furthermore, the path planning device comprises:

[0033] An acquisition module, used for acquiring a first expert path trajectory in a first environment and a second expert path trajectory in a second environment;

[0034] An inverse reinforcement learning module, used for performing inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are weights of a plurality of path parameters each affecting a path planning result in the first environment as the first expert path trajectory;

[0035] A transfer learning module is used to perform inverse reinforcement transfer learning on the second expert path trajectory based on the first weight vector to obtain a second weight vector, wherein the elements in the second weight vector are the weights of the multiple path parameters that each affect the path planning result in the second environment.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a path planning terminal, which includes: a memory, a processor, and a path planning program stored in the memory and executable on the processor, and the path planning program, when executed by the processor, implements the steps of any of the path planning methods described above.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a readable storage medium, on which a path planning program is stored, and when the path planning program is executed by a processor, the steps of any of the above-mentioned path planning methods are implemented.

[0038] The present invention obtains a first expert path trajectory in a first environment and a second expert path trajectory in a second environment, and then performs inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are the weights of the first expert path trajectory that each of the multiple path parameters affects the path planning result in the first environment. Next, based on the first weight vector, inverse reinforcement transfer learning is performed on the second expert path trajectory to obtain a second weight vector, wherein the elements in the second weight vector are the weights of the multiple path parameters that each of the multiple path parameters affects the path planning result in the second environment. Compared with the prior art that uses local limited expert trajectories to learn path planning strategies, the present invention uses transfer learning and iterative inverse reinforcement learning to achieve the first expert path trajectory in the first environment and the second expert path trajectory in the second environment to jointly determine the second weight vector, thereby overcoming the defect of low learning efficiency of the path planning strategy in the prior art, and thereby improving the learning efficiency of the path planning strategy and the generalization ability of the path planning strategy. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of the structure of a terminal in a hardware operating environment involved in an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of a flow chart of a first embodiment of a path planning method of the present invention;

[0041] Figure 3 A schematic diagram of a flow chart of a second embodiment of a path planning method of the present invention;

[0042] Figure 4 Schematic diagram of functional modules of a path planning device embodiment of the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of a terminal in a hardware operating environment involved in an embodiment of the present invention.

[0046] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0047] Those skilled in the art will understand that Figure 1 The target detection system structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0048] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a path planning program.

[0049] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user end and communicate data with the user end; and the processor 1001 can be used to call the path planning program stored in the memory 1005.

[0050] In this embodiment, the terminal includes: a memory 1005, a processor 1001, and a path planning program stored in the memory 1005 and executable on the processor 1001, wherein when the processor 1001 calls the path planning program stored in the memory 1005, it executes the steps of the path planning method provided in each embodiment of the present application.

[0051] The present invention also provides a path planning method, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a path planning method according to the present invention.

[0052] The embodiments of the present invention provide embodiments of the path planning method. It should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0053] In this embodiment, the path planning method includes:

[0054] Step S100, obtaining a first expert path trajectory in a first environment and a second expert path trajectory in a second environment;

[0055] In this embodiment, the movement and path planning of the unmanned vehicle usually adopts the artificial potential field method. The basic idea of ​​the artificial potential field method path planning is to design the movement of the robot in the surrounding environment into a movement in an abstract artificial gravitational field. The target point generates "gravity" on the mobile robot, and the obstacle generates "repulsion" on the mobile robot. Finally, the movement of the mobile robot is controlled by calculating the resultant force. The construction of the potential function is a key issue in the artificial potential field method. The potential function may include the smoothness of the trajectory, the proximity to the obstacle, the maximum curvature of the path, the distance from the lane line, etc. It is necessary to quantitatively determine how to balance these potential field items, that is, to weight these potential field items.

[0056] Furthermore, iterative inverse reinforcement learning can be used to obtain the weights of various potential field items through the collected expert path trajectories, wherein the driving trajectories of these experts contain the information needed on how to properly weigh the potential field items and are considered to be the optimal trajectories. As mentioned above, with the promotion of privacy protection laws, the existing path planning technology based on inverse reinforcement learning has poor data mobility, and different companies have difficulty in obtaining enough expert driving trajectories to support their path planning strategies, resulting in low learning efficiency of path planning strategies, poor generalization ability, and irrational path planning. The path planning method proposed in the present invention overcomes the defect of low learning efficiency of path planning strategies in the prior art through transfer learning and iterative inverse reinforcement learning, thereby improving the learning efficiency of path planning strategies and the generalization ability of path planning strategies.

[0057] Specifically, first obtain the first expert path trajectory in the first environment and the second expert path trajectory in the second environment. For example: collect the first expert path trajectory in the first environment, use these trajectories as the imitation objects of path planning, and obtain the optimal ratio of different potential field items in the weights through mathematical optimization. Then, use the second expert path trajectory in the second environment and the optimal ratio learned from the first environment as the overall optimization, that is, transfer learning technology, and finally obtain the path planning model parameters of the combined first environment and second environment expert trajectories with better generalization ability.

[0058] It should be noted that the most important factor affecting transfer learning is similarity. The greater the similarity between road conditions, the more conducive it is to learning transfer. Therefore, the present invention requires that the environmental properties of the first environment and the second environment are the same or similar, for example, both are relatively flat urban roads. In this way, the optimal ratio of different potential field items learned in the first environment can be better borrowed and applied to the second environment, so that the path planning model parameters of the combined expert trajectory of the first environment and the second environment can be more generalized.

[0059] Step S200, performing inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are weights of a plurality of path parameters each affecting a path planning result in a first environment as the first expert path trajectory;

[0060] In this embodiment, inverse reinforcement learning is performed on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are the weights of the first expert path trajectory, in which the multiple path parameters each affect the path planning result in the first environment. The first weight vector is the optimal ratio of different potential field items in the weight obtained by optimization, which reflects the trade-offs made by the first expert path on the potential field items. When different companies or different sites need to be carried out, the first weight vector can be used as the current weight vector, and the current solution to the path planning problem can be obtained according to the current weight vector. The cumulative potential energy value of the potential field item is calculated according to the current solution, and the estimate of the next weight vector is found according to the cumulative potential energy value. The estimate of the next weight vector is used as the current weight vector and the solution is repeated until the optimal weight vector is found.

[0061] Furthermore, the elements in the first weight vector are the weights of the multiple path parameters that each affect the path planning result in the first environment as the first expert path trajectory. The specific process is: by collecting the first expert path trajectory in the first environment, using iterative inverse reinforcement learning to obtain the weights of each potential field term, that is, the first weight vector. The total potential energy function Φ(τ) is a linear combination of m sub-potential energy functions, that is,

[0062]

[0063] Among them, the coefficient of total potential energy is unknown, and our goal is to find this set of coefficients so that under this coefficient, the potential energy of the total potential energy function acting on the collected expert path trajectory is minimized, and the inverse reinforcement learning technology is used to solve this set of coefficients.

[0064]

[0065] Find the weight coefficient, i.e., the weight vector, for the total potential energy function so that the total potential energy function can give a trajectory planning result that is closest to the expert path trajectory. By comparing the cumulative value of the potential energy function of the trajectory planning result with the potential energy cumulative value of the expert trajectory, we can measure whether the trajectory planning result is close enough to the expert path trajectory.

[0066] Solve the optimal trajectory for each potential energy function, that is, to find:

[0067]

[0068] Each sub-potential energy function traverses all optimal trajectories respectively to obtain the sub-accumulated potential energy corresponding to the sub-potential energy function, that is,

[0069]

[0070] Where k represents the kth sub-potential energy function, μ k Represents the sub-accumulated potential energy corresponding to the k-th sub-potential energy function.

[0071] Next, the weighted sum of each sub-accumulated potential energy is performed to obtain the mean value μ of the accumulated potential energy, that is,

[0072]

[0073]

[0074] The m sub-potential energy functions traverse all the first expert path trajectories respectively to obtain the empirical value of the sub-accumulated potential energy corresponding to each sub-potential energy function, that is,

[0075]

[0076] Where p represents the pth potential energy function, μ p Represents the empirical value of the sub-accumulated potential energy corresponding to the p-th sub-potential energy function.

[0077] Next, the empirical values ​​of the accumulated potential energies of each sub-item are averaged, and the calculated average value is used as the empirical value μ of the accumulated potential energy. E ,Right now

[0078]

[0079] Using the gradient descent algorithm, we solve Formula 2 to get the updated initial weight vector:

[0080]

[0081] Solving Formula 1 is equivalent to solving:

[0082]

[0083] α≥μ-μ E ;

[0084] α≥0

[0085] In order to obtain the optimal first weight vector, it is necessary to perform iterative inverse reinforcement learning according to the optimized first weight vector until the iterative stop condition is detected to obtain the optimal first weight vector. The iterative stop condition is: calculate the norm corresponding to the current optimized first weight vector, and stop iterative inverse reinforcement learning when the norm corresponding to the first weight vector is less than or equal to the threshold.

[0086] Specifically, a threshold ε is set according to the actual situation, and the norm ||α|| corresponding to the first weight vector is calculated. When the norm corresponding to the first weight vector is less than or equal to the threshold, that is,

[0087] ||α||≤ε

[0088] Then the iterative inverse reinforcement learning stops, and the current first weight vector is the optimal first weight vector; conversely, when the norm corresponding to the first weight vector is greater than the threshold, that is,

[0089] ||α||>ε

[0090] Then, the gradient descent algorithm is used to update the current first weight vector, and the updated first weight vector is less than or equal to the difference, and the step of determining the optimal trajectory corresponding to each of the sub-potential energy functions according to the first weight vector is continued until the norm corresponding to the first weight vector is less than or equal to the threshold, and then the iterative inverse reinforcement learning is stopped.

[0091] Step S300: Based on the first weight vector, inverse reinforcement transfer learning is performed on the second expert path trajectory to obtain a second weight vector.

[0092] Specifically, step S300 includes:

[0093] Step S310, determining the sub-potential energy functions corresponding to the respective path parameters based on the second expert path trajectory;

[0094] In this embodiment, the movement and path planning of the unmanned vehicle usually adopt the artificial potential field method. The basic idea of ​​the artificial potential field method path planning is to design the movement of the robot in the surrounding environment into a movement in an abstract artificial gravitational field. The target point generates "gravitation" on the mobile robot, and the obstacle generates "repulsion" on the mobile robot. Finally, the movement of the mobile robot is controlled by finding the resultant force. The construction of the potential function is a key issue in the artificial potential field method. The coordinate-related parameters of the trajectory point in the expert path trajectory are constructed, and the coordinate-related parameters include: the vehicle orientation parameter corresponding to the trajectory point, the vehicle motion angle parameter, the minimum distance between the trajectory point and the lane boundary, and the angle between the line between the boundary point corresponding to the minimum distance and the current trajectory point relative to the vehicle motion angle parameter. Using the trigonometric function formula, the minimum distance between the current trajectory point and the lane boundary is calculated according to the vehicle orientation parameter and the vehicle motion angle parameter. The sub-potential energy function is constructed using the vehicle orientation parameter corresponding to the trajectory point, the vehicle motion angle parameter, the minimum distance and the angle.

[0095] Specifically, step S310 includes:

[0096] Step S311, calculating the minimum distance between the trajectory point and the lane boundary based on the vehicle orientation parameter and the vehicle motion angle parameter corresponding to the trajectory point in the second expert path trajectory, and determining the angle between the boundary point corresponding to the minimum distance and the line between the trajectory point and the vehicle motion angle parameter;

[0097] Step S312, constructing the sub-potential energy function using the vehicle orientation parameters, vehicle motion angle parameters, the minimum distance and the angle corresponding to the trajectory points.

[0098] In this embodiment, during the path planning process, there are multiple path parameters, each of which corresponds to a sub-potential energy function. These sub-potential energy functions can be constructed by using the coordinate-related parameters of the trajectory points in the expert path trajectory. Specifically, the coordinate-related parameters include: the vehicle orientation parameters corresponding to the trajectory points (i.e., the horizontal and vertical coordinates of the trajectory points, such as x, y), the vehicle motion angle parameters (i.e., the angle of the current motion direction of the vehicle relative to the horizontal coordinate when the vehicle moves forward or backward), the minimum distance between the trajectory point and the lane boundary, and the angle between the line between the boundary point corresponding to the minimum distance and the current trajectory point relative to the vehicle motion angle parameter. Among them, the minimum distance between the current trajectory point and the lane boundary is calculated based on the vehicle orientation parameters and the vehicle motion angle parameters using trigonometric formulas. Further, the specific path parameters are determined using existing technologies and actual needs, such as: the degree of proximity to obstacles, the maximum curvature of the path, and then multiple sub-potential energy functions are constructed using the vehicle orientation parameters, vehicle motion angle parameters, minimum distance and angle corresponding to each trajectory point.

[0099] Step S320, performing transfer learning using the first weight vector, the sub-potential energy function, and the second expert path trajectory to obtain a mean of the accumulated potential energy, and optimizing the first weight vector based on the mean of the accumulated potential energy;

[0100] In this embodiment, the expert path trajectory is first collected, and the driving trajectory T of the skilled driver is collected under different working conditions. The driving trajectory is a family of multi-dimensional time series, which contains data from different sensors and can be analyzed to obtain the trajectory points (x t ,y t ), speed v t and acceleration a t ,

[0101]

[0102] Among them, the lower index t represents time.

[0103] For our specific problem, we assume some expert-defined functions, which are collectively called potential energy functions. is a linear combination of m sub-potential energy functions, that is

[0104]

[0105] Among them, the coefficient of total potential energy is unknown, and our goal is to find this set of coefficients so that under this coefficient, the potential energy of the total potential energy function acting on the collected expert trajectories is minimized, and the inverse reinforcement learning technique is used to solve this set of coefficients.

[0106]

[0107] Find the weighting coefficient, i.e., the weight vector, for the total potential energy function so that the total potential energy function can give a trajectory planning result that is closest to the expert path trajectory. By comparing the cumulative value of the potential energy function of the trajectory planning result with the cumulative value of the potential energy of the expert trajectory, it is measured whether the trajectory planning result is close enough to the expert path trajectory. Among them, the optimal trajectory corresponding to each of the sub-potential energy functions is taken as the optimal trajectory set, and the multiple sub-potential energies obtained by traversing the optimal trajectory set of each sub-potential energy function are accumulated to obtain the sub-cumulative potential energy corresponding to the sub-potential energy function, and the weighted sum of each sub-cumulative potential energy is performed to obtain the mean value of the cumulative potential energy.

[0108] Specifically, step S320 includes:

[0109] Step S321, determining the optimal trajectory corresponding to each of the sub-potential energy functions in the second expert path trajectory based on the first weight vector;

[0110] In this embodiment, for the current second weight vector, the optimal trajectory for each potential energy function is solved, that is, to find:

[0111]

[0112] Step S322, using the optimal trajectory corresponding to each of the sub-potential energy functions to calculate the mean value of the accumulated potential energy, and using the second expert path trajectory to calculate the empirical value of the accumulated potential energy;

[0113] Specifically, step S322 includes:

[0114] Step a, taking the optimal trajectory corresponding to each of the sub-potential energy functions as an optimal trajectory set, accumulating multiple sub-potential energies obtained by traversing the optimal trajectory set for each sub-potential energy function, and obtaining the sub-accumulated potential energy corresponding to the sub-potential energy function;

[0115] Step b: performing weighted summation on each sub-accumulated potential energy to obtain the average value of the accumulated potential energy.

[0116] In this embodiment, each sub-potential energy function determines an optimal trajectory, and m sub-potential energy functions determine m optimal trajectories. Each sub-potential energy function traverses all optimal trajectories to obtain the sub-accumulated potential energy corresponding to the sub-potential energy function, that is,

[0117]

[0118] Where k represents the kth sub-potential energy function, μ k Represents the sub-accumulated potential energy corresponding to the k-th sub-potential energy function.

[0119] Next, the weighted sum of each sub-accumulated potential energy is used to obtain the mean value μ of the accumulated potential energy, that is,

[0120]

[0121]

[0122] Step c, traversing each of the sub-potential energy functions through the second expert path to obtain the empirical value of the sub-accumulated potential energy corresponding to each of the sub-potential energy functions;

[0123] Step d, averaging the empirical values ​​of the sub-accumulated potential energies, and using the calculated average value as the empirical value of the accumulated potential energy.

[0124] In this embodiment, m sub-potential energy functions traverse all the initial expert trajectories respectively to obtain the empirical value of the sub-accumulated potential energy corresponding to each sub-potential energy function, that is,

[0125]

[0126] Where p represents the pth potential energy function, μ p Represents the empirical value of the sub-accumulated potential energy corresponding to the p-th sub-potential energy function.

[0127] Next, the empirical values ​​of the accumulated potential energies of each sub-item are averaged, and the calculated average value is used as the empirical value μ of the accumulated potential energy. E ,Right now

[0128]

[0129] Step S323: updating the first weight vector based on a comparison result of the mean value of the accumulated potential energy and the empirical value of the accumulated potential energy.

[0130] In this embodiment, the difference between the mean value of the accumulated potential energy and the empirical value of the accumulated potential energy is calculated.

[0131] Step f: using a gradient descent algorithm to update the second weight vector, wherein the updated second weight vector is less than or equal to the difference.

[0132] In this embodiment, the weight vector obtained by iterative inverse reinforcement learning based on the first expert path trajectory is recorded as The current second weight vector of the sub-potential energy function solved on the target domain by transfer learning is recorded as Using the gradient descent algorithm, solve Formula 1 to obtain the updated second weight vector:

[0133]

[0134] Solving Formula 2 is equivalent to solving:

[0135]

[0136]

[0137] α T ≥μ-μ E

[0138] α T ≥0

[0139] x≥0

[0140] 0<λ<1

[0141] Step S330: performing iterative inverse reinforcement learning based on the optimized first weight vector until an iterative stop condition is detected to obtain the second weight vector.

[0142] In this embodiment, in order to obtain the optimal second weight vector, it is necessary to perform iterative inverse reinforcement learning according to the optimized second weight vector until an iterative stop condition is detected to obtain the second weight vector. The iterative stop condition is: calculating the norm corresponding to the currently optimized second weight vector, and when the norm corresponding to the second weight vector is less than or equal to a threshold, the iterative inverse reinforcement learning is stopped.

[0143] Specifically, a threshold ε is set according to the actual situation, and the norm ||α corresponding to the second weight vector is calculated T ||, where norm is a function with the concept of "length". In linear algebra, functional analysis and related mathematical fields, norm is a function that assigns non-zero positive length or size to all vectors in a vector space. When the norm corresponding to the second weight vector is less than or equal to the threshold, that is,

[0144] ||α T ||≤ε

[0145] Then the iterative inverse reinforcement learning stops, and the current second weight vector is the second weight vector; conversely, when the norm corresponding to the second weight vector is greater than the threshold, that is,

[0146] ||α T ||>ε

[0147] Then, the second weight vector is updated by using the gradient descent algorithm, and the updated second weight vector is less than or equal to the difference, and the step of determining the optimal trajectory corresponding to each of the sub-potential energy functions based on the second weight vector is continued until the norm corresponding to the second weight vector is less than or equal to the threshold, and the iterative inverse reinforcement learning is stopped. That is to say, the second weight vector is used as the current weight vector, the current solution of the path planning problem is obtained according to the current weight vector, the cumulative potential energy value of the potential field term is calculated according to the current solution, and the estimate of the next weight vector is found according to the cumulative potential energy value, and the estimate of the next weight vector is used as the current weight vector and the solution is repeated until the optimal weight vector is found.

[0148] The total potential energy function Φ(T) is a linear combination of m sub-potential energy functions. After the second weight vector is determined, the total potential energy function is expressed as

[0149]

[0150] When the weight coefficient of the total potential energy function is the second weight vector When , it means that the potential energy of the potential energy function acting on the collected expert trajectory is the smallest, indicating that under the given expert trajectory, the second weight vector enables the potential energy function to give a trajectory planning result that is closest to the expert trajectory. That is, the second weight vector is brought into the total potential energy function to determine the minimum potential energy value of the total potential energy function, and the trajectory corresponding to the minimum potential energy value is the optimal trajectory.

[0151] The path planning method proposed in this embodiment obtains a first expert path trajectory in a first environment and a second expert path trajectory in a second environment, and then performs inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are the weights of the first expert path trajectory that each of the multiple path parameters affects the path planning result in the first environment. Next, based on the first weight vector, inverse reinforcement transfer learning is performed on the second expert path trajectory to obtain a second weight vector, wherein the elements in the second weight vector are the weights of the multiple path parameters that each of the multiple path parameters affects the path planning result in the second environment. Therefore, compared with the prior art that uses local limited expert trajectories to learn path planning strategies, the present invention uses transfer learning and iterative inverse reinforcement learning to jointly determine the second weight vector using the second expert path and the first expert path trajectory, thereby overcoming the defect of low learning efficiency of the path planning strategy in the prior art, and thereby improving the learning efficiency of the path planning strategy and the generalization ability of the path planning strategy.

[0152] Further, based on the above first embodiment, referring to Figure 3 , a second embodiment of the path planning method of the present invention is proposed. In the second embodiment of the path planning method of the present invention, the path planning method includes:

[0153] Step S400, obtaining a path planning request, wherein the path planning request carries environmental information, coordinates of a departure point, and coordinates of a destination point;

[0154] Step S500, determining a plurality of candidate routes according to the coordinates of the departure point and the coordinates of the destination point corresponding to the route planning request;

[0155] Step S600: If the environment corresponding to the environmental information is the second environment, a target path in response to the path planning request is determined according to the second weight vector and path parameters corresponding to the multiple candidate paths.

[0156] In this embodiment, when performing path planning, a path planning request is obtained, and the path planning request carries environmental information, departure coordinates, and destination coordinates. According to the departure coordinates and destination coordinates corresponding to the path planning request, multiple candidate paths can be determined using a sub-potential energy function constructed according to the vehicle orientation parameters corresponding to the trajectory points, the vehicle motion angle parameters, the minimum distance, and the angle.

[0157] Furthermore, the second expert path and the first expert path trajectory are used to jointly determine the second weight vector, that is, the weights of each sub-potential energy function during path planning are determined, and the total potential energy function constructed according to each sub-potential energy function and their corresponding weights is When the potential energy of the total potential energy function acting on multiple candidate paths is the smallest, the path with the latest potential energy is the target path of the path planning request.

[0158]

[0159] Compared with the prior art that uses local limited expert trajectories to learn path planning strategies, the path planning method proposed in this embodiment realizes the use of the second expert path and the first expert path trajectory to jointly determine the second weight vector through transfer learning and iterative inverse reinforcement learning, thereby overcoming the defect of low learning efficiency of path planning strategies in the prior art, thereby improving the learning efficiency of path planning strategies and the generalization ability of path planning strategies.

[0160] The present invention further provides a path planning device, referring to Figure 4 , Figure 4 Schematic diagram of functional modules of a path planning device embodiment of the present invention.

[0161] An acquisition module, used for acquiring a first expert path trajectory in a first environment and a second expert path trajectory in a second environment;

[0162] An inverse reinforcement learning module, used for performing inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are weights of a plurality of path parameters each affecting a path planning result in the first environment as the first expert path trajectory;

[0163] A transfer learning module is used to perform inverse reinforcement transfer learning on the second expert path trajectory based on the first weight vector to obtain a second weight vector, wherein the elements in the second weight vector are the weights of the multiple path parameters that each affect the path planning result in the second environment.

[0164] Furthermore, the path planning device further includes:

[0165] A receiving module is used to obtain a path planning request, wherein the path planning request carries environmental information, departure point coordinates, and destination point coordinates;

[0166] A determination module, configured to determine a plurality of candidate paths according to the coordinates of a departure point and a destination point corresponding to the path planning request;

[0167] A response module is used to determine a target path in response to the path planning request according to the second weight vector and the path parameters corresponding to the multiple candidate paths if the environment corresponding to the environmental information is the second environment.

[0168] Furthermore, the transfer learning module is also used for:

[0169] Determine the sub-potential energy functions corresponding to the respective path parameters based on the second expert path trajectory;

[0170] Performing transfer learning using the first weight vector, the sub-potential energy function, and the second expert path trajectory to obtain a mean of the accumulated potential energy, and optimizing the first weight vector based on the mean of the accumulated potential energy;

[0171] Iterative inverse reinforcement learning is performed based on the optimized first weight vector until an iterative stop condition is detected to obtain the second weight vector.

[0172] Furthermore, the transfer learning module is also used for:

[0173] Calculating the minimum distance between the trajectory point and the lane boundary based on the vehicle orientation parameter and the vehicle motion angle parameter corresponding to the trajectory point in the second expert path trajectory, and determining the angle between the boundary point corresponding to the minimum distance and the trajectory point and the vehicle motion angle parameter;

[0174] The sub-potential energy function is constructed using the vehicle orientation parameters, vehicle motion angle parameters, the minimum distance and the angle corresponding to the trajectory points.

[0175] Furthermore, the transfer learning module is also used for:

[0176] Based on the first weight vector, determining the optimal trajectory corresponding to each of the sub-potential energy functions in the second expert path trajectory;

[0177] The average value of the accumulated potential energy is calculated using the optimal trajectory corresponding to each of the sub-potential energy functions, and the empirical value of the accumulated potential energy is calculated using the second expert path trajectory;

[0178] The first weight vector is updated based on a comparison result of the mean value of the accumulated potential energy and the empirical value of the accumulated potential energy.

[0179] Furthermore, the transfer learning module is also used for:

[0180] Taking the optimal trajectory corresponding to each of the sub-potential energy functions as an optimal trajectory set, accumulating multiple sub-potential energies obtained by traversing the optimal trajectory set for each sub-potential energy function, and obtaining the sub-accumulated potential energy corresponding to the sub-potential energy function;

[0181] The weighted sum of each sub-accumulated potential energy is performed to obtain the average value of the accumulated potential energy.

[0182] Furthermore, the transfer learning module is also used for:

[0183] Traversing the initial expert trajectory respectively for each of the sub-potential energy functions to obtain the empirical value of the sub-accumulated potential energy corresponding to each of the sub-potential energy functions;

[0184] The empirical values ​​of the sub-accumulated potential energies are averaged, and the calculated average value is used as the empirical value of the accumulated potential energy.

[0185] In addition, an embodiment of the present invention further proposes a readable storage medium, on which a path planning program is stored. When the path planning program is executed by a processor, the steps of the path planning method in the above-mentioned embodiments are implemented.

[0186] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0187] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0188] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a system device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0189] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A path planning method, characterized in that: The path planning method comprises: Obtain a first expert path trajectory in a first environment and a second expert path trajectory in a second environment; Performing inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein elements in the first weight vector are weights of each of the multiple path parameters affecting the path planning result in the first environment; Based on the first weight vector, inverse reinforcement transfer learning is performed on the second expert path trajectory to obtain a second weight vector, wherein the elements in the second weight vector are weights of the multiple path parameters affecting the path planning result in the second environment; The step of performing inverse reinforcement transfer learning on the second expert path trajectory based on the first weight vector to obtain a second weight vector comprises: Determine the sub-potential energy functions corresponding to the respective path parameters based on the second expert path trajectory; Performing transfer learning using the first weight vector, the sub-potential energy function, and the second expert path trajectory to obtain a mean of the accumulated potential energy, and optimizing the first weight vector based on the mean of the accumulated potential energy; Performing iterative inverse reinforcement learning based on the optimized first weight vector until an iterative stop condition is detected to obtain the second weight vector; The step of performing transfer learning by using the first weight vector, the sub-potential energy function and the second expert path trajectory to obtain the mean of the accumulated potential energy, and optimizing the first weight vector based on the mean of the accumulated potential energy includes: Based on the first weight vector, determining the optimal trajectory corresponding to each of the sub-potential energy functions in the second expert path trajectory; Taking the optimal trajectory corresponding to each of the sub-potential energy functions as an optimal trajectory set, accumulating multiple sub-potential energies obtained by traversing the optimal trajectory set for each sub-potential energy function, and obtaining the sub-accumulated potential energy corresponding to the sub-potential energy function; Performing weighted summation on each sub-accumulated potential energy to obtain the mean value of the accumulated potential energy, and traversing each sub-potential energy function through the second expert path to obtain the empirical value of the sub-accumulated potential energy corresponding to each sub-potential energy function; Calculate the average value of each sub-accumulated potential energy experience value, and use the calculated average value as the experience value of the accumulated potential energy; The first weight vector is updated based on a comparison result of the mean value of the accumulated potential energy and the empirical value of the accumulated potential energy.

2. The path planning method according to claim 1, characterized in that: After the step of performing inverse reinforcement transfer learning on the second expert path trajectory based on the first weight vector to obtain a second weight vector, the method further includes: Obtaining a path planning request, wherein the path planning request carries environmental information, departure point coordinates, and destination point coordinates; Determine multiple candidate paths according to the departure point coordinates and the destination point coordinates corresponding to the path planning request; If the environment corresponding to the environmental information is the second environment, a target path that responds to the path planning request is determined according to the second weight vector and the path parameters corresponding to the multiple candidate paths.

3. The path planning method according to claim 1, characterized in that: The step of determining the sub-potential energy functions corresponding to the respective path parameters based on the second expert path trajectory comprises: Calculating the minimum distance between the trajectory point and the lane boundary based on the vehicle orientation parameter and the vehicle motion angle parameter corresponding to the trajectory point in the second expert path trajectory, and determining the angle between the boundary point corresponding to the minimum distance and the trajectory point and the vehicle motion angle parameter; The sub-potential energy function is constructed using the vehicle orientation parameters, vehicle motion angle parameters, the minimum distance and the angle corresponding to the trajectory points.

4. The path planning method according to claim 1, characterized in that: The iterative stopping condition is: calculating the norm corresponding to the currently optimized first weight vector, and when the norm corresponding to the first weight vector is less than or equal to a threshold, stopping the iterative inverse reinforcement learning.

5. A path planning device, characterized in that: The path planning device comprises: An acquisition module, used for acquiring a first expert path trajectory under a first environment and a second expert path trajectory under a second environment, and a second weight vector of the first expert path trajectory; An inverse reinforcement learning module, configured to perform inverse reinforcement learning on the first expert path trajectory to obtain a first weight vector, wherein the elements in the first weight vector are weights of each of the multiple path parameters affecting the path planning result in the first environment; A transfer learning module is used to perform inverse reinforcement transfer learning on the second expert path trajectory based on the first weight vector to obtain a second weight vector, wherein the elements in the second weight vector are the weights of the multiple path parameters that each affects the path planning result under the second environment; the transfer learning module is also used to determine the sub-potential energy function corresponding to each path parameter based on the second expert path trajectory; perform transfer learning using the first weight vector, the sub-potential energy function and the second expert path trajectory to obtain the mean of the accumulated potential energy, and optimize the first weight vector based on the mean of the accumulated potential energy; perform iterative inverse reinforcement learning based on the optimized first weight vector until an iterative stop condition is detected to obtain the second weight vector; the transfer learning module is also used to perform inverse reinforcement learning based on the first A weight vector is provided, wherein the optimal trajectory corresponding to each sub-potential energy function is determined in the second expert path trajectory; the optimal trajectory corresponding to each sub-potential energy function is taken as the optimal trajectory set, and multiple sub-potential energies obtained by traversing the optimal trajectory set for each sub-potential energy function are accumulated to obtain the sub-cumulative potential energy corresponding to the sub-potential energy function; the weighted sum of each sub-cumulative potential energy is obtained to obtain the mean value of the cumulative potential energy, and each sub-potential energy function is traversed through the second expert path to obtain the empirical value of the sub-cumulative potential energy corresponding to each sub-potential energy function; the empirical values ​​of each sub-cumulative potential energy are averaged, and the calculated average value is used as the empirical value of the cumulative potential energy; and the first weight vector is updated based on the comparison result of the mean value of the cumulative potential energy and the empirical value of the cumulative potential energy.

6. A path planning terminal, characterized in that: The terminal includes: a memory, a processor, and a path planning program stored in the memory and executable on the processor, wherein the path planning program implements the steps of the path planning method according to any one of claims 1 to 4 when executed by the processor.

7. A readable storage medium, characterized in that: The path planning program is stored on the readable storage medium, and when the path planning program is executed by the processor, the steps of the path planning method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Path recommendation method and device

    CN110647693A

  • Mobile robot personification path planning method based on reverse reinforcement learning

    CN111596668A