Highway ramp control method based on reinforcement learning and event-triggered prediction

By combining the methods of reinforcement learning and event-triggered prediction, we build a model predictive controller and a reinforcement learning agent, which solves the problems of slow response speed and low management and control efficiency of traditional manual control of ramps, and improves the effect of ramp management and control and reduces management costs. .

CN118430252BInactive Publication Date: 2024-10-11ZHEJIANG SCI RES INST OF TRANSPORT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410540729.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional manual control of highway ramps has problems such as inaccuracy and slow response speed, making it difficult to effectively respond to traffic peaks and emergencies, resulting in low traffic control efficiency. Existing methods based on reinforcement learning and model predictive control fail to fully combine data-driven and model-driven methods, and fail to effectively improve the effect of traffic flow control.

Method used

Adopting a highway ramp management and control method based on reinforcement learning and event-triggered prediction, by building a model predictive controller and reinforcement learning agent, combined with the event-triggered model predictive control framework, the agent is trained and the optimization goals and constraints are designed to optimize the ramp management and control strategy. , improve the triggering frequency and efficiency of the controller.

Benefits of technology

It improves the control effect and timeliness of highway ramps, reduces manual control and management costs, ensures the optimization effect of the controller on multi-input and multi-output problems, and reduces the computational burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118430252B_ABST
    Figure CN118430252B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of highway traffic control and analysis, and specifically relates to a highway ramp control method based on reinforcement learning and event-triggered prediction. In the method, a model prediction controller is first constructed; then a reinforcement learning agent is constructed; secondly, an event-triggered model prediction control framework combined with reinforcement learning is constructed; and a simulation environment is constructed to train the reinforcement learning agent; finally, the event-triggered model prediction control framework combined with reinforcement learning is deployed. The present invention embeds the reinforcement learning agent into the event-triggered model prediction control by combining model-driven and data-driven methods, and constructs a simulation environment to continuously train the agent, and designs a model prediction controller that can handle the constraints and optimization objectives of ramp control problems, thereby not only improving the highway ramp control effect, but also improving the timeliness of highway ramp control, and in addition to reducing the management cost caused by manual control to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of highway traffic control and analysis, and specifically relates to a highway ramp control method based on reinforcement learning and event trigger prediction. Background Art

[0002] With the development of artificial intelligence technology, its application in the field of automatic control has attracted more and more attention. Reinforcement learning is an important artificial intelligence technology that obtains the best behavior strategy through interactive learning with the environment.

[0003] On highways, ramps are important channels for vehicles to enter or leave highways. By controlling the opening and closing of ramps, traffic flow on highways can be optimized, congestion and delays can be reduced. Orderly ramp flow management can make vehicles enter and leave highways more smoothly, improving overall traffic efficiency. The traditional method of manually controlling ramp entry and exit is easily affected by human subjective judgment, which may lead to inaccurate or untimely control decisions. In addition, manual control requires personnel to constantly monitor traffic conditions and make decisions. In comparison, the response speed is slow and may not be able to respond to emergencies or traffic peak hours in a timely manner, resulting in low efficiency of highway ramp traffic control. How to use artificial intelligence technology to improve the efficiency of highway ramp traffic control and further improve highway traffic safety and efficiency is the focus of current highway management.

[0004] There are also some studies on highway traffic flow control in the prior art, such as (1) Application number CN202211472405.6, entitled A highway traffic control method based on reinforcement learning, a Chinese invention patent, which mainly uses a reinforcement learning data-driven method to directly optimize traffic control strategies. (2) Application number CN202011549608.1, entitled A hybrid traffic flow collaborative optimization control method based on model predictive control, which mainly uses a model predictive control model method to directly optimize traffic control strategies. Although the above-mentioned prior art can achieve certain results, they have not fully utilized the potential of combining data-driven and model-driven to improve traffic flow control effects. Summary of the invention

[0005] To this end, one purpose of an embodiment of the present application is to provide a highway ramp control method based on reinforcement learning and event-triggered prediction for highway ramp control. By embedding a reinforcement learning agent into event-triggered model predictive control, building a simulation environment to continuously train the agent, and designing a model predictive controller that can handle the constraints and optimization objectives of the ramp control problem, the advantages of the agent and model predictive control are fully utilized to effectively balance the control effect and controller triggering frequency, thereby effectively solving the problems mentioned in the background technology.

[0006] The purpose of the present invention can be achieved through the following technical solutions: A highway ramp control method based on reinforcement learning and event-triggered prediction, comprising the following steps: Step 1: Construct a model predictive controller.

[0007] Step 2: Build a reinforcement learning agent.

[0008] Step 3: Build an event-triggered model predictive control framework combined with reinforcement learning.

[0009] Step 4: Build a simulation environment and train the reinforcement learning agent.

[0010] Step 5: Deploy the event-triggered model predictive control framework combined with reinforcement learning.

[0011] As an implementation of the present invention, the construction of the model predictive controller refers to the following process: S1.1 Constructing the optimization target of highway ramp control: min∑L T +ξ W ∑L W , where L T Indicates the total travel time, which mainly includes the vehicle's travel time and waiting time, L W represents the vehicle queue penalty factor, L W Represents the coefficient of the vehicle queuing penalty objective function.

[0012] S1.2 Construct the state transfer equation of highway ramp control: f(u k ,p k ,q k ,v k ,w k ,θ k )=0, where f represents the state transfer equation, k represents the control stage, and u k represents the traffic flow control quantity of the highway ramp, p k represents the traffic flow density, q k represents the traffic flow, v k represents the traffic flow speed, w k represents the ramp queue length, θ k Represents model parameters.

[0013] S1.3 Construct highway ramp control constraints: g(u k ,p k ,q k ,v k ,w k ,θ k )≤0, where g represents the constraint equation.

[0014] S1.4 Construct model predictive control optimization model:

[0015]

[0016] st

[0017] f(u k ,p k ,q k ,v k ,w k ,θ k )=0

[0018] g(u k ,p k ,q k ,v k ,w k ,θ k )≤0, where N represents the prediction step length. By solving the above optimization model, the optimal control sequence {u0 * ,u1 * ,...,u N-1 *}, and then the first control quantity u0 * Implement it into the system to achieve the control effect.

[0019] As an implementation mode of the present invention, the construction of a reinforcement learning agent is implemented as follows: S2.1 defines an action:

[0020] Where 0 means the model predictive controller is not triggered, and 1 means the model predictive controller is triggered.

[0021] S2.2 Define Action Define Status:

[0022] in represents the traffic flow density at the state observation location, Represents the ramp queue length at the observation location.

[0023] S2.3 Define Rewards:

[0024] 1 / L T , 1 / ξ W L W Corresponding to the optimization goal of highway ramp control, The controller triggering cost is considered accordingly.

[0025] S2.4 defines the strategy update function:

[0026] in Indicates status Take action The probability of represents the learning rate and γ represents the discount factor.

[0027] As an implementation mode of the present invention, the construction of an event-triggered model predictive control framework combined with reinforcement learning refers to the following process: the state of the controlled object is input into the reinforcement learning agent.

[0028] The output of the reinforcement learning agent is the trigger instruction.

[0029] According to the trigger command output by the reinforcement learning agent, the event-triggered model predictive controller outputs the control action.

[0030] As an implementation manner of the present invention, the controlled object is a highway ramp area.

[0031] As an implementation mode of the present invention, the reinforcement learning agent includes two parts: strategy and reinforcement learning algorithm, wherein the specific implementation process of the reinforcement learning agent is as follows: the state of the input controlled object is continuously updated with the optimization strategy using the reinforcement learning algorithm, and a trigger instruction is output based on the updated strategy.

[0032] As an implementation manner of the present invention, the model predictive controller is triggered when the trigger instruction is 1, otherwise the model predictive controller is not triggered.

[0033] As an implementation mode of the present invention, the reinforcement learning agent is constructed based on step two, and the event-triggered model predictive controller is constructed based on step one.

[0034] As an implementation mode of the present invention, the construction of the simulation environment and the training of the reinforcement learning agent refer to the following process: S4.1 Construction of the simulation environment: Construction of the simulation environment through a macro or micro traffic flow simulation model.

[0035] S4.2 Training the reinforcement learning agent is specifically implemented as follows: S4.2.1 Input E, K, and reinforcement learning agent into the reinforcement learning agent training algorithm, where E represents the number of training times and K represents the simulation duration of each training.

[0036] S4.2.2 Output Q value.

[0037] As an implementation mode of the present invention, the deployment of the event-triggered model predictive control framework combined with reinforcement learning is as follows: S5.1 deploying a model predictive controller.

[0038] S5.2 Deploy the trained reinforcement learning agent.

[0039] Combining all the above technical solutions, the positive effects of the present invention are as follows: 1. The present invention embeds the reinforcement learning agent into the event-triggered model predictive control by combining the model-driven and data-driven methods, continuously trains the agent by building a simulation environment, and designs a model predictive controller that can handle the constraints and optimization objectives of the ramp control problem. This not only improves the control effect of the highway ramp, but also improves the timeliness of the highway ramp control, and also reduces the management cost caused by manual control to a certain extent.

[0040] 2. The reinforcement learning agent involved in the present invention uses a reinforcement learning algorithm to determine whether the controller is triggered, thereby reducing the controller triggering frequency while ensuring the control effect, thereby reducing the computational burden.

[0041] 3. The present invention uses model predictive control in constructing an event-triggered model predictive control framework for reinforcement learning, thereby ensuring that the control can handle multi-input and multi-output problems and has an optimization effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0043] Figure 1 The present invention is a flowchart of the steps for implementing the method.

[0044] Figure 2 This is a diagram of the event-triggered model predictive control framework for reinforcement learning in the present invention.

[0045] Figure 3 It is a schematic diagram of a single ramp section of a highway in the present invention.

[0046] Figure 4 It is a schematic diagram of a highway single ramp section with multiple observation points in the present invention.

[0047] Figure 5 It is a schematic diagram of a double-ramp section of a highway in the present invention. DETAILED DESCRIPTION

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

[0049] See also Figure 1As shown, the present invention proposes a highway ramp control method combining reinforcement learning and event-triggered model predictive control, comprising the following steps:

[0050] Step 1: Construct a model predictive controller. The specific implementation steps are as follows: S1.1 Construct the optimization target of highway ramp control: min∑L T +ξ W ∑L W

[0051] Among them, L T Represents the total travel time, which mainly includes the vehicle's travel time and waiting time, L W represents the vehicle queue penalty factor, L W Represents the coefficient of the vehicle queuing penalty objective function.

[0052] S1.2 Construct the state transfer equation of highway ramp control: f(u k ,p k ,q k ,v k ,w k ,θ k )=0, where f represents the state transfer equation, k represents the control stage, and u k represents the traffic flow control quantity of the highway ramp, p k represents the traffic flow density, q k represents the traffic flow, v k represents the traffic flow speed, w k represents the ramp queue length, θ k Represents model parameters.

[0053] S1.3 Construct highway ramp control constraints: g(u k ,p k ,q k ,v k ,w k ,θ k )≤0, where g represents the constraint equation.

[0054] S1.4 Construct model predictive control optimization model:

[0055]

[0056] st

[0057] f(u k ,p k ,q k ,v k ,w k ,θ k )=0

[0058] g(uk ,p k ,q k ,v k ,w k ,θ k )≤0

[0059] Where N represents the prediction step length. By solving the above optimization model, the optimal control sequence {u0 * ,u1 * ,...,u N-1 *}, and then the first control quantity u0 * Implement it into the system to achieve the control effect.

[0060] Step 2: Build a reinforcement learning agent. The specific implementation steps are as follows: S2.1 Define actions: Where 0 means the model predictive controller is not triggered, and 1 means the model predictive controller is triggered.

[0061] It is important to understand that the task of the reinforcement learning agent is to give instructions indicating whether the model predictive control controller should fire.

[0062] S2.2 Define Action Define Status: in represents the traffic flow density at the state observation location, Represents the ramp queue length at the observation location.

[0063] In particular, the observed traffic flow density and ramp queue length can be adjusted according to different application scenarios.

[0064] Applied to the above scheme, the present invention is illustrated by the following embodiments.

[0065] Implementation 1

[0066] by Figure 3 The present invention is further described by taking a single ramp section of the highway as an example. In this embodiment, the section includes one ramp.

[0067] In this embodiment, the state is defined is the density p of the upstream segment and the queue length w of the ramp.

[0068] Example 2

[0069] by Figure 4 The present invention is further described by taking a highway single ramp section with multiple observation points as an example. The section in this embodiment includes a ramp and two observation points, an upstream section and a downstream section.

[0070] In this embodiment, the state is defined They are the density p1 of the upstream section, the density p2 of the downstream section, and the queue length w of the ramp.

[0071] Example 3

[0072] by Figure 5 The present invention is further described by taking the highway double ramp section as an example. The section in this embodiment includes two ramps.

[0073] In this embodiment, the state is defined They are the density p1 and p2 of the upstream section, and the queue length w1 and w2 of the ramp respectively.

[0074] S2.3 Define Rewards: 1 / L T , 1 / ξ W L W Corresponding to the optimization goal of highway ramp control, The controller triggering cost is considered accordingly.

[0075] Furthermore, the reward function in the reinforcement learning agent needs to fully consider the optimization objectives of ramp control and reduce controller triggering.

[0076] S2.4 defines the strategy update function: in Indicates status Take action The probability of represents the learning rate and γ represents the discount factor.

[0077] Step 3: Construct an event-triggered model predictive control framework combined with reinforcement learning. The specific implementation is as follows: Combine the model predictive controller and the reinforcement learning agent to construct Figure 2 The control architecture shown in the control architecture, in which the controlled object represents the highway ramp area, the specific operations of the control architecture are as follows: the state of the controlled object is input into the reinforcement learning agent, where the reinforcement learning agent is constructed based on step two.

[0078] The output of the reinforcement learning agent is a trigger instruction, where the model predictive controller is triggered when the trigger instruction is 1, and vice versa.

[0079] According to the trigger command output by the reinforcement learning agent, the event-triggered model predictive controller outputs the control action, wherein the event-triggered model predictive controller is constructed based on step one.

[0080] The present invention uses model predictive control in constructing an event-triggered model predictive control framework for reinforcement learning, thereby ensuring that the control can handle multi-input and multi-output problems and has an optimization effect.

[0081] In the preferred implementation of the above scheme, the reinforcement learning agent includes two parts: strategy and reinforcement learning algorithm, wherein the specific implementation process of the reinforcement learning agent is as follows: the state of the input controlled object is continuously updated with the optimization strategy using the reinforcement learning algorithm, and a trigger instruction is output based on the updated strategy.

[0082] The reinforcement learning agent involved in the present invention uses a reinforcement learning algorithm to determine whether the controller is triggered, thereby reducing the controller triggering frequency while ensuring the control effect, thereby reducing the computational burden.

[0083] Step 4: Build a simulation environment and train the reinforcement learning agent. The specific implementation is as follows:

[0084] S4.1 Construct simulation environment: Construct simulation environment through macro or micro traffic flow simulation model.

[0085] S4.2 trains the reinforcement learning agent. The algorithm used in this step is the reinforcement learning agent training algorithm. The actual operation is S4.2.1 input E, K, and reinforcement learning agent into the reinforcement learning agent training algorithm, where E represents the number of training times and K represents the simulation duration of each training.

[0086] S4.2.2 Output Q value.

[0087] Step 5: Deploy the event-triggered model predictive control framework combined with reinforcement learning. The specific implementation is as follows: S5.1 Deploy the model predictive controller.

[0088] S5.2 Deploy the trained reinforcement learning agent.

[0089] The present invention embeds reinforcement learning agents into event-triggered model predictive control by combining model-driven and data-driven methods, continuously trains the agents by building a simulation environment, and designs a model predictive controller that can handle the constraints and optimization objectives of ramp control problems. This not only improves the control effect of highway ramps, but also improves the timeliness of highway ramp control, and also reduces the management cost caused by manual control to a certain extent.

[0090] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the present invention, they should all fall within the protection scope of the present invention.

Claims

1. A highway ramp control method based on reinforcement learning and event-triggered prediction, characterized in that: The following steps are involved: Step 1: Build a model predictive controller; Step 2: Build a reinforcement learning agent; Step 3: Build an event-triggered model predictive control framework combined with reinforcement learning; Step 4: Build a simulation environment and train the reinforcement learning agent; Step 5: Deploy the event-triggered model predictive control framework combined with reinforcement learning; The construction of the model predictive controller refers to the following process: S1.1 Constructing the optimization objectives of highway ramp control: ; in, Represents the total travel time, which mainly includes the vehicle's travel time and waiting time. represents the vehicle queue penalty factor, represents the coefficient of the vehicle queuing penalty objective function; S1.2 Construct the state transfer equation of highway ramp control: ; in, represents the state transfer equation, represents the control phase, represents the traffic flow control quantity of the highway ramp, represents the traffic flow density, represents the traffic flow, represents the traffic flow speed, represents the ramp queue length, represents the model parameters; S1.3 Construct highway ramp control constraints: ; in, represents the constraint equation; S1.4 Construct model predictive control optimization model: ; st ; ; in, Represents the prediction step length. By solving the above optimization model, the optimal control sequence can be obtained. , and then the first control quantity Implement into the system to achieve control effect; The construction of the reinforcement learning agent is implemented as follows: S2.1 Define actions: , where 0 means the model predictive controller is not triggered, and 1 means the model predictive controller is triggered; S2.2 Define Action Define Status: ,in represents the traffic flow density at the state observation location, represents the ramp queue length at the observation location; S2.3 Define Rewards: ,in , Corresponding to the optimization goal of highway ramp control, The controller triggering cost should be considered accordingly; S2.4 defines the strategy update function: ,in Indicates status Take action The probability of represents the learning rate, Represents the discount factor.

2. The highway ramp control method based on reinforcement learning and event-triggered prediction according to claim 1, characterized in that: The construction of the event-triggered model predictive control framework combined with reinforcement learning is described in the following process: Input the state of the controlled object into the reinforcement learning agent; The output of the reinforcement learning agent is the trigger instruction; According to the trigger command output by the reinforcement learning agent, the event-triggered model predictive controller outputs the control action.

3. The highway ramp control method based on reinforcement learning and event-triggered prediction as claimed in claim 2, characterized in that: The controlled object is a highway ramp area.

4. The highway ramp control method based on reinforcement learning and event-triggered prediction as claimed in claim 2, characterized in that: The reinforcement learning agent includes two parts: strategy and reinforcement learning algorithm. The specific implementation process of the reinforcement learning agent is as follows: The state of the controlled object is input to continuously update the optimization strategy using the reinforcement learning algorithm, and the trigger instruction is output based on the updated strategy.

5. The highway ramp control method based on reinforcement learning and event-triggered prediction as claimed in claim 2, characterized in that: When the trigger instruction is 1, the model predictive controller is triggered, otherwise the model predictive controller is not triggered.

6. The highway ramp control method based on reinforcement learning and event-triggered prediction according to claim 2, characterized in that: The reinforcement learning agent is constructed based on step two, and the event-triggered model predictive controller is constructed based on step one.

7. The highway ramp control method based on reinforcement learning and event-triggered prediction according to claim 1, characterized in that: The construction of the simulation environment and training of the reinforcement learning agent refer to the following process: S4.1 Constructing simulation environment: Constructing simulation environment through macro or micro traffic flow simulation model; S4.2 trains the reinforcement learning agent, which is implemented as follows: S4.2.1 Input E, K, and reinforcement learning agent into the reinforcement learning agent training algorithm, where E represents the number of training times and K represents the simulation duration of each training; S4.2.2 Output Q value.

8. The highway ramp control method based on reinforcement learning and event-triggered prediction as claimed in claim 2, characterized in that: The deployment of the event-triggered model predictive control framework combined with reinforcement learning is as follows: S5.1 deploying a model predictive controller; S5.2 Deploy the trained reinforcement learning agent.