원시데이터 수집 시스템
선정목록으로

Long Short-Term Memory-Based Model Predictive Control for Virtual Coupling in Railways

관련 모빌리티 소재 · (4) 카시트 모듈

기본 정보

저자
  1. Ming Chai — School of Electronics and Information Engineering, Beijing Jiaotong University, Beijing 100044, China|||National Engineering Research Center of Rail Transportation Operation and Control System, Beijing Jiaotong University, Beijing 100044, China
  2. Haoxiang Su — School of Electronics and Information Engineering, Beijing Jiaotong University, Beijing 100044, China
  3. Hongjie Liu — School of Electronics and Information Engineering, Beijing Jiaotong University, Beijing 100044, China|||National Engineering Research Center of Rail Transportation Operation and Control System, Beijing Jiaotong University, Beijing 100044, China
DOI
10.1155/2022/1859709
저널
Wireless Communications and Mobile Computing
발행년도
2022
발행기관
Wiley
피인용수
15
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1155/2022/1859709
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4210400600

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (4) 카시트 모듈
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '모빌리티 소재 > 카시트 모듈' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The increasing need for capacity has led the railway industry to explore new train control systems based on a concept called virtual coupling. Inspired by the platooning of autonomous vehicles, the safe operation of virtual coupling is guaranteed by a relative brake distance-based train separation method. This paper proposes a novel long short-term memory (LSTM)-based model predictive control (MPC) method for train operations. An MPC-based control design for virtual coupled train operations is presented. The LSTM is introduced to model the dynamics of the preceding train to approximate the actual train operations. With the train dynamics models, the operation trajectories of the preceding train are predicted based on planned control inputs. A study of a metro line in Chengdu was chosen to analyze the proposed control approach. The simulation results of different scenarios show that compared with the conventional MPC methods, the proposed LSTM-based MPC can reduce the speed differences and position differences of tracking trains by up to 35 <math xmlns="http://www.w3.org/1998/Math/MathML" id="M1"> <mo>%</mo> </math> and 25 <math xmlns="http://www.w3.org/1998/Math/MathML" id="M2"> <mo>%</mo> </math> , respectively.

본문 116,437자

본문 펼치기
e increasing need for capacity has led the railway industry to explore new train control systems based on a concept called virtual coupling. Inspired by the platooning of autonomous vehicles, the safe operation of virtual coupling is guaranteed by a relative brake distance-based train separation method. is paper proposes a novel long short-term memory (LSTM)-based model predictive control (MPC) method for train operations. An MPC-based control design for virtual coupled train operations is presented. e LSTM is introduced to model the dynamics of the preceding train to approximate the actual train operations. With the train dynamics models, the operation trajectories of the preceding train are predicted based on planned control inputs. A study of a metro line in Chengdu was chosen to analyze the proposed control approach. e simulation results of different scenarios show that compared with the conventional MPC methods, the proposed LSTM-based MPC can reduce the speed differences and position differences of tracking trains by up to 35% and 25%, respectively. Introduction e ever-increasing railway transport demand of passengers and goods has been challenging infrastructure managers to continuously expand the capacity of existing networks. erefore, the railway industry is looking into the adoption of advanced control systems. Virtual coupling is a novel train control systems concept [1]. It cancels mechanical couplers that maintain vehicles to move within the same train couple. In virtual coupling, the safe vehicle running distance is maintained by vehicle-to-vehicle communication-based train operation controls. is system uses a relative braking distance to separate trains [2]. is method can achieve a smaller train tracking distance. Without the mechanical coupler, trains can be dynamically coupled or decoupled during running. It can increase the line capacity by dynamically coupling two or more trains to form a new convoy. With virtual coupling, capacity can be flexibly adjusted on demand instead of based on a fixed schedule. erefore, it can adapt to different transportation demands [3]. Furthermore, the railway operations department can fulfill its demand of supporting optimum train operation. One of the main challenges in virtual coupling is the synchronous operations of virtually coupled trains. With synchronous operations, a smaller tracking distance between trains can be achieved. Specifically, the following train needs to maintain a stable distance while moving between stations. An unstable tracking distance between trains results in a longer arrival time of virtually coupled trains at a station. Introduction is decreases the transport capacity. Model predictive control is considered a feasible control method for virtual coupling. One of its advantages relies on its optimal control characteristics. Compared with road vehicles, a train is a large inertial body whose control capability is truly weaker. is results in a long time to change train operation states. In traditional train control, the train operates according to the preplanned speed curve and protection curve. However, in the virtual coupling, the distance between the preceding train and the following train needs to be kept small during the train operation. e following train cannot synchronize with the preceding train by tracking the target curve. erefore, the control target of the following train is a predicted operation state of the preceding train. In conventional control methods of virtual coupling, the approximation and prediction of the preceding train occur through the rule-based dynamics model of the train [4,5]. Unfortunately, the prediction accuracy of these methods is limited, and they are unable to achieve ideal train convoy stability. Introduction To solve this problem, we propose a long short-term memory (LSTM) based method to predict the operations of preceding trains. Train dynamics are modeled with an LSTM neural network trained from historical operation data. With this model, the operation of the preceding train is predicted with planned train control inputs. e prediction result is used to optimize the control of the following train in the MPC framework. e existing literature studies the operation control of virtual coupling from different points of view. Some studies focus on control strategies for virtual coupling [6]. In virtual coupling, the extremely small distance may cause unstable train operation. For this reason, some studies present control systems that keep a constant distance [7,8]. Liu et al. [9] proposed an optimal control method to maintain the speed of all trains in the virtual coupling consistent and safe distance. Ling and others [10] combined the dispatch operation in the virtual coupling scenario with the coordinated control of the train to determine the running route and the train order to optimize station operating time. Di Meo and others [11] defined a multiagent system control poly for virtual coupling. is approach aims to maintain the desired distance between trains and enrich the ERTMS/ETCS with virtual coupling without changing its working principles. Sliding mode control is used to achieve the same control effect [12]. e operation control method of virtual coupling can refer to recent developments in the field of safe platooning of autonomous vehicles and connected automated vehicle (CAV) platoons [13,14]. e CAV platoon has an interconnection containing the leading vehicle (i e., the leader) and the following vehicle (i e., the follower). e leader is set to track a given trajectory, and the follower continues tracking the preceding vehicle with desired spacing and consistent speed. Compared with the CAV platoon, the virtual coupling control system has the same platoon concept due to the longitudinal movement of trains through the rail. e preceding train tracks the predefined speed profile and the following trains keep maintaining the minimum safe spacing and consistent speed. Introduction ere are effective and available methods such as model predictive control [15] and feedback control [16] in linear and nonlinear CAV platoon control problems. ese methods can maintain platoon cohesion. ese methods have brought some inspiration to virtual coupling controller design. Introduction Many existing kinds of research realize adaptive control through neural networks [17][18][19]. Neural networks require relatively less information about the dynamics of the system. It also has been maturely proved to be effective in addressing the control problem of nonlinear systems with unknown dynamics. Moreover, it has been widely used to propose control for various nonlinear systems. Many existing studies are dedicated to combining control algorithms such as MPC and deep learning. Deep learning and MPC use their advantages to compensate for their shortcomings to achieve better control. e research results also prove that the control performance can be improved by adopting such a method. Wang et al. [20] proposed a deep learning-based model predictive control to model and control the continuous stirred-tank reactor system. e convergence and stability of this control method are analyzed and show better performance in modeling, tracking, and antidisturbance. Zhang et al. [21] use a recurrent neural network as the prediction model in model predictive control to control multiple unmanned quadrotor formation flights. A recurrent neural network (RNN) is used to separately model the two subsystems in quadrotor flight. Introduction e system model established through deep learning achieves accurate control. A collision avoidance control method was proposed in [22]. rough deep learning technology and an MPC controller, the automatic driving of vehicles was realized under the premise of considering maneuverability, vehicle dynamics, and traffic rules. ere are also some theoretical analyses on the combination and application of MPC and deep learning [23,24]. However, most of the existing work is to improve the control accuracy as possible under the premise that the control target is known. In virtual coupling, it is also important to set the control target of the following train based on precise predictions of the preceding train. Introduction Based on the previous research, we proposed an LSTM-based model predictive control method. Model predictive control is used as the control architecture, and LSTM is used to predict control target in the following train to achieve more accurate tracking to achieve the stability of the train convoy. Our main contributions are as follows: Introduction (1) An MPC control framework is presented for the following train in the virtual coupling, according to the metro infrastructures and their communication architectures. e preceding train continuously sends status information and control information to the following train. Based on the control architecture, the LSTM-based model predictive control method is proposed to make successive trains drive while keeping a desired stable distance. Introduction (2) LSTM neural network is used to predict the preceding train state and serve as the control target of the following train. More accurate control targets improve the stability of the control. Simulations are conducted, and the traditional prediction method is compared with the method proposed in this paper. A section of one metro line in Chengdu is used as the background to verify the validity of the method. Introduction (3) e following train dynamics are modeled by deep learning. Conventional controlled objects are established by formulas, which cannot entirely reflect the actual dynamics characteristics of the train. rough deep learning, a dynamics model closer to the actual train is established using a large amount of historical data, which can better reflect the accuracy and practicability of the control algorithm. e rest of this paper is organized as follows. In Section 2, the problem of virtual coupling train operations is formulated. Section 3 presents the entire MPC methodology. Section 4 explains the design of the train dynamics model by LSTM networks and the overall control structure. Section 5 presents different tests, simulations, and results. Finally, the conclusions are drawn in Section 6. Communication Structure of Trains in Virtual Coupling. Wireless communications and distributed computing have promoted the development of vehicle-monitoring systems to reduce railway system maintenance and inspection requirements while maintaining safety and reliability [25]. e typical virtual coupling communication framework is shown in Figure 1. Centralized traffic control (CTC) directs the train convoy operation. CTC generates a route request command according to the train's operation plan and sends it to the interlocking system. e interlocking system ensures that the train route is safe and useable by controlling the wayside infrastructure. After a route is set, the interlocking sends the route information to the radio block center (RBC). e RBC calculates the train movement authorization (MA). An MA is a succession of railway sections in which a train can safely operate. During train operation, continuous radio communication exchanges train control information between trains and wayside equipment [26]. Communication Structure of Trains in Virtual Coupling. In the traditional train control architecture, the following train passively follows the preceding train through the coupler force control and maintains a stable running state with the preceding train. In virtual coupling, trains are supposed to move together, similar to physical coupling. e following train can achieve a comparable control effect to the coupler through active control. e control strategies for the preceding train and the following train are different. e preceding train tracks the desired speed profile of the MA area. e following train tracks the speed of the preceding train while maintaining a stable distance. Virtual coupling entails convoys of trains linked via vehicle-to-vehicle communication to synchronize the speed with the train ahead to maintain a safety margin in between. In the virtual coupling system, vehicle-to-vehicle communication becomes essential to maximize the probability of message delivery compared to train-to-track communication only (i e., fully infrastructure-based communication). Virtual coupling requires extremely low reaction times and, hence, latency to synchronize multivehicle behaviors. e train control system controls the train speed based on the target speed curve. e system uses various control algorithms to adjust the train speed to make it as consistent as possible with the target speed in the target speed curve. A typical train speed curve and target speed curve are shown in Figure 2. e greatest recommended speed (GRS) is a speed curve calculated by the train control system based on the current line speed limit, used to prevent the train from overspeeding. e train operation process can be divided into three phases: traction phase, cruise phase, and braking phase. e control algorithm designed in this paper aims to control the following train in the cruise phase. Dynamics Model of Virtual Coupling Trains. First, we consider the dynamic model of a single train. e external forces that a train is subject to include tractive or braking forces and additional operational resistances. e basic equation of train movement can be described by the following: Dynamics Model of Virtual Coupling where m is the train mass. s i and v i are the train position and speed at the current instant i, respectively. u i is the external tractive or braking force at the current instant i. r(v i ) is the basic operational resistance, generally described by the Davis Dynamics Model of Virtual Coupling . a, b, and c are the empirical coefficients accounting for the mass resistance, mechanical resistance, and air resistance, respectively. mg sin(θ i ) is one kind of operational resistance caused by gravity, where g is the gravitational acceleration and θ(x i ) is the angle between the rail slope and the horizontal reference line. Dynamics Model of Virtual Coupling Under the actuation of external forces on a train, speed series v i depicts train movements. e running distance can be described by the following: Dynamics Model of Virtual Coupling where Δt is the time step between instants i + 1 and i. For a virtual coupling train control system, the state of the train can be defined as x � (s, v, a) T , where s, v, a represent the position, speed, and acceleration, respectively. e control input of the train can be expressed as u. erefore, equations (1)-(3) can be written compactly as follows: Dynamics Model of Virtual Coupling where i denotes the time step. en, to investigate the virtual coupling train control system control problem, we consider a virtual coupling train control system composed of two trains moving along a railway line. e preceding train sends state information (e g., position, velocity. and acceleration) to the following train. e preceding train circulates at a velocity v l t , and the following train circulates at v f t . e superscript denotes the train (l for the leader and f for the follower). e subscript denotes the time. e distance between trains is calculated by means of the following: Wireless Communications and Mobile Computing where L is the safety margin. Wireless Communications and Mobile Computing In the designed virtual coupling train control system, our control objective is to maintain the speed of the preceding train and the following train consistently while maintaining a safe distance (safe margin). If the following train has a location tracking error of e s , we can express the control objective of the following train as follows: Model Predictive Control Construction We consider a decentralized virtual coupling control with two trains, one for the front or preceding train and the other for the following train. We propose a model predictive control approach for the following train. e controller is nonlinear, and the constraints are explicitly handled. Model Predictive Control Construction Model predictive control is a control algorithm that relies on the iterative solution of an optimal control problem. e control input is calculated at each sampling time based on the predicted state [28,29]. One of the advantages of MPC is that the resulting operating strategy respects all the system and problem constraints. In this paper, an MPC feedback control system is designed for the following train in Figure 3. Design of the MPC. For the formulation of the MPC, a prediction horizon [t, t + N p ] is considered at time t. According to the receding horizon principle, at each time, the MPC solver computes the optimal control u � u t , u t+1 , . . . , u t+N p . e first input is applied to the control system before the next time step. At the next time step t + 1, a new optimization problem is raised based on a new state measurement [30]. We express the control optimization problem as follows: Design of the MPC. where l is the cost function and N p is the prediction horizon. We discuss the setting of the cost function l in the next section. en, the controller needs to find the best control input at the cost of minimizing J, subject to the following: Design of the MPC. where v lim is the line speed limit, which is set according to actual line data. a min and a max are the maximum deceleration and acceleration of the train, u min and u max are the maximum and minimum values of the control input. ese are set according to the actual performance parameters of the train. d is the distance between trains, and d min is the safe margin. We refer to the illustration of the safety margin in the Shift2Rail technical report [31], and the safety margin used is set according to the train speed and line conditions in the simulation. e notation x t+k|t represents the state vector at time t + k, predicted at time t. In the designed control system, the optimal state and control input obtained are as follows: Design of the MPC. For closed-loop control, we apply the first input to system (9) in the time interval [t, t + 1). Design of the MPC. In the next step, a new optimal problem based on a new state measurement is solved over a shifted horizon, yielding a moving receding horizon control strategy with control law. Cost Function Design in the MPC Framework. e tracking capability is usually specified in terms of speed error and distance error. e consistency of speed and the maintenance of the distance between trains are issues we care about in designing control algorithms. For speed, the control objective is divided into the following three parts: Cost Function Design in the MPC Framework. (i) (A1) e speed of the train cannot exceed the current line speed limit (ii) (A2) When the preceding train is at a steady-state, the speed difference between the preceding train and the following train should be minimized (A3) When the preceding train accelerates or decelerates, the acceleration error should converge to small values For the distance between trains, the control objective is to (B1) minimize the speed difference between the preceding and the following train while maintaining a steady, safe distance between the two trains. Cost Function Design in the MPC Framework. In those subobjectives, we attempt to quantify them under the MPC framework. e subobjective (A1) is formulated as linear constraints. e subobjectives (A2) and (A3) are quantified to be cost functions. In particular, subobjective B1 is reflected in both the cost function and constraints. Together, they yield a tractable model predictive optimization problem. Cost Function Design in the MPC Framework. A 1-norm function of tracking errors is adopted as the MPC cost function in [32], and a 2-norm function is used in [33]. e former gives equal consideration to tracking errors of different degrees, while the latter tends to penalize larger errors and neglect smaller errors. Actually, the following train should only respond to sufficiently large tracking errors and should not be sensitive to tiny tracking errors. erefore, it is more reasonable to employ the 2-norm of tracking errors to quantify (A3): Cost Function Design in the MPC Framework. where a ref is the target acceleration. Similarly, when the speed of the preceding train is not much different from that of the following train. e acceleration of the preceding train does not change much. e subobjective (A2) is also defined as a 2-norm function of desired speed Cost Function Design in the MPC Framework. where v ref is the target speed. Wireless Communications and Mobile Computing For two moving trains, the positions of the preceding train and the following train can never coincide, and the difference is large. Nevertheless, the position of the preceding train is always one of the targets of the following train's tracking. erefore, the subobjective (B1) can be defined as a 1-norm function Wireless Communications and Mobile Computing where s ref is the preceding train's position. e three cost functions (13)- (15) are not combined but are set in different operating scenarios to obtain a tractable predictive optimization problem. LSTM-Based Model Predictive Control In virtual coupling, it is necessary to predict the preceding train state for the following train. e predicted state is used as the control objective of the following train, and it is also used for the optimal control of MPC. As an effective tool for mining large amounts of data, neural networks are widely used in data-driven trajectory prediction research. A long short-term memory (LSTM) neural network, a type of RNN, is more efficient than an RNN [34,35]. LSTM network can capture the characteristics of time series in a longer time span and achieve better results than RNN in traffic prediction. In this section, LSTM is used to model the dynamics of the preceding train and predict the state of the preceding train for MPC due to its superiority compared to other conventional modeling methods [36]. Train Dynamics Model. Due to the complex environment and disturbances, train dynamics are challenging to describe with formulas accurately. erefore, a deep learning modeling method is adopted to solve this problem. e LSTM network is used as one of the neural network components to obtain a more accurate preceding train dynamics model. e upper part of Figure 4 is the calculation unit of LSTM. e middle part of Figure 4 demonstrates the framework of the LSTM neural network we build to approximate the train dynamics model. e lower part of Figure 4 represents the closed-loop control process of the physical movement of a train. We use the data from train operation records for neural network training. Our developed LSTM model is a feedforward artificial neural network structured with an input layer at the bottom, stacked hidden layers, and an output layer. e LSTM network is always connected to the fully connected (FC) network in the hidden layers. e input of one neuron in the lth hidden layer is defined as x (t) l , and the output as h (t) l . e forward calculation method of the overall network at time t can be described as the following expression. e first is the calculation inside LSTM: Train Dynamics Model. en, the calculation that is output to the fully connected layer is as follows: Train Dynamics Model. where w l+1 and b l+1 , respectively, denote the neural weight matrix and bias of the l + 1-th hidden layer. If the neural network is well trained with the train operation data, we can use the neural network model to reflect the actual train's operating status. at is, the actual operation of the train can be reflected through the input and output to the neural network. Train Dynamics Model. We designed a planning-based prediction, that is, the following train predicts the future state of the preceding train under the premise that the preceding train's control input is known. e advantage of this is that the following train can more accurately know the behavior of the preceding train, avoiding the unpredictable situation of the train in front, such as emergency braking due to particular circumstances. A mapping function is established from the current train state and input control commands to the next state through the LSTM network. Control Structure Based on LSTM. e composite control structure based on LSTM and MPC is proposed in Figure 5 for the following train. e control structure consists of three main parts: the state prediction model based on LSTM, the MPC framework, and the train dynamics model. Control Structure Based on LSTM. For the following train, at each time horizon, the control input u is optimally determined by comparing the following train state and the reference state. e LSTM prediction model obtains the reference state. e preceding train state is the input of the LSTM prediction model. Based on that, the following train state is obtained by the dynamics model. Meanwhile, the next time horizon starts and the train state and reference state are updated. e whole process is online iterative until the following train state reaches the reference. Test Environment. We record the detailed train operation data of the Chengdu Metro Line 8. e field data are collected from the onboard computers. ese data are used for training and testing the accuracy of the trained networks. In addition, we established the dynamic model of the following train as the controlled object of the control algorithm through deep learning in advance. Another state prediction model of the preceding train is also generated through deep learning as a comparison. e difference is that the prediction of the preceding train state does not require the control input of the preceding train. We trained the dynamics model of the preceding train under two operating scenarios. In scenario 1, the train operation is subject to the speed limit of the curve and then accelerates to a normal operating speed with small fluctuations. In scenario 2, the train adjusts its speed before entering the curve. Training the Neural Network Model. is study adopts the backpropagation algorithm with Adam. Set the loss function of the neural network to MSE. We adjust the number of layers and nodes of the neural network to reduce the loss function value after training. Training the Neural Network Model. To evaluate the accuracy and performance of the model obtained by deep learning, we use field data to test the model accuracy. Figure 6(a) demonstrates the field data and the train velocities and positions predicted by the LSTM network, corresponding to operating scenario 1 in the model training experiments. e LSTM network achieves great predictive performance. e position and velocity curves predicted by the deep neural network are very close to the field data. e results by operating scenario 2 in Figure 6(b) also obtained the same conclusion. At the same time, we separately recorded the acceleration calculation error of the dynamics model, the predicted position, and the velocity error in Figure 7. e average error of acceleration prediction does not exceed 0.02, and the average error of velocity prediction does not exceed 0.5. e position error increases with time, and the cumulative error increases, approaching 4. Verifying these data demonstrates its e train convoy is formed by two trains. e initial conditions include that the initial gap between tracking trains is 20 m and the tracking trains have the same initial speed. e communication delay is not considered. In the simulations, we add the established train dynamic model to the control algorithm and use model predictive control to simulate the operation control of the following train in the virtual coupling during the cruise phase. In addition, in order to verify the robustness of the control algorithm, Gaussian white noise is added as input interference in the experiment. e performance of the proposed LSTM-Based MPC algorithm is illustrated in two aspects in the simulation, including the speed of the trains and the distance between trains. Figure 8 shows the simulation results under the two scenarios. Figure 8(a) corresponds to the speed profile of virtually coupled trains in scene 1, Figure 8(b) corresponds to scene 2, and Figure 8(c) shows the distance changes between trains in two scenarios. From the figure, the following train can track the speed of the preceding train with a small margin of error. e maximum speed difference between the two trains appears in scene 2, reaching 0.24 m/s. Benefiting from accurate speed tracking and maintenance, the distance between the two trains varies within a tiny range and always remains within the set safety margin (10 m). Influence of the Length of the Prediction Horizon. Several simulations were also run to study the influence of different prediction horizons on control performance. Simulation is carried out in both operating scenarios, and we changed the prediction horizon N p from 5 to 15. As expected, the computation time increases when the prediction horizon increases. Another effect is that the distance between trains increases when the prediction horizon increases. We recorded and analyzed the changes in distance between trains. ese results are shown in Table 1. Comparison and Discussion. In order to further verify the performance of the proposed control algorithm, first, we compare the proposed control algorithm with the traditional train control architecture. e following train operates according to the preplanned speed curve and protection curve. e design of the controller is that the following train tracks the target's speed curve and maintains a safe distance from the preceding train. e controller does not predict the behavior of the preceding train. Denote this control method as no prediction (NP). e proposed control method in this paper is denoted as PBP (Planning-Based Prediction). e two methods were compared under the same conditions, and the experimental results were shown in Figure 9 under the two scenarios mentioned above. Comparison and Discussion. In scenario 1, where the operation scene is relatively single, both methods can achieve speed tracking and distance stability of the following train to the preceding train. Since the following train does not consider the synchronous operation with the preceding train, but as far as possible to achieve the target speed, so the distance between the two trains is less than the proposed PBP method. Nevertheless, this is not what we expect, and there will still be sharp changes in the distance. However, in scenario 2, due to frequent acceleration and deceleration and the change of the speed limit in the interval, it is difficult for the following train to accurately track the speed of the preceding train only by tracking the target speed curve, resulting in a sharp change in the distance between the two trains. In this case, the algorithm proposed in this paper has a good performance. In the two methods, the average speed difference between the following train and the preceding train is 0.075 m/s (NP) and 0.370 m/s (PBP), respectively. erefore, in the virtual coupling, it is unacceptable for the following train not to predict the state of the preceding train. en, we compared and analyzed the influence of different prediction methods on controlling the following train in the virtual coupling. We divide the prediction methods into planned-based and unplanned methods. Among them, the planning-based method is divided into the calculation of the dynamics model obtained by deep learning and the calculation of the traditional dynamics formulas. Calculation by dynamics formula is a classical conventional method adopted in articles [4,5]. We refer to the calculation method mentioned in these articles and make some changes. e unplanned method is to build a state prediction model of the preceding train through deep learning. Trajectory prediction based on LSTM neural network is also used in [37]. Compared with the Kalman filter model, this method has been verified to have higher accuracy. However, the predicted input does not include the control input of the preceding train. e deep learning prediction model (DLP), planning-based prediction model (PBP), and train dynamics formula (TDF) are the three considered prediction strategies. We set the prediction horizon to 5, comparing different prediction methods' control performances in two operating scenarios. Figure 10 presents these results. Comparison and Discussion. In Figure 10, we can see how the distance between the trains is maintained within the set safety margin (10 meters) for the two test conditions. Compared with the TDF strategies, the neural network prediction method enables the following train to achieve more accurate speed tracking. Moreover, the velocity plot shows that the PBP method can achieve better speed tracking. e following train's speed is close to the preceding train's speed and has no significant speeding. Comparison and Discussion. rough specific numerical analysis, the differences of different prediction methods are more directly reflected. In scenario 2, these differences are more prominent, which is embodied in the average speed errors of the preceding train and the following train under the three algorithms are 0.075 (PBP), 0.11 (DLP), and 0.12 (TDF), respectively. We calculate the variance of distance variation under different prediction methods are 1.56 (PBP), 1.58 (DLP), and 2.14 (TDF), respectively. e results show that, compared with the conventional TDF method, the PBP method achieves 35 % and 25 % improvement of velocity and distance, respectively. e simulation also verified a particular scenario in which the preceding train is running abnormally and brakes at a certain part of the line, the control problem of the following train. At this point, there is a clear difference between the three prediction methods. Since the control input of the preceding train is known, the (PBP) method can correctly predict the state of the preceding train due to the change in the control input when the preceding train is braking. However, due to the unknown control input of the preceding train, the (DLP) method will have a significant deviation in the predicted state in this scenario. In spit of the control input of the preceding train is known in the TDF method, the prediction accuracy is limited, and the stability of the train convoy is still difficult to maintain. Due to the constraint of the safety distance between trains, the following train will still brake and slow down under the other two prediction strategies. However, due to untimely deceleration, the distance between trains will still suddenly decrease. e result is shown in Figure 11. As can be seen from the figure, the distance between the two trains corresponding to the three control strategies decreases instantly after braking. e two planning-based prediction methods (PBP) and (TDF) achieve more accurate speed tracking in the case of emergency braking of the preceding train, thus making the distance change between the two trains relatively small. e small degree of distance change is helpful to maintain the stability of the whole train convoy. More accurate speed tracking also helps keep the convoy running after emergency braking. Experimental Results and Discussion. In this paper, model predictive control and deep learning methods are used to design the following train controller in virtual coupling to realize the stable operation of the virtual coupling convoy. First, by comparing with the traditional train control architecture, we think it is necessary to predict the operation state of the preceding train for the following train. Experimental Results and Discussion. rough simulations in two scenarios and comparing the control effects of different prediction methods, it can be proven that the method used in this paper can achieve a more stable convoy operation. In scenario 1, the maximum speed tracking error of the PBP case is 0.11, while the tracking errors of the other two methods are 0.17 and 0.20, respectively. In scenario 2, the maximum speed tracking error of the PBP method is 0.24, better than 0.31 and 0.32 in the other methods. e PBP method proposed in this paper can maintain minor distance change under the premise of achieving better speed tracking. Furthermore, the planningbased prediction method achieves more accurate speed tracking, whether a normal operation scenario or an unconventional situation of the preceding train's emergency braking. e PBP method can respond more quickly to the abnormal braking of the preceding train so that the distance between the two trains will not change sharply. e simulation proves its application effect in special scenes. e experiment provides new insight into virtual coupling. e neural network predicts the control target of the following train in the virtual coupling. Previous control studies have mainly focused on the control effect of the control algorithm under ideal conditions. However, in this paper, we use field data to train the neural network and compare the field data with the control results. e experimental results also verify the effectiveness of this method. e planning-based prediction method proposed in this paper is more effective. However, the method proposed in this paper is limited to the condition in which the line conditions do not change significantly. us, the following train can accurately predict the state of the preceding train. Experimental Results and Discussion. To some extent, this is also the limitation of neural networks. e currently feasible solution is to update the neural network model through field data in time. Conclusion is paper relies on deep learning and model predictive control (MPC) to propose a virtual coupling control solution for the following train. e solution first uses deep learning to model the dynamics of the preceding train. Subsequently, several prediction strategies were developed for model predictive control, and simulation comparisons were carried out based on one metro line. e results show that different prediction strategies have significant differences in control effects. Compared with the conventional dynamics formula, the model established by deep learning achieves better predictive performance and a better control effect. Furthermore, a planning-based prediction model more accurately predicts the preceding train's operation state. Such a prediction strategy can also deal with unexpected scenes during operation (e. g., abnormal braking). erefore, the simulation results demonstrate better performance and benefits of this prediction strategy and control architecture. Conclusion However, the control scheme proposed in this paper only considers the simplified scenario of two trains. e virtual coupling scenario of multiple trains, which is more widely used in practical applications, is not considered. More evolved studies are necessary considering essential issues such as uncertainties in time delays or even communication failure that may appear in the reception of positional information. ese aspects are the subject of ongoing research. Data Availability e experimental data used to support the findings of this study are included within the article. Conflicts of Interest e authors declare that they have no conflicts of interest. Introduction e ever-increasing railway transport demand of passengers and goods has been challenging infrastructure managers to continuously expand the capacity of existing networks. erefore, the railway industry is looking into the adoption of advanced control systems. Virtual coupling is a novel train control systems concept [1]. It cancels mechanical couplers that maintain vehicles to move within the same train couple. In virtual coupling, the safe vehicle running distance is maintained by vehicle-to-vehicle communication-based train operation controls. is system uses a relative braking distance to separate trains [2]. is method can achieve a smaller train tracking distance. Without the mechanical coupler, trains can be dynamically coupled or decoupled during running. It can increase the line capacity by dynamically coupling two or more trains to form a new convoy. With virtual coupling, capacity can be flexibly adjusted on demand instead of based on a fixed schedule. erefore, it can adapt to different transportation demands [3]. Furthermore, the railway operations department can fulfill its demand of supporting optimum train operation. One of the main challenges in virtual coupling is the synchronous operations of virtually coupled trains. With synchronous operations, a smaller tracking distance between trains can be achieved. Specifically, the following train needs to maintain a stable distance while moving between stations. An unstable tracking distance between trains results in a longer arrival time of virtually coupled trains at a station. Introduction is decreases the transport capacity. Model predictive control is considered a feasible control method for virtual coupling. One of its advantages relies on its optimal control characteristics. Compared with road vehicles, a train is a large inertial body whose control capability is truly weaker. is results in a long time to change train operation states. In traditional train control, the train operates according to the preplanned speed curve and protection curve. However, in the virtual coupling, the distance between the preceding train and the following train needs to be kept small during the train operation. e following train cannot synchronize with the preceding train by tracking the target curve. erefore, the control target of the following train is a predicted operation state of the preceding train. In conventional control methods of virtual coupling, the approximation and prediction of the preceding train occur through the rule-based dynamics model of the train [4,5]. Unfortunately, the prediction accuracy of these methods is limited, and they are unable to achieve ideal train convoy stability. Introduction To solve this problem, we propose a long short-term memory (LSTM) based method to predict the operations of preceding trains. Train dynamics are modeled with an LSTM neural network trained from historical operation data. With this model, the operation of the preceding train is predicted with planned train control inputs. e prediction result is used to optimize the control of the following train in the MPC framework. e existing literature studies the operation control of virtual coupling from different points of view. Some studies focus on control strategies for virtual coupling [6]. In virtual coupling, the extremely small distance may cause unstable train operation. For this reason, some studies present control systems that keep a constant distance [7,8]. Liu et al. [9] proposed an optimal control method to maintain the speed of all trains in the virtual coupling consistent and safe distance. Ling and others [10] combined the dispatch operation in the virtual coupling scenario with the coordinated control of the train to determine the running route and the train order to optimize station operating time. Di Meo and others [11] defined a multiagent system control poly for virtual coupling. is approach aims to maintain the desired distance between trains and enrich the ERTMS/ETCS with virtual coupling without changing its working principles. Sliding mode control is used to achieve the same control effect [12]. e operation control method of virtual coupling can refer to recent developments in the field of safe platooning of autonomous vehicles and connected automated vehicle (CAV) platoons [13,14]. e CAV platoon has an interconnection containing the leading vehicle (i e., the leader) and the following vehicle (i e., the follower). e leader is set to track a given trajectory, and the follower continues tracking the preceding vehicle with desired spacing and consistent speed. Compared with the CAV platoon, the virtual coupling control system has the same platoon concept due to the longitudinal movement of trains through the rail. e preceding train tracks the predefined speed profile and the following trains keep maintaining the minimum safe spacing and consistent speed. Introduction ere are effective and available methods such as model predictive control [15] and feedback control [16] in linear and nonlinear CAV platoon control problems. ese methods can maintain platoon cohesion. ese methods have brought some inspiration to virtual coupling controller design. Introduction Many existing kinds of research realize adaptive control through neural networks [17][18][19]. Neural networks require relatively less information about the dynamics of the system. It also has been maturely proved to be effective in addressing the control problem of nonlinear systems with unknown dynamics. Moreover, it has been widely used to propose control for various nonlinear systems. Many existing studies are dedicated to combining control algorithms such as MPC and deep learning. Deep learning and MPC use their advantages to compensate for their shortcomings to achieve better control. e research results also prove that the control performance can be improved by adopting such a method. Wang et al. [20] proposed a deep learning-based model predictive control to model and control the continuous stirred-tank reactor system. e convergence and stability of this control method are analyzed and show better performance in modeling, tracking, and antidisturbance. Zhang et al. [21] use a recurrent neural network as the prediction model in model predictive control to control multiple unmanned quadrotor formation flights. A recurrent neural network (RNN) is used to separately model the two subsystems in quadrotor flight. Introduction e system model established through deep learning achieves accurate control. A collision avoidance control method was proposed in [22]. rough deep learning technology and an MPC controller, the automatic driving of vehicles was realized under the premise of considering maneuverability, vehicle dynamics, and traffic rules. ere are also some theoretical analyses on the combination and application of MPC and deep learning [23,24]. However, most of the existing work is to improve the control accuracy as possible under the premise that the control target is known. In virtual coupling, it is also important to set the control target of the following train based on precise predictions of the preceding train. Introduction Based on the previous research, we proposed an LSTM-based model predictive control method. Model predictive control is used as the control architecture, and LSTM is used to predict control target in the following train to achieve more accurate tracking to achieve the stability of the train convoy. Our main contributions are as follows: Introduction (1) An MPC control framework is presented for the following train in the virtual coupling, according to the metro infrastructures and their communication architectures. e preceding train continuously sends status information and control information to the following train. Based on the control architecture, the LSTM-based model predictive control method is proposed to make successive trains drive while keeping a desired stable distance. Introduction (2) LSTM neural network is used to predict the preceding train state and serve as the control target of the following train. More accurate control targets improve the stability of the control. Simulations are conducted, and the traditional prediction method is compared with the method proposed in this paper. A section of one metro line in Chengdu is used as the background to verify the validity of the method. Introduction (3) e following train dynamics are modeled by deep learning. Conventional controlled objects are established by formulas, which cannot entirely reflect the actual dynamics characteristics of the train. rough deep learning, a dynamics model closer to the actual train is established using a large amount of historical data, which can better reflect the accuracy and practicability of the control algorithm. e rest of this paper is organized as follows. In Section 2, the problem of virtual coupling train operations is formulated. Section 3 presents the entire MPC methodology. Section 4 explains the design of the train dynamics model by LSTM networks and the overall control structure. Section 5 presents different tests, simulations, and results. Finally, the conclusions are drawn in Section 6. Communication Structure of Trains in Virtual Coupling. Wireless communications and distributed computing have promoted the development of vehicle-monitoring systems to reduce railway system maintenance and inspection requirements while maintaining safety and reliability [25]. e typical virtual coupling communication framework is shown in Figure 1. Centralized traffic control (CTC) directs the train convoy operation. CTC generates a route request command according to the train's operation plan and sends it to the interlocking system. e interlocking system ensures that the train route is safe and useable by controlling the wayside infrastructure. After a route is set, the interlocking sends the route information to the radio block center (RBC). e RBC calculates the train movement authorization (MA). An MA is a succession of railway sections in which a train can safely operate. During train operation, continuous radio communication exchanges train control information between trains and wayside equipment [26]. Communication Structure of Trains in Virtual Coupling. In the traditional train control architecture, the following train passively follows the preceding train through the coupler force control and maintains a stable running state with the preceding train. In virtual coupling, trains are supposed to move together, similar to physical coupling. e following train can achieve a comparable control effect to the coupler through active control. e control strategies for the preceding train and the following train are different. e preceding train tracks the desired speed profile of the MA area. e following train tracks the speed of the preceding train while maintaining a stable distance. Virtual coupling entails convoys of trains linked via vehicle-to-vehicle communication to synchronize the speed with the train ahead to maintain a safety margin in between. In the virtual coupling system, vehicle-to-vehicle communication becomes essential to maximize the probability of message delivery compared to train-to-track communication only (i e., fully infrastructure-based communication). Virtual coupling requires extremely low reaction times and, hence, latency to synchronize multivehicle behaviors. e train control system controls the train speed based on the target speed curve. e system uses various control algorithms to adjust the train speed to make it as consistent as possible with the target speed in the target speed curve. A typical train speed curve and target speed curve are shown in Figure 2. e greatest recommended speed (GRS) is a speed curve calculated by the train control system based on the current line speed limit, used to prevent the train from overspeeding. e train operation process can be divided into three phases: traction phase, cruise phase, and braking phase. e control algorithm designed in this paper aims to control the following train in the cruise phase. Dynamics Model of Virtual Coupling Trains. First, we consider the dynamic model of a single train. e external forces that a train is subject to include tractive or braking forces and additional operational resistances. e basic equation of train movement can be described by the following: Dynamics Model of Virtual Coupling where m is the train mass. s i and v i are the train position and speed at the current instant i, respectively. u i is the external tractive or braking force at the current instant i. r(v i ) is the basic operational resistance, generally described by the Davis Dynamics Model of Virtual Coupling . a, b, and c are the empirical coefficients accounting for the mass resistance, mechanical resistance, and air resistance, respectively. mg sin(θ i ) is one kind of operational resistance caused by gravity, where g is the gravitational acceleration and θ(x i ) is the angle between the rail slope and the horizontal reference line. Dynamics Model of Virtual Coupling Under the actuation of external forces on a train, speed series v i depicts train movements. e running distance can be described by the following: Dynamics Model of Virtual Coupling where Δt is the time step between instants i + 1 and i. For a virtual coupling train control system, the state of the train can be defined as x � (s, v, a) T , where s, v, a represent the position, speed, and acceleration, respectively. e control input of the train can be expressed as u. erefore, equations (1)-(3) can be written compactly as follows: Dynamics Model of Virtual Coupling where i denotes the time step. en, to investigate the virtual coupling train control system control problem, we consider a virtual coupling train control system composed of two trains moving along a railway line. e preceding train sends state information (e g., position, velocity. and acceleration) to the following train. e preceding train circulates at a velocity v l t , and the following train circulates at v f t . e superscript denotes the train (l for the leader and f for the follower). e subscript denotes the time. e distance between trains is calculated by means of the following: Wireless Communications and Mobile Computing where L is the safety margin. Wireless Communications and Mobile Computing In the designed virtual coupling train control system, our control objective is to maintain the speed of the preceding train and the following train consistently while maintaining a safe distance (safe margin). If the following train has a location tracking error of e s , we can express the control objective of the following train as follows: Model Predictive Control Construction We consider a decentralized virtual coupling control with two trains, one for the front or preceding train and the other for the following train. We propose a model predictive control approach for the following train. e controller is nonlinear, and the constraints are explicitly handled. Model Predictive Control Construction Model predictive control is a control algorithm that relies on the iterative solution of an optimal control problem. e control input is calculated at each sampling time based on the predicted state [28,29]. One of the advantages of MPC is that the resulting operating strategy respects all the system and problem constraints. In this paper, an MPC feedback control system is designed for the following train in Figure 3. Design of the MPC. For the formulation of the MPC, a prediction horizon [t, t + N p ] is considered at time t. According to the receding horizon principle, at each time, the MPC solver computes the optimal control u � u t , u t+1 , . . . , u t+N p . e first input is applied to the control system before the next time step. At the next time step t + 1, a new optimization problem is raised based on a new state measurement [30]. We express the control optimization problem as follows: Design of the MPC. where l is the cost function and N p is the prediction horizon. We discuss the setting of the cost function l in the next section. en, the controller needs to find the best control input at the cost of minimizing J, subject to the following: Design of the MPC. where v lim is the line speed limit, which is set according to actual line data. a min and a max are the maximum deceleration and acceleration of the train, u min and u max are the maximum and minimum values of the control input. ese are set according to the actual performance parameters of the train. d is the distance between trains, and d min is the safe margin. We refer to the illustration of the safety margin in the Shift2Rail technical report [31], and the safety margin used is set according to the train speed and line conditions in the simulation. e notation x t+k|t represents the state vector at time t + k, predicted at time t. In the designed control system, the optimal state and control input obtained are as follows: Design of the MPC. For closed-loop control, we apply the first input to system (9) in the time interval [t, t + 1). Design of the MPC. In the next step, a new optimal problem based on a new state measurement is solved over a shifted horizon, yielding a moving receding horizon control strategy with control law. Cost Function Design in the MPC Framework. e tracking capability is usually specified in terms of speed error and distance error. e consistency of speed and the maintenance of the distance between trains are issues we care about in designing control algorithms. For speed, the control objective is divided into the following three parts: Cost Function Design in the MPC Framework. (i) (A1) e speed of the train cannot exceed the current line speed limit (ii) (A2) When the preceding train is at a steady-state, the speed difference between the preceding train and the following train should be minimized (A3) When the preceding train accelerates or decelerates, the acceleration error should converge to small values For the distance between trains, the control objective is to (B1) minimize the speed difference between the preceding and the following train while maintaining a steady, safe distance between the two trains. Cost Function Design in the MPC Framework. In those subobjectives, we attempt to quantify them under the MPC framework. e subobjective (A1) is formulated as linear constraints. e subobjectives (A2) and (A3) are quantified to be cost functions. In particular, subobjective B1 is reflected in both the cost function and constraints. Together, they yield a tractable model predictive optimization problem. Cost Function Design in the MPC Framework. A 1-norm function of tracking errors is adopted as the MPC cost function in [32], and a 2-norm function is used in [33]. e former gives equal consideration to tracking errors of different degrees, while the latter tends to penalize larger errors and neglect smaller errors. Actually, the following train should only respond to sufficiently large tracking errors and should not be sensitive to tiny tracking errors. erefore, it is more reasonable to employ the 2-norm of tracking errors to quantify (A3): Cost Function Design in the MPC Framework. where a ref is the target acceleration. Similarly, when the speed of the preceding train is not much different from that of the following train. e acceleration of the preceding train does not change much. e subobjective (A2) is also defined as a 2-norm function of desired speed Cost Function Design in the MPC Framework. where v ref is the target speed. Wireless Communications and Mobile Computing For two moving trains, the positions of the preceding train and the following train can never coincide, and the difference is large. Nevertheless, the position of the preceding train is always one of the targets of the following train's tracking. erefore, the subobjective (B1) can be defined as a 1-norm function Wireless Communications and Mobile Computing where s ref is the preceding train's position. e three cost functions (13)- (15) are not combined but are set in different operating scenarios to obtain a tractable predictive optimization problem. LSTM-Based Model Predictive Control In virtual coupling, it is necessary to predict the preceding train state for the following train. e predicted state is used as the control objective of the following train, and it is also used for the optimal control of MPC. As an effective tool for mining large amounts of data, neural networks are widely used in data-driven trajectory prediction research. A long short-term memory (LSTM) neural network, a type of RNN, is more efficient than an RNN [34,35]. LSTM network can capture the characteristics of time series in a longer time span and achieve better results than RNN in traffic prediction. In this section, LSTM is used to model the dynamics of the preceding train and predict the state of the preceding train for MPC due to its superiority compared to other conventional modeling methods [36]. Train Dynamics Model. Due to the complex environment and disturbances, train dynamics are challenging to describe with formulas accurately. erefore, a deep learning modeling method is adopted to solve this problem. e LSTM network is used as one of the neural network components to obtain a more accurate preceding train dynamics model. e upper part of Figure 4 is the calculation unit of LSTM. e middle part of Figure 4 demonstrates the framework of the LSTM neural network we build to approximate the train dynamics model. e lower part of Figure 4 represents the closed-loop control process of the physical movement of a train. We use the data from train operation records for neural network training. Our developed LSTM model is a feedforward artificial neural network structured with an input layer at the bottom, stacked hidden layers, and an output layer. e LSTM network is always connected to the fully connected (FC) network in the hidden layers. e input of one neuron in the lth hidden layer is defined as x (t) l , and the output as h (t) l . e forward calculation method of the overall network at time t can be described as the following expression. e first is the calculation inside LSTM: Train Dynamics Model. en, the calculation that is output to the fully connected layer is as follows: Train Dynamics Model. where w l+1 and b l+1 , respectively, denote the neural weight matrix and bias of the l + 1-th hidden layer. If the neural network is well trained with the train operation data, we can use the neural network model to reflect the actual train's operating status. at is, the actual operation of the train can be reflected through the input and output to the neural network. Train Dynamics Model. We designed a planning-based prediction, that is, the following train predicts the future state of the preceding train under the premise that the preceding train's control input is known. e advantage of this is that the following train can more accurately know the behavior of the preceding train, avoiding the unpredictable situation of the train in front, such as emergency braking due to particular circumstances. A mapping function is established from the current train state and input control commands to the next state through the LSTM network. Control Structure Based on LSTM. e composite control structure based on LSTM and MPC is proposed in Figure 5 for the following train. e control structure consists of three main parts: the state prediction model based on LSTM, the MPC framework, and the train dynamics model. Control Structure Based on LSTM. For the following train, at each time horizon, the control input u is optimally determined by comparing the following train state and the reference state. e LSTM prediction model obtains the reference state. e preceding train state is the input of the LSTM prediction model. Based on that, the following train state is obtained by the dynamics model. Meanwhile, the next time horizon starts and the train state and reference state are updated. e whole process is online iterative until the following train state reaches the reference. Test Environment. We record the detailed train operation data of the Chengdu Metro Line 8. e field data are collected from the onboard computers. ese data are used for training and testing the accuracy of the trained networks. In addition, we established the dynamic model of the following train as the controlled object of the control algorithm through deep learning in advance. Another state prediction model of the preceding train is also generated through deep learning as a comparison. e difference is that the prediction of the preceding train state does not require the control input of the preceding train. We trained the dynamics model of the preceding train under two operating scenarios. In scenario 1, the train operation is subject to the speed limit of the curve and then accelerates to a normal operating speed with small fluctuations. In scenario 2, the train adjusts its speed before entering the curve. Training the Neural Network Model. is study adopts the backpropagation algorithm with Adam. Set the loss function of the neural network to MSE. We adjust the number of layers and nodes of the neural network to reduce the loss function value after training. Training the Neural Network Model. To evaluate the accuracy and performance of the model obtained by deep learning, we use field data to test the model accuracy. Figure 6(a) demonstrates the field data and the train velocities and positions predicted by the LSTM network, corresponding to operating scenario 1 in the model training experiments. e LSTM network achieves great predictive performance. e position and velocity curves predicted by the deep neural network are very close to the field data. e results by operating scenario 2 in Figure 6(b) also obtained the same conclusion. At the same time, we separately recorded the acceleration calculation error of the dynamics model, the predicted position, and the velocity error in Figure 7. e average error of acceleration prediction does not exceed 0.02, and the average error of velocity prediction does not exceed 0.5. e position error increases with time, and the cumulative error increases, approaching 4. Verifying these data demonstrates its e train convoy is formed by two trains. e initial conditions include that the initial gap between tracking trains is 20 m and the tracking trains have the same initial speed. e communication delay is not considered. In the simulations, we add the established train dynamic model to the control algorithm and use model predictive control to simulate the operation control of the following train in the virtual coupling during the cruise phase. In addition, in order to verify the robustness of the control algorithm, Gaussian white noise is added as input interference in the experiment. e performance of the proposed LSTM-Based MPC algorithm is illustrated in two aspects in the simulation, including the speed of the trains and the distance between trains. Figure 8 shows the simulation results under the two scenarios. Figure 8(a) corresponds to the speed profile of virtually coupled trains in scene 1, Figure 8(b) corresponds to scene 2, and Figure 8(c) shows the distance changes between trains in two scenarios. From the figure, the following train can track the speed of the preceding train with a small margin of error. e maximum speed difference between the two trains appears in scene 2, reaching 0.24 m/s. Benefiting from accurate speed tracking and maintenance, the distance between the two trains varies within a tiny range and always remains within the set safety margin (10 m). Influence of the Length of the Prediction Horizon. Several simulations were also run to study the influence of different prediction horizons on control performance. Simulation is carried out in both operating scenarios, and we changed the prediction horizon N p from 5 to 15. As expected, the computation time increases when the prediction horizon increases. Another effect is that the distance between trains increases when the prediction horizon increases. We recorded and analyzed the changes in distance between trains. ese results are shown in Table 1. Comparison and Discussion. In order to further verify the performance of the proposed control algorithm, first, we compare the proposed control algorithm with the traditional train control architecture. e following train operates according to the preplanned speed curve and protection curve. e design of the controller is that the following train tracks the target's speed curve and maintains a safe distance from the preceding train. e controller does not predict the behavior of the preceding train. Denote this control method as no prediction (NP). e proposed control method in this paper is denoted as PBP (Planning-Based Prediction). e two methods were compared under the same conditions, and the experimental results were shown in Figure 9 under the two scenarios mentioned above. Comparison and Discussion. In scenario 1, where the operation scene is relatively single, both methods can achieve speed tracking and distance stability of the following train to the preceding train. Since the following train does not consider the synchronous operation with the preceding train, but as far as possible to achieve the target speed, so the distance between the two trains is less than the proposed PBP method. Nevertheless, this is not what we expect, and there will still be sharp changes in the distance. However, in scenario 2, due to frequent acceleration and deceleration and the change of the speed limit in the interval, it is difficult for the following train to accurately track the speed of the preceding train only by tracking the target speed curve, resulting in a sharp change in the distance between the two trains. In this case, the algorithm proposed in this paper has a good performance. In the two methods, the average speed difference between the following train and the preceding train is 0.075 m/s (NP) and 0.370 m/s (PBP), respectively. erefore, in the virtual coupling, it is unacceptable for the following train not to predict the state of the preceding train. en, we compared and analyzed the influence of different prediction methods on controlling the following train in the virtual coupling. We divide the prediction methods into planned-based and unplanned methods. Among them, the planning-based method is divided into the calculation of the dynamics model obtained by deep learning and the calculation of the traditional dynamics formulas. Calculation by dynamics formula is a classical conventional method adopted in articles [4,5]. We refer to the calculation method mentioned in these articles and make some changes. e unplanned method is to build a state prediction model of the preceding train through deep learning. Trajectory prediction based on LSTM neural network is also used in [37]. Compared with the Kalman filter model, this method has been verified to have higher accuracy. However, the predicted input does not include the control input of the preceding train. e deep learning prediction model (DLP), planning-based prediction model (PBP), and train dynamics formula (TDF) are the three considered prediction strategies. We set the prediction horizon to 5, comparing different prediction methods' control performances in two operating scenarios. Figure 10 presents these results. Comparison and Discussion. In Figure 10, we can see how the distance between the trains is maintained within the set safety margin (10 meters) for the two test conditions. Compared with the TDF strategies, the neural network prediction method enables the following train to achieve more accurate speed tracking. Moreover, the velocity plot shows that the PBP method can achieve better speed tracking. e following train's speed is close to the preceding train's speed and has no significant speeding. Comparison and Discussion. rough specific numerical analysis, the differences of different prediction methods are more directly reflected. In scenario 2, these differences are more prominent, which is embodied in the average speed errors of the preceding train and the following train under the three algorithms are 0.075 (PBP), 0.11 (DLP), and 0.12 (TDF), respectively. We calculate the variance of distance variation under different prediction methods are 1.56 (PBP), 1.58 (DLP), and 2.14 (TDF), respectively. e results show that, compared with the conventional TDF method, the PBP method achieves 35 % and 25 % improvement of velocity and distance, respectively. e simulation also verified a particular scenario in which the preceding train is running abnormally and brakes at a certain part of the line, the control problem of the following train. At this point, there is a clear difference between the three prediction methods. Since the control input of the preceding train is known, the (PBP) method can correctly predict the state of the preceding train due to the change in the control input when the preceding train is braking. However, due to the unknown control input of the preceding train, the (DLP) method will have a significant deviation in the predicted state in this scenario. In spit of the control input of the preceding train is known in the TDF method, the prediction accuracy is limited, and the stability of the train convoy is still difficult to maintain. Due to the constraint of the safety distance between trains, the following train will still brake and slow down under the other two prediction strategies. However, due to untimely deceleration, the distance between trains will still suddenly decrease. e result is shown in Figure 11. As can be seen from the figure, the distance between the two trains corresponding to the three control strategies decreases instantly after braking. e two planning-based prediction methods (PBP) and (TDF) achieve more accurate speed tracking in the case of emergency braking of the preceding train, thus making the distance change between the two trains relatively small. e small degree of distance change is helpful to maintain the stability of the whole train convoy. More accurate speed tracking also helps keep the convoy running after emergency braking. Experimental Results and Discussion. In this paper, model predictive control and deep learning methods are used to design the following train controller in virtual coupling to realize the stable operation of the virtual coupling convoy. First, by comparing with the traditional train control architecture, we think it is necessary to predict the operation state of the preceding train for the following train. Experimental Results and Discussion. rough simulations in two scenarios and comparing the control effects of different prediction methods, it can be proven that the method used in this paper can achieve a more stable convoy operation. In scenario 1, the maximum speed tracking error of the PBP case is 0.11, while the tracking errors of the other two methods are 0.17 and 0.20, respectively. In scenario 2, the maximum speed tracking error of the PBP method is 0.24, better than 0.31 and 0.32 in the other methods. e PBP method proposed in this paper can maintain minor distance change under the premise of achieving better speed tracking. Furthermore, the planningbased prediction method achieves more accurate speed tracking, whether a normal operation scenario or an unconventional situation of the preceding train's emergency braking. e PBP method can respond more quickly to the abnormal braking of the preceding train so that the distance between the two trains will not change sharply. e simulation proves its application effect in special scenes. e experiment provides new insight into virtual coupling. e neural network predicts the control target of the following train in the virtual coupling. Previous control studies have mainly focused on the control effect of the control algorithm under ideal conditions. However, in this paper, we use field data to train the neural network and compare the field data with the control results. e experimental results also verify the effectiveness of this method. e planning-based prediction method proposed in this paper is more effective. However, the method proposed in this paper is limited to the condition in which the line conditions do not change significantly. us, the following train can accurately predict the state of the preceding train. Experimental Results and Discussion. To some extent, this is also the limitation of neural networks. e currently feasible solution is to update the neural network model through field data in time. Conclusion is paper relies on deep learning and model predictive control (MPC) to propose a virtual coupling control solution for the following train. e solution first uses deep learning to model the dynamics of the preceding train. Subsequently, several prediction strategies were developed for model predictive control, and simulation comparisons were carried out based on one metro line. e results show that different prediction strategies have significant differences in control effects. Compared with the conventional dynamics formula, the model established by deep learning achieves better predictive performance and a better control effect. Furthermore, a planning-based prediction model more accurately predicts the preceding train's operation state. Such a prediction strategy can also deal with unexpected scenes during operation (e. g., abnormal braking). erefore, the simulation results demonstrate better performance and benefits of this prediction strategy and control architecture. Conclusion However, the control scheme proposed in this paper only considers the simplified scenario of two trains. e virtual coupling scenario of multiple trains, which is more widely used in practical applications, is not considered. More evolved studies are necessary considering essential issues such as uncertainties in time delays or even communication failure that may appear in the reception of positional information. ese aspects are the subject of ongoing research. Data Availability e experimental data used to support the findings of this study are included within the article. Conflicts of Interest e authors declare that they have no conflicts of interest. Introduction e ever-increasing railway transport demand of passengers and goods has been challenging infrastructure managers to continuously expand the capacity of existing networks. erefore, the railway industry is looking into the adoption of advanced control systems. Virtual coupling is a novel train control systems concept [1]. It cancels mechanical couplers that maintain vehicles to move within the same train couple. In virtual coupling, the safe vehicle running distance is maintained by vehicle-to-vehicle communication-based train operation controls. is system uses a relative braking distance to separate trains [2]. is method can achieve a smaller train tracking distance. Without the mechanical coupler, trains can be dynamically coupled or decoupled during running. It can increase the line capacity by dynamically coupling two or more trains to form a new convoy. With virtual coupling, capacity can be flexibly adjusted on demand instead of based on a fixed schedule. erefore, it can adapt to different transportation demands [3]. Furthermore, the railway operations department can fulfill its demand of supporting optimum train operation. One of the main challenges in virtual coupling is the synchronous operations of virtually coupled trains. With synchronous operations, a smaller tracking distance between trains can be achieved. Specifically, the following train needs to maintain a stable distance while moving between stations. An unstable tracking distance between trains results in a longer arrival time of virtually coupled trains at a station. Introduction is decreases the transport capacity. Model predictive control is considered a feasible control method for virtual coupling. One of its advantages relies on its optimal control characteristics. Compared with road vehicles, a train is a large inertial body whose control capability is truly weaker. is results in a long time to change train operation states. In traditional train control, the train operates according to the preplanned speed curve and protection curve. However, in the virtual coupling, the distance between the preceding train and the following train needs to be kept small during the train operation. e following train cannot synchronize with the preceding train by tracking the target curve. erefore, the control target of the following train is a predicted operation state of the preceding train. In conventional control methods of virtual coupling, the approximation and prediction of the preceding train occur through the rule-based dynamics model of the train [4,5]. Unfortunately, the prediction accuracy of these methods is limited, and they are unable to achieve ideal train convoy stability. Introduction To solve this problem, we propose a long short-term memory (LSTM) based method to predict the operations of preceding trains. Train dynamics are modeled with an LSTM neural network trained from historical operation data. With this model, the operation of the preceding train is predicted with planned train control inputs. e prediction result is used to optimize the control of the following train in the MPC framework. e existing literature studies the operation control of virtual coupling from different points of view. Some studies focus on control strategies for virtual coupling [6]. In virtual coupling, the extremely small distance may cause unstable train operation. For this reason, some studies present control systems that keep a constant distance [7,8]. Liu et al. [9] proposed an optimal control method to maintain the speed of all trains in the virtual coupling consistent and safe distance. Ling and others [10] combined the dispatch operation in the virtual coupling scenario with the coordinated control of the train to determine the running route and the train order to optimize station operating time. Di Meo and others [11] defined a multiagent system control poly for virtual coupling. is approach aims to maintain the desired distance between trains and enrich the ERTMS/ETCS with virtual coupling without changing its working principles. Sliding mode control is used to achieve the same control effect [12]. e operation control method of virtual coupling can refer to recent developments in the field of safe platooning of autonomous vehicles and connected automated vehicle (CAV) platoons [13,14]. e CAV platoon has an interconnection containing the leading vehicle (i e., the leader) and the following vehicle (i e., the follower). e leader is set to track a given trajectory, and the follower continues tracking the preceding vehicle with desired spacing and consistent speed. Compared with the CAV platoon, the virtual coupling control system has the same platoon concept due to the longitudinal movement of trains through the rail. e preceding train tracks the predefined speed profile and the following trains keep maintaining the minimum safe spacing and consistent speed. Introduction ere are effective and available methods such as model predictive control [15] and feedback control [16] in linear and nonlinear CAV platoon control problems. ese methods can maintain platoon cohesion. ese methods have brought some inspiration to virtual coupling controller design. Introduction Many existing kinds of research realize adaptive control through neural networks [17][18][19]. Neural networks require relatively less information about the dynamics of the system. It also has been maturely proved to be effective in addressing the control problem of nonlinear systems with unknown dynamics. Moreover, it has been widely used to propose control for various nonlinear systems. Many existing studies are dedicated to combining control algorithms such as MPC and deep learning. Deep learning and MPC use their advantages to compensate for their shortcomings to achieve better control. e research results also prove that the control performance can be improved by adopting such a method. Wang et al. [20] proposed a deep learning-based model predictive control to model and control the continuous stirred-tank reactor system. e convergence and stability of this control method are analyzed and show better performance in modeling, tracking, and antidisturbance. Zhang et al. [21] use a recurrent neural network as the prediction model in model predictive control to control multiple unmanned quadrotor formation flights. A recurrent neural network (RNN) is used to separately model the two subsystems in quadrotor flight. Introduction e system model established through deep learning achieves accurate control. A collision avoidance control method was proposed in [22]. rough deep learning technology and an MPC controller, the automatic driving of vehicles was realized under the premise of considering maneuverability, vehicle dynamics, and traffic rules. ere are also some theoretical analyses on the combination and application of MPC and deep learning [23,24]. However, most of the existing work is to improve the control accuracy as possible under the premise that the control target is known. In virtual coupling, it is also important to set the control target of the following train based on precise predictions of the preceding train. Introduction Based on the previous research, we proposed an LSTM-based model predictive control method. Model predictive control is used as the control architecture, and LSTM is used to predict control target in the following train to achieve more accurate tracking to achieve the stability of the train convoy. Our main contributions are as follows: Introduction (1) An MPC control framework is presented for the following train in the virtual coupling, according to the metro infrastructures and their communication architectures. e preceding train continuously sends status information and control information to the following train. Based on the control architecture, the LSTM-based model predictive control method is proposed to make successive trains drive while keeping a desired stable distance. Introduction (2) LSTM neural network is used to predict the preceding train state and serve as the control target of the following train. More accurate control targets improve the stability of the control. Simulations are conducted, and the traditional prediction method is compared with the method proposed in this paper. A section of one metro line in Chengdu is used as the background to verify the validity of the method. Introduction (3) e following train dynamics are modeled by deep learning. Conventional controlled objects are established by formulas, which cannot entirely reflect the actual dynamics characteristics of the train. rough deep learning, a dynamics model closer to the actual train is established using a large amount of historical data, which can better reflect the accuracy and practicability of the control algorithm. e rest of this paper is organized as follows. In Section 2, the problem of virtual coupling train operations is formulated. Section 3 presents the entire MPC methodology. Section 4 explains the design of the train dynamics model by LSTM networks and the overall control structure. Section 5 presents different tests, simulations, and results. Finally, the conclusions are drawn in Section 6. Communication Structure of Trains in Virtual Coupling. Wireless communications and distributed computing have promoted the development of vehicle-monitoring systems to reduce railway system maintenance and inspection requirements while maintaining safety and reliability [25]. e typical virtual coupling communication framework is shown in Figure 1. Centralized traffic control (CTC) directs the train convoy operation. CTC generates a route request command according to the train's operation plan and sends it to the interlocking system. e interlocking system ensures that the train route is safe and useable by controlling the wayside infrastructure. After a route is set, the interlocking sends the route information to the radio block center (RBC). e RBC calculates the train movement authorization (MA). An MA is a succession of railway sections in which a train can safely operate. During train operation, continuous radio communication exchanges train control information between trains and wayside equipment [26]. Communication Structure of Trains in Virtual Coupling. In the traditional train control architecture, the following train passively follows the preceding train through the coupler force control and maintains a stable running state with the preceding train. In virtual coupling, trains are supposed to move together, similar to physical coupling. e following train can achieve a comparable control effect to the coupler through active control. e control strategies for the preceding train and the following train are different. e preceding train tracks the desired speed profile of the MA area. e following train tracks the speed of the preceding train while maintaining a stable distance. Virtual coupling entails convoys of trains linked via vehicle-to-vehicle communication to synchronize the speed with the train ahead to maintain a safety margin in between. In the virtual coupling system, vehicle-to-vehicle communication becomes essential to maximize the probability of message delivery compared to train-to-track communication only (i e., fully infrastructure-based communication). Virtual coupling requires extremely low reaction times and, hence, latency to synchronize multivehicle behaviors. e train control system controls the train speed based on the target speed curve. e system uses various control algorithms to adjust the train speed to make it as consistent as possible with the target speed in the target speed curve. A typical train speed curve and target speed curve are shown in Figure 2. e greatest recommended speed (GRS) is a speed curve calculated by the train control system based on the current line speed limit, used to prevent the train from overspeeding. e train operation process can be divided into three phases: traction phase, cruise phase, and braking phase. e control algorithm designed in this paper aims to control the following train in the cruise phase. Dynamics Model of Virtual Coupling Trains. First, we consider the dynamic model of a single train. e external forces that a train is subject to include tractive or braking forces and additional operational resistances. e basic equation of train movement can be described by the following: Dynamics Model of Virtual Coupling where m is the train mass. s i and v i are the train position and speed at the current instant i, respectively. u i is the external tractive or braking force at the current instant i. r(v i ) is the basic operational resistance, generally described by the Davis Dynamics Model of Virtual Coupling . a, b, and c are the empirical coefficients accounting for the mass resistance, mechanical resistance, and air resistance, respectively. mg sin(θ i ) is one kind of operational resistance caused by gravity, where g is the gravitational acceleration and θ(x i ) is the angle between the rail slope and the horizontal reference line. Dynamics Model of Virtual Coupling Under the actuation of external forces on a train, speed series v i depicts train movements. e running distance can be described by the following: Dynamics Model of Virtual Coupling where Δt is the time step between instants i + 1 and i. For a virtual coupling train control system, the state of the train can be defined as x � (s, v, a) T , where s, v, a represent the position, speed, and acceleration, respectively. e control input of the train can be expressed as u. erefore, equations (1)-(3) can be written compactly as follows: Dynamics Model of Virtual Coupling where i denotes the time step. en, to investigate the virtual coupling train control system control problem, we consider a virtual coupling train control system composed of two trains moving along a railway line. e preceding train sends state information (e g., position, velocity. and acceleration) to the following train. e preceding train circulates at a velocity v l t , and the following train circulates at v f t . e superscript denotes the train (l for the leader and f for the follower). e subscript denotes the time. e distance between trains is calculated by means of the following: Wireless Communications and Mobile Computing where L is the safety margin. Wireless Communications and Mobile Computing In the designed virtual coupling train control system, our control objective is to maintain the speed of the preceding train and the following train consistently while maintaining a safe distance (safe margin). If the following train has a location tracking error of e s , we can express the control objective of the following train as follows: Model Predictive Control Construction We consider a decentralized virtual coupling control with two trains, one for the front or preceding train and the other for the following train. We propose a model predictive control approach for the following train. e controller is nonlinear, and the constraints are explicitly handled. Model Predictive Control Construction Model predictive control is a control algorithm that relies on the iterative solution of an optimal control problem. e control input is calculated at each sampling time based on the predicted state [28,29]. One of the advantages of MPC is that the resulting operating strategy respects all the system and problem constraints. In this paper, an MPC feedback control system is designed for the following train in Figure 3. Design of the MPC. For the formulation of the MPC, a prediction horizon [t, t + N p ] is considered at time t. According to the receding horizon principle, at each time, the MPC solver computes the optimal control u � u t , u t+1 , . . . , u t+N p . e first input is applied to the control system before the next time step. At the next time step t + 1, a new optimization problem is raised based on a new state measurement [30]. We express the control optimization problem as follows: Design of the MPC. where l is the cost function and N p is the prediction horizon. We discuss the setting of the cost function l in the next section. en, the controller needs to find the best control input at the cost of minimizing J, subject to the following: Design of the MPC. where v lim is the line speed limit, which is set according to actual line data. a min and a max are the maximum deceleration and acceleration of the train, u min and u max are the maximum and minimum values of the control input. ese are set according to the actual performance parameters of the train. d is the distance between trains, and d min is the safe margin. We refer to the illustration of the safety margin in the Shift2Rail technical report [31], and the safety margin used is set according to the train speed and line conditions in the simulation. e notation x t+k|t represents the state vector at time t + k, predicted at time t. In the designed control system, the optimal state and control input obtained are as follows: Design of the MPC. For closed-loop control, we apply the first input to system (9) in the time interval [t, t + 1). Design of the MPC. In the next step, a new optimal problem based on a new state measurement is solved over a shifted horizon, yielding a moving receding horizon control strategy with control law. Cost Function Design in the MPC Framework. e tracking capability is usually specified in terms of speed error and distance error. e consistency of speed and the maintenance of the distance between trains are issues we care about in designing control algorithms. For speed, the control objective is divided into the following three parts: Cost Function Design in the MPC Framework. (i) (A1) e speed of the train cannot exceed the current line speed limit (ii) (A2) When the preceding train is at a steady-state, the speed difference between the preceding train and the following train should be minimized (A3) When the preceding train accelerates or decelerates, the acceleration error should converge to small values For the distance between trains, the control objective is to (B1) minimize the speed difference between the preceding and the following train while maintaining a steady, safe distance between the two trains. Cost Function Design in the MPC Framework. In those subobjectives, we attempt to quantify them under the MPC framework. e subobjective (A1) is formulated as linear constraints. e subobjectives (A2) and (A3) are quantified to be cost functions. In particular, subobjective B1 is reflected in both the cost function and constraints. Together, they yield a tractable model predictive optimization problem. Cost Function Design in the MPC Framework. A 1-norm function of tracking errors is adopted as the MPC cost function in [32], and a 2-norm function is used in [33]. e former gives equal consideration to tracking errors of different degrees, while the latter tends to penalize larger errors and neglect smaller errors. Actually, the following train should only respond to sufficiently large tracking errors and should not be sensitive to tiny tracking errors. erefore, it is more reasonable to employ the 2-norm of tracking errors to quantify (A3): Cost Function Design in the MPC Framework. where a ref is the target acceleration. Similarly, when the speed of the preceding train is not much different from that of the following train. e acceleration of the preceding train does not change much. e subobjective (A2) is also defined as a 2-norm function of desired speed Cost Function Design in the MPC Framework. where v ref is the target speed. Wireless Communications and Mobile Computing For two moving trains, the positions of the preceding train and the following train can never coincide, and the difference is large. Nevertheless, the position of the preceding train is always one of the targets of the following train's tracking. erefore, the subobjective (B1) can be defined as a 1-norm function Wireless Communications and Mobile Computing where s ref is the preceding train's position. e three cost functions (13)- (15) are not combined but are set in different operating scenarios to obtain a tractable predictive optimization problem. LSTM-Based Model Predictive Control In virtual coupling, it is necessary to predict the preceding train state for the following train. e predicted state is used as the control objective of the following train, and it is also used for the optimal control of MPC. As an effective tool for mining large amounts of data, neural networks are widely used in data-driven trajectory prediction research. A long short-term memory (LSTM) neural network, a type of RNN, is more efficient than an RNN [34,35]. LSTM network can capture the characteristics of time series in a longer time span and achieve better results than RNN in traffic prediction. In this section, LSTM is used to model the dynamics of the preceding train and predict the state of the preceding train for MPC due to its superiority compared to other conventional modeling methods [36]. Train Dynamics Model. Due to the complex environment and disturbances, train dynamics are challenging to describe with formulas accurately. erefore, a deep learning modeling method is adopted to solve this problem. e LSTM network is used as one of the neural network components to obtain a more accurate preceding train dynamics model. e upper part of Figure 4 is the calculation unit of LSTM. e middle part of Figure 4 demonstrates the framework of the LSTM neural network we build to approximate the train dynamics model. e lower part of Figure 4 represents the closed-loop control process of the physical movement of a train. We use the data from train operation records for neural network training. Our developed LSTM model is a feedforward artificial neural network structured with an input layer at the bottom, stacked hidden layers, and an output layer. e LSTM network is always connected to the fully connected (FC) network in the hidden layers. e input of one neuron in the lth hidden layer is defined as x (t) l , and the output as h (t) l . e forward calculation method of the overall network at time t can be described as the following expression. e first is the calculation inside LSTM: Train Dynamics Model. en, the calculation that is output to the fully connected layer is as follows: Train Dynamics Model. where w l+1 and b l+1 , respectively, denote the neural weight matrix and bias of the l + 1-th hidden layer. If the neural network is well trained with the train operation data, we can use the neural network model to reflect the actual train's operating status. at is, the actual operation of the train can be reflected through the input and output to the neural network. Train Dynamics Model. We designed a planning-based prediction, that is, the following train predicts the future state of the preceding train under the premise that the preceding train's control input is known. e advantage of this is that the following train can more accurately know the behavior of the preceding train, avoiding the unpredictable situation of the train in front, such as emergency braking due to particular circumstances. A mapping function is established from the current train state and input control commands to the next state through the LSTM network. Control Structure Based on LSTM. e composite control structure based on LSTM and MPC is proposed in Figure 5 for the following train. e control structure consists of three main parts: the state prediction model based on LSTM, the MPC framework, and the train dynamics model. Control Structure Based on LSTM. For the following train, at each time horizon, the control input u is optimally determined by comparing the following train state and the reference state. e LSTM prediction model obtains the reference state. e preceding train state is the input of the LSTM prediction model. Based on that, the following train state is obtained by the dynamics model. Meanwhile, the next time horizon starts and the train state and reference state are updated. e whole process is online iterative until the following train state reaches the reference. Test Environment. We record the detailed train operation data of the Chengdu Metro Line 8. e field data are collected from the onboard computers. ese data are used for training and testing the accuracy of the trained networks. In addition, we established the dynamic model of the following train as the controlled object of the control algorithm through deep learning in advance. Another state prediction model of the preceding train is also generated through deep learning as a comparison. e difference is that the prediction of the preceding train state does not require the control input of the preceding train. We trained the dynamics model of the preceding train under two operating scenarios. In scenario 1, the train operation is subject to the speed limit of the curve and then accelerates to a normal operating speed with small fluctuations. In scenario 2, the train adjusts its speed before entering the curve. Training the Neural Network Model. is study adopts the backpropagation algorithm with Adam. Set the loss function of the neural network to MSE. We adjust the number of layers and nodes of the neural network to reduce the loss function value after training. Training the Neural Network Model. To evaluate the accuracy and performance of the model obtained by deep learning, we use field data to test the model accuracy. Figure 6(a) demonstrates the field data and the train velocities and positions predicted by the LSTM network, corresponding to operating scenario 1 in the model training experiments. e LSTM network achieves great predictive performance. e position and velocity curves predicted by the deep neural network are very close to the field data. e results by operating scenario 2 in Figure 6(b) also obtained the same conclusion. At the same time, we separately recorded the acceleration calculation error of the dynamics model, the predicted position, and the velocity error in Figure 7. e average error of acceleration prediction does not exceed 0.02, and the average error of velocity prediction does not exceed 0.5. e position error increases with time, and the cumulative error increases, approaching 4. Verifying these data demonstrates its e train convoy is formed by two trains. e initial conditions include that the initial gap between tracking trains is 20 m and the tracking trains have the same initial speed. e communication delay is not considered. In the simulations, we add the established train dynamic model to the control algorithm and use model predictive control to simulate the operation control of the following train in the virtual coupling during the cruise phase. In addition, in order to verify the robustness of the control algorithm, Gaussian white noise is added as input interference in the experiment. e performance of the proposed LSTM-Based MPC algorithm is illustrated in two aspects in the simulation, including the speed of the trains and the distance between trains. Figure 8 shows the simulation results under the two scenarios. Figure 8(a) corresponds to the speed profile of virtually coupled trains in scene 1, Figure 8(b) corresponds to scene 2, and Figure 8(c) shows the distance changes between trains in two scenarios. From the figure, the following train can track the speed of the preceding train with a small margin of error. e maximum speed difference between the two trains appears in scene 2, reaching 0.24 m/s. Benefiting from accurate speed tracking and maintenance, the distance between the two trains varies within a tiny range and always remains within the set safety margin (10 m). Influence of the Length of the Prediction Horizon. Several simulations were also run to study the influence of different prediction horizons on control performance. Simulation is carried out in both operating scenarios, and we changed the prediction horizon N p from 5 to 15. As expected, the computation time increases when the prediction horizon increases. Another effect is that the distance between trains increases when the prediction horizon increases. We recorded and analyzed the changes in distance between trains. ese results are shown in Table 1. Comparison and Discussion. In order to further verify the performance of the proposed control algorithm, first, we compare the proposed control algorithm with the traditional train control architecture. e following train operates according to the preplanned speed curve and protection curve. e design of the controller is that the following train tracks the target's speed curve and maintains a safe distance from the preceding train. e controller does not predict the behavior of the preceding train. Denote this control method as no prediction (NP). e proposed control method in this paper is denoted as PBP (Planning-Based Prediction). e two methods were compared under the same conditions, and the experimental results were shown in Figure 9 under the two scenarios mentioned above. Comparison and Discussion. In scenario 1, where the operation scene is relatively single, both methods can achieve speed tracking and distance stability of the following train to the preceding train. Since the following train does not consider the synchronous operation with the preceding train, but as far as possible to achieve the target speed, so the distance between the two trains is less than the proposed PBP method. Nevertheless, this is not what we expect, and there will still be sharp changes in the distance. However, in scenario 2, due to frequent acceleration and deceleration and the change of the speed limit in the interval, it is difficult for the following train to accurately track the speed of the preceding train only by tracking the target speed curve, resulting in a sharp change in the distance between the two trains. In this case, the algorithm proposed in this paper has a good performance. In the two methods, the average speed difference between the following train and the preceding train is 0.075 m/s (NP) and 0.370 m/s (PBP), respectively. erefore, in the virtual coupling, it is unacceptable for the following train not to predict the state of the preceding train. en, we compared and analyzed the influence of different prediction methods on controlling the following train in the virtual coupling. We divide the prediction methods into planned-based and unplanned methods. Among them, the planning-based method is divided into the calculation of the dynamics model obtained by deep learning and the calculation of the traditional dynamics formulas. Calculation by dynamics formula is a classical conventional method adopted in articles [4,5]. We refer to the calculation method mentioned in these articles and make some changes. e unplanned method is to build a state prediction model of the preceding train through deep learning. Trajectory prediction based on LSTM neural network is also used in [37]. Compared with the Kalman filter model, this method has been verified to have higher accuracy. However, the predicted input does not include the control input of the preceding train. e deep learning prediction model (DLP), planning-based prediction model (PBP), and train dynamics formula (TDF) are the three considered prediction strategies. We set the prediction horizon to 5, comparing different prediction methods' control performances in two operating scenarios. Figure 10 presents these results. Comparison and Discussion. In Figure 10, we can see how the distance between the trains is maintained within the set safety margin (10 meters) for the two test conditions. Compared with the TDF strategies, the neural network prediction method enables the following train to achieve more accurate speed tracking. Moreover, the velocity plot shows that the PBP method can achieve better speed tracking. e following train's speed is close to the preceding train's speed and has no significant speeding. Comparison and Discussion. rough specific numerical analysis, the differences of different prediction methods are more directly reflected. In scenario 2, these differences are more prominent, which is embodied in the average speed errors of the preceding train and the following train under the three algorithms are 0.075 (PBP), 0.11 (DLP), and 0.12 (TDF), respectively. We calculate the variance of distance variation under different prediction methods are 1.56 (PBP), 1.58 (DLP), and 2.14 (TDF), respectively. e results show that, compared with the conventional TDF method, the PBP method achieves 35 % and 25 % improvement of velocity and distance, respectively. e simulation also verified a particular scenario in which the preceding train is running abnormally and brakes at a certain part of the line, the control problem of the following train. At this point, there is a clear difference between the three prediction methods. Since the control input of the preceding train is known, the (PBP) method can correctly predict the state of the preceding train due to the change in the control input when the preceding train is braking. However, due to the unknown control input of the preceding train, the (DLP) method will have a significant deviation in the predicted state in this scenario. In spit of the control input of the preceding train is known in the TDF method, the prediction accuracy is limited, and the stability of the train convoy is still difficult to maintain. Due to the constraint of the safety distance between trains, the following train will still brake and slow down under the other two prediction strategies. However, due to untimely deceleration, the distance between trains will still suddenly decrease. e result is shown in Figure 11. As can be seen from the figure, the distance between the two trains corresponding to the three control strategies decreases instantly after braking. e two planning-based prediction methods (PBP) and (TDF) achieve more accurate speed tracking in the case of emergency braking of the preceding train, thus making the distance change between the two trains relatively small. e small degree of distance change is helpful to maintain the stability of the whole train convoy. More accurate speed tracking also helps keep the convoy running after emergency braking. Experimental Results and Discussion. In this paper, model predictive control and deep learning methods are used to design the following train controller in virtual coupling to realize the stable operation of the virtual coupling convoy. First, by comparing with the traditional train control architecture, we think it is necessary to predict the operation state of the preceding train for the following train. Experimental Results and Discussion. rough simulations in two scenarios and comparing the control effects of different prediction methods, it can be proven that the method used in this paper can achieve a more stable convoy operation. In scenario 1, the maximum speed tracking error of the PBP case is 0.11, while the tracking errors of the other two methods are 0.17 and 0.20, respectively. In scenario 2, the maximum speed tracking error of the PBP method is 0.24, better than 0.31 and 0.32 in the other methods. e PBP method proposed in this paper can maintain minor distance change under the premise of achieving better speed tracking. Furthermore, the planningbased prediction method achieves more accurate speed tracking, whether a normal operation scenario or an unconventional situation of the preceding train's emergency braking. e PBP method can respond more quickly to the abnormal braking of the preceding train so that the distance between the two trains will not change sharply. e simulation proves its application effect in special scenes. e experiment provides new insight into virtual coupling. e neural network predicts the control target of the following train in the virtual coupling. Previous control studies have mainly focused on the control effect of the control algorithm under ideal conditions. However, in this paper, we use field data to train the neural network and compare the field data with the control results. e experimental results also verify the effectiveness of this method. e planning-based prediction method proposed in this paper is more effective. However, the method proposed in this paper is limited to the condition in which the line conditions do not change significantly. us, the following train can accurately predict the state of the preceding train. Experimental Results and Discussion. To some extent, this is also the limitation of neural networks. e currently feasible solution is to update the neural network model through field data in time. Conclusion is paper relies on deep learning and model predictive control (MPC) to propose a virtual coupling control solution for the following train. e solution first uses deep learning to model the dynamics of the preceding train. Subsequently, several prediction strategies were developed for model predictive control, and simulation comparisons were carried out based on one metro line. e results show that different prediction strategies have significant differences in control effects. Compared with the conventional dynamics formula, the model established by deep learning achieves better predictive performance and a better control effect. Furthermore, a planning-based prediction model more accurately predicts the preceding train's operation state. Such a prediction strategy can also deal with unexpected scenes during operation (e. g., abnormal braking). erefore, the simulation results demonstrate better performance and benefits of this prediction strategy and control architecture. Conclusion However, the control scheme proposed in this paper only considers the simplified scenario of two trains. e virtual coupling scenario of multiple trains, which is more widely used in practical applications, is not considered. More evolved studies are necessary considering essential issues such as uncertainties in time delays or even communication failure that may appear in the reception of positional information. ese aspects are the subject of ongoing research. Data Availability e experimental data used to support the findings of this study are included within the article. Conflicts of Interest e authors declare that they have no conflicts of interest.

섹션 본문 172문단 · 111,258자

(제목 없음)

1e increasing need for capacity has led the railway industry to explore new train control systems based on a concept called virtual coupling. Inspired by the platooning of autonomous vehicles, the safe operation of virtual coupling is guaranteed by a relative brake distance-based train separation method. is paper proposes a novel long short-term memory (LSTM)-based model predictive control (MPC) method for train operations. An MPC-based control design for virtual coupled train operations is presented. e LSTM is introduced to model the dynamics of the preceding train to approximate the actual train operations. With the train dynamics models, the operation trajectories of the preceding train are predicted based on planned control inputs. A study of a metro line in Chengdu was chosen to analyze the proposed control approach. e simulation results of different scenarios show that compared with the conventional MPC methods, the proposed LSTM-based MPC can reduce the speed differences and position differences of tracking trains by up to 35% and 25%, respectively.

Introduction

2e ever-increasing railway transport demand of passengers and goods has been challenging infrastructure managers to continuously expand the capacity of existing networks. erefore, the railway industry is looking into the adoption of advanced control systems. Virtual coupling is a novel train control systems concept [1]. It cancels mechanical couplers that maintain vehicles to move within the same train couple. In virtual coupling, the safe vehicle running distance is maintained by vehicle-to-vehicle communication-based train operation controls. is system uses a relative braking distance to separate trains [2]. is method can achieve a smaller train tracking distance. Without the mechanical coupler, trains can be dynamically coupled or decoupled during running. It can increase the line capacity by dynamically coupling two or more trains to form a new convoy. With virtual coupling, capacity can be flexibly adjusted on demand instead of based on a fixed schedule. erefore, it can adapt to different transportation demands [3]. Furthermore, the railway operations department can fulfill its demand of supporting optimum train operation. One of the main challenges in virtual coupling is the synchronous operations of virtually coupled trains. With synchronous operations, a smaller tracking distance between trains can be achieved. Specifically, the following train needs to maintain a stable distance while moving between stations. An unstable tracking distance between trains results in a longer arrival time of virtually coupled trains at a station.

3is decreases the transport capacity. Model predictive control is considered a feasible control method for virtual coupling. One of its advantages relies on its optimal control characteristics. Compared with road vehicles, a train is a large inertial body whose control capability is truly weaker. is results in a long time to change train operation states. In traditional train control, the train operates according to the preplanned speed curve and protection curve. However, in the virtual coupling, the distance between the preceding train and the following train needs to be kept small during the train operation. e following train cannot synchronize with the preceding train by tracking the target curve. erefore, the control target of the following train is a predicted operation state of the preceding train. In conventional control methods of virtual coupling, the approximation and prediction of the preceding train occur through the rule-based dynamics model of the train [4,5]. Unfortunately, the prediction accuracy of these methods is limited, and they are unable to achieve ideal train convoy stability.

4To solve this problem, we propose a long short-term memory (LSTM) based method to predict the operations of preceding trains. Train dynamics are modeled with an LSTM neural network trained from historical operation data. With this model, the operation of the preceding train is predicted with planned train control inputs. e prediction result is used to optimize the control of the following train in the MPC framework. e existing literature studies the operation control of virtual coupling from different points of view. Some studies focus on control strategies for virtual coupling [6]. In virtual coupling, the extremely small distance may cause unstable train operation. For this reason, some studies present control systems that keep a constant distance [7,8]. Liu et al. [9] proposed an optimal control method to maintain the speed of all trains in the virtual coupling consistent and safe distance. Ling and others [10] combined the dispatch operation in the virtual coupling scenario with the coordinated control of the train to determine the running route and the train order to optimize station operating time. Di Meo and others [11] defined a multiagent system control poly for virtual coupling. is approach aims to maintain the desired distance between trains and enrich the ERTMS/ETCS with virtual coupling without changing its working principles. Sliding mode control is used to achieve the same control effect [12]. e operation control method of virtual coupling can refer to recent developments in the field of safe platooning of autonomous vehicles and connected automated vehicle (CAV) platoons [13,14]. e CAV platoon has an interconnection containing the leading vehicle (i e., the leader) and the following vehicle (i e., the follower). e leader is set to track a given trajectory, and the follower continues tracking the preceding vehicle with desired spacing and consistent speed. Compared with the CAV platoon, the virtual coupling control system has the same platoon concept due to the longitudinal movement of trains through the rail. e preceding train tracks the predefined speed profile and the following trains keep maintaining the minimum safe spacing and consistent speed.

5ere are effective and available methods such as model predictive control [15] and feedback control [16] in linear and nonlinear CAV platoon control problems. ese methods can maintain platoon cohesion. ese methods have brought some inspiration to virtual coupling controller design.

6Many existing kinds of research realize adaptive control through neural networks [17][18][19]. Neural networks require relatively less information about the dynamics of the system. It also has been maturely proved to be effective in addressing the control problem of nonlinear systems with unknown dynamics. Moreover, it has been widely used to propose control for various nonlinear systems. Many existing studies are dedicated to combining control algorithms such as MPC and deep learning. Deep learning and MPC use their advantages to compensate for their shortcomings to achieve better control. e research results also prove that the control performance can be improved by adopting such a method. Wang et al. [20] proposed a deep learning-based model predictive control to model and control the continuous stirred-tank reactor system. e convergence and stability of this control method are analyzed and show better performance in modeling, tracking, and antidisturbance. Zhang et al. [21] use a recurrent neural network as the prediction model in model predictive control to control multiple unmanned quadrotor formation flights. A recurrent neural network (RNN) is used to separately model the two subsystems in quadrotor flight.

7e system model established through deep learning achieves accurate control. A collision avoidance control method was proposed in [22]. rough deep learning technology and an MPC controller, the automatic driving of vehicles was realized under the premise of considering maneuverability, vehicle dynamics, and traffic rules. ere are also some theoretical analyses on the combination and application of MPC and deep learning [23,24]. However, most of the existing work is to improve the control accuracy as possible under the premise that the control target is known. In virtual coupling, it is also important to set the control target of the following train based on precise predictions of the preceding train.

8Based on the previous research, we proposed an LSTM-based model predictive control method. Model predictive control is used as the control architecture, and LSTM is used to predict control target in the following train to achieve more accurate tracking to achieve the stability of the train convoy. Our main contributions are as follows:

9(1) An MPC control framework is presented for the following train in the virtual coupling, according to the metro infrastructures and their communication architectures. e preceding train continuously sends status information and control information to the following train. Based on the control architecture, the LSTM-based model predictive control method is proposed to make successive trains drive while keeping a desired stable distance.

10(2) LSTM neural network is used to predict the preceding train state and serve as the control target of the following train. More accurate control targets improve the stability of the control. Simulations are conducted, and the traditional prediction method is compared with the method proposed in this paper. A section of one metro line in Chengdu is used as the background to verify the validity of the method.

11(3) e following train dynamics are modeled by deep learning. Conventional controlled objects are established by formulas, which cannot entirely reflect the actual dynamics characteristics of the train. rough deep learning, a dynamics model closer to the actual train is established using a large amount of historical data, which can better reflect the accuracy and practicability of the control algorithm. e rest of this paper is organized as follows. In Section 2, the problem of virtual coupling train operations is formulated. Section 3 presents the entire MPC methodology. Section 4 explains the design of the train dynamics model by LSTM networks and the overall control structure. Section 5 presents different tests, simulations, and results. Finally, the conclusions are drawn in Section 6.

Communication Structure of Trains in Virtual Coupling.

12Wireless communications and distributed computing have promoted the development of vehicle-monitoring systems to reduce railway system maintenance and inspection requirements while maintaining safety and reliability [25]. e typical virtual coupling communication framework is shown in Figure 1. Centralized traffic control (CTC) directs the train convoy operation. CTC generates a route request command according to the train's operation plan and sends it to the interlocking system. e interlocking system ensures that the train route is safe and useable by controlling the wayside infrastructure. After a route is set, the interlocking sends the route information to the radio block center (RBC). e RBC calculates the train movement authorization (MA). An MA is a succession of railway sections in which a train can safely operate. During train operation, continuous radio communication exchanges train control information between trains and wayside equipment [26].

13In the traditional train control architecture, the following train passively follows the preceding train through the coupler force control and maintains a stable running state with the preceding train. In virtual coupling, trains are supposed to move together, similar to physical coupling. e following train can achieve a comparable control effect to the coupler through active control. e control strategies for the preceding train and the following train are different. e preceding train tracks the desired speed profile of the MA area. e following train tracks the speed of the preceding train while maintaining a stable distance. Virtual coupling entails convoys of trains linked via vehicle-to-vehicle communication to synchronize the speed with the train ahead to maintain a safety margin in between. In the virtual coupling system, vehicle-to-vehicle communication becomes essential to maximize the probability of message delivery compared to train-to-track communication only (i e., fully infrastructure-based communication). Virtual coupling requires extremely low reaction times and, hence, latency to synchronize multivehicle behaviors. e train control system controls the train speed based on the target speed curve. e system uses various control algorithms to adjust the train speed to make it as consistent as possible with the target speed in the target speed curve. A typical train speed curve and target speed curve are shown in Figure 2. e greatest recommended speed (GRS) is a speed curve calculated by the train control system based on the current line speed limit, used to prevent the train from overspeeding. e train operation process can be divided into three phases: traction phase, cruise phase, and braking phase. e control algorithm designed in this paper aims to control the following train in the cruise phase.

Dynamics Model of Virtual Coupling

14Trains. First, we consider the dynamic model of a single train. e external forces that a train is subject to include tractive or braking forces and additional operational resistances. e basic equation of train movement can be described by the following:

15where m is the train mass. s i and v i are the train position and speed at the current instant i, respectively. u i is the external tractive or braking force at the current instant i. r(v i ) is the basic operational resistance, generally described by the Davis

16. a, b, and c are the empirical coefficients accounting for the mass resistance, mechanical resistance, and air resistance, respectively. mg sin(θ i ) is one kind of operational resistance caused by gravity, where g is the gravitational acceleration and θ(x i ) is the angle between the rail slope and the horizontal reference line.

17Under the actuation of external forces on a train, speed series v i depicts train movements. e running distance can be described by the following:

18where Δt is the time step between instants i + 1 and i. For a virtual coupling train control system, the state of the train can be defined as x � (s, v, a) T , where s, v, a represent the position, speed, and acceleration, respectively. e control input of the train can be expressed as u. erefore, equations (1)-(3) can be written compactly as follows:

19where i denotes the time step. en, to investigate the virtual coupling train control system control problem, we consider a virtual coupling train control system composed of two trains moving along a railway line. e preceding train sends state information (e g., position, velocity. and acceleration) to the following train. e preceding train circulates at a velocity v l t , and the following train circulates at v f t . e superscript denotes the train (l for the leader and f for the follower). e subscript denotes the time. e distance between trains is calculated by means of the following:

Wireless Communications and Mobile Computing

20where L is the safety margin.

21In the designed virtual coupling train control system, our control objective is to maintain the speed of the preceding train and the following train consistently while maintaining a safe distance (safe margin). If the following train has a location tracking error of e s , we can express the control objective of the following train as follows:

Model Predictive Control Construction

22We consider a decentralized virtual coupling control with two trains, one for the front or preceding train and the other for the following train. We propose a model predictive control approach for the following train. e controller is nonlinear, and the constraints are explicitly handled.

23Model predictive control is a control algorithm that relies on the iterative solution of an optimal control problem. e control input is calculated at each sampling time based on the predicted state [28,29]. One of the advantages of MPC is that the resulting operating strategy respects all the system and problem constraints. In this paper, an MPC feedback control system is designed for the following train in Figure 3.

Design of the MPC.

24For the formulation of the MPC, a prediction horizon [t, t + N p ] is considered at time t. According to the receding horizon principle, at each time, the MPC solver computes the optimal control u � u t , u t+1 , . . . , u t+N p . e first input is applied to the control system before the next time step. At the next time step t + 1, a new optimization problem is raised based on a new state measurement [30]. We express the control optimization problem as follows:

25where l is the cost function and N p is the prediction horizon. We discuss the setting of the cost function l in the next section. en, the controller needs to find the best control input at the cost of minimizing J, subject to the following:

26where v lim is the line speed limit, which is set according to actual line data. a min and a max are the maximum deceleration and acceleration of the train, u min and u max are the maximum and minimum values of the control input. ese are set according to the actual performance parameters of the train. d is the distance between trains, and d min is the safe margin. We refer to the illustration of the safety margin in the Shift2Rail technical report [31], and the safety margin used is set according to the train speed and line conditions in the simulation. e notation x t+k|t represents the state vector at time t + k, predicted at time t. In the designed control system, the optimal state and control input obtained are as follows:

27For closed-loop control, we apply the first input to system (9) in the time interval [t, t + 1).

28In the next step, a new optimal problem based on a new state measurement is solved over a shifted horizon, yielding a moving receding horizon control strategy with control law.

Cost Function Design in the MPC Framework.

29e tracking capability is usually specified in terms of speed error and distance error. e consistency of speed and the maintenance of the distance between trains are issues we care about in designing control algorithms. For speed, the control objective is divided into the following three parts:

30(i) (A1) e speed of the train cannot exceed the current line speed limit (ii) (A2) When the preceding train is at a steady-state, the speed difference between the preceding train and the following train should be minimized (A3) When the preceding train accelerates or decelerates, the acceleration error should converge to small values For the distance between trains, the control objective is to (B1) minimize the speed difference between the preceding and the following train while maintaining a steady, safe distance between the two trains.

31In those subobjectives, we attempt to quantify them under the MPC framework. e subobjective (A1) is formulated as linear constraints. e subobjectives (A2) and (A3) are quantified to be cost functions. In particular, subobjective B1 is reflected in both the cost function and constraints. Together, they yield a tractable model predictive optimization problem.

32A 1-norm function of tracking errors is adopted as the MPC cost function in [32], and a 2-norm function is used in [33]. e former gives equal consideration to tracking errors of different degrees, while the latter tends to penalize larger errors and neglect smaller errors. Actually, the following train should only respond to sufficiently large tracking errors and should not be sensitive to tiny tracking errors. erefore, it is more reasonable to employ the 2-norm of tracking errors to quantify (A3):

33where a ref is the target acceleration. Similarly, when the speed of the preceding train is not much different from that of the following train. e acceleration of the preceding train does not change much. e subobjective (A2) is also defined as a 2-norm function of desired speed

34where v ref is the target speed.

Wireless Communications and Mobile Computing

35For two moving trains, the positions of the preceding train and the following train can never coincide, and the difference is large. Nevertheless, the position of the preceding train is always one of the targets of the following train's tracking. erefore, the subobjective (B1) can be defined as a 1-norm function

36where s ref is the preceding train's position. e three cost functions (13)- (15) are not combined but are set in different operating scenarios to obtain a tractable predictive optimization problem.

LSTM-Based Model Predictive Control

37In virtual coupling, it is necessary to predict the preceding train state for the following train. e predicted state is used as the control objective of the following train, and it is also used for the optimal control of MPC. As an effective tool for mining large amounts of data, neural networks are widely used in data-driven trajectory prediction research. A long short-term memory (LSTM) neural network, a type of RNN, is more efficient than an RNN [34,35]. LSTM network can capture the characteristics of time series in a longer time span and achieve better results than RNN in traffic prediction. In this section, LSTM is used to model the dynamics of the preceding train and predict the state of the preceding train for MPC due to its superiority compared to other conventional modeling methods [36].

Train Dynamics Model.

38Due to the complex environment and disturbances, train dynamics are challenging to describe with formulas accurately. erefore, a deep learning modeling method is adopted to solve this problem. e LSTM network is used as one of the neural network components to obtain a more accurate preceding train dynamics model. e upper part of Figure 4 is the calculation unit of LSTM. e middle part of Figure 4 demonstrates the framework of the LSTM neural network we build to approximate the train dynamics model. e lower part of Figure 4 represents the closed-loop control process of the physical movement of a train. We use the data from train operation records for neural network training. Our developed LSTM model is a feedforward artificial neural network structured with an input layer at the bottom, stacked hidden layers, and an output layer. e LSTM network is always connected to the fully connected (FC) network in the hidden layers. e input of one neuron in the lth hidden layer is defined as x (t) l , and the output as h (t) l . e forward calculation method of the overall network at time t can be described as the following expression. e first is the calculation inside LSTM:

39en, the calculation that is output to the fully connected layer is as follows:

40where w l+1 and b l+1 , respectively, denote the neural weight matrix and bias of the l + 1-th hidden layer. If the neural network is well trained with the train operation data, we can use the neural network model to reflect the actual train's operating status. at is, the actual operation of the train can be reflected through the input and output to the neural network.

41We designed a planning-based prediction, that is, the following train predicts the future state of the preceding train under the premise that the preceding train's control input is known. e advantage of this is that the following train can more accurately know the behavior of the preceding train, avoiding the unpredictable situation of the train in front, such as emergency braking due to particular circumstances. A mapping function is established from the current train state and input control commands to the next state through the LSTM network.

Control Structure Based on LSTM.

42e composite control structure based on LSTM and MPC is proposed in Figure 5 for the following train. e control structure consists of three main parts: the state prediction model based on LSTM, the MPC framework, and the train dynamics model.

43For the following train, at each time horizon, the control input u is optimally determined by comparing the following train state and the reference state. e LSTM prediction model obtains the reference state. e preceding train state is the input of the LSTM prediction model. Based on that, the following train state is obtained by the dynamics model. Meanwhile, the next time horizon starts and the train state and reference state are updated. e whole process is online iterative until the following train state reaches the reference.

Test Environment.

44We record the detailed train operation data of the Chengdu Metro Line 8. e field data are collected from the onboard computers. ese data are used for training and testing the accuracy of the trained networks. In addition, we established the dynamic model of the following train as the controlled object of the control algorithm through deep learning in advance. Another state prediction model of the preceding train is also generated through deep learning as a comparison. e difference is that the prediction of the preceding train state does not require the control input of the preceding train. We trained the dynamics model of the preceding train under two operating scenarios. In scenario 1, the train operation is subject to the speed limit of the curve and then accelerates to a normal operating speed with small fluctuations. In scenario 2, the train adjusts its speed before entering the curve.

Training the Neural Network Model.

45is study adopts the backpropagation algorithm with Adam. Set the loss function of the neural network to MSE. We adjust the number of layers and nodes of the neural network to reduce the loss function value after training.

46To evaluate the accuracy and performance of the model obtained by deep learning, we use field data to test the model accuracy. Figure 6(a) demonstrates the field data and the train velocities and positions predicted by the LSTM network, corresponding to operating scenario 1 in the model training experiments. e LSTM network achieves great predictive performance. e position and velocity curves predicted by the deep neural network are very close to the field data. e results by operating scenario 2 in Figure 6(b) also obtained the same conclusion. At the same time, we separately recorded the acceleration calculation error of the dynamics model, the predicted position, and the velocity error in Figure 7. e average error of acceleration prediction does not exceed 0.02, and the average error of velocity prediction does not exceed 0.5. e position error increases with time, and the cumulative error increases, approaching 4. Verifying these data demonstrates its e train convoy is formed by two trains. e initial conditions include that the initial gap between tracking trains is 20 m and the tracking trains have the same initial speed. e communication delay is not considered. In the simulations, we add the established train dynamic model to the control algorithm and use model predictive control to simulate the operation control of the following train in the virtual coupling during the cruise phase. In addition, in order to verify the robustness of the control algorithm, Gaussian white noise is added as input interference in the experiment. e performance of the proposed LSTM-Based MPC algorithm is illustrated in two aspects in the simulation, including the speed of the trains and the distance between trains. Figure 8 shows the simulation results under the two scenarios. Figure 8(a) corresponds to the speed profile of virtually coupled trains in scene 1, Figure 8(b) corresponds to scene 2, and Figure 8(c) shows the distance changes between trains in two scenarios. From the figure, the following train can track the speed of the preceding train with a small margin of error. e maximum speed difference between the two trains appears in scene 2, reaching 0.24 m/s. Benefiting from accurate speed tracking and maintenance, the distance between the two trains varies within a tiny range and always remains within the set safety margin (10 m).

Influence of the Length of the Prediction Horizon.

47Several simulations were also run to study the influence of different prediction horizons on control performance. Simulation is carried out in both operating scenarios, and we changed the prediction horizon N p from 5 to 15. As expected, the computation time increases when the prediction horizon increases. Another effect is that the distance between trains increases when the prediction horizon increases. We recorded and analyzed the changes in distance between trains. ese results are shown in Table 1.

Comparison and Discussion.

48In order to further verify the performance of the proposed control algorithm, first, we compare the proposed control algorithm with the traditional train control architecture. e following train operates according to the preplanned speed curve and protection curve. e design of the controller is that the following train tracks the target's speed curve and maintains a safe distance from the preceding train. e controller does not predict the behavior of the preceding train. Denote this control method as no prediction (NP). e proposed control method in this paper is denoted as PBP (Planning-Based Prediction). e two methods were compared under the same conditions, and the experimental results were shown in Figure 9 under the two scenarios mentioned above.

49In scenario 1, where the operation scene is relatively single, both methods can achieve speed tracking and distance stability of the following train to the preceding train. Since the following train does not consider the synchronous operation with the preceding train, but as far as possible to achieve the target speed, so the distance between the two trains is less than the proposed PBP method. Nevertheless, this is not what we expect, and there will still be sharp changes in the distance. However, in scenario 2, due to frequent acceleration and deceleration and the change of the speed limit in the interval, it is difficult for the following train to accurately track the speed of the preceding train only by tracking the target speed curve, resulting in a sharp change in the distance between the two trains. In this case, the algorithm proposed in this paper has a good performance. In the two methods, the average speed difference between the following train and the preceding train is 0.075 m/s (NP) and 0.370 m/s (PBP), respectively. erefore, in the virtual coupling, it is unacceptable for the following train not to predict the state of the preceding train. en, we compared and analyzed the influence of different prediction methods on controlling the following train in the virtual coupling. We divide the prediction methods into planned-based and unplanned methods. Among them, the planning-based method is divided into the calculation of the dynamics model obtained by deep learning and the calculation of the traditional dynamics formulas. Calculation by dynamics formula is a classical conventional method adopted in articles [4,5]. We refer to the calculation method mentioned in these articles and make some changes. e unplanned method is to build a state prediction model of the preceding train through deep learning. Trajectory prediction based on LSTM neural network is also used in [37]. Compared with the Kalman filter model, this method has been verified to have higher accuracy. However, the predicted input does not include the control input of the preceding train. e deep learning prediction model (DLP), planning-based prediction model (PBP), and train dynamics formula (TDF) are the three considered prediction strategies. We set the prediction horizon to 5, comparing different prediction methods' control performances in two operating scenarios. Figure 10 presents these results.

50In Figure 10, we can see how the distance between the trains is maintained within the set safety margin (10 meters) for the two test conditions. Compared with the TDF strategies, the neural network prediction method enables the following train to achieve more accurate speed tracking. Moreover, the velocity plot shows that the PBP method can achieve better speed tracking. e following train's speed is close to the preceding train's speed and has no significant speeding.

51rough specific numerical analysis, the differences of different prediction methods are more directly reflected. In scenario 2, these differences are more prominent, which is embodied in the average speed errors of the preceding train and the following train under the three algorithms are 0.075 (PBP), 0.11 (DLP), and 0.12 (TDF), respectively. We calculate the variance of distance variation under different prediction methods are 1.56 (PBP), 1.58 (DLP), and 2.14 (TDF), respectively. e results show that, compared with the conventional TDF method, the PBP method achieves 35 % and 25 % improvement of velocity and distance, respectively. e simulation also verified a particular scenario in which the preceding train is running abnormally and brakes at a certain part of the line, the control problem of the following train. At this point, there is a clear difference between the three prediction methods. Since the control input of the preceding train is known, the (PBP) method can correctly predict the state of the preceding train due to the change in the control input when the preceding train is braking. However, due to the unknown control input of the preceding train, the (DLP) method will have a significant deviation in the predicted state in this scenario. In spit of the control input of the preceding train is known in the TDF method, the prediction accuracy is limited, and the stability of the train convoy is still difficult to maintain. Due to the constraint of the safety distance between trains, the following train will still brake and slow down under the other two prediction strategies. However, due to untimely deceleration, the distance between trains will still suddenly decrease. e result is shown in Figure 11. As can be seen from the figure, the distance between the two trains corresponding to the three control strategies decreases instantly after braking. e two planning-based prediction methods (PBP) and (TDF) achieve more accurate speed tracking in the case of emergency braking of the preceding train, thus making the distance change between the two trains relatively small. e small degree of distance change is helpful to maintain the stability of the whole train convoy. More accurate speed tracking also helps keep the convoy running after emergency braking.

Experimental Results and Discussion.

52In this paper, model predictive control and deep learning methods are used to design the following train controller in virtual coupling to realize the stable operation of the virtual coupling convoy. First, by comparing with the traditional train control architecture, we think it is necessary to predict the operation state of the preceding train for the following train.

53rough simulations in two scenarios and comparing the control effects of different prediction methods, it can be proven that the method used in this paper can achieve a more stable convoy operation. In scenario 1, the maximum speed tracking error of the PBP case is 0.11, while the tracking errors of the other two methods are 0.17 and 0.20, respectively. In scenario 2, the maximum speed tracking error of the PBP method is 0.24, better than 0.31 and 0.32 in the other methods. e PBP method proposed in this paper can maintain minor distance change under the premise of achieving better speed tracking. Furthermore, the planningbased prediction method achieves more accurate speed tracking, whether a normal operation scenario or an unconventional situation of the preceding train's emergency braking. e PBP method can respond more quickly to the abnormal braking of the preceding train so that the distance between the two trains will not change sharply. e simulation proves its application effect in special scenes. e experiment provides new insight into virtual coupling. e neural network predicts the control target of the following train in the virtual coupling. Previous control studies have mainly focused on the control effect of the control algorithm under ideal conditions. However, in this paper, we use field data to train the neural network and compare the field data with the control results. e experimental results also verify the effectiveness of this method. e planning-based prediction method proposed in this paper is more effective. However, the method proposed in this paper is limited to the condition in which the line conditions do not change significantly. us, the following train can accurately predict the state of the preceding train.

54To some extent, this is also the limitation of neural networks. e currently feasible solution is to update the neural network model through field data in time.

Conclusion

55is paper relies on deep learning and model predictive control (MPC) to propose a virtual coupling control solution for the following train. e solution first uses deep learning to model the dynamics of the preceding train. Subsequently, several prediction strategies were developed for model predictive control, and simulation comparisons were carried out based on one metro line. e results show that different prediction strategies have significant differences in control effects. Compared with the conventional dynamics formula, the model established by deep learning achieves better predictive performance and a better control effect. Furthermore, a planning-based prediction model more accurately predicts the preceding train's operation state. Such a prediction strategy can also deal with unexpected scenes during operation (e. g., abnormal braking). erefore, the simulation results demonstrate better performance and benefits of this prediction strategy and control architecture.

56However, the control scheme proposed in this paper only considers the simplified scenario of two trains. e virtual coupling scenario of multiple trains, which is more widely used in practical applications, is not considered. More evolved studies are necessary considering essential issues such as uncertainties in time delays or even communication failure that may appear in the reception of positional information. ese aspects are the subject of ongoing research.

Data Availability

57e experimental data used to support the findings of this study are included within the article.

Conflicts of Interest

58e authors declare that they have no conflicts of interest.

Introduction

59e ever-increasing railway transport demand of passengers and goods has been challenging infrastructure managers to continuously expand the capacity of existing networks. erefore, the railway industry is looking into the adoption of advanced control systems. Virtual coupling is a novel train control systems concept [1]. It cancels mechanical couplers that maintain vehicles to move within the same train couple. In virtual coupling, the safe vehicle running distance is maintained by vehicle-to-vehicle communication-based train operation controls. is system uses a relative braking distance to separate trains [2]. is method can achieve a smaller train tracking distance. Without the mechanical coupler, trains can be dynamically coupled or decoupled during running. It can increase the line capacity by dynamically coupling two or more trains to form a new convoy. With virtual coupling, capacity can be flexibly adjusted on demand instead of based on a fixed schedule. erefore, it can adapt to different transportation demands [3]. Furthermore, the railway operations department can fulfill its demand of supporting optimum train operation. One of the main challenges in virtual coupling is the synchronous operations of virtually coupled trains. With synchronous operations, a smaller tracking distance between trains can be achieved. Specifically, the following train needs to maintain a stable distance while moving between stations. An unstable tracking distance between trains results in a longer arrival time of virtually coupled trains at a station.

60is decreases the transport capacity. Model predictive control is considered a feasible control method for virtual coupling. One of its advantages relies on its optimal control characteristics. Compared with road vehicles, a train is a large inertial body whose control capability is truly weaker. is results in a long time to change train operation states. In traditional train control, the train operates according to the preplanned speed curve and protection curve. However, in the virtual coupling, the distance between the preceding train and the following train needs to be kept small during the train operation. e following train cannot synchronize with the preceding train by tracking the target curve. erefore, the control target of the following train is a predicted operation state of the preceding train. In conventional control methods of virtual coupling, the approximation and prediction of the preceding train occur through the rule-based dynamics model of the train [4,5]. Unfortunately, the prediction accuracy of these methods is limited, and they are unable to achieve ideal train convoy stability.

61To solve this problem, we propose a long short-term memory (LSTM) based method to predict the operations of preceding trains. Train dynamics are modeled with an LSTM neural network trained from historical operation data. With this model, the operation of the preceding train is predicted with planned train control inputs. e prediction result is used to optimize the control of the following train in the MPC framework. e existing literature studies the operation control of virtual coupling from different points of view. Some studies focus on control strategies for virtual coupling [6]. In virtual coupling, the extremely small distance may cause unstable train operation. For this reason, some studies present control systems that keep a constant distance [7,8]. Liu et al. [9] proposed an optimal control method to maintain the speed of all trains in the virtual coupling consistent and safe distance. Ling and others [10] combined the dispatch operation in the virtual coupling scenario with the coordinated control of the train to determine the running route and the train order to optimize station operating time. Di Meo and others [11] defined a multiagent system control poly for virtual coupling. is approach aims to maintain the desired distance between trains and enrich the ERTMS/ETCS with virtual coupling without changing its working principles. Sliding mode control is used to achieve the same control effect [12]. e operation control method of virtual coupling can refer to recent developments in the field of safe platooning of autonomous vehicles and connected automated vehicle (CAV) platoons [13,14]. e CAV platoon has an interconnection containing the leading vehicle (i e., the leader) and the following vehicle (i e., the follower). e leader is set to track a given trajectory, and the follower continues tracking the preceding vehicle with desired spacing and consistent speed. Compared with the CAV platoon, the virtual coupling control system has the same platoon concept due to the longitudinal movement of trains through the rail. e preceding train tracks the predefined speed profile and the following trains keep maintaining the minimum safe spacing and consistent speed.

62ere are effective and available methods such as model predictive control [15] and feedback control [16] in linear and nonlinear CAV platoon control problems. ese methods can maintain platoon cohesion. ese methods have brought some inspiration to virtual coupling controller design.

63Many existing kinds of research realize adaptive control through neural networks [17][18][19]. Neural networks require relatively less information about the dynamics of the system. It also has been maturely proved to be effective in addressing the control problem of nonlinear systems with unknown dynamics. Moreover, it has been widely used to propose control for various nonlinear systems. Many existing studies are dedicated to combining control algorithms such as MPC and deep learning. Deep learning and MPC use their advantages to compensate for their shortcomings to achieve better control. e research results also prove that the control performance can be improved by adopting such a method. Wang et al. [20] proposed a deep learning-based model predictive control to model and control the continuous stirred-tank reactor system. e convergence and stability of this control method are analyzed and show better performance in modeling, tracking, and antidisturbance. Zhang et al. [21] use a recurrent neural network as the prediction model in model predictive control to control multiple unmanned quadrotor formation flights. A recurrent neural network (RNN) is used to separately model the two subsystems in quadrotor flight.

64e system model established through deep learning achieves accurate control. A collision avoidance control method was proposed in [22]. rough deep learning technology and an MPC controller, the automatic driving of vehicles was realized under the premise of considering maneuverability, vehicle dynamics, and traffic rules. ere are also some theoretical analyses on the combination and application of MPC and deep learning [23,24]. However, most of the existing work is to improve the control accuracy as possible under the premise that the control target is known. In virtual coupling, it is also important to set the control target of the following train based on precise predictions of the preceding train.

65Based on the previous research, we proposed an LSTM-based model predictive control method. Model predictive control is used as the control architecture, and LSTM is used to predict control target in the following train to achieve more accurate tracking to achieve the stability of the train convoy. Our main contributions are as follows:

66(1) An MPC control framework is presented for the following train in the virtual coupling, according to the metro infrastructures and their communication architectures. e preceding train continuously sends status information and control information to the following train. Based on the control architecture, the LSTM-based model predictive control method is proposed to make successive trains drive while keeping a desired stable distance.

67(2) LSTM neural network is used to predict the preceding train state and serve as the control target of the following train. More accurate control targets improve the stability of the control. Simulations are conducted, and the traditional prediction method is compared with the method proposed in this paper. A section of one metro line in Chengdu is used as the background to verify the validity of the method.

68(3) e following train dynamics are modeled by deep learning. Conventional controlled objects are established by formulas, which cannot entirely reflect the actual dynamics characteristics of the train. rough deep learning, a dynamics model closer to the actual train is established using a large amount of historical data, which can better reflect the accuracy and practicability of the control algorithm. e rest of this paper is organized as follows. In Section 2, the problem of virtual coupling train operations is formulated. Section 3 presents the entire MPC methodology. Section 4 explains the design of the train dynamics model by LSTM networks and the overall control structure. Section 5 presents different tests, simulations, and results. Finally, the conclusions are drawn in Section 6.

Communication Structure of Trains in Virtual Coupling.

69Wireless communications and distributed computing have promoted the development of vehicle-monitoring systems to reduce railway system maintenance and inspection requirements while maintaining safety and reliability [25]. e typical virtual coupling communication framework is shown in Figure 1. Centralized traffic control (CTC) directs the train convoy operation. CTC generates a route request command according to the train's operation plan and sends it to the interlocking system. e interlocking system ensures that the train route is safe and useable by controlling the wayside infrastructure. After a route is set, the interlocking sends the route information to the radio block center (RBC). e RBC calculates the train movement authorization (MA). An MA is a succession of railway sections in which a train can safely operate. During train operation, continuous radio communication exchanges train control information between trains and wayside equipment [26].

70In the traditional train control architecture, the following train passively follows the preceding train through the coupler force control and maintains a stable running state with the preceding train. In virtual coupling, trains are supposed to move together, similar to physical coupling. e following train can achieve a comparable control effect to the coupler through active control. e control strategies for the preceding train and the following train are different. e preceding train tracks the desired speed profile of the MA area. e following train tracks the speed of the preceding train while maintaining a stable distance. Virtual coupling entails convoys of trains linked via vehicle-to-vehicle communication to synchronize the speed with the train ahead to maintain a safety margin in between. In the virtual coupling system, vehicle-to-vehicle communication becomes essential to maximize the probability of message delivery compared to train-to-track communication only (i e., fully infrastructure-based communication). Virtual coupling requires extremely low reaction times and, hence, latency to synchronize multivehicle behaviors. e train control system controls the train speed based on the target speed curve. e system uses various control algorithms to adjust the train speed to make it as consistent as possible with the target speed in the target speed curve. A typical train speed curve and target speed curve are shown in Figure 2. e greatest recommended speed (GRS) is a speed curve calculated by the train control system based on the current line speed limit, used to prevent the train from overspeeding. e train operation process can be divided into three phases: traction phase, cruise phase, and braking phase. e control algorithm designed in this paper aims to control the following train in the cruise phase.

Dynamics Model of Virtual Coupling

71Trains. First, we consider the dynamic model of a single train. e external forces that a train is subject to include tractive or braking forces and additional operational resistances. e basic equation of train movement can be described by the following:

72where m is the train mass. s i and v i are the train position and speed at the current instant i, respectively. u i is the external tractive or braking force at the current instant i. r(v i ) is the basic operational resistance, generally described by the Davis

73. a, b, and c are the empirical coefficients accounting for the mass resistance, mechanical resistance, and air resistance, respectively. mg sin(θ i ) is one kind of operational resistance caused by gravity, where g is the gravitational acceleration and θ(x i ) is the angle between the rail slope and the horizontal reference line.

74Under the actuation of external forces on a train, speed series v i depicts train movements. e running distance can be described by the following:

75where Δt is the time step between instants i + 1 and i. For a virtual coupling train control system, the state of the train can be defined as x � (s, v, a) T , where s, v, a represent the position, speed, and acceleration, respectively. e control input of the train can be expressed as u. erefore, equations (1)-(3) can be written compactly as follows:

76where i denotes the time step. en, to investigate the virtual coupling train control system control problem, we consider a virtual coupling train control system composed of two trains moving along a railway line. e preceding train sends state information (e g., position, velocity. and acceleration) to the following train. e preceding train circulates at a velocity v l t , and the following train circulates at v f t . e superscript denotes the train (l for the leader and f for the follower). e subscript denotes the time. e distance between trains is calculated by means of the following:

Wireless Communications and Mobile Computing

77where L is the safety margin.

78In the designed virtual coupling train control system, our control objective is to maintain the speed of the preceding train and the following train consistently while maintaining a safe distance (safe margin). If the following train has a location tracking error of e s , we can express the control objective of the following train as follows:

Model Predictive Control Construction

79We consider a decentralized virtual coupling control with two trains, one for the front or preceding train and the other for the following train. We propose a model predictive control approach for the following train. e controller is nonlinear, and the constraints are explicitly handled.

80Model predictive control is a control algorithm that relies on the iterative solution of an optimal control problem. e control input is calculated at each sampling time based on the predicted state [28,29]. One of the advantages of MPC is that the resulting operating strategy respects all the system and problem constraints. In this paper, an MPC feedback control system is designed for the following train in Figure 3.

Design of the MPC.

81For the formulation of the MPC, a prediction horizon [t, t + N p ] is considered at time t. According to the receding horizon principle, at each time, the MPC solver computes the optimal control u � u t , u t+1 , . . . , u t+N p . e first input is applied to the control system before the next time step. At the next time step t + 1, a new optimization problem is raised based on a new state measurement [30]. We express the control optimization problem as follows:

82where l is the cost function and N p is the prediction horizon. We discuss the setting of the cost function l in the next section. en, the controller needs to find the best control input at the cost of minimizing J, subject to the following:

83where v lim is the line speed limit, which is set according to actual line data. a min and a max are the maximum deceleration and acceleration of the train, u min and u max are the maximum and minimum values of the control input. ese are set according to the actual performance parameters of the train. d is the distance between trains, and d min is the safe margin. We refer to the illustration of the safety margin in the Shift2Rail technical report [31], and the safety margin used is set according to the train speed and line conditions in the simulation. e notation x t+k|t represents the state vector at time t + k, predicted at time t. In the designed control system, the optimal state and control input obtained are as follows:

84For closed-loop control, we apply the first input to system (9) in the time interval [t, t + 1).

85In the next step, a new optimal problem based on a new state measurement is solved over a shifted horizon, yielding a moving receding horizon control strategy with control law.

Cost Function Design in the MPC Framework.

86e tracking capability is usually specified in terms of speed error and distance error. e consistency of speed and the maintenance of the distance between trains are issues we care about in designing control algorithms. For speed, the control objective is divided into the following three parts:

87(i) (A1) e speed of the train cannot exceed the current line speed limit (ii) (A2) When the preceding train is at a steady-state, the speed difference between the preceding train and the following train should be minimized (A3) When the preceding train accelerates or decelerates, the acceleration error should converge to small values For the distance between trains, the control objective is to (B1) minimize the speed difference between the preceding and the following train while maintaining a steady, safe distance between the two trains.

88In those subobjectives, we attempt to quantify them under the MPC framework. e subobjective (A1) is formulated as linear constraints. e subobjectives (A2) and (A3) are quantified to be cost functions. In particular, subobjective B1 is reflected in both the cost function and constraints. Together, they yield a tractable model predictive optimization problem.

89A 1-norm function of tracking errors is adopted as the MPC cost function in [32], and a 2-norm function is used in [33]. e former gives equal consideration to tracking errors of different degrees, while the latter tends to penalize larger errors and neglect smaller errors. Actually, the following train should only respond to sufficiently large tracking errors and should not be sensitive to tiny tracking errors. erefore, it is more reasonable to employ the 2-norm of tracking errors to quantify (A3):

90where a ref is the target acceleration. Similarly, when the speed of the preceding train is not much different from that of the following train. e acceleration of the preceding train does not change much. e subobjective (A2) is also defined as a 2-norm function of desired speed

91where v ref is the target speed.

Wireless Communications and Mobile Computing

92For two moving trains, the positions of the preceding train and the following train can never coincide, and the difference is large. Nevertheless, the position of the preceding train is always one of the targets of the following train's tracking. erefore, the subobjective (B1) can be defined as a 1-norm function

93where s ref is the preceding train's position. e three cost functions (13)- (15) are not combined but are set in different operating scenarios to obtain a tractable predictive optimization problem.

LSTM-Based Model Predictive Control

94In virtual coupling, it is necessary to predict the preceding train state for the following train. e predicted state is used as the control objective of the following train, and it is also used for the optimal control of MPC. As an effective tool for mining large amounts of data, neural networks are widely used in data-driven trajectory prediction research. A long short-term memory (LSTM) neural network, a type of RNN, is more efficient than an RNN [34,35]. LSTM network can capture the characteristics of time series in a longer time span and achieve better results than RNN in traffic prediction. In this section, LSTM is used to model the dynamics of the preceding train and predict the state of the preceding train for MPC due to its superiority compared to other conventional modeling methods [36].

Train Dynamics Model.

95Due to the complex environment and disturbances, train dynamics are challenging to describe with formulas accurately. erefore, a deep learning modeling method is adopted to solve this problem. e LSTM network is used as one of the neural network components to obtain a more accurate preceding train dynamics model. e upper part of Figure 4 is the calculation unit of LSTM. e middle part of Figure 4 demonstrates the framework of the LSTM neural network we build to approximate the train dynamics model. e lower part of Figure 4 represents the closed-loop control process of the physical movement of a train. We use the data from train operation records for neural network training. Our developed LSTM model is a feedforward artificial neural network structured with an input layer at the bottom, stacked hidden layers, and an output layer. e LSTM network is always connected to the fully connected (FC) network in the hidden layers. e input of one neuron in the lth hidden layer is defined as x (t) l , and the output as h (t) l . e forward calculation method of the overall network at time t can be described as the following expression. e first is the calculation inside LSTM:

96en, the calculation that is output to the fully connected layer is as follows:

97where w l+1 and b l+1 , respectively, denote the neural weight matrix and bias of the l + 1-th hidden layer. If the neural network is well trained with the train operation data, we can use the neural network model to reflect the actual train's operating status. at is, the actual operation of the train can be reflected through the input and output to the neural network.

98We designed a planning-based prediction, that is, the following train predicts the future state of the preceding train under the premise that the preceding train's control input is known. e advantage of this is that the following train can more accurately know the behavior of the preceding train, avoiding the unpredictable situation of the train in front, such as emergency braking due to particular circumstances. A mapping function is established from the current train state and input control commands to the next state through the LSTM network.

Control Structure Based on LSTM.

99e composite control structure based on LSTM and MPC is proposed in Figure 5 for the following train. e control structure consists of three main parts: the state prediction model based on LSTM, the MPC framework, and the train dynamics model.

100For the following train, at each time horizon, the control input u is optimally determined by comparing the following train state and the reference state. e LSTM prediction model obtains the reference state. e preceding train state is the input of the LSTM prediction model. Based on that, the following train state is obtained by the dynamics model. Meanwhile, the next time horizon starts and the train state and reference state are updated. e whole process is online iterative until the following train state reaches the reference.

Test Environment.

101We record the detailed train operation data of the Chengdu Metro Line 8. e field data are collected from the onboard computers. ese data are used for training and testing the accuracy of the trained networks. In addition, we established the dynamic model of the following train as the controlled object of the control algorithm through deep learning in advance. Another state prediction model of the preceding train is also generated through deep learning as a comparison. e difference is that the prediction of the preceding train state does not require the control input of the preceding train. We trained the dynamics model of the preceding train under two operating scenarios. In scenario 1, the train operation is subject to the speed limit of the curve and then accelerates to a normal operating speed with small fluctuations. In scenario 2, the train adjusts its speed before entering the curve.

Training the Neural Network Model.

102is study adopts the backpropagation algorithm with Adam. Set the loss function of the neural network to MSE. We adjust the number of layers and nodes of the neural network to reduce the loss function value after training.

103To evaluate the accuracy and performance of the model obtained by deep learning, we use field data to test the model accuracy. Figure 6(a) demonstrates the field data and the train velocities and positions predicted by the LSTM network, corresponding to operating scenario 1 in the model training experiments. e LSTM network achieves great predictive performance. e position and velocity curves predicted by the deep neural network are very close to the field data. e results by operating scenario 2 in Figure 6(b) also obtained the same conclusion. At the same time, we separately recorded the acceleration calculation error of the dynamics model, the predicted position, and the velocity error in Figure 7. e average error of acceleration prediction does not exceed 0.02, and the average error of velocity prediction does not exceed 0.5. e position error increases with time, and the cumulative error increases, approaching 4. Verifying these data demonstrates its e train convoy is formed by two trains. e initial conditions include that the initial gap between tracking trains is 20 m and the tracking trains have the same initial speed. e communication delay is not considered. In the simulations, we add the established train dynamic model to the control algorithm and use model predictive control to simulate the operation control of the following train in the virtual coupling during the cruise phase. In addition, in order to verify the robustness of the control algorithm, Gaussian white noise is added as input interference in the experiment. e performance of the proposed LSTM-Based MPC algorithm is illustrated in two aspects in the simulation, including the speed of the trains and the distance between trains. Figure 8 shows the simulation results under the two scenarios. Figure 8(a) corresponds to the speed profile of virtually coupled trains in scene 1, Figure 8(b) corresponds to scene 2, and Figure 8(c) shows the distance changes between trains in two scenarios. From the figure, the following train can track the speed of the preceding train with a small margin of error. e maximum speed difference between the two trains appears in scene 2, reaching 0.24 m/s. Benefiting from accurate speed tracking and maintenance, the distance between the two trains varies within a tiny range and always remains within the set safety margin (10 m).

Influence of the Length of the Prediction Horizon.

104Several simulations were also run to study the influence of different prediction horizons on control performance. Simulation is carried out in both operating scenarios, and we changed the prediction horizon N p from 5 to 15. As expected, the computation time increases when the prediction horizon increases. Another effect is that the distance between trains increases when the prediction horizon increases. We recorded and analyzed the changes in distance between trains. ese results are shown in Table 1.

Comparison and Discussion.

105In order to further verify the performance of the proposed control algorithm, first, we compare the proposed control algorithm with the traditional train control architecture. e following train operates according to the preplanned speed curve and protection curve. e design of the controller is that the following train tracks the target's speed curve and maintains a safe distance from the preceding train. e controller does not predict the behavior of the preceding train. Denote this control method as no prediction (NP). e proposed control method in this paper is denoted as PBP (Planning-Based Prediction). e two methods were compared under the same conditions, and the experimental results were shown in Figure 9 under the two scenarios mentioned above.

106In scenario 1, where the operation scene is relatively single, both methods can achieve speed tracking and distance stability of the following train to the preceding train. Since the following train does not consider the synchronous operation with the preceding train, but as far as possible to achieve the target speed, so the distance between the two trains is less than the proposed PBP method. Nevertheless, this is not what we expect, and there will still be sharp changes in the distance. However, in scenario 2, due to frequent acceleration and deceleration and the change of the speed limit in the interval, it is difficult for the following train to accurately track the speed of the preceding train only by tracking the target speed curve, resulting in a sharp change in the distance between the two trains. In this case, the algorithm proposed in this paper has a good performance. In the two methods, the average speed difference between the following train and the preceding train is 0.075 m/s (NP) and 0.370 m/s (PBP), respectively. erefore, in the virtual coupling, it is unacceptable for the following train not to predict the state of the preceding train. en, we compared and analyzed the influence of different prediction methods on controlling the following train in the virtual coupling. We divide the prediction methods into planned-based and unplanned methods. Among them, the planning-based method is divided into the calculation of the dynamics model obtained by deep learning and the calculation of the traditional dynamics formulas. Calculation by dynamics formula is a classical conventional method adopted in articles [4,5]. We refer to the calculation method mentioned in these articles and make some changes. e unplanned method is to build a state prediction model of the preceding train through deep learning. Trajectory prediction based on LSTM neural network is also used in [37]. Compared with the Kalman filter model, this method has been verified to have higher accuracy. However, the predicted input does not include the control input of the preceding train. e deep learning prediction model (DLP), planning-based prediction model (PBP), and train dynamics formula (TDF) are the three considered prediction strategies. We set the prediction horizon to 5, comparing different prediction methods' control performances in two operating scenarios. Figure 10 presents these results.

107In Figure 10, we can see how the distance between the trains is maintained within the set safety margin (10 meters) for the two test conditions. Compared with the TDF strategies, the neural network prediction method enables the following train to achieve more accurate speed tracking. Moreover, the velocity plot shows that the PBP method can achieve better speed tracking. e following train's speed is close to the preceding train's speed and has no significant speeding.

108rough specific numerical analysis, the differences of different prediction methods are more directly reflected. In scenario 2, these differences are more prominent, which is embodied in the average speed errors of the preceding train and the following train under the three algorithms are 0.075 (PBP), 0.11 (DLP), and 0.12 (TDF), respectively. We calculate the variance of distance variation under different prediction methods are 1.56 (PBP), 1.58 (DLP), and 2.14 (TDF), respectively. e results show that, compared with the conventional TDF method, the PBP method achieves 35 % and 25 % improvement of velocity and distance, respectively. e simulation also verified a particular scenario in which the preceding train is running abnormally and brakes at a certain part of the line, the control problem of the following train. At this point, there is a clear difference between the three prediction methods. Since the control input of the preceding train is known, the (PBP) method can correctly predict the state of the preceding train due to the change in the control input when the preceding train is braking. However, due to the unknown control input of the preceding train, the (DLP) method will have a significant deviation in the predicted state in this scenario. In spit of the control input of the preceding train is known in the TDF method, the prediction accuracy is limited, and the stability of the train convoy is still difficult to maintain. Due to the constraint of the safety distance between trains, the following train will still brake and slow down under the other two prediction strategies. However, due to untimely deceleration, the distance between trains will still suddenly decrease. e result is shown in Figure 11. As can be seen from the figure, the distance between the two trains corresponding to the three control strategies decreases instantly after braking. e two planning-based prediction methods (PBP) and (TDF) achieve more accurate speed tracking in the case of emergency braking of the preceding train, thus making the distance change between the two trains relatively small. e small degree of distance change is helpful to maintain the stability of the whole train convoy. More accurate speed tracking also helps keep the convoy running after emergency braking.

Experimental Results and Discussion.

109In this paper, model predictive control and deep learning methods are used to design the following train controller in virtual coupling to realize the stable operation of the virtual coupling convoy. First, by comparing with the traditional train control architecture, we think it is necessary to predict the operation state of the preceding train for the following train.

110rough simulations in two scenarios and comparing the control effects of different prediction methods, it can be proven that the method used in this paper can achieve a more stable convoy operation. In scenario 1, the maximum speed tracking error of the PBP case is 0.11, while the tracking errors of the other two methods are 0.17 and 0.20, respectively. In scenario 2, the maximum speed tracking error of the PBP method is 0.24, better than 0.31 and 0.32 in the other methods. e PBP method proposed in this paper can maintain minor distance change under the premise of achieving better speed tracking. Furthermore, the planningbased prediction method achieves more accurate speed tracking, whether a normal operation scenario or an unconventional situation of the preceding train's emergency braking. e PBP method can respond more quickly to the abnormal braking of the preceding train so that the distance between the two trains will not change sharply. e simulation proves its application effect in special scenes. e experiment provides new insight into virtual coupling. e neural network predicts the control target of the following train in the virtual coupling. Previous control studies have mainly focused on the control effect of the control algorithm under ideal conditions. However, in this paper, we use field data to train the neural network and compare the field data with the control results. e experimental results also verify the effectiveness of this method. e planning-based prediction method proposed in this paper is more effective. However, the method proposed in this paper is limited to the condition in which the line conditions do not change significantly. us, the following train can accurately predict the state of the preceding train.

111To some extent, this is also the limitation of neural networks. e currently feasible solution is to update the neural network model through field data in time.

Conclusion

112is paper relies on deep learning and model predictive control (MPC) to propose a virtual coupling control solution for the following train. e solution first uses deep learning to model the dynamics of the preceding train. Subsequently, several prediction strategies were developed for model predictive control, and simulation comparisons were carried out based on one metro line. e results show that different prediction strategies have significant differences in control effects. Compared with the conventional dynamics formula, the model established by deep learning achieves better predictive performance and a better control effect. Furthermore, a planning-based prediction model more accurately predicts the preceding train's operation state. Such a prediction strategy can also deal with unexpected scenes during operation (e. g., abnormal braking). erefore, the simulation results demonstrate better performance and benefits of this prediction strategy and control architecture.

113However, the control scheme proposed in this paper only considers the simplified scenario of two trains. e virtual coupling scenario of multiple trains, which is more widely used in practical applications, is not considered. More evolved studies are necessary considering essential issues such as uncertainties in time delays or even communication failure that may appear in the reception of positional information. ese aspects are the subject of ongoing research.

Data Availability

114e experimental data used to support the findings of this study are included within the article.

Conflicts of Interest

115e authors declare that they have no conflicts of interest.

Introduction

116e ever-increasing railway transport demand of passengers and goods has been challenging infrastructure managers to continuously expand the capacity of existing networks. erefore, the railway industry is looking into the adoption of advanced control systems. Virtual coupling is a novel train control systems concept [1]. It cancels mechanical couplers that maintain vehicles to move within the same train couple. In virtual coupling, the safe vehicle running distance is maintained by vehicle-to-vehicle communication-based train operation controls. is system uses a relative braking distance to separate trains [2]. is method can achieve a smaller train tracking distance. Without the mechanical coupler, trains can be dynamically coupled or decoupled during running. It can increase the line capacity by dynamically coupling two or more trains to form a new convoy. With virtual coupling, capacity can be flexibly adjusted on demand instead of based on a fixed schedule. erefore, it can adapt to different transportation demands [3]. Furthermore, the railway operations department can fulfill its demand of supporting optimum train operation. One of the main challenges in virtual coupling is the synchronous operations of virtually coupled trains. With synchronous operations, a smaller tracking distance between trains can be achieved. Specifically, the following train needs to maintain a stable distance while moving between stations. An unstable tracking distance between trains results in a longer arrival time of virtually coupled trains at a station.

117is decreases the transport capacity. Model predictive control is considered a feasible control method for virtual coupling. One of its advantages relies on its optimal control characteristics. Compared with road vehicles, a train is a large inertial body whose control capability is truly weaker. is results in a long time to change train operation states. In traditional train control, the train operates according to the preplanned speed curve and protection curve. However, in the virtual coupling, the distance between the preceding train and the following train needs to be kept small during the train operation. e following train cannot synchronize with the preceding train by tracking the target curve. erefore, the control target of the following train is a predicted operation state of the preceding train. In conventional control methods of virtual coupling, the approximation and prediction of the preceding train occur through the rule-based dynamics model of the train [4,5]. Unfortunately, the prediction accuracy of these methods is limited, and they are unable to achieve ideal train convoy stability.

118To solve this problem, we propose a long short-term memory (LSTM) based method to predict the operations of preceding trains. Train dynamics are modeled with an LSTM neural network trained from historical operation data. With this model, the operation of the preceding train is predicted with planned train control inputs. e prediction result is used to optimize the control of the following train in the MPC framework. e existing literature studies the operation control of virtual coupling from different points of view. Some studies focus on control strategies for virtual coupling [6]. In virtual coupling, the extremely small distance may cause unstable train operation. For this reason, some studies present control systems that keep a constant distance [7,8]. Liu et al. [9] proposed an optimal control method to maintain the speed of all trains in the virtual coupling consistent and safe distance. Ling and others [10] combined the dispatch operation in the virtual coupling scenario with the coordinated control of the train to determine the running route and the train order to optimize station operating time. Di Meo and others [11] defined a multiagent system control poly for virtual coupling. is approach aims to maintain the desired distance between trains and enrich the ERTMS/ETCS with virtual coupling without changing its working principles. Sliding mode control is used to achieve the same control effect [12]. e operation control method of virtual coupling can refer to recent developments in the field of safe platooning of autonomous vehicles and connected automated vehicle (CAV) platoons [13,14]. e CAV platoon has an interconnection containing the leading vehicle (i e., the leader) and the following vehicle (i e., the follower). e leader is set to track a given trajectory, and the follower continues tracking the preceding vehicle with desired spacing and consistent speed. Compared with the CAV platoon, the virtual coupling control system has the same platoon concept due to the longitudinal movement of trains through the rail. e preceding train tracks the predefined speed profile and the following trains keep maintaining the minimum safe spacing and consistent speed.

119ere are effective and available methods such as model predictive control [15] and feedback control [16] in linear and nonlinear CAV platoon control problems. ese methods can maintain platoon cohesion. ese methods have brought some inspiration to virtual coupling controller design.

120Many existing kinds of research realize adaptive control through neural networks [17][18][19]. Neural networks require relatively less information about the dynamics of the system. It also has been maturely proved to be effective in addressing the control problem of nonlinear systems with unknown dynamics. Moreover, it has been widely used to propose control for various nonlinear systems. Many existing studies are dedicated to combining control algorithms such as MPC and deep learning. Deep learning and MPC use their advantages to compensate for their shortcomings to achieve better control. e research results also prove that the control performance can be improved by adopting such a method. Wang et al. [20] proposed a deep learning-based model predictive control to model and control the continuous stirred-tank reactor system. e convergence and stability of this control method are analyzed and show better performance in modeling, tracking, and antidisturbance. Zhang et al. [21] use a recurrent neural network as the prediction model in model predictive control to control multiple unmanned quadrotor formation flights. A recurrent neural network (RNN) is used to separately model the two subsystems in quadrotor flight.

121e system model established through deep learning achieves accurate control. A collision avoidance control method was proposed in [22]. rough deep learning technology and an MPC controller, the automatic driving of vehicles was realized under the premise of considering maneuverability, vehicle dynamics, and traffic rules. ere are also some theoretical analyses on the combination and application of MPC and deep learning [23,24]. However, most of the existing work is to improve the control accuracy as possible under the premise that the control target is known. In virtual coupling, it is also important to set the control target of the following train based on precise predictions of the preceding train.

122Based on the previous research, we proposed an LSTM-based model predictive control method. Model predictive control is used as the control architecture, and LSTM is used to predict control target in the following train to achieve more accurate tracking to achieve the stability of the train convoy. Our main contributions are as follows:

123(1) An MPC control framework is presented for the following train in the virtual coupling, according to the metro infrastructures and their communication architectures. e preceding train continuously sends status information and control information to the following train. Based on the control architecture, the LSTM-based model predictive control method is proposed to make successive trains drive while keeping a desired stable distance.

124(2) LSTM neural network is used to predict the preceding train state and serve as the control target of the following train. More accurate control targets improve the stability of the control. Simulations are conducted, and the traditional prediction method is compared with the method proposed in this paper. A section of one metro line in Chengdu is used as the background to verify the validity of the method.

125(3) e following train dynamics are modeled by deep learning. Conventional controlled objects are established by formulas, which cannot entirely reflect the actual dynamics characteristics of the train. rough deep learning, a dynamics model closer to the actual train is established using a large amount of historical data, which can better reflect the accuracy and practicability of the control algorithm. e rest of this paper is organized as follows. In Section 2, the problem of virtual coupling train operations is formulated. Section 3 presents the entire MPC methodology. Section 4 explains the design of the train dynamics model by LSTM networks and the overall control structure. Section 5 presents different tests, simulations, and results. Finally, the conclusions are drawn in Section 6.

Communication Structure of Trains in Virtual Coupling.

126Wireless communications and distributed computing have promoted the development of vehicle-monitoring systems to reduce railway system maintenance and inspection requirements while maintaining safety and reliability [25]. e typical virtual coupling communication framework is shown in Figure 1. Centralized traffic control (CTC) directs the train convoy operation. CTC generates a route request command according to the train's operation plan and sends it to the interlocking system. e interlocking system ensures that the train route is safe and useable by controlling the wayside infrastructure. After a route is set, the interlocking sends the route information to the radio block center (RBC). e RBC calculates the train movement authorization (MA). An MA is a succession of railway sections in which a train can safely operate. During train operation, continuous radio communication exchanges train control information between trains and wayside equipment [26].

127In the traditional train control architecture, the following train passively follows the preceding train through the coupler force control and maintains a stable running state with the preceding train. In virtual coupling, trains are supposed to move together, similar to physical coupling. e following train can achieve a comparable control effect to the coupler through active control. e control strategies for the preceding train and the following train are different. e preceding train tracks the desired speed profile of the MA area. e following train tracks the speed of the preceding train while maintaining a stable distance. Virtual coupling entails convoys of trains linked via vehicle-to-vehicle communication to synchronize the speed with the train ahead to maintain a safety margin in between. In the virtual coupling system, vehicle-to-vehicle communication becomes essential to maximize the probability of message delivery compared to train-to-track communication only (i e., fully infrastructure-based communication). Virtual coupling requires extremely low reaction times and, hence, latency to synchronize multivehicle behaviors. e train control system controls the train speed based on the target speed curve. e system uses various control algorithms to adjust the train speed to make it as consistent as possible with the target speed in the target speed curve. A typical train speed curve and target speed curve are shown in Figure 2. e greatest recommended speed (GRS) is a speed curve calculated by the train control system based on the current line speed limit, used to prevent the train from overspeeding. e train operation process can be divided into three phases: traction phase, cruise phase, and braking phase. e control algorithm designed in this paper aims to control the following train in the cruise phase.

Dynamics Model of Virtual Coupling

128Trains. First, we consider the dynamic model of a single train. e external forces that a train is subject to include tractive or braking forces and additional operational resistances. e basic equation of train movement can be described by the following:

129where m is the train mass. s i and v i are the train position and speed at the current instant i, respectively. u i is the external tractive or braking force at the current instant i. r(v i ) is the basic operational resistance, generally described by the Davis

130. a, b, and c are the empirical coefficients accounting for the mass resistance, mechanical resistance, and air resistance, respectively. mg sin(θ i ) is one kind of operational resistance caused by gravity, where g is the gravitational acceleration and θ(x i ) is the angle between the rail slope and the horizontal reference line.

131Under the actuation of external forces on a train, speed series v i depicts train movements. e running distance can be described by the following:

132where Δt is the time step between instants i + 1 and i. For a virtual coupling train control system, the state of the train can be defined as x � (s, v, a) T , where s, v, a represent the position, speed, and acceleration, respectively. e control input of the train can be expressed as u. erefore, equations (1)-(3) can be written compactly as follows:

133where i denotes the time step. en, to investigate the virtual coupling train control system control problem, we consider a virtual coupling train control system composed of two trains moving along a railway line. e preceding train sends state information (e g., position, velocity. and acceleration) to the following train. e preceding train circulates at a velocity v l t , and the following train circulates at v f t . e superscript denotes the train (l for the leader and f for the follower). e subscript denotes the time. e distance between trains is calculated by means of the following:

Wireless Communications and Mobile Computing

134where L is the safety margin.

135In the designed virtual coupling train control system, our control objective is to maintain the speed of the preceding train and the following train consistently while maintaining a safe distance (safe margin). If the following train has a location tracking error of e s , we can express the control objective of the following train as follows:

Model Predictive Control Construction

136We consider a decentralized virtual coupling control with two trains, one for the front or preceding train and the other for the following train. We propose a model predictive control approach for the following train. e controller is nonlinear, and the constraints are explicitly handled.

137Model predictive control is a control algorithm that relies on the iterative solution of an optimal control problem. e control input is calculated at each sampling time based on the predicted state [28,29]. One of the advantages of MPC is that the resulting operating strategy respects all the system and problem constraints. In this paper, an MPC feedback control system is designed for the following train in Figure 3.

Design of the MPC.

138For the formulation of the MPC, a prediction horizon [t, t + N p ] is considered at time t. According to the receding horizon principle, at each time, the MPC solver computes the optimal control u � u t , u t+1 , . . . , u t+N p . e first input is applied to the control system before the next time step. At the next time step t + 1, a new optimization problem is raised based on a new state measurement [30]. We express the control optimization problem as follows:

139where l is the cost function and N p is the prediction horizon. We discuss the setting of the cost function l in the next section. en, the controller needs to find the best control input at the cost of minimizing J, subject to the following:

140where v lim is the line speed limit, which is set according to actual line data. a min and a max are the maximum deceleration and acceleration of the train, u min and u max are the maximum and minimum values of the control input. ese are set according to the actual performance parameters of the train. d is the distance between trains, and d min is the safe margin. We refer to the illustration of the safety margin in the Shift2Rail technical report [31], and the safety margin used is set according to the train speed and line conditions in the simulation. e notation x t+k|t represents the state vector at time t + k, predicted at time t. In the designed control system, the optimal state and control input obtained are as follows:

141For closed-loop control, we apply the first input to system (9) in the time interval [t, t + 1).

142In the next step, a new optimal problem based on a new state measurement is solved over a shifted horizon, yielding a moving receding horizon control strategy with control law.

Cost Function Design in the MPC Framework.

143e tracking capability is usually specified in terms of speed error and distance error. e consistency of speed and the maintenance of the distance between trains are issues we care about in designing control algorithms. For speed, the control objective is divided into the following three parts:

144(i) (A1) e speed of the train cannot exceed the current line speed limit (ii) (A2) When the preceding train is at a steady-state, the speed difference between the preceding train and the following train should be minimized (A3) When the preceding train accelerates or decelerates, the acceleration error should converge to small values For the distance between trains, the control objective is to (B1) minimize the speed difference between the preceding and the following train while maintaining a steady, safe distance between the two trains.

145In those subobjectives, we attempt to quantify them under the MPC framework. e subobjective (A1) is formulated as linear constraints. e subobjectives (A2) and (A3) are quantified to be cost functions. In particular, subobjective B1 is reflected in both the cost function and constraints. Together, they yield a tractable model predictive optimization problem.

146A 1-norm function of tracking errors is adopted as the MPC cost function in [32], and a 2-norm function is used in [33]. e former gives equal consideration to tracking errors of different degrees, while the latter tends to penalize larger errors and neglect smaller errors. Actually, the following train should only respond to sufficiently large tracking errors and should not be sensitive to tiny tracking errors. erefore, it is more reasonable to employ the 2-norm of tracking errors to quantify (A3):

147where a ref is the target acceleration. Similarly, when the speed of the preceding train is not much different from that of the following train. e acceleration of the preceding train does not change much. e subobjective (A2) is also defined as a 2-norm function of desired speed

148where v ref is the target speed.

Wireless Communications and Mobile Computing

149For two moving trains, the positions of the preceding train and the following train can never coincide, and the difference is large. Nevertheless, the position of the preceding train is always one of the targets of the following train's tracking. erefore, the subobjective (B1) can be defined as a 1-norm function

150where s ref is the preceding train's position. e three cost functions (13)- (15) are not combined but are set in different operating scenarios to obtain a tractable predictive optimization problem.

LSTM-Based Model Predictive Control

151In virtual coupling, it is necessary to predict the preceding train state for the following train. e predicted state is used as the control objective of the following train, and it is also used for the optimal control of MPC. As an effective tool for mining large amounts of data, neural networks are widely used in data-driven trajectory prediction research. A long short-term memory (LSTM) neural network, a type of RNN, is more efficient than an RNN [34,35]. LSTM network can capture the characteristics of time series in a longer time span and achieve better results than RNN in traffic prediction. In this section, LSTM is used to model the dynamics of the preceding train and predict the state of the preceding train for MPC due to its superiority compared to other conventional modeling methods [36].

Train Dynamics Model.

152Due to the complex environment and disturbances, train dynamics are challenging to describe with formulas accurately. erefore, a deep learning modeling method is adopted to solve this problem. e LSTM network is used as one of the neural network components to obtain a more accurate preceding train dynamics model. e upper part of Figure 4 is the calculation unit of LSTM. e middle part of Figure 4 demonstrates the framework of the LSTM neural network we build to approximate the train dynamics model. e lower part of Figure 4 represents the closed-loop control process of the physical movement of a train. We use the data from train operation records for neural network training. Our developed LSTM model is a feedforward artificial neural network structured with an input layer at the bottom, stacked hidden layers, and an output layer. e LSTM network is always connected to the fully connected (FC) network in the hidden layers. e input of one neuron in the lth hidden layer is defined as x (t) l , and the output as h (t) l . e forward calculation method of the overall network at time t can be described as the following expression. e first is the calculation inside LSTM:

153en, the calculation that is output to the fully connected layer is as follows:

154where w l+1 and b l+1 , respectively, denote the neural weight matrix and bias of the l + 1-th hidden layer. If the neural network is well trained with the train operation data, we can use the neural network model to reflect the actual train's operating status. at is, the actual operation of the train can be reflected through the input and output to the neural network.

155We designed a planning-based prediction, that is, the following train predicts the future state of the preceding train under the premise that the preceding train's control input is known. e advantage of this is that the following train can more accurately know the behavior of the preceding train, avoiding the unpredictable situation of the train in front, such as emergency braking due to particular circumstances. A mapping function is established from the current train state and input control commands to the next state through the LSTM network.

Control Structure Based on LSTM.

156e composite control structure based on LSTM and MPC is proposed in Figure 5 for the following train. e control structure consists of three main parts: the state prediction model based on LSTM, the MPC framework, and the train dynamics model.

157For the following train, at each time horizon, the control input u is optimally determined by comparing the following train state and the reference state. e LSTM prediction model obtains the reference state. e preceding train state is the input of the LSTM prediction model. Based on that, the following train state is obtained by the dynamics model. Meanwhile, the next time horizon starts and the train state and reference state are updated. e whole process is online iterative until the following train state reaches the reference.

Test Environment.

158We record the detailed train operation data of the Chengdu Metro Line 8. e field data are collected from the onboard computers. ese data are used for training and testing the accuracy of the trained networks. In addition, we established the dynamic model of the following train as the controlled object of the control algorithm through deep learning in advance. Another state prediction model of the preceding train is also generated through deep learning as a comparison. e difference is that the prediction of the preceding train state does not require the control input of the preceding train. We trained the dynamics model of the preceding train under two operating scenarios. In scenario 1, the train operation is subject to the speed limit of the curve and then accelerates to a normal operating speed with small fluctuations. In scenario 2, the train adjusts its speed before entering the curve.

Training the Neural Network Model.

159is study adopts the backpropagation algorithm with Adam. Set the loss function of the neural network to MSE. We adjust the number of layers and nodes of the neural network to reduce the loss function value after training.

160To evaluate the accuracy and performance of the model obtained by deep learning, we use field data to test the model accuracy. Figure 6(a) demonstrates the field data and the train velocities and positions predicted by the LSTM network, corresponding to operating scenario 1 in the model training experiments. e LSTM network achieves great predictive performance. e position and velocity curves predicted by the deep neural network are very close to the field data. e results by operating scenario 2 in Figure 6(b) also obtained the same conclusion. At the same time, we separately recorded the acceleration calculation error of the dynamics model, the predicted position, and the velocity error in Figure 7. e average error of acceleration prediction does not exceed 0.02, and the average error of velocity prediction does not exceed 0.5. e position error increases with time, and the cumulative error increases, approaching 4. Verifying these data demonstrates its e train convoy is formed by two trains. e initial conditions include that the initial gap between tracking trains is 20 m and the tracking trains have the same initial speed. e communication delay is not considered. In the simulations, we add the established train dynamic model to the control algorithm and use model predictive control to simulate the operation control of the following train in the virtual coupling during the cruise phase. In addition, in order to verify the robustness of the control algorithm, Gaussian white noise is added as input interference in the experiment. e performance of the proposed LSTM-Based MPC algorithm is illustrated in two aspects in the simulation, including the speed of the trains and the distance between trains. Figure 8 shows the simulation results under the two scenarios. Figure 8(a) corresponds to the speed profile of virtually coupled trains in scene 1, Figure 8(b) corresponds to scene 2, and Figure 8(c) shows the distance changes between trains in two scenarios. From the figure, the following train can track the speed of the preceding train with a small margin of error. e maximum speed difference between the two trains appears in scene 2, reaching 0.24 m/s. Benefiting from accurate speed tracking and maintenance, the distance between the two trains varies within a tiny range and always remains within the set safety margin (10 m).

Influence of the Length of the Prediction Horizon.

161Several simulations were also run to study the influence of different prediction horizons on control performance. Simulation is carried out in both operating scenarios, and we changed the prediction horizon N p from 5 to 15. As expected, the computation time increases when the prediction horizon increases. Another effect is that the distance between trains increases when the prediction horizon increases. We recorded and analyzed the changes in distance between trains. ese results are shown in Table 1.

Comparison and Discussion.

162In order to further verify the performance of the proposed control algorithm, first, we compare the proposed control algorithm with the traditional train control architecture. e following train operates according to the preplanned speed curve and protection curve. e design of the controller is that the following train tracks the target's speed curve and maintains a safe distance from the preceding train. e controller does not predict the behavior of the preceding train. Denote this control method as no prediction (NP). e proposed control method in this paper is denoted as PBP (Planning-Based Prediction). e two methods were compared under the same conditions, and the experimental results were shown in Figure 9 under the two scenarios mentioned above.

163In scenario 1, where the operation scene is relatively single, both methods can achieve speed tracking and distance stability of the following train to the preceding train. Since the following train does not consider the synchronous operation with the preceding train, but as far as possible to achieve the target speed, so the distance between the two trains is less than the proposed PBP method. Nevertheless, this is not what we expect, and there will still be sharp changes in the distance. However, in scenario 2, due to frequent acceleration and deceleration and the change of the speed limit in the interval, it is difficult for the following train to accurately track the speed of the preceding train only by tracking the target speed curve, resulting in a sharp change in the distance between the two trains. In this case, the algorithm proposed in this paper has a good performance. In the two methods, the average speed difference between the following train and the preceding train is 0.075 m/s (NP) and 0.370 m/s (PBP), respectively. erefore, in the virtual coupling, it is unacceptable for the following train not to predict the state of the preceding train. en, we compared and analyzed the influence of different prediction methods on controlling the following train in the virtual coupling. We divide the prediction methods into planned-based and unplanned methods. Among them, the planning-based method is divided into the calculation of the dynamics model obtained by deep learning and the calculation of the traditional dynamics formulas. Calculation by dynamics formula is a classical conventional method adopted in articles [4,5]. We refer to the calculation method mentioned in these articles and make some changes. e unplanned method is to build a state prediction model of the preceding train through deep learning. Trajectory prediction based on LSTM neural network is also used in [37]. Compared with the Kalman filter model, this method has been verified to have higher accuracy. However, the predicted input does not include the control input of the preceding train. e deep learning prediction model (DLP), planning-based prediction model (PBP), and train dynamics formula (TDF) are the three considered prediction strategies. We set the prediction horizon to 5, comparing different prediction methods' control performances in two operating scenarios. Figure 10 presents these results.

164In Figure 10, we can see how the distance between the trains is maintained within the set safety margin (10 meters) for the two test conditions. Compared with the TDF strategies, the neural network prediction method enables the following train to achieve more accurate speed tracking. Moreover, the velocity plot shows that the PBP method can achieve better speed tracking. e following train's speed is close to the preceding train's speed and has no significant speeding.

165rough specific numerical analysis, the differences of different prediction methods are more directly reflected. In scenario 2, these differences are more prominent, which is embodied in the average speed errors of the preceding train and the following train under the three algorithms are 0.075 (PBP), 0.11 (DLP), and 0.12 (TDF), respectively. We calculate the variance of distance variation under different prediction methods are 1.56 (PBP), 1.58 (DLP), and 2.14 (TDF), respectively. e results show that, compared with the conventional TDF method, the PBP method achieves 35 % and 25 % improvement of velocity and distance, respectively. e simulation also verified a particular scenario in which the preceding train is running abnormally and brakes at a certain part of the line, the control problem of the following train. At this point, there is a clear difference between the three prediction methods. Since the control input of the preceding train is known, the (PBP) method can correctly predict the state of the preceding train due to the change in the control input when the preceding train is braking. However, due to the unknown control input of the preceding train, the (DLP) method will have a significant deviation in the predicted state in this scenario. In spit of the control input of the preceding train is known in the TDF method, the prediction accuracy is limited, and the stability of the train convoy is still difficult to maintain. Due to the constraint of the safety distance between trains, the following train will still brake and slow down under the other two prediction strategies. However, due to untimely deceleration, the distance between trains will still suddenly decrease. e result is shown in Figure 11. As can be seen from the figure, the distance between the two trains corresponding to the three control strategies decreases instantly after braking. e two planning-based prediction methods (PBP) and (TDF) achieve more accurate speed tracking in the case of emergency braking of the preceding train, thus making the distance change between the two trains relatively small. e small degree of distance change is helpful to maintain the stability of the whole train convoy. More accurate speed tracking also helps keep the convoy running after emergency braking.

Experimental Results and Discussion.

166In this paper, model predictive control and deep learning methods are used to design the following train controller in virtual coupling to realize the stable operation of the virtual coupling convoy. First, by comparing with the traditional train control architecture, we think it is necessary to predict the operation state of the preceding train for the following train.

167rough simulations in two scenarios and comparing the control effects of different prediction methods, it can be proven that the method used in this paper can achieve a more stable convoy operation. In scenario 1, the maximum speed tracking error of the PBP case is 0.11, while the tracking errors of the other two methods are 0.17 and 0.20, respectively. In scenario 2, the maximum speed tracking error of the PBP method is 0.24, better than 0.31 and 0.32 in the other methods. e PBP method proposed in this paper can maintain minor distance change under the premise of achieving better speed tracking. Furthermore, the planningbased prediction method achieves more accurate speed tracking, whether a normal operation scenario or an unconventional situation of the preceding train's emergency braking. e PBP method can respond more quickly to the abnormal braking of the preceding train so that the distance between the two trains will not change sharply. e simulation proves its application effect in special scenes. e experiment provides new insight into virtual coupling. e neural network predicts the control target of the following train in the virtual coupling. Previous control studies have mainly focused on the control effect of the control algorithm under ideal conditions. However, in this paper, we use field data to train the neural network and compare the field data with the control results. e experimental results also verify the effectiveness of this method. e planning-based prediction method proposed in this paper is more effective. However, the method proposed in this paper is limited to the condition in which the line conditions do not change significantly. us, the following train can accurately predict the state of the preceding train.

168To some extent, this is also the limitation of neural networks. e currently feasible solution is to update the neural network model through field data in time.

Conclusion

169is paper relies on deep learning and model predictive control (MPC) to propose a virtual coupling control solution for the following train. e solution first uses deep learning to model the dynamics of the preceding train. Subsequently, several prediction strategies were developed for model predictive control, and simulation comparisons were carried out based on one metro line. e results show that different prediction strategies have significant differences in control effects. Compared with the conventional dynamics formula, the model established by deep learning achieves better predictive performance and a better control effect. Furthermore, a planning-based prediction model more accurately predicts the preceding train's operation state. Such a prediction strategy can also deal with unexpected scenes during operation (e. g., abnormal braking). erefore, the simulation results demonstrate better performance and benefits of this prediction strategy and control architecture.

170However, the control scheme proposed in this paper only considers the simplified scenario of two trains. e virtual coupling scenario of multiple trains, which is more widely used in practical applications, is not considered. More evolved studies are necessary considering essential issues such as uncertainties in time delays or even communication failure that may appear in the reception of positional information. ese aspects are the subject of ongoing research.

Data Availability

171e experimental data used to support the findings of this study are included within the article.

Conflicts of Interest

172e authors declare that they have no conflicts of interest.

참고문헌 35건

  1. Model predictive control: past, present and future Computers & Chemical Engineering · Elsevier BV · 1999 10.1016/s0098-1354(98)00301-9
  2. Survey of Wireless Communications Applications in the Railway Industry 2007 10.1109/auswireless.2007.74
  3. A review of methods to measure and calculate train resistances Proceedings of the Institution of Mechanical Engineers Part F Journal of Rail and Rapid Transit · SAGE Publishing · 2000 10.1243/0954409001531306
  4. A survey of industrial model predictive control technology Control Engineering Practice · Elsevier BV · 2003 10.1016/s0967-0661(02)00186-7
  5. Adaptive Cruise Control for a SMART Car: A Comparison Benchmark for MPC-PWA Control Methods IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2008 10.1109/tcst.2007.908212
  6. Cooperative adaptive bidirectional control of a train platoon for efficient utility and string stability Chinese Physics B · IOP Publishing · 2015 10.1088/1674-1056/24/9/090506
  7. Connected cruise control: modelling, delay effects, and nonlinear behaviour Vehicle System Dynamics · Taylor & Francis · 2016 10.1080/00423114.2016.1193209
  8. Neural Network Control of a Flexible Robotic Manipulator Using the Lumped Spring-Mass Model IEEE Transactions on Systems Man and Cybernetics Systems · Institute of Electrical and Electronics Engineers · 2016 10.1109/tsmc.2016.2562506
  9. Increase of capacity on the shinkansen high-speed line using virtual coupling International Journal of Transport Development and Integration · WIT Press · 2017 10.2495/tdi-v1-n4-666-676
  10. A hybrid MPC approach to the design of a Smart adaptive cruise controller 2006 10.1109/cacsd-cca-isic.2006.4776651
  11. Design and Development of a Future Freight Train Concept – “Virtually Coupled Train Formations” IFAC Proceedings Volumes · Elsevier BV · 2000 10.1016/s1474-6670(17)38176-4
  12. A recurrent neural network based MPC for a hybrid neuroprosthesis system 2017 10.1109/cdc.2017.8264356
  13. Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network Physica D Nonlinear Phenomena · Elsevier BV · 2020 10.1016/j.physd.2019.132306
  14. Towards Railway Virtual Coupling 2018 10.1109/esars-itec.2018.8607523
  15. Distributed Cooperative Cruise Control of Multiple High-Speed Trains Under a State-Dependent Information Transmission Topology IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tits.2019.2893583
  16. String stability for vehicular platoon control: Definitions and analysis methods Annual Reviews in Control · Elsevier BV · 2019 10.1016/j.arcontrol.2019.03.001
  17. Asymmetric Bounded Neural Control for an Uncertain Robot by State Feedback and Output Feedback IEEE Transactions on Systems Man and Cybernetics Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tsmc.2019.2901277
  18. Velocity forecasts using a combined deep learning model in hybrid electric vehicles with V2V and V2I communication Science China Technological Sciences · Springer Science+Business Media · 2019 10.1007/s11431-018-9396-0
  19. A Model Predictive Control Approach for Virtual Coupling in Railways IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tits.2019.2914910
  20. Deep Model Predictive Control with Online Learning for Complex Physical Systems. arXiv (Cornell University) · Cornell University · 2019
  21. Recurrent Neural Network-Based Model Predictive Control for Multiple Unmanned Quadrotor Formation Flight International Journal of Aerospace Engineering · Hindawi Publishing Corporation · 2019 10.1155/2019/7272387
  22. ERTMS/ETCS Virtual Coupling: Proof of Concept and Numerical Analysis IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tits.2019.2920290
  23. Distributed model predictive control approach for cooperative car-following with guaranteed local and string stability Transportation Research Part B Methodological · Elsevier BV · 2019 10.1016/j.trb.2019.07.001
  24. Intelligent Dispatching and Coordinated Control Method at Railway Stations for Virtually Coupled Train Sets 2019 10.1109/itsc.2019.8917261
  25. Machine <scp>learning‐based</scp> distributed model predictive control of nonlinear processes AIChE Journal · Wiley · 2020 10.1002/aic.17013
  26. Deep Learning-Based Model Predictive Control for Continuous Stirred-Tank Reactor System IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tnnls.2020.3015869
  27. Virtual Coupling of Railway Vehicles: Gap Reference for Merge and Separation, Robust Control, and Position Measurement IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tits.2020.3019979
  28. Modeling and trajectory tracking control for flapping-wing micro aerial vehicles IEEE/CAA Journal of Automatica Sinica · Institute of Electrical and Electronics Engineers · 2021 10.1109/jas.2020.1003417
  29. An analytical optimal control approach for virtually coupled high-speed trains with local and string stability Transportation Research Part C Emerging Technologies · Elsevier BV · 2021 10.1016/j.trc.2020.102886
  30. Runtime verification of train control systems with parameterized modal live sequence charts Journal of Systems and Software · Elsevier BV · 2021 10.1016/j.jss.2021.110962
  31. Optimized Control of Virtual Coupling at Junctions: A Cooperative Game-Based Approach Actuators · Multidisciplinary Digital Publishing Institute · 2021 10.3390/act10090207
  32. Trajectory Prediction of Urban Rail Transit Based on Long Short-Term Memory Network 2021 10.1109/itsc48978.2021.9564607
  33. Model predictive control: Recent developments and future promise Automatica · Elsevier BV · 2014 10.1016/j.automatica.2014.10.128
  34. Cooperative Adaptive Cruise Control for Connected Autonomous Vehicles by Factoring Communication-Related Constraints Transportation research procedia · Elsevier BV · 2019 10.1016/j.trpro.2019.05.014
  35. Understanding LSTM -- a tutorial into Long Short-Term Memory Recurrent\n Neural Networks arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1909.09586