← Back to selected research
Research Case Study · Intelligent Rail Systems

Intelligent Train Driving Assistance under Variable Speed Restrictions

Our team developed a driving-assistance system for changing speed restrictions. Dynamic programming generated expert trajectories, LightGBM provided fast recommendations, and ATP supplied an independent safety check. My work focused on using SHAP to explain the model’s output and turn it into driver-facing advice.

InstitutionTongji University
PeriodMar – Jul 2026
RoleCore team member · listed second
My focusSHAP attribution · interpretable advice
13 msTeam-model inference
98.43%Team-model accuracy
>1,000×Speedup over online DP
Original Chinese system architecture from the train-driving project report
Original project artifact · system architecture
Reading the figure

The original diagram organizes the system into three interacting layers. The dispatch side issues a temporary speed restriction; the onboard decision layer receives the restriction and live train state, then runs the LightGBM policy, SHAP explanation, and ATP safety check; and the driver side receives the recommended action, predicted speed trajectory, braking reference, and explanation while retaining final control authority. Above this online loop, dynamic programming supplies the offline expert trajectories used to train the behavior-cloning policy.

Team project at Tongji University · My contribution centered on SHAP attribution and interpretable driving advice; the model results describe the team’s system.

Real-time replanning is difficult when speed restrictions appear unexpectedly.

Temporary speed restrictions can be introduced by severe weather, equipment failures, or other operational disruptions. When a train is only a few kilometres from the restricted section, the driving-assistance system must reconstruct a safe and efficient speed strategy quickly.

Dynamic programming can produce optimized speed trajectories, but solving a new problem online may take minutes. A learned policy can respond faster. We therefore paired it with a separate braking-envelope check and an explanation of each recommendation.

Research objective

Use offline optimization to train a fast recommendation model, then check its output against a braking envelope and explain the recommendation to the driver.

How the recommendation reaches the driver.

Offline expert policyDynamic programming solves globally optimized train-control trajectories across many operating conditions.
Behavior cloningLightGBM learns the expert action policy from approximately ten million labelled state-action samples.
ExplainabilitySHAP attributes each recommendation to the most influential physical state variables.
ATP safety gateAn emergency-braking envelope checks the recommended action against a rigid safety boundary.
Driver HMIThe driver receives a recommended action, predicted trajectory, braking location, and explanation card.

Dynamic programming generated the expert behavior used for learning.

The benchmark environment used a 40 km high-speed railway line with continuous grades, station-area speed limits, multiple temporary restrictions, and CRH3 train parameters. The dynamic-programming state included position, speed, and the previous control action.

State and action discretization

  • Position grid: 100 m
  • Speed resolution: 0.5 km/h
  • Six control actions: full traction, partial traction, cruise, coasting, weak braking, and service braking
  • Hard transition constraints prevented non-smooth action jumps

Optimization objective

The stage cost balances traction energy, running-time deviation, and acceleration smoothness:

C = 0.4E + 0.4(Δt)² + 0.2(amean)²

The train dynamics also account for Davis resistance, grade resistance, and speed-dependent adhesion.

Five categories of temporary-speed-restriction causes were crossed with seven starting positions and randomized environmental parameters. The resulting policy table was expanded into roughly ten million labelled samples with ten physical features.

Expert-policy quality

On the 40 km benchmark line, the DP expert trajectory reduced cumulative traction energy by about 10% relative to a conventional constant-speed cruising strategy.

LightGBM reproduced the expert policy at online decision speed.

The behavior-cloning model takes a ten-dimensional physical state vector, including current position and speed, previous action, grade, speed-limit margin, distance to the next restriction, remaining distance, estimated remaining time, final-segment flag, and speed deviation.

After cleaning, the dataset contained approximately ten million valid labelled samples. It was split by scenario into an 80% training set and a 20% test set so that test scenarios remained unseen during training.

EvaluationResultInterpretation
Six-action classification accuracy98.43%High-fidelity imitation of DP expert actions
Single-step forward inference13 msMeasured on a 14-core 2.6 GHz CPU
Relative computation speed>1,000×Compared with online dynamic programming
Original research figure · model training
Original LightGBM training loss curve from the project report
Figure 1. Original LightGBM training-loss curve from the project report.
Reading the figure

The Chinese title reads “LightGBM Training Loss Curve.” The blue solid line is training loss and the red dashed line is validation loss, with boosting rounds on the horizontal axis. Both curves drop rapidly during the early rounds and then flatten while remaining closely aligned. In the report, this training process uses a scenario-stratified split of roughly 8 million training samples and 2 million unseen test samples; the resulting six-action classifier reports 98.43% test accuracy and 13 ms mean single-step inference.

Why LightGBM?

The project selected LightGBM for fast inference, support for categorical features, and direct compatibility with tree-based SHAP explanations.

An ATP braking envelope checks each recommendation.

The system checks the learned policy with an independent Automatic Train Protection (ATP) layer. Its Emergency Brake Intervention (EBI) envelope gives the highest speed from which the train can brake to meet each downstream speed constraint under the modeled conditions.

vEBI(s) = min[vlimit(s), √(vtarget² + 2abrake(starget − s))]

A speed-dependent wheel–rail adhesion coefficient limits traction and braking in the physical model. The envelope therefore uses the deceleration available under the modeled conditions.

Original research figure · ATP safety envelope
Original ATP safety envelope figure from the project report
Figure 2. Original ATP / EBI safety-envelope figure from the final report.
Reading the figure

The plot compares three quantities along the 40 km route: the dashed red line is the fixed infrastructure speed limit, the solid red curve is the ATP Emergency Brake Intervention (EBI) envelope, and the green dotted line marks a five-kilometre-per-hour safety margin below the limit. The EBI curve begins falling before each downstream restriction because it represents the highest speed from which the train can still brake to the next required target speed under the physical deceleration model. Each model recommendation is checked against this boundary.

Across randomized simulation scenarios, the report records zero forced ATP interventions: the actual operating speed remained below the EBI envelope throughout the tested runs.

Original research artifact · monitoring interface
Original monitoring interface from the train-driving system
Figure 3. Original monitoring interface showing the speed limit, ATP envelope, actual / predicted trajectory, and temporary-restriction region.
Reading the figure

This monitoring view places the operational quantities on one speed-versus-position chart. The top status bar reports current speed, the active line limit, ATP status, train position, remaining time, and system state. In the chart, the restriction region is highlighted, the fixed limit and ATP envelope provide the safety context, and the actual trajectory is overlaid with alternative predicted branches. The emphasized prediction is the branch currently recommended by the decision layer, allowing the operator to see both the safety margin and the consequence of the selected action.

Explaining a recommendation with SHAP.

After LightGBM recommends an action, TreeExplainer computes local SHAP values for the current state. The system selects the three strongest feature contributions, determines whether each one pushes the decision positively or negatively, and maps the numerical attribution into natural-language operational reasons.

Original research artifact · driver HMI
Original driver HMI from the project report
Figure 4. Original driver-facing HMI from the project report, including current-state information, recommended action, braking reference, predicted speed trajectory, and the SHAP-based decision explanation card.
Reading the figure

The left side translates the model output into driver-facing information: current speed and position, the recommended control action, and the kilometre marker at which braking should begin. The lower explanation card summarizes why that action was recommended, using the strongest SHAP-attributed state variables mapped into natural-language reasons. The chart on the right shows the predicted speed trajectory together with the speed restriction, braking-start marker, and restriction entrance. The driver reviews the advice and remains responsible for the final control action.

I focused on explaining the model’s recommendations to train operators.

As the project’s second-listed core team member, I implemented SHAP-based attribution for the LightGBM driving-assistance model developed by teammates. I then converted the strongest feature contributions into interpretable driving advice intended to improve trust and acceptance.

The reported 98.43% classification accuracy, 13 ms online inference, and speedup over dynamic programming describe the team’s complete model.

Source: final technical report and competition application for “智驭先锋——面向多变限速的基于行为克隆与可解释 AI 的列车智能驾驶辅助系统,” Tongji University, 2026.

Next case studyData-Driven Metro Travel-Time Reliability →Explore another projectScenario-Adaptive Cooperative Perception →