Abstract
Professional sports are developing towards increasingly scientific training methods with increasing amounts of data being collected from laboratory tests, training sessions and competitions. In cycling, it is standard to equip bicycles with small computers recording data from sensors such as power-meters, in addition to heart-rate, speed, altitude etc. Recently, machine learning techniques have provided huge success in a wide variety of areas where large amounts of data (big data) is available. In this paper, we perform a pilot experiment on machine learning to model physical response in elite cyclists. As a first experiment, we show that it is possible to train a LSTM machine learning algorithm to predict the heart-rate response of a cyclist during a training session. This work is a promising first step towards developing more elaborate models based on big data and machine learning to capture performance aspects of athletes.
Introduction
In sports science, the "dose-response" relationship—how a specific training stimulus (the dose) results in a physiological adaptation (the response)—is the primary objective for performance optimization. However, human physiology is a complex "black box" characterized by multi-dimensional, non-linear variables. Traditionally, coaches have relied on subjective assessments or simplified metrics like the Training Stress Score (TSS). While useful, TSS often focuses on single variables and uses ad-hoc formulas that may not account for the nuances of real-world racing. With the proliferation of high-frequency sensor data from bike computers, there is an opportunity to move toward sophisticated deep learning models that better represent an athlete's current fitness and fatigue.
Methodology
The researchers employed a Long Short-Term Memory (LSTM) neural network, a type of Recurrent Neural Network (RNN) specifically designed for time-series data. LSTMs maintain a "state" or memory, allowing the model to account for historical information—a critical feature for heart rate, which exhibits a physiological "lag" relative to changes in power output.
Data Processing and Workflow
The study utilized a dataset of 7,541 sessions collected from 15 male professional cyclists. The workflow involved several key steps:
- Input Variables: The model was fed eight parameters: Time, Speed, Distance, Power, Cadence, Power-to-weight ratio, Altitude, and the Heart Rate from 30 seconds prior.
- Pre-processing: Raw data (1 Hz) was down-sampled and cleaned to remove spurious spikes or erroneous GPS readings.
- Standardization: Inputs were rescaled to a mean of 0 and a standard deviation of 1 to ensure balanced feature weighting.
Results
The model was trained on a Titan X Pascal GPU, achieving a mean Root Mean Squared Error (RMSE) of 5.62 bpm on the unseen validation set. Qualitative analysis revealed that the model was remarkably accurate at following heart rate trends during both high-intensity interval sessions and steady-state rides.
While the model performed exceptionally well on typical training sessions (with RMSE as low as 2.51 bpm), it struggled with very short, steep anaerobic spikes (sprints), where RMSE reached up to 25.67 bpm. This suggests that extremely brief bursts may be obscured by sensor lag or require more specialized training data.
Discussion and Future Work
A significant finding was the utility of feature embeddings. Beyond simple prediction, the LSTM creates a compact numeric vector for each session. These embeddings allowed for the automatic clustering of similar session types (e.g., intervals vs. endurance rides), suggesting that machine learning can categorize training intensity without manual input.
Future research will focus on "reversing" the model to predict power output given a heart rate. This could provide a powerful tool for identifying overreaching or illness—instances where an athlete cannot produce their expected power for a given physiological strain. Additionally, integrating subjective data from training diaries could lead to a more holistic understanding of athletic performance.
Summary updated