Improving Bus Predictions Using Machine Learning
Ron Mok, Software Development Manager at TransLink
New Westminster, British Columbia, Canada
TransLink Quick Facts
TransLink Quick Facts - Fleet
SkyTrain: 326 train cars that serve 53 stations along 79km (49mi) of rapid transit. Longest rapid transit system in Canada and the one of the longest fully automated driverless systems in the world.
SeaBus: 3 passenger-only ferries.
Bus: 200+ bus routes with a fleet of 1,500+ vehicles. 262 million bus trips across our network in 2018.
When Is The Next Bus?
Next Bus SMS
Next Bus Web App
Google Maps
Other 3rd party apps
How Were Predictions Being Made?
What Is The Problem?
What Is The Problem?
Our Approach – Machine Learning
Some Examples….
?
R1
Run Time Model
Dwell Time Model
+
+
Predicted Departure Time @ Stop B
=
R1
D1
Additional Factors
?
D1
B
A
Weather
Weather
ML Details – Model Level Predictions
ML Details – Bus Level Predictions
Bus Level Predictions
Run Time �ML Models
Dwell Time �ML Models
R3
R4
R5
D1
R1
R2
D5
D2
D3
D4
A
B
C
D
E
F
Predicted Departure Time @ Stop F
=
+
R1
+
D1
+
R2
+
D2
+
R3
+
D3
+
R4
+
D4
+
R5
+
D5
Infrastructure Considerations
Speed
Storage
Scaling
Infrastructure Implementation
Microsoft Azure cloud platform advantages:
Pilot Routes
13 pilot routes chosen based on the following factors:
Results
Machine Learning
Scheduled
RTTI
Blended
Actual
Time Of Day
Results
Results
Average Error
+/- 3 min 13 sec
+/- 1 min 41 sec
47.8% less error!
Average Unexpected Wait Time Per Boarding
60% less waiting per boarding!
+/- 3 min 27 sec
+/- 1 min 23 sec
Operational Support & Maintenance
Cloud cost reduction
Operational Support & Maintenance
Drift Detection
Operational Support & Maintenance
Drift Detection Workflow
Architecture
Highlights:
Project Timeline
Q2
2018
Q4
2018
Q1
2019
Microsoft Proof-Of-Concept on a single bus route
Design a more powerful ML algorithm
Implement ML predictions for 13 pilot routes
Q3
2019
Implement ML predictions for all remaining bus routes
Q2
2019
Include additional features to ML models
Q3
2018
Q4
2019
Implement drift detection and automated model creation & cost optimization
What’s Next?
Is Machine Learning Right For You?
If you answered “no” to any of these questions then you’re not ready for ML.
If you answered “yes” to all of these questions, then ML might be right for you!
Thank You!