Key findings at a glance
"Demand for BIXI bicycles is strongly governed by two predictable forces: commuting rhythms on weekdays and afternoon leisure on weekends. Adding temperature as a variable brings prediction accuracy to R² = 0.83, enabling proactive rebalancing and staffing decisions."
— Nataliya Abboud, Data Science ConsultantDemand fluctuations — hourly, weekday vs weekend, and weather-driven — make station rebalancing and bicycle availability planning extremely difficult for BIXI's operations team.
Merged hourly weather records with aggregated BIXI trip data. Engineered time features and built two ML models. Decision Tree selected as the preferred model based on lower RMSE and higher R².
Why demand prediction matters for BIXI
BIXI Montréal operates one of North America's largest public bike-sharing networks. Accurate demand prediction is critical for three operational priorities: reducing bicycle shortages at peak hours, improving station rebalancing efficiency, and optimising operational costs across the network.
BIXI's management identified two distinct demand patterns — weekday and weekend — and believed weather to be a significant driver. This project validates both hypotheses with data and delivers actionable ML-based forecasting.
From raw records to predictive features
| Source | BIXI Montréal OD Files |
| Months | April, October, November 2018 |
| Total records | 869,820 trips |
| Key fields | start_date, station codes, duration, member flag |
| Source | Government of Canada |
| Station | McTavish Reservoir (McGill) |
| Frequency | Hourly observations · 5,806 rows |
| Key fields | Temp (°C), dew point, wind speed |
Demand patterns & weather correlation
Model comparison & selection
Two supervised learning models were trained on the merged dataset using features hour, is_weekend, and Temp (°C) to predict hourly trip counts. An 80/20 train-test split was applied with random seed 42.
"The Decision Tree model captures non-linear relationships — demand does not scale linearly with temperature or hour. At 24°C versus 20°C, the marginal lift in ridership is greater than at 5°C versus 1°C. This threshold behaviour is what Linear Regression misses and Decision Tree captures."
— Model evaluation rationale