A Comparative Study of Machine Learning Models for Bike Sharing Demand Prediction: A Feature-Centric Approach

Authors

  • Jiaxuan Wang Beijing Information Science and Technology University, Haidian District, Beijing, 100192, China

DOI:

https://doi.org/10.54097/j0anz382

Keywords:

Bike Sharing Demand Prediction, Machine Learning, Random Forest, Linear Regression, Decision Tree

Abstract

As smart city initiatives advance globally, precisely forecasting bike sharing demand has emerged as a critical challenge for optimizing urban transit systems and allocating resources efficiently. This study aims to compare the performance of three classical machine learning models — Linear Regression, Decision Tree, and Random Forest — in predicting hourly bike rental counts based on time and environmental features. Leveraging the publicly available Kaggle Bike Sharing Demand dataset, this study carries out thorough experiments incorporating systematic feature construction and temporal cross-validation. The experimental results show that the Random Forest model achieves the best overall performance with RMSE of 14.44, MAE of 10.73, and R² of 0.8922, outperforming Decision Tree (RMSE: 17.40, R²: 0.8433) and Linear Regression (RMSE: 21.03, R²: 0.7711). Feature importance analysis reveals that hour-related cyclic features (hour_sin) are the most influential factor, with an importance score of 0.602, followed by hour (0.172) and temperature (0.073). This study provides empirical evidence for model selection in bike sharing prediction tasks and offers practical guidance for urban transportation management.

Downloads

Download data is not yet available.

References

[1] DeMaio, P. (2009). Bike sharing: History, impacts, models of provision, and future. Journal of Public Transportation, 12(4), 41 56. https://doi.org/10.5038/2375 0901.12.4.3.

[2] Fishman, E., Washington, S., & Haworth, N. (2013). Bike share: A synthesis of the literature. Transport Reviews, 33(2), 148 165. https://doi.org/10.1080/01441647.2013.775612.

[3] Faghih Imani, A., Hampshire, R., Marla, L., & Eluru, N. (2017). An empirical analysis of bike sharing usage and rebalancing: Evidence from Barcelona and Seville. Transportation Research Part A: Policy and Practice, 97, 177 191. https://doi.org/10.1016/j.tra.2017.01.007.

[4] Gebhart, K., & Noland, R. (2014). The impact of weather conditions on bikeshare trips in Washington, D.C. Transportation, 41(6), 1205 1225. https://doi.org/10. 1007/ s1 1116 014 9524 7.

[5] Box, G. E. P., Jenkins, G. M., Reinsel, G. C., & Ljung, G. M. (2015). Time series analysis: Forecasting and control. John Wiley & Sons.

[6] Faghih Imani, A., Eluru, N., El Geneidy, A., Rabbat, M., & Haq, U. (2014). How land use and urban form impact bicycle flows: Evidence from the bicycle sharing system (BIXI) in Montreal. Journal of Transport Geography, 41, 306 314. https://doi.org/10.1016/j.jtrangeo.2014.08.013.

[7] Mullainathan, S., & Spiess, J. (2017). Machine learning: An applied econometric approach. Journal of Economic Perspectives, 31(2), 87 106. https://doi.org/ 10.1257/ jep. 31. 2. 87.

[8] Breiman, L., Friedman, J., Olshen, R., & Stone, C. (1984). Classification and regression trees. Chapman & Hall.

[9] Varian, H. R. (2014). Big data: New tricks for econometrics. Journal of Economic Perspectives, 28(2), 3 28. https://doi.org/ 10. 1257/ jep.28.2.3.

[10] Jiao, Z. L., Jin, H., Liu, B. Y., & Zhang, Z. H. (2018). Short term bike sharing demand prediction under big data condition: Comparison of machine learning models. Journal of Business Economics, 8, 16 25.

[11] Zhang, S. S. (2025). Short term demand forecasting for shared bicycles driven by big data. Information & Computer, 17, 18 20.

[12] Bai, H. W., Cao, F., & Yu, M. C. (2024). Short term trajectory prediction model of shared bicycles incorporating weather factors and spatio temporal attention residual graph network. Journal of Geo information Science, 26(12), 2712 2721.

[13] Campbell, A., Cherry, C., Ryerson, M., & Yang, X. (2016). Factors influencing the choice of shared bicycles and shared electric bikes in Beijing. Transportation Research Part C: Emerging Technologies, 67, 399 414. https://doi.org/10. 1016/ j. trc.2016.03.004.

[14] Loh, W. Y. (2011). Classification and regression trees. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 1(1), 14 23. https://doi.org/10.1002/widm.8.

[15] Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5 32. https://doi.org/10.1023/A:1010933404324.

[16] Hyndman, R. J., & Athanasopoulos, G. (2018). Forecasting: Principles and practice. OTexts.

Downloads

Published

02-09-2026

Issue

Section

Articles

How to Cite

Wang, J. (2026). A Comparative Study of Machine Learning Models for Bike Sharing Demand Prediction: A Feature-Centric Approach. Frontiers in Computing and Intelligent Systems, 17(3), 127-133. https://doi.org/10.54097/j0anz382