Steepest path method and system based on reinforcement learning and adaptive reward evolution

By constructing a multi-dimensional composite reward function and a dynamic weight evolution mechanism, and combining multi-environment parallel simulation and automatic hyperparameter optimization, the problems of manual dependence and automated closed-loop in traditional slalom control methods are solved, achieving the shortest slalom time and efficient strategy transfer under vehicle dynamic limits.

CN123158772APending Publication Date: 2026-11-24GOODGRID AUTOMOTIVE TECH SUZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611018071.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing slalom control methods rely on human experience, have fixed objective functions, lack automated closed loops, and are difficult to achieve adaptive evolution of reward objectives, automatic optimization of hyperparameters, and automatic retention of strategy versions under vehicle dynamic limits. This results in low slalom efficiency and difficulty in balancing extreme performance and ride comfort.

Method used

By constructing a multi-dimensional composite reward function and a dynamic weight evolution mechanism, combined with multi-environment parallel simulation and hyperparameter automatic optimization framework, an adaptive composite reward function is designed. The policy network is updated using reinforcement learning algorithm, and a periodic evaluation and automatic archiving mechanism is built-in to achieve self-iterative convergence of the slalom control policy and automatic retention of parameters.

Benefits of technology

It achieves global optimization of the shortest slalom time under vehicle dynamics safety constraints, reduces the algorithm debugging cycle, improves the extreme performance and driving smoothness of slalom testing, and reduces the cost of real vehicle migration and calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158772A_ABST
    Figure CN123158772A_ABST
Patent Text Reader

Abstract

This application discloses a fastest slalom method based on reinforcement learning and adaptive reward evolution, belonging to the field of intelligent vehicle autonomous driving control and reinforcement learning decision-making technology. The method includes: constructing a simulation interactive environment; constructing a state observation space and action mapping; constructing an adaptive composite reward function, where the single-step reward is obtained by weighted summation of multiple sub-rewards; setting an evaluation window to monitor the agent's performance indicators, and automatically adjusting the sub-reward weight coefficients when preset conditions are met; updating the policy network using a reinforcement learning algorithm and embedding a hyperparameter automatic optimization module; incorporating a built-in periodic evaluation and automatic archiving mechanism, automatically saving policy weights and trajectory data when the policy performance refreshes the historical best; and outputting a converged policy after dual optimization. This application achieves self-iterative convergence of the slalom strategy and automatic retention of the optimal trajectory through dynamic evolution of reward weights and automatic hyperparameter optimization, achieving the shortest slalom time while satisfying dynamic safety constraints.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of intelligent vehicle autonomous driving control and reinforcement learning decision-making technology, and in particular relates to a fastest slalom method and system based on reinforcement learning and adaptive reward evolution. Background Technology

[0002] Slalom testing, as a core component for evaluating vehicle handling stability, chassis tuning, and the extreme control capabilities of autonomous driving algorithms, has become a key focus for intelligent vehicle technology verification, particularly in terms of slalom time and trajectory smoothness. With the rapid development of autonomous driving technology and the continuous upgrading of vehicle dynamics testing standards, approaching the physical limits of slalom time while meeting dynamic safety constraints has become a pressing technical challenge in the field.

[0003] Currently, traditional cone-around control methods mainly rely on pre-set reference trajectories and physical model-based control algorithms, including Pure Pursuit, Stanley methods, and Model Predictive Control (MPC). While Pure Pursuit and Stanley methods can achieve simple and efficient path tracking, they are generally only suitable for path following in low-speed, smooth scenarios. Although MPC methods can consider future predicted states and handle various constraints, their computational burden in solving optimization problems online is heavy, and they are highly sensitive to the accuracy of vehicle dynamics models. Nonlinear models still face bottlenecks in solution efficiency when deployed to real-world systems. In addition, some studies have used logic-based Benders decomposition for trajectory planning, optimizing waypoint positions and trajectory generation through inner and outer loops, respectively. However, this method requires real-time detection by cameras and LiDAR when cone positions are unknown, and system parameter tuning is highly dependent on manual fine-tuning. Other researchers have explored obstacle avoidance path planning and adaptive path tracking control based on artificial water droplet algorithm. They implemented slalom experiments using a comprehensive controller that combines model predictive steering control and speed adaptive control. However, their control strategy still relies on traditional optimization methods and lacks the ability to self-evolve control strategies under extreme conditions.

[0004] In recent years, reinforcement learning has been gradually introduced into the field of vehicle motion control due to its flexible learning capabilities and efficient real-time performance in complex continuous control problems. Existing research has employed deep reinforcement learning algorithms such as Deep Deterministic Policy Gradient (DDPG) and Soft Actor-Critic (SAC) to autonomously learn optimal control strategies through interaction with the environment, addressing the challenges posed by model uncertainty and nonlinear dynamics. However, existing reinforcement learning-based path tracking control schemes still suffer from the following significant drawbacks: First, reward function designs are mostly fixed weight combinations, which cannot dynamically balance the core contradiction between "speed pursuit" and "safety constraints" during training, resulting in low policy convergence efficiency and difficulty in balancing extreme performance and driving smoothness. Secondly, hyperparameter tuning during reinforcement learning training still relies heavily on human experience, lacks an automatic optimization mechanism, has a long debugging cycle, and is prone to getting trapped in local optima. Third, the training results are mostly discrete records, lacking an automated closed loop of "training-evaluation-archiving", resulting in high costs for knowledge accumulation and real-vehicle transfer.

[0005] Based on the above analysis, existing technologies still lack a systematic solution for achieving adaptive evolution of reward objectives, automatic optimization of hyperparameters, and automatic retention of strategy versions in the fastest slalom task approaching the limits of vehicle dynamics. Summary of the Invention

[0006] This application aims to address the technical problems of existing slalom control methods, such as reliance on human experience, fixed objective functions, and lack of automated closed-loop control. It provides a fastest slalom method based on reinforcement learning and adaptive reward evolution. This application eliminates the rigidity of balancing "speed pursuit" and "safety constraints" in traditional fixed objective functions through a multi-dimensional composite reward function and a dynamic weight evolution mechanism. By gradually adjusting the weights of lateral deviation penalty, time penalty, and speed incentive through learning, the control strategy automatically iterates within tire adhesion limits and safety boundaries, ultimately converging to the shortest slalom time under physical constraints. Simultaneously, it utilizes multi-environment parallel simulation and a hyperparameter automatic optimization framework to support efficient distributed training of the strategy model. Furthermore, the built-in periodic evaluation module automatically saves the optimal strategy weights, records the complete trajectory sequence, and the control parameter set, solving the problems of traditional methods lacking strategy version tracking, discrete data recording, and real-vehicle migration calibration support.

[0007] This application achieves the above objectives through the following technical solution: a fastest slack-by-the-loop method based on reinforcement learning and adaptive reward evolution, comprising the following steps: S1: Construct a simulation interactive environment, which includes a vehicle multibody dynamics model, a cone space layout module and an intelligent agent data interaction interface, to simulate the cone-driving task of a vehicle traveling through a predetermined sequence of obstacles according to a planned path. S2: Construct a state observation space and action mapping. Within each simulation interaction cycle, the agent extracts a multi-dimensional state vector containing set state information from the environment. It outputs motion vectors containing the set control action information. ; S3: Construct an adaptive composite reward function, single-step reward It is obtained by weighted summation of multiple sub-rewards corresponding to different optimization objectives; an evaluation window is set to monitor the performance indicators of the agent. When the performance indicators meet the preset conditions, the weight coefficient of at least one sub-reward is automatically adjusted to change the focus of strategy optimization. S4: Update the policy network using a reinforcement learning algorithm driven by the reward function. With value network It also embeds a hyperparameter automatic optimization module to automatically optimize the hyperparameters of the reinforcement learning algorithm; S5: Built-in periodic evaluation and automatic archiving mechanism. After completing a set number of training steps, a deterministic evaluation mode is activated, executing a set number of independent slalom tests. The average completion time of the current strategy is considered. Below the historical best record If so, the automatic archiving process is triggered, which saves at least the current policy network weights, the current hyperparameter set, the reward weight distribution, and the complete time-series trajectory data; S6: Output the convergence strategy optimized by both adaptive reward evolution and hyperparameter optimization. The strategy described above can achieve global optimization of the slalom time while satisfying vehicle dynamics constraints and obstacle avoidance safety.

[0008] Furthermore, in step S2, the state information includes vehicle motion state parameters, vehicle deviation parameters relative to the reference path, and relative position parameters of several obstacles in front. The control action information includes at least steering control quantity, throttle control quantity, and braking control quantity.

[0009] Furthermore, the multidimensional state vector Represented as: ; in, These are the vehicle's longitudinal speed and lateral speed, respectively. This refers to the yaw rate; This represents the current lateral position deviation of the centroid. The angle between the vehicle's heading angle and the tangent of the reference path; These represent the relative longitudinal distances of the three nearest buckets; all state inputs are standardized before being fed into the policy network. The action vector Represented as: ; in, This is the steering angle ratio; This refers to the throttle opening. The braking pressure is used; the motion vector is mapped to actuator commands via the vehicle's underlying control interface and filtered to suppress high-frequency jitter.

[0010] Furthermore, in step S3, the single-step reward The calculation formula is: ; in, For each sub-reward item, This refers to the adaptive weight coefficients of the corresponding sub-reward items that dynamically evolve with the number of training steps t.

[0011] Furthermore, the sub-reward items include: Progress Rewards This is used to encourage vehicles to move forward along the planned path; Speed ​​Excitation Used to drive vehicles to maintain high speeds; Lateral deviation penalty This is used to constrain the degree to which a vehicle deviates from the reference path; Control smoothing penalty This is used to suppress high-frequency abrupt changes in steering and throttle response; Time penalty This is used to compress task completion time; Collision Penalty It is used to constrain the collision behavior of vehicles with obstacles; Task completion reward This is used to incentivize vehicles to complete the entire slalom task without collision.

[0012] Furthermore, in step S3, the performance metrics include at least the average collision rate and the completion time variance; the preset condition is: the average collision rate is lower than a safety threshold and the completion time variance converges to a preset range; when the preset condition is met, at least one of the following weight adjustment operations is triggered: Reduce the weighting factor of the lateral deviation penalty to allow for more aggressive driving routes; Increase the weighting factor of time penalties to force a reduction in task duration; Increase the weighting coefficient of speed incentives to further increase vehicle speed.

[0013] Furthermore, the automatic adjustment of the weight coefficients is also linked to the difficulty adjustment of the obstacle layout in the simulation interactive environment: when the preset conditions are met, the weight adjustment operation and the obstacle spacing reduction operation are executed simultaneously, realizing a smooth transition from safety priority to speed priority in the training phase; the obstacle spacing reduction operation is: reducing the lateral spacing of the cones. By step size The contraction proceeds step by step.

[0014] Furthermore, in step S4, the reinforcement learning algorithm is a proximal policy optimization algorithm, and its truncated optimization objective function is: ; in, This is the estimated value of the dominance function at step t; Importance sampling ratio; The advantage function is calculated based on generalized advantage estimation. The probability ratio truncation threshold.

[0015] Furthermore, in step S4, the automatic hyperparameter optimization module is implemented based on the TPE algorithm, which optimizes the key hyperparameter set of the reinforcement learning algorithm. Bayesian sampling is performed, where For learning rate, As a discount factor, For GAE smoothing parameters, The PPO pruning threshold. It is the entropy coefficient; The automatic hyperparameter optimization and policy training are executed in parallel. Through multi-process parallel environment interaction, multiple training tasks with different hyperparameter configurations are executed simultaneously. Based on the surrogate model prediction results of the convergence performance of each group, inferior configurations are dynamically eliminated and the sampling direction is guided, thereby realizing online optimization of hyperparameters during training.

[0016] Furthermore, in step S5, the automatic archiving process includes: Model fixation: Save the current policy network weights With value network weight Generate a serialization strategy file; Parameter recording: Records the current optimal set of hyperparameters. Reward weight distribution Serialize the parameters and environment configurations for each stage of the course learning process into a configuration file; Trajectory Export: Sample and record complete time-series data of a single optimal run at a frequency of 100Hz to generate a structured trajectory file, with fields including at least... ,in For timestamps, For vehicle global coordinates, For the vehicle's heading angle, For vehicle speed, For steering angle, For throttle opening, Braking pressure, This is a collision flag.

[0017] Furthermore, in step S6, the optimal control action output by the convergence strategy can be characterized as: ; in, The optimal action at time step t. As a discount factor, In the state Take action below Instant rewards received This is the optimized convergence strategy.

[0018] Another objective of this application is to provide a fastest slack-by system based on reinforcement learning and adaptive reward evolution, comprising: The simulation environment module is used to build a simulation interactive environment for simulating vehicle slalom tasks; The strategy network module is used to output control actions based on the current state information; The adaptive reward evolution module is used to calculate the single-step composite reward, automatically adjust the weight coefficient of each sub-reward based on the agent's historical performance, and dynamically adjust the environmental difficulty based on performance indicators. The reinforcement learning training module is used to update the policy network based on the collected interactive data, and has a built-in hyperparameter automatic optimization unit, which is executed in parallel with the training process. The automatic evaluation and archiving module is used to periodically evaluate the performance of the strategy and automatically save the strategy weights and complete trajectory data when the performance is refreshed. The inference deployment module is used to deploy the solidified strategy to the target controller; The system performs the method described above.

[0019] Compared with existing technologies, the beneficial effects of this application's fastest slalom method and system based on reinforcement learning and adaptive reward evolution are as follows: By constructing a continuous state-action space and a multi-dimensional composite reward function in a simulation environment, combined with a dynamic evolution mechanism for reward weights and an automatic hyperparameter optimization closed loop, the self-iterative convergence of the slalom control strategy and the automatic retention of the optimal trajectory and control parameters are achieved, ultimately reaching the shortest slalom time under dynamic safety constraints. Specifically: (1) Self-evolution and extreme performance optimization of the slalom strategy: This application eliminates the rigidity of the traditional fixed objective function in balancing "speed pursuit" and "safety constraints" by using a multi-dimensional composite reward function and a dynamic weight evolution mechanism. Through the course learning strategy, when the agent's average collision rate is lower than the safety threshold and the time variance convergence is completed, the lateral deviation penalty weight is automatically reduced, the time penalty weight is increased, and the lateral spacing of the cones is simultaneously reduced, realizing a smooth transition from "safe convergence" to "speed optimization". This mechanism enables the control strategy to automatically iterate within the tire adhesion limit and safety boundary, and finally converge to the shortest slalom time under physical constraints, significantly improving the extreme performance of the slalom test.

[0020] (2) Automated training loop and parameter trajectory self-retention: This application utilizes multi-environment parallel simulation and a hyperparameter automatic optimization framework based on TPE Bayesian sampling to support efficient distributed training of policy models, completely eliminating the reliance on manual parameter tuning experience in traditional methods and significantly shortening the algorithm debugging cycle. At the same time, through the built-in periodic evaluation module, the policy network weights, optimal hyperparameter set, reward weight distribution, and complete time-series trajectory data are automatically saved when the policy refreshes its historical best record, forming an automated "training-evaluation-archiving" closed loop, solving the problems of traditional methods lacking policy version tracking, discrete data recording, and real vehicle migration calibration support.

[0021] (3) Balancing extreme performance and driving smoothness: This application introduces a control smoothness penalty term into the reward function, applying a quadratic penalty to the high-frequency abrupt changes in steering and throttle, effectively suppressing high-frequency jitter of the actuator, reducing tire slip rate and energy loss, and extending the actuator life. At the same time, the progress reward design eliminates the speculative behavior of the agent spinning in place to accumulate points, ensuring that the strategy maintains the rationality and smoothness of the driving trajectory while pursuing extreme speed.

[0022] (4) Low-latency migration from simulation to real vehicle: The optimal control strategy output by this application is serialized and saved in a standard format, which can be directly deployed to the real-time inference engine. Combined with the dynamic constraint verification module, it realizes the efficient and safe migration of the simulation training strategy to the real vehicle controller, reduces the real vehicle calibration cost, and accelerates the process of algorithm development to implementation. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of the pile driving in the embodiments of this application; Figure 2 This is a schematic diagram of the overall process of the fastest staking method in the embodiments of this application; Figure 3 This is a detailed flowchart illustrating the fastest staking method in the embodiments of this application. Detailed Implementation

[0024] This application provides a fastest slalom method and system based on reinforcement learning and adaptive reward evolution, aiming to solve the technical problems of traditional slalom control methods, such as reliance on human experience, fixed objective functions, and lack of automated closed-loop control. This application constructs a high-fidelity simulation interactive environment, designs an adaptive composite reward function and its dynamic weight evolution mechanism, combines the Proximal Policy Optimization (PPO) algorithm with automatic hyperparameter optimization, and incorporates a periodic evaluation and automatic archiving closed loop. The final output is a control strategy that achieves globally optimal slalom passing time while satisfying vehicle dynamics safety constraints.

[0025] The technical solution of this application will be described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are only used to illustrate this application and should not be regarded as limiting the scope of this application.

[0026] Please refer to Figures 2-3 A fastest slack-by method based on reinforcement learning and adaptive reward evolution includes the following steps: S1: Construct a simulation interactive environment, which includes a vehicle multibody dynamics model, a cone space layout module and an intelligent agent data interaction interface, to simulate the cone-driving task of a vehicle traveling through a predetermined sequence of obstacles according to a planned path. S2: Construct a state observation space and action mapping. Within each simulation interaction cycle, the agent extracts a multi-dimensional state vector containing set state information from the environment. It outputs motion vectors containing the set control action information. ; S3: Construct an adaptive composite reward function, single-step reward It is obtained by weighted summation of multiple sub-rewards corresponding to different optimization objectives; an evaluation window is set to monitor the performance indicators of the agent. When the performance indicators meet the preset conditions, the weight coefficient of at least one sub-reward is automatically adjusted to change the focus of strategy optimization. S4: Update the policy network using a reinforcement learning algorithm driven by the reward function. With value network It also embeds a hyperparameter automatic optimization module to automatically optimize the hyperparameters of the reinforcement learning algorithm; S5: Built-in periodic evaluation and automatic archiving mechanism. After completing a set number of training steps, a deterministic evaluation mode is activated, executing a set number of independent slalom tests. The average completion time of the current strategy is considered. Below the historical best record If so, the automatic archiving process is triggered, which saves at least the current policy network weights, the current hyperparameter set, the reward weight distribution, and the complete time-series trajectory data; S6: Output the convergence strategy optimized by both adaptive reward evolution and hyperparameter optimization. The strategy described above can achieve global optimization of the slalom time while satisfying vehicle dynamics constraints and obstacle avoidance safety.

[0027] In one embodiment, a fastest slack-by-the-loop method based on reinforcement learning and adaptive reward evolution specifically includes the following steps: S1: Build a high-fidelity simulation interactive environment consisting of a vehicle multibody dynamics model, a pile space layout module, and an intelligent agent data interaction interface. S2: Set the state vector (speed, deviation, distance from stake, etc.) and action vector (steering, throttle, braking); S3: Set multi-dimensional sub-rewards (progress, speed, deviation, smoothing, time, collision, completion) and embed weighted automatic evolution rules; S4: Simultaneously open dozens or hundreds of virtual environments to allow intelligent agents to run laps in parallel (collecting experience data). S5: Using the collected "state-action-reward" data, calculate the dominance function, prune and update the policy network to increase the probability of good actions and decrease the probability of bad actions; S6: Built-in Optuna framework, using the TPE algorithm to try different hyperparameters in parallel and automatically lock the optimal combination; S7: After monitoring the average collision rate to be lower than the safety threshold and the completion time to be stable, automatically reduce the lateral penalty, increase the time penalty, and may reduce the pile spacing. S8: Every K training steps, turn off exploration noise, run M laps deterministically using the current strategy, and record the average completion time; S9: If the current performance is better than the best historical performance, the following will be automatically saved: strategy weights, hyperparameters, reward weights, environment configuration, and complete trajectory file. S10: Repeat steps S4 to S9 until the slalom time no longer decreases (or reaches the physical limit), then output the final strategy. ; S11: Outputs the solidified strategy file, which can be directly loaded into the vehicle controller and run after security verification.

[0028] The following is a detailed explanation of each of the above steps.

[0029] Step S1: Constructing the simulation interactive environment.

[0030] In a preferred embodiment of this application, a high-fidelity simulation interactive environment is first constructed. This simulation interactive environment is used to simulate a vehicle navigating a predetermined sequence of obstacles (e.g., a cone array) along a planned path (typically a zigzag route). Figure 1 As shown.

[0031] Specifically, the simulation interaction environment includes the following core components: a vehicle multibody dynamics model, a pile space layout module, and an intelligent agent data interaction interface.

[0032] The vehicle multibody dynamics model is implemented using high-fidelity vehicle dynamics simulation software (such as CarSim, IPG CarMaker, or a vehicle model built on Modelica). The vehicle model receives control action commands (including steering angle ratio, throttle opening, and braking pressure) from the intelligent agent, solves for the state changes of the vehicle at each simulation step using the vehicle dynamics equations, and outputs the motion state parameters of the vehicle body.

[0033] The pile barrel spatial layout module arranges the pile barrel array in the simulation environment according to standard pile driving test specifications (such as the ISO 3888 series or enterprise-defined pile driving standards). Specifically: Define the spatial coordinates of each pile to form a zigzag-shaped passageway; Set the longitudinal spacing and lateral offset between adjacent piles. This spacing can be dynamically adjusted according to the course learning stage during the training process. Set the collision radius of the cones. When the outer envelope of the vehicle model intersects with the collision radius of the cones, it is determined to be a collision event.

[0034] The intelligent agent data interaction interface is responsible for completing the following operations in each simulation interaction cycle: Vehicle state data is read from the simulation environment, assembled into a state vector, and passed to the agent's policy network. It receives control action vectors output by the intelligent agent and converts them into actuator instructions for the vehicle model via the underlying control interface; The actuator commands are applied to the vehicle model, advancing the simulation environment to the next interaction step; Calculate the reward value for the current step size and store it in the experience buffer along with the state transition data.

[0035] Preferably, the update frequency of the simulation interactive environment is 50Hz to 200Hz, and in this embodiment it is set to 100Hz, that is, the time interval Δt of each simulation step is 0.01 seconds.

[0036] Step S2: Construction of state observation space and action space.

[0037] In a preferred embodiment of this application, the state observation space design of the agent follows the principles of low dimensionality, high efficiency, and dynamic completeness. Within each simulation interaction cycle t, the agent extracts a continuous multidimensional state vector from the environment. .

[0038] Preferably, a multidimensional state vector Includes the following parameters: vehicle longitudinal speed This parameter represents the velocity component of the vehicle's center of gravity along the longitudinal direction of the vehicle body. It directly reflects the vehicle's straight-line acceleration capability and current speed level. Vehicle lateral speed This parameter represents the velocity component of the vehicle's center of gravity in the lateral direction. It reflects the degree of sideslip and is an important indicator for assessing the vehicle's stability boundary. yaw rate This parameter represents the angular velocity of the vehicle's rotation about its vertical axis. It reflects the vehicle's steering response and yaw stability. Lateral position deviation of the centroid This parameter represents the lateral deviation of the vehicle's center of gravity from the centerline of the reference path. It is a core indicator for measuring path tracking accuracy. Heading angle deviation This parameter represents the angle between the vehicle's current heading angle and the tangent direction of the reference path. It reflects the degree to which the vehicle's attitude deviates from the desired direction of travel. Relative position information of obstacles ahead: In this embodiment, the longitudinal distances of the three nearest cones relative to the vehicle's center of gravity are taken. This set of parameters provides the agent with visual information about the path ahead, enabling it to anticipate upcoming curves and make control decisions in advance. In other embodiments, more or fewer pieces of information about obstacles ahead may also be used.

[0039] Preferably, the aforementioned velocity and angular velocity parameters are normalized to the [-1,1] interval before being input into the policy network, and the position and deviation parameters are normalized to a suitable range according to the track geometry. All state parameters are further processed by running mean-variance standardization to eliminate gradient oscillations caused by dimensional differences and improve training stability.

[0040] In a preferred embodiment of this application, the action space of the agent is defined as a continuous three-dimensional vector. = , respectively corresponding to: Steering angle ratio The value ranges from [-1, 1], where -1 corresponds to the left limit steering angle, +1 corresponds to the right limit steering angle, and 0 corresponds to zero steering. This proportional value is converted into the actual steering command after being multiplied by the vehicle's maximum executable steering angle. Throttle opening The value ranges from [0,1], where 0 corresponds to zero throttle (fully released accelerator pedal) and 1 corresponds to maximum throttle (fully open). This value is mapped and converted into a drive torque command by the powertrain system. Braking pressure The value ranges from [0,1], where 0 corresponds to zero braking and 1 corresponds to maximum braking pressure. This value is mapped and converted into braking torque command by the braking system.

[0041] Specifically, to prevent high-frequency jitter in the timing of actions output by the policy network (which can cause actuator wear and affect vehicle stability in actual vehicles), this application adds a first-order low-pass filter at the action output stage. Specifically, the actuator commands ultimately applied to the vehicle model... Smooth using the following formula: ; in, The smoothing coefficient has a value range of [0,1], and in this embodiment, it is preferably 0.3 to 0.5; This is the actual actuator command from the previous simulation step. This filtering process effectively suppresses high-frequency jitter in the actuator, extends its lifespan, and improves control smoothness.

[0042] Step S3: Adaptive composite reward function and weight evolution mechanism.

[0043] The overall structure of the composite reward function is as follows: In a preferred embodiment of this application, single-step reward It is constructed using a weighted summation of multi-dimensional sub-rewards. The general expression for the total reward function is: ; in, Each sub-reward item corresponds to a different optimization objective; This refers to the adaptive weight coefficients of the corresponding sub-reward items that dynamically evolve with the number of training steps t. This dynamic evolution mechanism is one of the core innovations of this application, and its specific implementation is detailed below.

[0044] In this embodiment, the total reward function is specifically expanded as follows: .

[0045] in, As a progress reward, For speed excitation, As a penalty for lateral deviation, To control the smoothing penalty, As a time penalty, As a penalty for collision, Rewards for completing the task.

[0046] The specific calculation methods for each sub-reward are as follows: Progress Rewards This is used to encourage vehicles to move forward along the slalom path, preventing the agent from gaining undue benefits through non-forward actions such as spinning in place. In this embodiment, the progress reward is calculated based on the dot product of the vehicle's velocity vector v and the unit vector t of the tangent direction of the reference path. The specific calculation formula is as follows: ; in, This is a normalization constant, and its physical meaning is the maximum possible speed of the vehicle under this condition. This design ensures that the greater the projected speed of the vehicle and the closer its direction is to the tangent of the path, the higher the progress reward; when the vehicle reverses or slides laterally, this reward value will be significantly reduced or even negative.

[0047] Speed ​​Excitation This is used to drive the intelligent agent to maintain a high speed as much as possible during the slalom maneuver, thereby reducing the time taken per lap. The specific calculation formula is as follows: ; in, This represents the vehicle's actual combined speed at the current moment. The target reference speed is dynamically set according to the curvature of the slalom path (higher in straight sections and lower in curved sections). The speed incentive calibrator is used to adjust the basic proportion of speed reward in the total reward, driving the agent to maintain high speed on straightaways and at the exit of corners. The min function ensures that no additional reward is added when the speed exceeds the target speed, preventing the agent from blindly exceeding the speed limit and losing control.

[0048] Lateral deviation penalty This is used to constrain vehicles to travel along the centerline of a reference path. The greater the deviation, the greater the penalty. It forces vehicles to stay close to the line in a quadratic increment, thereby shortening the actual travel path. The specific calculation formula is as follows: ; in, This refers to the lateral position deviation of the centroid; The effective passage width of the reference path (i.e., the safety corridor width) is determined by the vehicle width and the lateral spacing between the piles; β is the lateral constraint strength calibration value. This design ensures that the further a vehicle deviates from the reference centerline, the faster the penalty increases, effectively confining the vehicle within the safe passage corridor.

[0049] Control smoothing penalty This is used to suppress high-frequency abrupt changes in steering and throttle, reduce tire slip ratio and energy loss, and improve ride comfort. The specific calculation formula is as follows: ; in, This represents the change in the ratio of the current step's steering angle to the previous step's angle. This represents the change in throttle opening between the current step and the previous step. The design employs a smoothing penalty coefficient to penalize abrupt changes in the control quantity, thereby prompting the policy network to output a temporally smooth control sequence. It should be noted that in this embodiment, abrupt changes in braking pressure are not penalized separately, but in other embodiments, the braking change can be included in the smoothing penalty term.

[0050] Time penalty Used to compress task completion time. The specific calculation formula is: ; in, This represents the time compression factor that increases with the number of training steps. The physical meaning of this design is: for each additional simulation step, an additional time compression factor is deducted. The training process forces the agent to complete the task as quickly as possible while ensuring safety. As training progresses, As the risk increases, the agent seeks the optimal balance between "collision risk" and "time penalty" under physical limits.

[0051] Collision Penalty When a vehicle collides with a cone or boundary marker, a large negative reward is immediately applied. Specifically: ; Where C is a preset normal number, and its value should be significantly larger than the normal magnitude of other sub-rewards to ensure that collision behavior is strongly suppressed. In this embodiment, the preferred value of C is [50, 200], and more preferably 100.

[0052] Task completion reward A large positive reward is given when a vehicle passes all the cones in sequence without collision. Specifically: ; Where D is a preset positive constant. This reward enables the agent to clearly identify the key state of "successfully completing the task" and reinforces the correct behavioral sequence. In this embodiment, the preferred value of D is [30, 100], and more preferably 50.

[0053] The adaptive weight evolution mechanism is as follows: In a preferred embodiment of this application, the weight coefficients of the aforementioned sub-rewards are not fixed, but evolve automatically according to the learning progress of the agent. This adaptive weight evolution mechanism based on course learning enables a smooth transition from a "safety-first" to a "speed-first" training phase.

[0054] Specifically, setting up an evaluation window This is used to periodically trigger a weighted adaptive evolution mechanism. In a preferred embodiment of the invention, A dual-trigger mechanism is employed: triggering every 10,000 to 30,000 simulation steps or every 50 to 100 complete rounds (whichever is met first). At the end of each evaluation window, the average collision rate of the agent within that window is calculated. Standard deviation of task completion time .

[0055] The weights are dynamically updated when both of the following conditions are met: Condition 1 (Safety Condition): Average Collision Rate Below the preset safety threshold Safety threshold The value ranges from 1% to 5%, preferably 5%; Condition 2 (Stability Condition): Standard Deviation of Completion Time Convergence within the preset range indicates that the agent has the ability to stably complete the slalom task. Standard deviation The value ranges from 0.3 seconds to 0.8 seconds, with 0.5 seconds being preferred.

[0056] When the above conditions are met, the following weight adjustment operation will be performed: Lateral deviation penalty weight adjustment: ,in The lateral weight attenuation factor has a value range of (0,1), and in this embodiment, it is preferably 0.90 to 0.96, and more preferably 0.93. This operation gradually reduces the severity of the lateral constraint, allowing vehicles to take more aggressive routes closer to the cones to shorten the path length; Time penalty weight adjustment: ,in The time weight increment factor ranges from (1, +∞), and is preferably 1.03 to 1.08 in this embodiment, with 1.05 being the most preferred value. This operation gradually increases the intensity of the time penalty, forcing the agent to compress the time consumed per lap.

[0057] Preferably, the aforementioned weight adjustment operation is executed in conjunction with the adjustment of the difficulty of the pile layout in the simulation environment. Specifically, when the weight update is triggered, the lateral spacing of the piles is adjusted. The path curvature and passage difficulty are further increased by shrinking the step size ΔL (ΔL ranges from 0.05 meters to 0.15 meters, preferably 0.1 meters), forcing the agent to find the limit speed under more stringent spatial constraints.

[0058] Through the above evolution mechanism, the training process of the agent is naturally divided into multiple stages: the initial stage prioritizes a low collision rate (safe driving), the middle and later stages gradually transition to pursuing the ultimate speed at the edge of the safety boundary (high-performance driving), and finally converges to the fastest slalom strategy under physical constraints.

[0059] Step S4: PPO Strategy Optimization and Automatic Hyperparameter Optimization In a preferred embodiment of this application, the Proximal Policy Optimization (PPO) algorithm is used as the core reinforcement learning algorithm. During policy update, the PPO algorithm limits the difference between the old and new policies through a truncated objective function, avoiding the training collapse problem caused by excessively large update steps common in policy gradient algorithms. It has advantages such as stable training and high sample efficiency.

[0060] Agent policy network (characterized by parameter θ) and value network (in terms of parameters) The representations are all implemented using multi-layer fully connected neural networks. In this embodiment, the preferred network structure is as follows: the input layer receives the normalized state vector (dimension 7), the hidden layers are two fully connected layers, each containing 256 neurons, and the activation function is ReLU or Tanh function; the output layer outputs the parameters of the action distribution (for continuous action space, the mean and logarithmic standard deviation of the Gaussian distribution) and the state value estimate.

[0061] The core truncation-based optimization objective function of the PPO algorithm is: ;

[0062] in: The importance sampling ratio represents the ratio of the probability of the current policy and the old policy taking the same action in the same state. For the current new strategy (parameter is) In state Select action The probability of; The old strategy before the update (parameter is) In state Select action The probability of; The advantage function is calculated based on Generalized Advantage Estimation (GAE) and is used to evaluate the advantage in state. Take action below How good or bad it is relative to the average level; The probability ratio truncation threshold is preferably 0.1 to 0.3, and more preferably 0.2, in this embodiment, to limit the magnitude of policy updates and prevent excessive updates from causing policy collapse.

[0063] The value network is updated using the mean squared error loss function: ; in, For value networks in state The estimated value below, Accumulate returns for discounts at time step t. Let be the mathematical expectation of time step t.

[0064] The total loss function is the sum of the policy loss, value loss, and entropy regularization term: ; in, The objective function for truncated optimization of the policy network is... Let be the mean squared error loss function of the value network. The entropy term of the policy distribution is used to encourage exploration. and This is the balance coefficient.

[0065] During training, the agent collects experience data (i.e., state, action, reward, and transition sequence of the next state) through multi-process parallel environment interaction and stores it in an experience buffer. When the amount of data in the buffer reaches a set threshold, multiple rounds of mini-batch gradient descent updates are performed.

[0066] In a preferred embodiment of this application, to overcome the bottleneck of manual parameter tuning, an automatic hyperparameter optimization module based on Bayesian sampling is embedded. Specifically, the Optuna framework is used to implement automatic hyperparameter search based on the TPE (Treestructured ParzenEstimator) algorithm.

[0067] Key hyperparameter set to be optimized Defined as: ; in: The learning rate for the policy network and the value network; This is a discount factor used to balance the weight of immediate rewards and future rewards; This is the GAE smoothing parameter, used to control the bias-variance tradeoff in the advantage function estimation; The PPO probability ratio cutoff threshold; is the entropy coefficient, used to adjust the degree of exploration of the strategy.

[0068] The process of the hyperparameter automatic optimization module for performing hyperparameter automatic optimization is as follows: Step 1. Initial sampling: Randomly sample several sets of initial hyperparameter configurations within the preset hyperparameter search space; Step 2. Parallel training: Multiple training tasks are launched in parallel through multi-process, each hyperparameter configuration is run independently, and the convergence speed and final slack time under each configuration are recorded in the set evaluation period. Step 3. Proxy Model Construction: Based on the completed training results, the Proxy Model is constructed using the TPE algorithm to estimate the probability distribution of achieving excellent performance at various points in the hyperparameter space; Step 4. Guided sampling: Based on the prediction results of the surrogate model, perform dense sampling in areas with high probability, while reserving a certain exploration space to escape local optima; Step 5. Iterative convergence: Repeat steps 2 to 4 until the preset number of iterations is exhausted or the hyperparameter performance no longer improves significantly, and lock the globally optimal hyperparameter combination.

[0069] Through the above-mentioned automatic optimization mechanism, this application realizes online collaborative optimization of hyperparameters and policy network training, avoiding the problems of low training efficiency or convergence to suboptimal policies caused by improper hyperparameter settings in traditional methods.

[0070] Step S5: Periodic evaluation and automatic archiving.

[0071] In a preferred embodiment of this application, the training closed loop incorporates a periodic evaluation and automatic archiving mechanism.

[0072] Periodic assessments include the following: After each K-step training interaction (where K is between 20,000 and 100,000 steps, preferably 50,000 steps in this embodiment), the system automatically starts the deterministic evaluation mode. In the evaluation mode: By shutting down the exploration noise of the policy network, setting the standard deviation of action sampling to 0, and directly using the mean of the Gaussian distribution as the deterministic control command output; Perform M independent slalom tests (M can be 5 to 20 times, preferably 10 times in this embodiment). Each test starts from the same initial state, and the completion time, collision situation and trajectory data are recorded for each test. Calculate the average completion time of M tests. and average collision rate .

[0073] Automatic archiving trigger condition: The current average completion time Best in history Compare. If < If a collision occurs during this evaluation, it is considered a refresh of the historical best record, triggering the automatic archiving process. If a collision occurs during this evaluation, even if the average completion time is shorter, archiving can be avoided by choosing not to trigger it based on the strategy settings, ensuring that all archiving strategies are safe and feasible.

[0074] The automated archiving process includes the following: Model fixation: Save the current policy network weights With value network weight This generates a serialization strategy file (e.g., using the standard model saving format of PyTorch or TensorFlow). This strategy file can be directly loaded into the inference engine for subsequent evaluation, deployment, or continued training.

[0075] Parameter recording: Records the current optimal set of hyperparameters. Weight distribution of each sub-reward The evolution history parameters of the course learning phase (including the current pile spacing, the number of weight adjustments performed, etc.) and environmental configuration information (including vehicle parameters, road surface adhesion coefficient, etc.) are serialized into a configuration file. This configuration file is stored in a structured text format (such as JSON or YAML) for easy manual review and subsequent reproduction.

[0076] Trajectory Export: Complete time-series data of the current optimal run is sampled and recorded at a set frequency (preferably 100Hz in this embodiment) to generate a structured trajectory file. The trajectory file must include at least the following fields: ; in: This is a timestamp, with the simulation start time as zero. The X and Y coordinates of the vehicle's center of mass in the global coordinate system; This refers to the vehicle's heading angle; This is the vehicle's current combined speed; This represents the current steering angle ratio, which is dimensionless and ranges from [1,1]. The current throttle opening is dimensionless and ranges from [0,1]. The current braking pressure is dimensionless and ranges from [0,1]. This is the collision flag; 0 indicates no collision, and 1 indicates a collision has occurred.

[0077] Preferably, the trajectory file is stored in CSV (comma-separated values) or Parquet format to facilitate subsequent data analysis, visualization, and as a reference for vehicle calibration.

[0078] Naming conventions: To facilitate version traceability, archived files are named using a unified convention, such as including the number of training steps, evaluation timestamps, and performance metrics (e.g., "policy_step_250000_time_5.23s.pt" and "trajectory_step_250000_time_5.23s.csv"), to ensure that policy weights, parameter configurations, and trajectory data are traceable to each other.

[0079] Through the aforementioned automatic archiving mechanism, this application achieves an automated closed loop of "training evaluation archiving," solving the problems of discrete recording of training results and untraceable policy versions in traditional methods, and providing complete data support for subsequent policy comparison, performance analysis, and real-vehicle migration.

[0080] Step S6: Output and deployment of the optimal strategy.

[0081] After the aforementioned iterative training (i.e., repeatedly executing environment interaction, reward calculation, policy update, periodic evaluation, and automatic archiving), the training process terminates when the slalom completion time no longer significantly decreases or reaches the preset training step limit. At this point, the output convergent policy is optimized through both adaptive reward evolution and hyperparameter optimization. .

[0082] The optimal control action output by this convergence strategy can be characterized as: ; in, γ is the optimal action vector at time step t; γ is the discount factor. In the state Take action below The instant rewards received; This is the convergence strategy after the above dual optimization.

[0083] The above expression mathematically defines the decision criterion for the optimal policy: among all possible action sequences, choose the one that maximizes the expected value of the cumulative reward from the discount. Due to policy networks... It has been sufficiently trained and can output the optimal action for the current state with low computational latency (usually in the milliseconds) during runtime, meeting the requirements of real-time control.

[0084] Inference Deployment: The final optimal control policy can be directly deployed to the real-time inference engine. The deployment process includes the following steps: 1. Model Loading: Load the archived policy weight files into the inference engine (such as TensorRT, ONNXRuntime, or a lightweight inference framework for embedded platforms). 2. Input preprocessing: In a real vehicle or real-time simulation environment, collect and standardize state information in the same way to generate a state vector isomorphic to that used during training; 3. Forward reasoning: Input the state vector into the policy network, perform one forward propagation calculation, and output a normalized action vector; 4. Post-processing and verification: The motion vector is converted into actual actuator commands (steering angle, throttle opening, braking pressure), and the dynamic constraint verification module checks whether the commands exceed the safety boundaries (e.g., maximum steering angular velocity, maximum acceleration, etc.). If they do, safety limiting is applied. 5. Execution: The verified execution command is sent to the vehicle's underlying actuators (steering motor, drive motor / engine, braking system) to complete closed-loop control.

[0085] Preferably, the policy network can be lightweighted before inference deployment, including but not limited to model pruning, quantization (e.g., converting FP32 weights to FP16 or INT8) and operator fusion, to meet the computational resource constraints of the embedded platform.

[0086] Thus, this application has realized a complete technology chain from simulation training to real vehicle deployment, ensuring low-latency transfer and reliable operation of the strategy on real vehicles.

[0087] In a preferred embodiment of this application, a fastest slalom system based on reinforcement learning and adaptive reward evolution is also provided. The system includes the following functional modules connected sequentially to form an automated closed loop: 1. Simulation Environment Module: This module is used to construct a simulation environment for the vehicle's slalom maneuver. It integrates the vehicle's multibody dynamics model, slalom spatial layout, and physics engine, receiving control commands and returning status information and reward signals. For details on the implementation of this module, please refer to the aforementioned "Construction of Simulation Interactive Environment" section.

[0088] 2. Policy Network Module: Used to output control actions based on the current state information. This module implements the policy network. The forward inference function receives a preprocessed and normalized state vector and outputs a continuous action vector containing steering, throttle, and braking. For details on the implementation of this module, please refer to the aforementioned sections on "Construction of State Observation Space and Action Space" and "PPO Strategy Optimization".

[0089] 3. Adaptive Reward Evolution Module: This module calculates the single-step composite reward and automatically adjusts the weight coefficients of each sub-reward based on the agent's historical performance, as well as dynamically adjusting the environment difficulty based on performance metrics. The core functions of this module include real-time calculation of each sub-reward, statistical analysis of performance metrics within the evaluation window, determination of weight update conditions, and execution of evolution operations. For a detailed implementation of this module, please refer to the aforementioned "Adaptive Composite Reward Function and Weight Evolution Mechanism" section.

[0090] 4. Reinforcement Learning Training Module: This module updates the policy network based on collected interactive data and includes a built-in hyperparameter auto-optimization unit. It implements the policy and value network update logic for the PPO algorithm and simultaneously performs online hyperparameter optimization in parallel during training using a Bayesian sampling method. For details on this module's implementation, please refer to the aforementioned "PPO Policy Optimization and Hyperparameter Auto-Optimization" section.

[0091] 5. Automatic Evaluation and Archiving Module: This module periodically evaluates strategy performance and automatically saves strategy weights and complete trajectory data upon performance refresh. It includes an evaluation control unit, a performance comparison unit, and an archiving execution unit. For details on the implementation of this module, please refer to the aforementioned "Periodic Evaluation and Automatic Archiving" section.

[0092] 6. Inference Deployment Module: This module deploys the fixed strategy to the target controller. It includes a model loading unit, input / output preprocessing / post-processing units, a dynamic constraint verification unit, and an inference engine interface adapted to the target platform. For details on the implementation of this module, please refer to the aforementioned "Optimal Strategy Output and Deployment" section.

[0093] The aforementioned modules are connected sequentially to form an automated closed loop of "training, evaluation, archiving, and deployment." The interaction between the simulation environment module and the policy network module, the data transfer between the policy network module and the reinforcement learning training module, the guidance of the adaptive reward evolution module on the training direction of the policy network module, and the collaborative relationship between the automatic evaluation and archiving module and the aforementioned modules collectively constitute the complete system architecture of this application.

[0094] In a specific implementation example of this application, the following typical parameter configuration is used for training:

[0095] After training under the above configuration (typically converging after millions to tens of millions of simulation steps), the strategy of this application can achieve a passing time close to the vehicle dynamics limit in standard slalom tests. Compared with traditional methods based on fixed control parameters, the slalom time can be reduced by 10% to 30%, while the strategy has good generalization and stability.

[0096] It should be noted that all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application. For example: In other embodiments, the state space may have its parameter dimensions increased or decreased depending on the specific sensor configuration, such as increasing wheel speed signals, suspension travel signals, etc. In other embodiments, the specific mathematical form of the sub-reward item can be adjusted according to the actual vehicle characteristics and optimization objectives. For example, the lateral deviation penalty can be changed from a quadratic to a fourth power to enhance the constraint, or the speed excitation can be set as a piecewise linear function. In other embodiments, the reinforcement learning algorithm can be replaced by other policy gradient methods, such as TRPO, SAC, DDPG, etc., as long as the core idea of ​​adaptive reward evolution is retained, they are all equivalent variations of this application; In other embodiments, the hyperparameter automatic optimization module may be replaced by other Bayesian optimization methods or evolutionary algorithms (such as genetic algorithms). In other embodiments, the storage format and sampling frequency of the archived trajectory files can be adjusted according to specific needs.

[0097] Furthermore, the method disclosed in this application is not only applicable to slalom test scenarios, but can also be extended to other types of autonomous driving test conditions, such as moose test, double lane change test, track lap time optimization, and other control tasks that require simultaneous satisfaction of path tracking accuracy and speed extreme values. These extended applications should also be regarded as natural extensions of the concept of this application and fall within the protection scope of this application.

[0098] For those skilled in the art, various modifications and improvements can be made without departing from the inventive concept of this application, and these all fall within the scope of protection of this application.

Claims

1. A fastest slalom method based on reinforcement learning and adaptive reward evolution, characterized in that: Includes the following steps: S1: Construct a simulation interactive environment, which includes a vehicle multibody dynamics model, a cone space layout module and an intelligent agent data interaction interface, to simulate the cone-driving task of a vehicle traveling through a predetermined sequence of obstacles according to a planned path. S2: Construct a state observation space and action mapping. Within each simulation interaction cycle, the agent extracts a multi-dimensional state vector containing set state information from the environment. It outputs motion vectors containing the set control action information. ; S3: Construct an adaptive composite reward function, single-step reward It is obtained by weighted summation of multiple sub-rewards corresponding to different optimization objectives; an evaluation window is set to monitor the performance indicators of the agent. When the performance indicators meet the preset conditions, the weight coefficient of at least one sub-reward is automatically adjusted to change the focus of strategy optimization. S4: Update the policy network using a reinforcement learning algorithm driven by the reward function. With value network It also embeds a hyperparameter automatic optimization module to automatically optimize the hyperparameters of the reinforcement learning algorithm; S5: Built-in periodic evaluation and automatic archiving mechanism. After completing a set number of training steps, a deterministic evaluation mode is activated, executing a set number of independent slalom tests. The average completion time of the current strategy is considered. Below the historical best record If so, the automatic archiving process is triggered, which saves at least the current policy network weights, the current hyperparameter set, the reward weight distribution, and the complete time-series trajectory data; S6: Output the convergence strategy optimized by both adaptive reward evolution and hyperparameter optimization. The strategy described above can achieve global optimization of the slalom time while satisfying vehicle dynamics constraints and obstacle avoidance safety.

2. The method according to claim 1, characterized in that, In step S2, the state information includes vehicle motion state parameters, vehicle deviation parameters relative to the reference path, and relative position parameters of several obstacles in front. The control action information includes at least steering control quantity, throttle control quantity, and braking control quantity.

3. The method according to claim 2, characterized in that, The multidimensional state vector Represented as: ; in, These are the vehicle's longitudinal speed and lateral speed, respectively. This refers to the yaw rate; This represents the current lateral position deviation of the centroid. The angle between the vehicle's heading angle and the tangent of the reference path; These represent the relative longitudinal distances of the three nearest buckets; all state inputs are standardized before being fed into the policy network. The action vector Represented as: ; in, This is the steering angle ratio; This refers to the throttle opening. The braking pressure is used; the motion vector is mapped to actuator commands via the vehicle's underlying control interface and filtered to suppress high-frequency jitter.

4. The method according to claim 1, characterized in that, In step S3, the single-step reward The calculation formula is: ; in, For each sub-reward item, This refers to the adaptive weight coefficients of the corresponding sub-reward items that dynamically evolve with the number of training steps t.

5. The method according to claim 4, characterized in that, The sub-reward items include: Progress Rewards This is used to encourage vehicles to move forward along the planned path; Speed ​​Excitation Used to drive vehicles to maintain high speeds; Lateral deviation penalty This is used to constrain the degree to which a vehicle deviates from the reference path; Control smoothing penalty This is used to suppress high-frequency abrupt changes in steering and throttle response; Time penalty This is used to compress task completion time; Collision Penalty It is used to constrain the collision behavior of vehicles with obstacles; Task completion reward This is used to incentivize vehicles to complete the entire slalom task without collision.

6. The method according to claim 5, characterized in that, In step S3, the performance metrics include at least the average collision rate and the completion time variance; the preset condition is that the average collision rate is lower than a safety threshold and the completion time variance converges to a preset range; when the preset condition is met, at least one of the following weight adjustment operations is triggered: Reduce the weighting factor of the lateral deviation penalty to allow for more aggressive driving routes; Increase the weighting factor of time penalties to force a reduction in task duration; Increase the weighting coefficient of speed incentives to further increase vehicle speed.

7. The method according to claim 6, characterized in that, The automatic adjustment of the weight coefficients is also linked to the difficulty adjustment of the obstacle layout in the simulation interactive environment: when the preset conditions are met, the weight adjustment operation and the obstacle spacing reduction operation are executed simultaneously to achieve a smooth transition from safety priority to speed priority in the training phase; the obstacle spacing reduction operation is: reducing the lateral spacing of the cones. By step size The contraction proceeds step by step.

8. The method according to claim 1, characterized in that, In step S4, the reinforcement learning algorithm is a proximal policy optimization algorithm, and its truncated optimization objective function is: ; in, This is the estimated value of the dominance function at step t; Importance sampling ratio; The advantage function is calculated based on generalized advantage estimation. The probability ratio truncation threshold.

9. The method according to claim 1, characterized in that, In step S4, the automatic hyperparameter optimization module is implemented based on the TPE algorithm, which optimizes the key hyperparameter set of the reinforcement learning algorithm. Bayesian sampling is performed, where For learning rate, As a discount factor, For GAE smoothing parameters, The PPO pruning threshold. It is the entropy coefficient; The automatic hyperparameter optimization and policy training are executed in parallel. Through multi-process parallel environment interaction, multiple training tasks with different hyperparameter configurations are executed simultaneously. Based on the surrogate model prediction results of the convergence performance of each group, inferior configurations are dynamically eliminated and the sampling direction is guided, thereby realizing online optimization of hyperparameters during training.

10. The method according to claim 1, characterized in that, In step S5, the automatic archiving process includes: Model fixation: Save the current policy network weights With value network weight Generate a serialization strategy file; Parameter recording: Records the current optimal set of hyperparameters. Reward weight distribution Serialize the parameters and environment configurations for each stage of the course learning process into a configuration file; Trajectory Export: Sample and record complete time-series data of a single optimal run at a frequency of 100Hz to generate a structured trajectory file, with fields including at least... ,in For timestamps, For vehicle global coordinates, For the vehicle's heading angle, For vehicle speed, For steering angle, For throttle opening, Braking pressure, This is a collision flag.

11. The method according to claim 1, characterized in that, In step S6, the optimal control action output by the convergence strategy can be characterized as: ; in, The optimal action at time step t. As a discount factor, In the state Take action below Instant rewards received This is the optimized convergence strategy.

12. A fastest slalom system based on reinforcement learning and adaptive reward evolution, characterized in that, include: The simulation environment module is used to build a simulation interactive environment for simulating vehicle slalom tasks; The strategy network module is used to output control actions based on the current state information; The adaptive reward evolution module is used to calculate the single-step composite reward, automatically adjust the weight coefficient of each sub-reward based on the agent's historical performance, and dynamically adjust the environmental difficulty based on performance indicators. The reinforcement learning training module is used to update the policy network based on the collected interactive data, and has a built-in hyperparameter automatic optimization unit, which is executed in parallel with the training process. The automatic evaluation and archiving module is used to periodically evaluate the performance of the strategy and automatically save the strategy weights and complete trajectory data when the performance is refreshed. The inference deployment module is used to deploy the solidified strategy to the target controller; The system performs the method according to any one of claims 1 to 11.