Track saturation passenger flow control method based on multi-agent reinforcement learning

By adopting a multi-agent reinforcement learning framework in the rail transit system and combining global and local information, the passenger flow control strategy is optimized to solve the problem of passenger flow management during peak hours, achieve collaborative control of efficiency, fairness and safety, and improve transportation efficiency. and passenger experience.

CN118607367APending Publication Date: 2024-09-06BEIHANG UNIV
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410712771.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively manage passenger flow during peak hours in modern urban rail transit systems, traditional control methods are difficult to adapt to dynamic changes, and multi-agent reinforcement learning research mainly ignores the fairness of inbound passenger flow and site safety.

Method used

A track saturated passenger flow control method based on multi-agent reinforcement learning is adopted. By constructing a distributed multi-agent reinforcement learning framework that considers global and local information, and combining the agent network and Mixing network, the passenger flow control strategy is optimized and multi-line collaborative control is achieved.

Benefits of technology

It has realized intelligent passenger flow control, improved transportation efficiency and service quality, improved passenger travel experience and satisfaction, and ensured fairness and safety of passenger flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607367A
    Figure CN118607367A
Patent Text Reader

Abstract

The invention discloses a rail saturation passenger flow control method based on multi-agent reinforcement learning, and the method comprises the following steps: constructing a rail traffic passenger flow control environment according to the dynamic characteristic description of a station hall, a platform and a train; constructing a distributed multi-agent reinforcement learning passenger flow control framework considering global information and local information; obtaining station passenger flow data, inputting the station passenger flow data into the rail transit passenger flow control environment, interacting with the rail transit passenger flow control environment through multi-agent reinforcement learning, collecting data and training, and finally obtaining a multi-line collaborative passenger flow control model; and based on the multi-line collaborative passenger flow control model, making an optimal control decision according to the current passenger flow condition and state so as to realize saturated passenger flow control of the rail transit system. According to the method, the safety and fairness of the rail transit system are improved while the operation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent traffic information processing, and more specifically to a track saturated passenger flow control method based on multi-agent reinforcement learning. Background Art

[0002] At present, passenger flow management is an important and complex issue in modern urban rail transit systems. Especially during peak hours, the saturated operation of the rail system may lead to a decline in service quality and customer satisfaction. With the increase in the number of passengers and the changes in operational needs, traditional control methods are often difficult to adapt to the dynamically changing environment and optimize operational strategies in real time.

[0003] Multi-Agent Reinforcement Learning (MARL) provides a new solution to this problem. In the MARL framework, each agent represents a station and autonomously adjusts its operations by learning the optimal strategy to achieve the optimal operation of the entire system. The advantage of this method is that it can handle large-scale state spaces and action spaces, as well as high environmental uncertainty. In addition, most current studies mainly focus on efficiency as the control goal, ignoring the consideration of passenger flow fairness and station safety.

[0004] Therefore, how to design a saturated passenger flow control method based on multi-agent reinforcement learning while taking into account efficiency, fairness and safety is an urgent problem that technical personnel in this field need to solve. Summary of the invention

[0005] In view of this, the present invention provides a track saturation passenger flow control method based on multi-agent reinforcement learning, which takes into account efficiency, fairness and safety. In addition, the hybrid network is improved by considering global state and local information, so that multiple stations can achieve better coordinated control.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] The embodiment of the present invention provides a track saturation passenger flow control method based on multi-agent reinforcement learning, comprising the following steps:

[0008] Step 1: Based on the description of the dynamic characteristics of the station hall, platform and train, construct the rail transit passenger flow control environment;

[0009] Step 2: Construct a distributed multi-agent reinforcement learning passenger flow control framework that considers global information and local information; the global information includes: stranded passengers in all station halls and platforms; the local information includes: observations of the station hall and platform in each station, including stranded passengers in the station hall, stranded passengers on the platform, and the capacity of nearby trains and the time period;

[0010] Step 3: Obtain station passenger flow data and input it into the rail transit passenger flow control environment, interact with the rail transit passenger flow control environment through multi-agent reinforcement learning, collect data and train, and finally obtain a multi-line collaborative passenger flow control model;

[0011] Step 4: Based on the multi-line collaborative passenger flow control model, make the best control decision according to the current passenger flow situation and status to achieve saturated passenger flow control of the rail transit system.

[0012] In one embodiment, in step 1, describing the dynamic characteristics of the station hall includes:

[0013] The passenger flow in the station hall satisfies the following relationship:

[0014]

[0015] L={1,2,…,N L}N L Indicates the total number of lines;

[0016] H={1,2,…,N H} N H Indicates the total number of station halls;

[0017] D={up,down} up,down means up and down directions;

[0018] T={1,2,…,N T} N T Indicates the total number of time periods;

[0019] in, represents the passenger flow from the direction d of the h station hall on line l to the station hall during time period t, It represents the number of passengers from the direction d of the h station hall on line l who are allowed to enter the platform from the station hall during time period t; represents the number of passengers on line l in direction d of station hall h during time period t; L, H, D, T represent the set of line, station hall, direction and time period index respectively; the passenger flow allowed to enter the platform E l,s,d,t It is expressed as:

[0020]

[0021] S={1,2,…,N s} Ns Indicates the total number of stations;

[0022] N s =N H

[0023] in, is the inbound flow control rate in the direction of h station hall on line l during period t; s represents the index of the platform.

[0024] In one embodiment, in step 1, describing the dynamic characteristics of the platform includes:

[0025] The platform flow is affected by the flow of passengers stranded on the platform, entering the platform, boarding the train, and transferring passengers at the previous moment. The platform flow is expressed as:

[0026]

[0027] Among them, B l,s,d,t It represents the number of passengers boarding the train from the direction d of the station hall s on line l during time period t; P represents the number of passengers who transfer from line l' to line l direction d in the station hall s during period t; l,s,d,t It represents the platform flow in the direction of station hall s on line l during period t.

[0028] In one embodiment, in step 1, describing the dynamic characteristics of the train includes:

[0029] The capacity of each train is related to the capacity of the previous platform train, the number of passengers getting on the train, and the number of passengers getting off the train; it can be expressed as:

[0030]

[0031] in, and They represent the remaining capacity and the number of passengers getting off the train k passing through platform s in direction d on line l during time period t; represents the number of passengers boarding the train k passing through the platform s in the direction d of the line l during the period t; The maximum passenger capacity of the train.

[0032] In one embodiment, in step 2, the multi-agent reinforcement learning passenger flow control framework includes: an agent network and a Mixing network;

[0033] The agent network is used for individual learning and decision-making of each agent; the Mixing network is used to fuse global information and local information to coordinate actions among multiple agents;

[0034] The Mixing network is used to fuse global information and local information. The fusion process is as follows: using local information and global information to generate weights and biases of the first layer network, respectively, wherein the local information is obtained by self-attention calculation of the observed amount;

[0035] Calculate the changes in Q values ​​under the influence of global information and local information, merge them with the original Q values ​​of the agent, input them into the second layer of the neural network, and finally obtain the Q values ​​of all agents. tot , which is expressed as follows:

[0036]

[0037] Among them, Q i is the Q value of agent i, w 11 and b 11 are the first layer global information s t The weights and biases, w 12 and b 12 are the first layer local information o t The weight and bias of the second layer network; w2 and b2 are the weight and bias of the second layer network respectively; w 12 and b 12 Generated by the self-attention network, the input is the observation of the agent; w 12 Q i +b 12 and w 11 Q i +b 11 They respectively represent the changes of Q value under the influence of global information and local information.

[0038] In one embodiment, the objective function of the multi-agent reinforcement learning passenger flow control framework is:

[0039] argmax ρ Z=ω1f1+ω2f2+ω3f3

[0040] Where ρ is the passenger flow control ratio vector of multiple platforms in the rail network; f1, f2 and f3 represent the transportation efficiency, safety and fairness of the rail transit network respectively; ω1, ω2 and ω3 represent the corresponding weights respectively;

[0041]

[0042] Among them, Per l,s,t and Respectively represent platform s and station hall on line l The transport efficiency in period t; R l,s,t and Respectively represent platform s and station hall on line l The risk value in period t; Ft is the fairness of the rail transit network during period t.

[0043] In one embodiment, in step 2, the elements of the multi-agent reinforcement learning framework are:

[0044] (1) Observations: the number of stranded passengers in the station hall, the number of stranded passengers on the platform, the number of nearby trains, and the time period;

[0045] (2) Status: number of stranded passengers in all station halls;

[0046] (3) Movement: the proportion of passengers entering the station hall and entering the platform;

[0047] (4) Rewards: efficiency index r1(t), security index r2(t) and fairness index r3(t);

[0048]

[0049] in, and They represent the station hall after the control strategy is implemented on line l. and passenger flow at platform s;

[0050] The indicators for evaluating the risk of station halls and platforms are set as follows:

[0051]

[0052] in, and R s,t Respectively represent the station hall and the risk value of station s in period t; and M s,t Respectively represent the arrival at the station hall within time period t and the number of passengers at platform s; and Respectively represent the station hall and the risk level threshold of station s; |R| is the number of risk levels.

[0053] In order to evaluate the contribution of the proposed rail passenger flow control strategy to safety, two aspects are considered: 1) the risk level of the station hall and platform at the end of the control period; 2) the change in risk level caused by the implementation of the control strategy; it is expressed as:

[0054]

[0055] Among them, the parameter l b and l a They represent before and after the control strategy is implemented on line l respectively;

[0056] The design fairness index can reflect both the proportion of passengers entering the station and the number of passengers entering the station, which can be expressed as:

[0057]

[0058] In the formula, Indicates the station hall of line l Fairness measure at time period t; and Respectively represent the station hall of line l before and after the implementation of the control strategy The number of stranded passengers; for the uniformity of data scale, the proportion and the number of passengers were normalized; in order to prevent the agent from getting too low when the proportion of entering the station is very small A penalty factor is introduced

[0059] The reward value is finally expressed as:

[0060] r(t)=eta1r1(t)+eta2r2(t)+eta3r3(t)

[0061] Among them, η1, η2 and η3 are balancing factors that scale the three reward values ​​to the same dimension.

[0062] In one embodiment, in step three, the station passenger flow data is obtained by aggregating the passenger flow in the AFC card swiping data at intervals of a preset time length.

[0063] In one embodiment, the reinforcement learning training in step three uses a standard reinforcement learning calculation method based on a value function.

[0064] It can be seen from the above technical solutions that, compared with the prior art, the present invention discloses a track saturation passenger flow control method based on multi-agent reinforcement learning, which has the following advantages:

[0065] 1. Intelligent passenger flow control: By adopting multi-agent reinforcement learning methods, the rail transit system has the ability to intelligently control passenger flow. It can make the best control decisions in real time according to the current passenger flow situation and status, so as to effectively respond to changes in passenger flow in different time periods and different areas.

[0066] 2. Collaborative optimization: A distributed multi-agent reinforcement learning framework is adopted, which takes into account the influence of global and local states, and integrates global and local information through a mixing network. This enables multiple agents to work together to jointly optimize passenger flow control strategies and achieve collaborative passenger flow control on multiple routes.

[0067] 3. Improve operational efficiency: By optimizing passenger flow distribution and control strategies, congestion and delays can be effectively reduced, and the operational efficiency and service quality of the rail transit system can be improved. Passengers can enter and exit the station more smoothly, and trains can run more punctually, thereby improving overall transportation efficiency.

[0068] 4. Improve passengers' travel experience: Based on the consideration of fairness of passenger flow entering the station and station safety, the passenger flow distribution in the station hall and platform is optimized, so that passengers can travel more comfortably, reduce travel inconvenience and stress, and improve travel experience and satisfaction.

[0069] In summary, this rail saturation passenger flow control method based on multi-agent reinforcement learning has significant technical effects such as improving passenger flow control transportation efficiency, improving fairness and safety, and improving service quality and passenger travel experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0071] Figure 1 The present invention provides a track saturated passenger flow control method process based on multi-agent reinforcement learning.

[0072] Figure 2 This is a framework diagram of the multi-agent reinforcement learning algorithm provided by the present invention.

[0073] Figure 3 A schematic diagram of passenger flow in one day in the test set provided by the present invention. DETAILED DESCRIPTION

[0074] 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.

[0075] Reference Figure 1 As shown, an embodiment of the present invention discloses a track saturation passenger flow control method based on multi-agent reinforcement learning, comprising the following steps:

[0076] Step 1: Construct a rail transit passenger flow control environment based on the description of the dynamic characteristics of the station hall, platform and train. First, describe the dynamic characteristics of the station hall, platform and train, such as passenger flow, train arrival time, up and down directions, lines and other factors.

[0077] Then, these descriptions are used to construct a rail transit passenger flow control environment based on the open source simulation software SUMO, that is, factors such as passenger flow characteristics are incorporated into a simulation environment for subsequent control method design and testing.

[0078] Step 2: Construct a distributed multi-agent reinforcement learning passenger flow control framework that considers global information and local information; the global information includes: stranded passengers in all station halls and platforms; the local information includes: observations of the station hall and platform in each station, including stranded passengers in the station hall, stranded passengers on the platform, and the capacity of nearby trains and the time period;

[0079] This step is used for passenger flow control. This framework takes into account the global state and local state. The agent not only considers its own state, but also the state of other agents in the entire system to make better decisions.

[0080] Step three, obtain station passenger flow data and input it into the rail transit passenger flow control environment, interact with the rail transit passenger flow control environment through multi-agent reinforcement learning, collect data and train, and finally obtain a multi-line collaborative passenger flow control model. In this step, the station passenger flow data is obtained and input into the rail transit passenger flow control environment, and then multi-agent reinforcement learning collects data by interacting with the environment, and uses the multi-agent reinforcement learning algorithm to train these data. The ultimate goal is to obtain a multi-line collaborative passenger flow control model that can make appropriate control decisions based on the current passenger flow situation and system status to achieve saturated passenger flow control of the rail transit system.

[0081] Step 4: Based on the multi-line collaborative passenger flow control model, make the best control decision according to the current passenger flow situation and status to achieve saturated passenger flow control of the rail transit system.

[0082] In this embodiment, the dynamic characteristics of the three parts including the station hall, platform and vehicle are described to characterize the rail transit transportation behavior, and the rail transit line environment is constructed based on the open source simulation software SUMO; a distributed multi-agent reinforcement learning passenger flow control framework considering global and local states is constructed; for example, the data obtained from the AFC card is divided into passenger flow in multiple time periods at intervals of 2.5 minutes, and input into the constructed rail transit line environment; through reinforcement learning and interaction with the environment, data is collected and trained, and finally effective control of rail transit passenger flow is achieved, thereby improving the safety and fairness of the rail transit system.

[0083] The following is a further detailed description of each of the above steps:

[0084] In step 1, the dynamic characteristics of the station hall, platform and vehicle are as follows:

[0085] (1) Characteristics of the station hall

[0086] The actual number of passengers entering the platform is affected not only by the flow of arriving passengers, but also by the platform capacity limit and the control of the proportion of passengers entering the station. Specifically, the passenger flow in the station hall satisfies the following relationship:

[0087]

[0088] L={1,2,…,N L} N L Indicates the total number of lines;

[0089] H={1,2,…,N H} N H Indicates the total number of station halls;

[0090] D={up,down} up,down means up and down directions;

[0091] T={1,2,…,N T} N T Indicates the total number of time periods;

[0092] in, represents the passenger flow from the direction d of the h station hall on line l to the station hall during time period t, It represents the number of passengers from the direction d of the h station hall on line l who are allowed to enter the platform from the station hall during time period t; represents the number of passengers in the direction of h station hall on line l during time period t; L, D, The definitions of line, station hall, direction and time period index are described respectively. Passenger flow allowed to enter the platform E l,s,d,t It can be expressed as:

[0093]

[0094] S={1,2,…,N s} N s Indicates the total number of stations;

[0095]

[0096] in, is the inbound flow control rate in the direction of h station hall on line l during period t; s represents the index of the platform.

[0097] (2) Platform characteristics

[0098] The platform flow is affected by the flow of passengers stranded on the platform, entering the platform, boarding the train, and transferring passengers at the previous moment. The platform flow can be expressed as:

[0099]

[0100] Among them, B l,s,d,t It indicates the number of passengers boarding the train in direction d of station hall s on line l during time period t. It represents the number of passengers who transfer from line l' to line l in direction d during this period. l,s,d,t It represents the platform flow in the direction of station hall s on line l during period t.

[0101] (3) Train characteristics

[0102] The capacity of each train is related to the capacity of the previous platform train, the number of passengers getting on the train, and the number of passengers getting off the train. It can be expressed as:

[0103]

[0104] in, and They represent the remaining capacity and the number of passengers getting off the train k passing through platform s in direction d on line l during period t. It represents the number of passengers boarding the train k passing the platform s on the line l in the direction d during the period t. The maximum passenger capacity of the train.

[0105] In step 2, if Figure 2 As shown in the figure, the multi-agent reinforcement learning framework includes: an agent network and a Mixing network.

[0106] 1. The agent network is used for individual learning and decision-making of each agent;

[0107] The agent network refers to the neural network structure used by each agent to learn and represent local states and make corresponding decisions. These agent networks are designed as deep reinforcement learning networks that receive local state information as input and output corresponding action strategies or value estimates. This neural network structure is usually composed of multiple layers of neural networks, which can be different types of structures such as fully connected networks, convolutional neural networks (CNNs), and recurrent neural networks (RNNs). The goal of the agent network is to enable each agent to make the best decision in a local range to maximize the overall passenger flow control goal. In this patent, the input o of agent i is iIt mainly includes passengers stranded in the station hall, passengers stranded on the platform, the capacity of approaching trains and the time period. The output is the proportion of people allowed to enter the station hall.

[0108] 2. Mixing network is used to integrate global information and local information to coordinate the actions of multiple agents;

[0109] The Mixing network combines global information and local information. Global information mainly includes stranded passengers in each station hall and platform. Local information is the observation quantity of the station hall and platform in each station, including stranded passengers in the station hall, stranded passengers on the platform, and the capacity of adjacent trains as well as the time period. The fusion process is as follows: First, the weights and biases of the first layer of the network are generated using local information and global information respectively, where the local information is obtained through the self-attention calculation of the observation quantity, which is a very common operation in neural networks. Secondly, the change of Q value under the influence of global information and local information is calculated. Then it is fused with the Q value of the original intelligent agent and input into the second layer of the neural network to finally obtain the Q of all intelligent agents. tot . It can be expressed as:

[0110]

[0111] Among them, Q i is the Q value of agent i, w 11 and b 11 They are the first layer global state information s t The weights and biases, w 12 and b 12 are the first layer local information o t w2 and b2 are the weights and biases of the second layer network. 12 and b 12 Depend on Figure 2 The self-attention network shown is generated, and the input is the observation of the agent. All other weights are generated by the neural network, and the input is the global state s t .w 12 Q i +b 12 and w 11 Q i +b 11 These are the changes in Q value under the influence of global information and local information respectively.

[0112] In one embodiment, the objective function of the multi-agent reinforcement learning framework is:

[0113] argmax ρ Z=ω1f1+ω2f2+ω3f3

[0114] Among them, ρ is the passenger flow control ratio vector of multiple platforms in the rail network. ω1, ω2 and ω3 represent the weights of the three objectives respectively. f1, f2 and f3 represent the transportation efficiency, safety and fairness of the rail transit network respectively. It can be expressed as:

[0115]

[0116] Among them, Per l,s,t and They are platform s and station hall on line l respectively The transport efficiency in time period t. R l,s,t and They are platform s and station hall on line l respectively The risk value in period t. F t is the fairness of the rail transit network during period t.

[0117] In one embodiment, the elements of the multi-agent reinforcement learning framework are:

[0118] (1) Observations: the number of stranded passengers in the station hall, the number of stranded passengers on the platform, the capacity of nearby trains, and the time period.

[0119] (2) Status: number of stranded passengers in all station halls;

[0120] (3) Movement: the proportion of passengers entering the station hall and entering the platform;

[0121] (4) Rewards: efficiency index r1(t), security index r2(t) and fairness index r3(t).

[0122]

[0123] in, and They are the station hall after the control strategy is implemented on line l and the passenger flow at platform s.

[0124] Safety is another very important indicator for achieving passenger flow control. In this embodiment, the risk level of the station hall and platform is used for judgment. This embodiment sets the indicators for evaluating the risk of the station hall and platform as shown in the following formula:

[0125]

[0126] in, and R s,t Station Hall and the risk value of station s in period t. and M s,t They are the arrivals at the station hall within time period t. and the number of passengers at platform s. and Respectively represent the station hall and the risk level threshold of station s; |R| is the number of risk levels.

[0127] In order to evaluate the contribution of the proposed rail passenger flow control strategy to safety, this embodiment considers two aspects: (1) the risk level of the station hall and platform at the end of the control period; (2) the change in risk level caused by the implementation of the control strategy. It can be expressed as:

[0128]

[0129] Among them, the parameter l b and l a They are before and after the control strategy is implemented on line 1.

[0130] In this embodiment, the fairness index designed can simultaneously reflect the proportion of passengers entering the station and the number of passengers entering the station, which can be expressed as:

[0131]

[0132] In the formula The station hall for line l Fairness measure at time period t. and Respectively represent the station hall of line l before and after the implementation of the control strategy The number of stranded passengers. In order to unify the data scale, this embodiment normalizes the ratio and the number of passengers. In addition, in order to prevent the agent from getting too low a value when the proportion of entering the station is very small, A penalty factor is introduced

[0133] Therefore, the reward value is finally expressed as:

[0134] r(t)=eta1r1(t)+eta2r2(t)+eta3γ3(t)

[0135] Among them, η1, η2 and η3 are balancing factors, which mainly scale the three reward values ​​to the same dimension.

[0136] For example, obtaining passenger flow data means aggregating passenger flow in AFC card swiping data at intervals of 2.5 minutes. Figure 3 As shown, the x-axis represents time, the y-axis represents the site ID, and the z-axis represents the passenger flow of the site in each time period. Figure 3 Each slice in represents the change of passenger flow at each station over time.

[0137] In addition, multi-agent reinforcement learning training uses the standard value function-based reinforcement learning calculation method: in reinforcement learning, value functions are used to evaluate the value of states or actions, and these value functions are used to guide the decision-making of agents. There are usually two main types: value iteration and policy iteration.

[0138] Value iteration is a method to find the optimal policy by iteratively updating the state value function. It is based on the Bellman Equation and iteratively calculates the value function of the current state until convergence. The goal of value iteration is to find the optimal value function and then extract the optimal policy from it.

[0139] Policy iteration combines the iteration process of the value function and the policy. It alternates between two steps: first, the value function is calculated using the current policy; then, the policy is improved based on this value function. This iterative process continues until the policy converges to the optimal policy.

[0140] Both methods are reinforcement learning methods based on value functions. Their core idea is to use value functions to represent the value of states or actions, thereby guiding the learning and decision-making process of the intelligent agent.

[0141] Step 3 of this embodiment involves 4 sub-steps:

[0142] Sub-step 1: Data collection and input

[0143] Obtain station passenger flow data: Use the automatic ticket vending and checking system (AFC) card swiping data, which records the information of passengers entering and leaving the station. For example, the AFC card swiping data is summarized at preset time intervals (such as every 5 minutes or every 10 minutes). In this way, information such as the number of people entering and leaving each station and the number of people stranded in each time interval can be obtained.

[0144] Input to the passenger flow control environment:

[0145] The processed passenger flow data are dynamically input into the rail transit passenger flow control environment, which simulates the actual operation of the station hall, platform and train.

[0146] Sub-step 2: Multi-agent reinforcement learning interaction

[0147] Initialize the agent:

[0148] Each agent corresponds to a station or a system node. During initialization, the agent obtains the current passenger flow status information, including the number of stranded passengers in the station hall, the number of stranded passengers on the platform, the train capacity, and the current time period.

[0149] Environment Interaction:

[0150] Observation: At each time interval, the agent observes the current passenger flow status (observation quantity).

[0151] Decision-making: The agent selects an action (such as controlling a certain proportion of passengers in the station hall to enter the platform) based on the current observed state and using its learned strategy.

[0152] Execution: The agent executes the selected action, which affects the passenger flow status in the next time interval.

[0153] Feedback: The environment updates the state of the system based on the agent’s actions and calculates corresponding rewards (efficiency, security, and fairness indicators).

[0154] Sub-step 3: Data collection and training

[0155] Data collection:

[0156] During the continuous interaction between the agent and the environment, a large amount of passenger flow status, action and reward data is collected. These data are used to train the agent.

[0157] Training process:

[0158] Value function method: Use a value function-based reinforcement learning algorithm, such as Q-learning or Deep Q Network (DQN), for training.

[0159] Update strategy: Based on the collected data, the agent continuously adjusts its strategy to maximize the cumulative reward. Through iterative updates, the agent gradually learns how to make the best decision under different passenger flow conditions.

[0160] Sub-step 4: Obtaining a multi-line collaborative passenger flow control model

[0161] Model Integration:

[0162] After multiple agents are trained, they form independent decision-making models, which will be integrated into a collaborative passenger flow control model.

[0163] Mixing network: Coordinate the decision-making models of each intelligent agent and ensure more effective collaborative control among multiple lines by fusing global and local information.

[0164] Verification and optimization:

[0165] The effectiveness of the model is verified through simulation tests or actual operation, and the model is continuously optimized based on feedback to ensure that it can control passenger flow efficiently, safely and smoothly in actual applications.

[0166] Through the above steps, passenger flow in rail transit can be effectively controlled, especially during peak hours, to achieve safe, efficient and fair passenger flow management.

[0167] Below, the present invention further verifies the above method with specific examples:

[0168] Take Beijing Line 5 and Line 15 as examples for research. The passenger flow of a day is as follows: Figure 3 As shown in the figure, it can be found that there is a serious imbalance in the passenger flow of each station, which brings great challenges to accurate passenger flow control.

[0169] The training parameters are set as follows: the number of neurons in the reinforcement learning agent network and the Mixing network are both set to 32. During the training process, the batch size is set to 512, and the initial learning rate is set to 0.001. As the training progresses, the learning rate gradually decreases to 0.00001. At the same time, for example, it is set that the current network parameters are synchronized to the target network after every 12 training sessions. The discount factor γ is set to 0.9, and 13 parallel environments are set in the experiment to allow the agent to interact with these environments to quickly collect data. The experience pool capacity is set to 60,000. In addition, in order to accurately simulate the interaction between passengers and infrastructure in rail transit, a simulation network was constructed using SUMO software, and the simulation period was 7:00am-9:30am. The maximum passenger capacity of the vehicle is set to 1,400 people, and the capacity of each platform is 2,000 people. The risks of both the station hall and the platform are divided into three levels, and the setting and 3000, 3500 and 4000 respectively, set and They are 1400, 1600 and 1800 respectively. η1, η2 and η3 are set to 0.0014, 0.65 and 0.8 respectively.

[0170] The present invention compares the performance of the proposed multi-line collaborative passenger flow control model and the non-control strategy, as shown in the following table:

[0171]

[0172] It can be seen from the above table that, despite sacrificing a certain amount of waiting time, the strategy proposed in the present invention has achieved significant improvements in safety and fairness. The method of the present invention performs particularly well in terms of safety, especially in terms of total risk and platform risk, which have achieved a reduction of 10.67% and 11.71% respectively, demonstrating its superiority in risk control. In terms of fairness, the strategy of the present invention has significantly reduced by 25.40% compared to the baseline strategy, which indicates that the strategy of the present invention can more effectively improve service fairness. In summary, the method of the present invention shows great potential in improving the safety and fairness of rail transit systems.

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

[0174] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for controlling track saturated passenger flow based on multi-agent reinforcement learning. It is characterized in that The following steps are involved: Step 1: Based on the description of the dynamic characteristics of the station hall, platform and train, construct the rail transit passenger flow control environment; Step 2: Construct a distributed multi-agent reinforcement learning passenger flow control framework that considers global and local information; The global information includes: stranded passengers in all station halls and platforms; the local information includes: observations of the station halls and platforms in each station, including stranded passengers in the station halls, stranded passengers on the platforms, and the capacity of nearby trains and the time period; Step 3: Obtain station passenger flow data and input it into the rail transit passenger flow control environment, interact with the rail transit passenger flow control environment through multi-agent reinforcement learning, collect data and train, and finally obtain a multi-line collaborative passenger flow control model; Step 4: Based on the multi-line collaborative passenger flow control model, make the best control decision according to the current passenger flow situation and status to achieve saturated passenger flow control of the rail transit system.

2. According to claim 1, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that In the step 1, the dynamic characteristics of the station hall are described, including: The passenger flow in the station hall satisfies the following relationship: L={1,2,…,N L } N L Indicates the total number of lines; H={1,2,…,N H } N H Indicates the total number of station halls; D={up,down} up,down means up and down directions; T={1,2,…,N T } N T Indicates the total number of time periods; in, represents the passenger flow from the direction d of the h station hall on line l to the station hall during time period t, It represents the number of passengers from the direction d of the h station hall on line l who are allowed to enter the platform from the station hall during time period t; represents the number of passengers on line l in direction d of station hall h during time period t; L, H, D, T represent the set of line, station hall, direction and time period index respectively; the passenger flow allowed to enter the platform E l,s,d,t It is expressed as: S={1,2,…,N s } N s Indicates the total number of stations; N s =N H in, is the inbound flow control rate in the direction of h station hall on line l during period t; s represents the index of the platform.

3. According to claim 2, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that In the step 1, the description of the dynamic characteristics of the platform includes: The platform flow is affected by the flow of passengers stranded on the platform, entering the platform, boarding the train, and transferring passengers at the previous moment. The platform flow is expressed as: Among them, B l,s,d,t It represents the number of passengers boarding the train from the direction d of the station hall s on line l during time period t; P represents the number of passengers who transfer from line l' to line l direction d in the station hall s during period t; l,s,d,t It represents the platform flow in the direction of station hall s on line l during period t.

4. According to claim 3, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that In the step 1, the dynamic characteristics of the train are described, including: The capacity of each train is related to the capacity of the previous platform train, the number of passengers getting on the train, and the number of passengers getting off the train; it can be expressed as: in, and They represent the remaining capacity and the number of passengers getting off the train k passing through platform s in direction d on line l during time period t; represents the number of passengers boarding the train k passing through the platform s in the direction d of the line l during the period t; Indicates the maximum passenger capacity of the train.

5. According to claim 4, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that In the step 2, the multi-agent reinforcement learning passenger flow control framework includes: an agent network and a mixing network; The agent network is used for individual learning and decision-making of each agent; the Mixing network is used to fuse global information and local information to coordinate actions among multiple agents; The Mixing network is used to fuse global information and local information. The fusion process is as follows: using local information and global information to generate weights and biases of the first layer network, respectively, wherein the local information is obtained by self-attention calculation of the observed amount; Calculate the changes in Q values ​​under the influence of global information and local information, merge them with the original Q values ​​of the agent, input them into the second layer of the neural network, and finally obtain the Q values ​​of all agents. tot , which is expressed as follows: Among them, Q i is the Q value of agent i, w 11 and b 11 are the first layer global information s t The weights and biases, w 12 and b 12 are the first layer local information o t The weight and bias of 2 and b 2 are the weight and bias of the second layer network respectively; w 12 and b 12 Generated by the self-attention network, the input is the observation of the agent; w 12 Q i +b 12 and w 11 Q i +b 11 They respectively represent the changes of Q value under the influence of global information and local information.

6. According to claim 5, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that The objective function of the multi-agent reinforcement learning passenger flow control framework is: argmax ρ Z=ω 1 f 1 +oh 2 f 2 +oh 3 f 3 Where ρ is the passenger flow control ratio vector of multiple stations in the rail network; f 1 , f 2 and f 3 They represent the transportation efficiency, safety and fairness of the rail transit network respectively; ω 1 ,ω 2 and ω 3 Respectively represent the corresponding weights; Among them, Per l,s,t and Respectively represent platform s and station hall on line l The transport efficiency in period t; R l,s,t and Respectively represent platform s and station hall on line l The risk value in period t; F t is the fairness of the rail transit network during period t.

7. According to claim 6, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that In step 2, the elements of the multi-agent reinforcement learning framework are: (1) Observations: the number of stranded passengers in the station hall, the number of stranded passengers on the platform, the number of nearby trains, and the time period; (2) Status: number of stranded passengers in all station halls; (3) Movement: the proportion of passengers entering the station hall and entering the platform; (4) Reward: Efficiency index r 1 (t), safety index r 2 (t) and the fairness index r 3 (t); in, and They represent the station hall after the control strategy is implemented on line l. and passenger flow at platform s; The indicators for evaluating the risk of station halls and platforms are set as follows: in, and R s,t Respectively represent the station hall and the risk value of station s in period t; and M s,t Respectively represent the arrival at the station hall within time period t and the number of passengers at platform s; and Respectively represent the station hall and the risk level threshold of station s; |R| is the number of risk levels; In order to evaluate the contribution of the proposed rail passenger flow control strategy to safety, two aspects are considered: 1) the risk level of the station hall and platform at the end of the control period; 2) the change in risk level caused by the implementation of the control strategy; it is expressed as: Among them, the parameter l b and l a They represent before and after the control strategy is implemented on line l respectively; The design fairness index can reflect both the proportion of passengers entering the station and the number of passengers entering the station, which can be expressed as: In the formula, Indicates the station hall of line l Fairness measure at time period t; and Respectively represent the station hall of line l before and after the implementation of the control strategy Number of stranded passengers; introduce a penalty factor The reward value is finally expressed as: r(t)=η 1 r 1 (t)+η 2 r 2 (t)+η 3 r 3 (t) Among them, η 1 , η 2 and η 3 To balance the factors, the three reward values ​​are scaled to the same dimension.

8. According to claim 1, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that In the step three, the station passenger flow data is obtained by aggregating the passenger flow in the AFC card swiping data at intervals of a preset time length.

9. According to claim 1, a track saturation passenger flow control method based on multi-agent reinforcement learning, It is characterized in that The reinforcement learning training in step three uses a standard reinforcement learning calculation method based on a value function.

Citation Information

Cited By

  • Urban rail transit passenger flow control and stop scheme collaborative optimization method based on deep reinforcement learning

    CN119047665A

  • Rail transit station-level intelligent agent implementation method and system

    CN120017481A

  • Safety-oriented subway station passenger flow dynamic control method and system

    CN121352289A

  • A safety-oriented subway station passenger flow dynamic control method and system

    CN121352289B