![]() |
![]() |
|
This series of articles focuses on the theme of "system development." Based on FORUM8's track record in system development, we will introduce various topics each time. This time, we are introducing a case study where a railway simulator was customized to provide data for AI reinforcement learning. By utilizing and customizing existing UC-win/Road plugins, it is possible to build a system that can be used for reinforcement learning for autonomous driving.
Development of reinforcement learning systems for automated train operation
Introduction
To achieve advanced functionalities through AI, reinforcement learning, where the AI is provided with various data and learns from it, is effective. For an AI that simply identifies images, providing image data is sufficient. However, in situations requiring complex understanding and driving decisions, such as autonomous driving, creating the data for training becomes complex and highly challenging.
In this presentation, we will introduce a system development case study where our railway simulator was customized and used to provide data for AI reinforcement learning.
About railway simulators
First, let me introduce you to our railway simulator. It is a simulator that replicates actual train operation and is customized from our 3DVR software, "UC-win/Road."
It is possible to operate the system using full-scale instruments and a master controller. To simulate actual operation, in addition to the front display, displays are also installed on the left side (the entrance/exit side).
You can experience our products at our Tokyo headquarters showroom and at related exhibitions, so please feel free to visit us when you have the opportunity.
![]() |
![]() |
| Figure 1: Overview of the railway simulator | Figure 2: Masscon (small size) that can be used for operation |
![]() |
![]() |
| Figure 3: A VR space recreating a train station platform | Figure 4: Display of the driving curve |
System Overview
Reinforcement learning systems can be broadly divided into two main functions: learning and operation.
● Learning: Mass communication → UC-win/Road → Reinforcement learning system
● Driving: Reinforcement learning system → UC-win/Road
In the learning process, the system transmits data and evaluated values obtained from human operation using a mass control system to a reinforcement learning system. This allows the system to learn what constitutes good driving versus bad driving, based on actual driving data.
In terms of driving, the reinforcement learning system sends accelerator and brake operation information to UC-win/Road, which then controls the vehicle.
This system allows a reinforcement learning system to acquire higher-quality railway operation skills by repeatedly performing learning and operation cycles.

Program structure
The program for this system is composed as shown in Table 1. The operation of the master controller (マスコン) in the railway simulator was performed using a railway simulator plugin. We have developed a plugin for AI reinforcement learning, which enables communication with the reinforcement learning system. In addition, we are utilizing the Log export plugin and the Drive diagnosis plugin to provide the raw data that is sent to the reinforcement learning system.
program |
Roles |
|
|---|---|---|
| UC-win/Road main program | It performs main processes such as simulations and drawing | |
| AI reinforcement learning plugin | Communication with reinforcement learning systems, setting and evaluation of driving diagnostics, and high-speed simulation | |
| Railway simulator plugins | Train (electric railway) simulation, operation of the master controller | |
| Scenario plugin | Railway parameter setting, simulation execution based on scenarios | |
| Log export plugin | Output driving data during operation as a CSV log This data will be used as raw data for sending to the reinforcement learning system, representing driving information |
|
| Replay plugin | After running the simulation, you can review it using the replay function | |
| Drive diagnosis plugin | Evaluate the simulation results This data will be used as the raw data for evaluation values that are sent to the reinforcement learning system |
|
| Table 1: List of programs | ||
Feature Details
(1) Reinforcement learning system communication and coordination functions
This function transmits control values for railway vehicles and environmental information during simulations to a learning PC via UDP communication. Additionally, it allows the learning PC to control scenario playback and reset functions on the railway simulator side, as well as control the operation of the railway vehicle (acceleration and braking).
Table 2 shows the data sent to the reinforcement learning system. Data related to train operation information, such as "speed" and "acceleration," is obtained from the Log export plugin, while data for "vehicle speed evaluation points" and "emergency braking evaluation points" is obtained from the Drive diagnosis plugin.
Time |
Railway simulator PC schedule |
Simulation internal time [ms] |
Estimated arrival time [ms] |
|---|---|---|---|
| Speed | Speed [km/h] | Acceleration [km/h/s] | Speed limit information |
| Distance | Distance from the starting point [meters] | Distance to the next station [meters] | - |
| Control | Control commands | Control variables | Presence or absence of emergency signals |
| Evaluation points | Vehicle speed evaluation points | Emergency braking evaluation points | - |
| Notch | Rikigyo notch | Brake notch | - |
| Rail specifications | Rail inclination (cant) [mm] | Rail gradient (pitch) [‰] | Rail curve radius [m] |
| Table 2: Data to be sent to the reinforcement learning system | |||
(2) Driving evaluation function
Figures 6 and 7 show the configuration screens for "vehicle speed evaluation points" and "emergency braking evaluation points." The evaluation system uses a point deduction method. At the vehicle speed evaluation points, the difference between the actual speed and the speed limit is evaluated. At the emergency braking evaluation points, the number of instances of emergency braking is evaluated. By transmitting this evaluation data along with driving data to a reinforcement learning system, it becomes possible to learn better driving techniques.
![]() |
![]() |
| Figure 6: Setting of "vehicle speed evaluation points" | Figure 7: Setting the "Emergency Braking Evaluation Point" |
(3) High-speed simulation
To enable more efficient learning, we have developed a high-speed simulation function. When a human operates UC-win/Road, the operating frequency (the number of calculation cycles per second) is set to 60Hz. In the learning system, this frequency is 120Hz, allowing simulations to run at twice the normal speed. This offers the advantage of performing more reinforcement learning in a shorter amount of time.

Figure 8: High-speed simulation – conceptual diagram
(4) Indication of the used notch
Depending on the driving conditions, the currently used notch is displayed with different colors. A "notch" represents the train's acceleration/deceleration state using a single scale, similar to how gears or the accelerator and brake are combined in a car. "B" indicates braking (deceleration), "P" indicates power (acceleration), "N" indicates neutral (cruising), and "EB" indicates emergency braking. This display allows us to determine whether the driving behavior achieved through reinforcement learning is appropriate.

Figure 9: Illustration showing the location of the notch to be used
(5) Log output
The data used for reinforcement learning can also be output in CSV format. It is possible to output the data at the end of a train operation scenario, or according to buffer size.

Figure 10: Reinforcement learning data; UI image for log output
Finally,
In this presentation, we introduced a system development case study where we customized our in-house developed railway simulator to provide data for AI reinforcement learning.
Originally, this simulator was developed for the education and training of train operators, as well as for exhibition purposes. However, by utilizing and customizing existing UC-win/Road plugins, we were able to build a system that can be used for reinforcement learning for autonomous driving. Furthermore, it can also be applied to reinforcement learning in various fields, including not only trains but also automobiles, ships, and airplanes. We look forward to your continued support for future development.
(Featured in the Autumn issue of Up&Coming '24)
|
||||||||
![]() Up&Coming |
LOADING