Predicting Trip Duration and Distance in Bike-Sharing Systems Using Dynamic Time Warping

Bike-sharing systems (BSSs) have recently become important in urban transportation due to several factors, such as their cost-effectiveness and environmental considerations. The BSS provides an enormous amount of data that is recorded regarding trips. This huge volume of bike sharing data raises various challenges and opportunities. Many research studies have used bike sharing datasets to understand the geographical, social, financial, and behavioral aspects of bike user behaviors. While existing literature primarily focuses on predicting the number of rentals and returns per station, this study addresses the complementary aspect of predicting the trip duration and distance of the trip. Accurate prediction of ride duration allows a better estimate of bike availability at stations, while distance predictions assist in maintenance planning based on bike usage patterns. The contribution of this work is twofold. First, the proposed work clusters the BSS dataset into [Formula: see text] sub-datasets based on similarity of dataset instances. Then, the predictive model is trained to predict the data of each sub-dataset separately. Thus, there will be [Formula: see text] models for the [Formula: see text] sub-dataset. Next, the performance of the proposed method, the average score of the [Formula: see text] models, will be compared to the performance of a model trained on the complete dataset on predicting BSSs ride duration and distance of the trip. The rationale for splitting the dataset into [Formula: see text] sub-datasets is to separate similar patterns in one sub-dataset. Second, the utilization of the dynamic time warping (DTW) algorithm on the BSSs data was proposed for the clustering purpose, as the DTW usage is very limited in the current literature of BSSs. The dataset clustering is based on the similarity of the curves representing the number of trips between each pair of bike stations throughout the day hours. Then, the DTW algorithm is used to measure the curve similarity between these bike station pairs’ curves. These two contributions of the proposed approach complement existing prediction models for rentals and returns, providing a comprehensive solution for BSS optimization. The proposed method was thoroughly evaluated on two real datasets of different sizes. For the two datasets, the obtained results show that the best improvements of the predictive model’s accuracy are 30% and 42% on average for predicting trip duration and distance of the trip, respectively.

Authors

Institutions

Publication Details

Journal
Applied Artificial Intelligence
Published
2025-03-04
DOI
https://doi.org/10.1080/08839514.2025.2474786
Citations
2
Primary Topic
Human Mobility and Location-Based Analysis
Type
article
Field-Weighted Citation Impact
4.35
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting Trip Duration and Distance in Bike-Sharing Systems Using Dynamic Time Warping

Ahmed Fathalla, Ahmad Salah, Ahmed Ali, Mahmoud Bekhit
2 citations
Applied Artificial Intelligence
Human Mobility and Location-Based Analysis
4.35
article

Predicting Trip Duration and Distance in Bike-Sharing Systems Using Dynamic Time Warping

Ahmed Fathalla, Ahmad Salah, Ahmed Ali, Mahmoud Bekhit
article en
2 citations

Abstract

Bike-sharing systems (BSSs) have recently become important in urban transportation due to several factors, such as their cost-effectiveness and environmental considerations. The BSS provides an enormous amount of data that is recorded regarding trips. This huge volume of bike sharing data raises various challenges and opportunities. Many research studies have used bike sharing datasets to understand the geographical, social, financial, and behavioral aspects of bike user behaviors. While existing literature primarily focuses on predicting the number of rentals and returns per station, this study addresses the complementary aspect of predicting the trip duration and distance of the trip. Accurate prediction of ride duration allows a better estimate of bike availability at stations, while distance predictions assist in maintenance planning based on bike usage patterns. The contribution of this work is twofold. First, the proposed work clusters the BSS dataset into [Formula: see text] sub-datasets based on similarity of dataset instances. Then, the predictive model is trained to predict the data of each sub-dataset separately. Thus, there will be [Formula: see text] models for the [Formula: see text] sub-dataset. Next, the performance of the proposed method, the average score of the [Formula: see text] models, will be compared to the performance of a model trained on the complete dataset on predicting BSSs ride duration and distance of the trip. The rationale for splitting the dataset into [Formula: see text] sub-datasets is to separate similar patterns in one sub-dataset. Second, the utilization of the dynamic time warping (DTW) algorithm on the BSSs data was proposed for the clustering purpose, as the DTW usage is very limited in the current literature of BSSs. The dataset clustering is based on the similarity of the curves representing the number of trips between each pair of bike stations throughout the day hours. Then, the DTW algorithm is used to measure the curve similarity between these bike station pairs’ curves. These two contributions of the proposed approach complement existing prediction models for rentals and returns, providing a comprehensive solution for BSS optimization. The proposed method was thoroughly evaluated on two real datasets of different sizes. For the two datasets, the obtained results show that the best improvements of the predictive model’s accuracy are 30% and 42% on average for predicting trip duration and distance of the trip, respectively.

Applied Artificial IntelligenceVol. 39(1)
University of Technology Sydney (AU), Suez Canal University (EG), Prince Sattam Bin Abdulaziz University (SA), Higher Technological Institute (EG), University of Applied Science and Technology (IR), Zagazig University (EG), College of Applied Sciences, Nizwa (OM), Future Academy (EG), Australian Catholic University (AU)
Affordable and clean energy
Openalex Percentile: Top 8%
Human Mobility and Location-Based Analysis
4.35
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.