Cycling Race Time Prediction: A Personalized Machine Learning Approach Using Route Topology and Training Load
Francisco Aguilera Moreno
TL;DR
This study tackles the practical problem of predicting cycling duration for a given route by replacing physics-based parameterization with a data-driven model that combines route topology features with athlete fitness derived from training-load metrics. Using an N-of-1 design on 96 rides from a single cyclist, the authors develop a progressive prediction framework and show that a Lasso model with Topology + Fitness features achieves MAE of 6.60 minutes and R^2 of 0.922, improving over topology-only predictions by about 14%. Key contributions include novel terrain-derived features (e.g., punchiness, ClimbPro-inspired climb detection), rigorous leakage-free feature engineering, and demonstration of progressive checkpoint predictions on a real MTB route (Track 101 MTB). The work highlights the practical potential for personalized, pre-ride planning and dynamic in-ride updates, while acknowledging limitations such as the single-athlete scope and absence of environmental factors, and outlines clear avenues for multi-athlete validation and integration of weather data.
Abstract
Predicting cycling duration for a given route is essential for training planning and event preparation. Existing solutions rely on physics-based models that require extensive parameterization, including aerodynamic drag coefficients and real-time wind forecasts, parameters impractical for most amateur cyclists. This work presents a machine learning approach that predicts ride duration using route topology features combined with the athlete's current fitness state derived from training load metrics. The model learns athlete-specific performance patterns from historical data, substituting complex physical measurements with historical performance proxies. We evaluate the approach using a single-athlete dataset (N=96 rides) in an N-of-1 study design. After rigorous feature engineering to eliminate data leakage, we find that Lasso regression with Topology + Fitness features achieves MAE=6.60 minutes and R2=0.922. Notably, integrating fitness metrics (CTL, ATL) reduces error by 14% compared to topology alone (MAE=7.66 min), demonstrating that physiological state meaningfully constrains performance even in self-paced efforts. Progressive checkpoint predictions enable dynamic race planning as route difficulty becomes apparent.
