Data scientist
Started on Jan. 6, 2023
SNCF-Transilien is the SNCF commuting network operator covering the Paris region. It runs more than 6,200 trains per day and moves 3.4 million of passengers. SNCF-Transilien gathers an increasing amount of data on the number of passengers on-board through infra-red door sensors. This increasing amount of data allows SNCF-Transilien to provide new services to passengers and improve its operational performance.
The aim of this challenge is to give SNCF-Transilien the tools to provide an accurate train occupancy rate forecasting. Thus, deliver precise real time crowding information (RTCI) to its passengers through digital services.
When a traveler is waiting for a k-train at station s, the train may be several stations ahead, but we want to give the travelers the most consistent information possible about how busy the train will be when they board it. To do this, we need to predict for each train the actual occupancy rates at the next stations. Here, we propose to predict, more simply, the occupancy rate at the next station only.
k is used to specify the train, s for the station and d for the day. One stop is given by the triplet k, s, d.
Xtrain.csv
dataset with 31 119
rows (i.e. 31 119
stops k, s, d) and 12
columnsXtest.csv
dataset with 13 752
rows (i.e. 13 752
stops k, s, d) and 12
columnsYtrain.csv
dataset with 31 119
rows and one column, giving the target variable to be predicted for the training set.Ysample.csv
dataset with 13 752
rows and one column with random values between [0, 1]
, which is a submission example that you can use to prepare your own submissionThe data comes from infra-red sensors located above each door of the rolling stocks (NAT, R2N) in Γle-de-France, measuring the number of alighting and boarding passengers per door. This data is captured in real time and is accessible only at the train scale for this challenge. The crowding factor or occupancy rate is the number of passenger on-board divided by the total capacity of the train.
We want you to predict the occupancy rate in real time using the near past. We introduce p and q notations to describe the past: * p is used for the past values of the previous trains at the same station * q is used to describe previous stops for the same train.
The actual occupancy rate is: p0q0 ∈ [0,1]
which is crowding factor/occupancy rate, noted Y(k,s,d)
, for a stop which is a train k at a station s for a day d.
The columns, i.e., the features, are split into 6
contextual variables such as day, train id, etc. and 6
lag variables:
[0,1]
is the occupancy rate of the previous train k-1 at the same station s[0,1]
is the occupancy rate of the second previous train k-2 at the same station s[0,1]
is the occupancy rate of the third previous train k-3 at the same station s[0,1]
is the occupancy rate of the same train k at the previous station s-1[0,1]
is the occupancy rate of the same train k at the second previous station s-2[0,1]
is the occupancy rate of the same train k at the third previous station s-3The lag variables are NA
if the lag does not exist for the stop because of timetable structure. All other missing values have been imputed by a business algorithm.
For more details on the data set or on the benchmark model, see our paper One-Station-Ahead Forecasting of Dwell Time, Arrival Delay and Passenger Flows on Trains Equipped with Automatic Passenger Counting (APC) Device.
The benchmark used in this challenge is based on a multiple linear model. Each node is defined by the intersection of a train id and a station id. We use a simple linear model with at most one neighbor in p and q.
when a neighborhood exists. In R
syntax, it is:
lm(p0q0 ~ p1q0 + p0q1, data = dataByNode)
Files are accessible when logged in and registered to the challenge