The Impact of Weather on Shared Bikes
Abstract
1. Introduction
2. Literature
2.1. Combined Travel Between Shared Bikes and Subway
2.2. The Impact of Weather on the Use of Shared Bikes
2.3. Methods for Predicting Shared Bike Usage
3. Research Area and Data
3.1. Study Area
3.2. Data Source and Description
3.3. Study Variables
3.3.1. Extraction of Shared Bikes Order Data near Subway Stations
3.3.2. Dependent Variable
3.3.3. Independent Variables
- (1)
- Basic weather variables
- (2)
- Dummy weather variable
- (3)
- Weather forecast variables
4. Research Methods
4.1. Random Forest Model
4.2. Model Interpretability
4.2.1. Feature Interaction
4.2.2. Importance of Features
4.2.3. Accumulated Local Effects Plot
4.3. Model Evaluation
5. Results Analysis
5.1. Comparative Analysis of Results Based on Different Models
5.2. Interaction Effects of Weather Factors
5.3. Ranking the Importance of Weather Factors
5.4. Impact of Weather Factors on Shared Bikes Transfer Volume
- (1)
- Temperature and Humidity
- (2)
- Rainfall and Wind velocity
- (3)
- Temperature differences, visibility and air quality
6. Conclusions
- (1)
- The random forest model has shown high accuracy in predicting the impact of weather changes on shared bicycle transfers. Machine learning algorithms can clearly explain the relationship between weather factors and shared bicycle transfers. It is feasible to use the RF+IML method to study the impact of weather variables on shared bicycle transfers.
- (2)
- The interaction effect mainly occurs between basic weather variables, especially between temperature, humidity, rainfall, and wind speed. Temperature is the most important factor affecting the prediction of shared bicycle transfer volume, with temperature, low-temperature weather, and low-temperature forecasts contributing over 35% of the total effect. The interaction effect between temperature and other weather factors accounts for 22% of the overall effect.
- (3)
- The relationship between temperature, humidity, and rainfall and the number of shared bicycle transfers often has specific activation and threshold effects. When the humidity is less than 60%, the change in the transfer volume of shared bicycles is relatively gentle. After exceeding 60%, the transfer volume of shared bicycles sharply decreases; Once the temperature exceeds 17 °C, its effect approaches saturation; When the rainfall reaches about 20 mm, its adverse effects approach the threshold.
- (4)
- The interaction effects between weather factors have a significant impact on shared bike transfer volume. Under cold and humid weather conditions, shared bike transfers are positively influenced by interaction effects. When the temperature in the Washington area approaches −10 °C and rainfall occurs, the predicted transfer volume of shared bikes generally shows an additional promoting effect. When wind speed is below 7 m/s, an increase in temperature is significantly associated with an increase in predicted transfer volume. In contrast, when the temperature is in the range of 0–10 °C and the air pollution index is high, the predicted transfer volume experiences an additional negative impact. On the other hand, under conditions of good air quality and high humidity, the predicted shared bike transfer volume receives an additional positive gain.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Qian, X.; Jaller, M.; Circella, G. Exploring the Potential Role of Bikeshare to Complement Public Transit: The Case of San Francisco amid the Coronavirus Crisis. Cities 2023, 137, 104290. [Google Scholar] [CrossRef]
- Liu, X.W. Study on Shared Bike Demand Prediction and Scheduling. Master’s Thesis, Liaoning Technical University, Fuxin, China, 2024. [Google Scholar] [CrossRef]
- Zhao, C.; Tang, J.; Gao, W.; Zeng, Y.; Li, Z. Many-Objective Optimization of Multi-Mode Public Transportation under Carbon Emission Reduction. Energy 2024, 286, 129627. [Google Scholar] [CrossRef]
- Cheng, L.; Huang, J.; Jin, T.; Chen, W.; Li, A.; Witlox, F. Comparison of Station-Based and Free-Floating Bikeshare Systems as Feeder Modes to the Metro. J. Transp. Geogr. 2023, 107, 103545. [Google Scholar] [CrossRef]
- Cheng, L.; Jin, T.; Wang, K.; Lee, Y.; Witlox, F. Promoting the Integrated Use of Bikeshare and Metro: A Focus on the Nonlinearity of Built Environment Effects. Multimodal Transp. 2022, 1, 100004. [Google Scholar] [CrossRef]
- Cui, X.F.; Ma, M.Y.; Jin, K.; Huang, H.J.; Zheng, Y. Research on Shared Bike Parking Space Optimization Based on Cycling Scale: A Case Study of Chongqing University Town. Urban Environ. Des. 2025, 2, 112–117. [Google Scholar] [CrossRef]
- White Paper on Shared Bicycles and Urban Development in 2017. Available online: https://zhuanlan.zhihu.com/p/26443639 (accessed on 18 December 2023).
- Bean, R.; Pojani, D.; Corcoran, J. How Does Weather Affect Bikeshare Use? A Comparative Analysis of Forty Cities across Climate Zones. J. Transp. Geogr. 2021, 95, 103155. [Google Scholar] [CrossRef]
- Morton, C. The Demand for Cycle Sharing: Examining the Links between Weather Conditions, Air Quality Levels, and Cycling Demand for Regular and Casual Users. J. Transp. Geogr. 2020, 88, 102854. [Google Scholar] [CrossRef]
- Gebhart, K.; Noland, R.B. The Impact of Weather Conditions on Bikeshare Trips in Washington, DC. Transportation 2014, 41, 1205–1225. [Google Scholar] [CrossRef]
- Zhao, J.; Deng, W.; Song, Y. Ridership and Effectiveness of Bikesharing: The Effects of Urban Features and System Characteristics on Daily Use and Turnover Rate of Public Bikes in China. Transp. Policy 2014, 35, 253–264. [Google Scholar] [CrossRef]
- Li, D.D. Research on the Impact of Rainy Weather on the Stability of Public Transport Passenger Flow. Master’s Thesis, Chang’an University, Xi’an, China, 2024. [Google Scholar] [CrossRef]
- Zhao, J.; Wang, J.; Xing, Z.; Luan, X.; Jiang, Y. Weather and Cycling: Mining Big Data to Have an in-Depth Understanding of the Association of Weather Variability with Cycling on an off-Road Trail and an on-Road Bike Lane. Transp. Res. Part A Policy Pract. 2018, 111, 119–135. [Google Scholar] [CrossRef]
- Flynn, B.S.; Dana, G.S.; Sears, J.; Aultman-Hall, L. Weather Factor Impacts on Commuting to Work by Bicycle. Prev. Med. 2012, 54, 122–124. [Google Scholar] [CrossRef]
- Thomas, T.; Jaarsma, C.F.; Tutert, B. Exploring Temporal Fluctuations of Daily Bicycle Demand on Dutch Cycle Paths: The Influence of Weather on Cycling. Transportation 2013, 40, 1–22. [Google Scholar] [CrossRef]
- Ding, C.; Cao, X.; Dong, M.; Zhang, Y.; Yang, J. Non-Linear Relationships between Built Environment Characteristics and Electric-Bike Ownership in Zhongshan, China. Transp. Res. Part D Transp. Environ. 2019, 75, 286–296. [Google Scholar] [CrossRef]
- Heaney, A.K.; Carrión, D.; Burkart, K.; Lesk, C.; Jack, D. Climate Change and Physical Activity: Estimated Impacts of Ambient Temperatures on Bikeshare Usage in New York City. Environ. Health Perspect. 2019, 127, 037002. [Google Scholar] [CrossRef]
- Noland, R.B.; Smart, M.J.; Guo, Z. Bikeshare Trip Generation in New York City. Transp. Res. Part A Policy Pract. 2016, 94, 164–181. [Google Scholar] [CrossRef]
- Guo, Y.; He, S.Y. Built Environment Effects on the Integration of Dockless Bike-Sharing and the Metro. Transp. Res. Part D Transp. Environ. 2020, 83, 102335. [Google Scholar] [CrossRef]
- Hu, S.; Chen, M.; Jiang, Y.; Sun, W.; Xiong, C. Examining Factors Associated with Bike-and-Ride (BnR) Activities around Metro Stations in Large-Scale Dockless Bikesharing Systems. J. Transp. Geogr. 2022, 98, 103271. [Google Scholar] [CrossRef]
- Zhan, Z.; Guo, Y.; Noland, R.B.; He, S.Y.; Wang, Y. Analysis of Links between Dockless Bikeshare and Metro Trips in Beijing. Transp. Res. Part A Policy Pract. 2023, 175, 103784. [Google Scholar] [CrossRef]
- Yan, Q.; Gao, K.; Sun, L.; Shao, M. Spatio-Temporal Usage Patterns of Dockless Bike-Sharing Service Linking to a Metro Station: A Case Study in Shanghai, China. Sustainability 2020, 12, 851. [Google Scholar] [CrossRef]
- Ma, X.; Ji, Y.; Jin, Y.; Wang, J.; He, M. Modeling the Factors Influencing the Activity Spaces of Bikeshare around Metro Stations: A Spatial Regression Model. Sustainability 2018, 10, 3949. [Google Scholar] [CrossRef]
- Heinen, E.; van Wee, B.; Maat, K. Commuting by Bicycle: An Overview of the Literature. Transp. Rev. 2010, 30, 59–96. [Google Scholar] [CrossRef]
- Kimpton, A.; Loginova, J.; Pojani, D.; Bean, R.; Sigler, T.; Corcoran, J. Weather to Scoot? How Weather Shapes Shared e-Scooter Ridership Patterns. J. Transp. Geogr. 2022, 104, 103439. [Google Scholar] [CrossRef]
- Kumar, D. Meteorological Barriers to Bike Rental Demands: A Case of Washington D.C. Using NCA Approach. Case Stud. Transp. Policy 2021, 9, 830–841. [Google Scholar] [CrossRef]
- El-Assi, W.; Salah Mahmoud, M.; Nurul Habib, K. Effects of Built Environment and Weather on Bike Sharing Demand: A Station Level Analysis of Commercial Bike Sharing in Toronto. Transportation 2017, 44, 589–613. [Google Scholar] [CrossRef]
- Wessel, J. Using Weather Forecasts to Forecast Whether Bikes Are Used. Transp. Res. Part A Policy Pract. 2020, 138, 537–559. [Google Scholar] [CrossRef]
- Guan, H.; Ji, X.; Li, W.; Chen, F. The Impact of Built Environment on the Combined Use of Bike Sharing and Subway Systems. J. Transp. Syst. Eng. Inf. Technol. 2024, 24, 200–211. [Google Scholar] [CrossRef]
- He, C.W. Research on Short-Term Demand Prediction and Vehicle Scheduling of Public Bicycles. Master’s Thesis, Suzhou University of Science and Technology, Suzhou, China, 2016. [Google Scholar]
- Chen, R. Research on Reduction-Based Bike Redistribution Path Optimization Based on Order Data. Master’s Thesis, Inner Mongolia University of Science and Technology, Baotou, China, 2025. [Google Scholar] [CrossRef]
- Wang, Q.; Cui, H. Non-Linear Effects of Built Environment on Peak-Time Shared Bike Usage: A Case Study of Xiamen Main Island. South. Archit. 2024, 1, 20–28. [Google Scholar]
- Song, Y.; Luo, K.; Shi, Z.; Zhang, L.; Shen, Y. Nonlinear Influence and Interaction Effect on the Imbalance of Metro-Oriented Dockless Bike-Sharing System. Sustainability 2024, 16, 349. [Google Scholar] [CrossRef]
- Han, T.; Tang, S.B.; Yang, Z.; Xiao, H. The Application of XGBoost and SHAP to Examine Factors in Bike Sharing-Related Demand. In Proceedings of the CICTP 2022: Intelligent, Green, and Connected Transportation, Changsha, China, 8–11 July 2022; pp. 2980–2990. [Google Scholar]
- Yan, Z.H.; Wang, X.Y.; Wei, X.Z.; Dai, H.F. Health Status Assessment of Lithium-Ion Batteries Based on Geometric Analysis of Electrochemical Impedance Spectroscopy. Energy Storage Sci. Technol. 2025, 2, 1–11. [Google Scholar] [CrossRef]
- Zhou, L.C. Research on Demand Prediction and Dynamic Dispatch Optimization of Bike Sharing. Master’s Thesis, North China University of Technology, Beijing, China, 2024. [Google Scholar] [CrossRef]
- Li, X.; Du, M.; Yang, J. Factors Influencing the Access Duration of Free-Floating Bike Sharing as a Feeder Mode to the Metro in Shenzhen. J. Clean. Prod. 2020, 277, 123273. [Google Scholar] [CrossRef]
- Kutela, B.; Teng, H. The Influence of Campus Characteristics, Temporal Factors, and Weather Events on Campuses-Related Daily Bike-Share Trips. J. Transp. Geogr. 2019, 78, 160–169. [Google Scholar] [CrossRef]
- Filipe Teixeira, J.; Diogo, V.; Bernát, A.; Lukasiewicz, A.; Vaiciukynaite, E.; Stefania Sanna, V. Barriers to Bike and E-Scooter Sharing Usage: An Analysis of Non-Users from Five European Capital Cities. Case Stud. Transp. Policy 2023, 13, 101045. [Google Scholar] [CrossRef]
- Miao, Q.; Welch, E.W.; Sriraj, P.S. Extreme Weather, Public Transport Ridership and Moderating Effect of Bus Stop Shelters. J. Transp. Geogr. 2019, 74, 125–133. [Google Scholar] [CrossRef]
- Böcker, L.; Dijst, M.; Faber, J. Weather, Transport Mode Choices and Emotional Travel Experiences. Transp. Res. Part A Policy Pract. 2016, 94, 360–373. [Google Scholar] [CrossRef]
- Wu, J.; Liao, H. Weather, Travel Mode Choice, and Impacts on Subway Ridership in Beijing. Transp. Res. Part A Policy Pract. 2020, 135, 264–279. [Google Scholar] [CrossRef]
- Singhal, A.; Kamga, C.; Yazici, A. Impact of Weather on Urban Transit Ridership. Transp. Res. Part A Policy Pract. 2014, 69, 379–391. [Google Scholar] [CrossRef]
- Kanungo, T.; Mount, D.M.; Netanyahu, N.S.; Piatko, C.D.; Silverman, R.; Wu, A.Y. An Efficient k-Means Clustering Algorithm: Analysis and Implementation. IEEE Trans. Pattern Anal. Mach. Intell. 2002, 24, 881–892. [Google Scholar] [CrossRef]
- Kilpeläinen, M.; Summala, H. Effects of Weather and Weather Forecasts on Driver Behaviour. Transp. Res. Part F Traffic Psychol. Behav. 2007, 10, 288–299. [Google Scholar] [CrossRef]
- Grange, K.S.; Carslaw, C.D.; Lewis, C.A.; Boleti, E.; Hueglin, C. Random Forest Meteorological Normalization Models for Swiss PM10 Trend Analysis. Atmos. Chem. Phys. 2018, 18, 6223–6239. [Google Scholar] [CrossRef]
- Sekulić, A.; Kilibarda, M.; Heuvelink, G.B.M.; Nikolić, M.; Bajat, B. Random Forest Spatial Interpolation. Remote Sens. 2020, 12, 1687. [Google Scholar] [CrossRef]
- Xie, C. Research on Public Transportation Environment Renewal Strategies from the Perspective of CPTED. Urban Archit. 2021, 18, 22–25. [Google Scholar] [CrossRef]
- Molnar, C. Interpretable Machine Learning; Leanpub: Victoria, BC, Canada, 2019. [Google Scholar]
- Kopsacheilis, A.; Politis, I.; Georgiadis, G. Assessment of Bus Speed Influencing Factors through the Exploitation of Machine Learning Techniques. Transp. Res. Procedia 2023, 69, 751–758. [Google Scholar] [CrossRef]
- Wang, Z.; Pel, A.J.; Verma, T.; Krishnakumari, P.; van Brakel, P.; van Oort, N. Effectiveness of Trip Planner Data in Predicting Short-Term Bus Ridership. Transp. Res. Part C Emerg. Technol. 2022, 142, 103790. [Google Scholar] [CrossRef]
- Kamińska, J.A. The Use of Random Forests in Modelling Short-Term Air Pollution Effects Based on Traffic and Meteorological Conditions: A Case Study in Wrocław. J. Environ. Manag. 2018, 217, 164–174. [Google Scholar] [CrossRef] [PubMed]
- Friedman, J.H.; Popescu, B.E. Predictive Learning via Rule Ensembles. Ann. Appl. Stat. 2008, 2, 916–954. [Google Scholar] [CrossRef]
- Interpretable Machine Learning. Available online: https://christophm.github.io/interpretable-ml-book/ (accessed on 14 November 2023).
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
- Qiu, Y.; Zhou, J. Short-term rockburst prediction in underground project: Insights from an explainable and interpretable ensemble learning model. Acta Geotech. 2023, 18, 6655–6685. [Google Scholar] [CrossRef]
- Xie, G.W.; Qian, L.B.; Tang, W.Y. Research on the Relationship Between Weather and Urban Shared Bicycle Travel Demand. Logist. Technol. 2022, 45, 84–90. [Google Scholar] [CrossRef]
- Liu, B.X. Short-Term Demand Prediction of Shared Bicycles Based on LightGBM. Mod. Inf. Technol. 2022, 6, 84–89. [Google Scholar] [CrossRef]
- Liu, P.; Fan, Z.L. Research on the Impact of Weather and Environment on the Transfer Volume of Shared Bicycles at Subway Stations. Urban Rail Transit Res. 2024, 27, 157–158. [Google Scholar]
- Bai, H.; Cao, Y.; Yu, M. Short-Term Trajectory Prediction Model for Bike Shares Based on Weather Factors and Spatiotemporal Attention Residual Bidirectional Network. J. Geo-Inf. Sci. 2024, 26, 2712–2721. [Google Scholar]
- Zhao, A. Research on Bike Share Demand Prediction and Allocation at Urban Rail Transit Stations. Master’s Thesis, Huazhong University of Science and Technology, Wuhan, China, 2021. [Google Scholar] [CrossRef]
- Xie, G. Bike Share Flow Prediction Based on an Improved Spatiotemporal Graph Neural Network. Master’s Thesis, East China Normal University, Shanghai, China, 2023. [Google Scholar] [CrossRef]
Dataset | Source | Website | Description |
---|---|---|---|
Air pollutant values | World Air Quality Index (WAQI) | https://waqi.info/ (4 May 2025) | Monitoring times, minimum value, maximum value, median, etc. |
UV index | National Oceanic and Atmospheric Administration | https://www.nasa.gov/ (6 May 2025) | The index range is 0–11 |
Historical weather data | Ronald Reagan Washington National Airport weather station | https://www.Rp5.ru (11 April 2025) | Temperature, visibility, humidity, wind speed, rainfall, etc., recorded every three hours |
Map information data | OpenStreetMap (OSM) | https://www.openstreetmap.org (5 March 2025) | City administrative region data, POI data, rail transit line network and site data |
Shared bike order data | Capital bikeshare (CaBi) | https://capitalbikeshare.com/ (7 April 2025) | User number, site name and its latitude and longitude, starting point and destination latitude and longitude, departure time and end time, user type and bike type, etc. |
N | Min | Max | Average | SD | |
---|---|---|---|---|---|
Basic weather variables | |||||
Visibility | 365 | 7.40 | 16.00 | 15.2759 | 1.62738 |
Humidity | 365 | 9.10 | 96.50 | 62.0710 | 13.98713 |
Temperature (Temp) | 365 | −10.00 | 30.01 | 15.0563 | 9.26532 |
Wind velocity | 365 | 1.10 | 14.80 | 3.9992 | 1.53985 |
Temp difference | 365 | 1.60 | 18.90 | 9.0345 | 3.54764 |
Rainfall | 365 | 0.00 | 166.90 | 4.2077 | 12.53246 |
UV intensity | 365 | 0.00 | 10.00 | 4.4521 | 2.85377 |
Air quality | 365 | 0.50 | 26.40 | 7.5058 | 4.86157 |
Dummy weather variable | |||||
Wet weather | 365 | 0.00 | 1.00 | 0.1151 | 0.31954 |
Dry weather | 365 | 0.00 | 1.00 | 0.1676 | 0.37401 |
Cold weather | 365 | 0.00 | 1.00 | 0.1319 | 0.33881 |
Wind weather | 365 | 0.00 | 1.00 | 0.1126 | 0.31658 |
Rainy weather | 365 | 0.00 | 1.00 | 0.1374 | 0.34470 |
Strong UV weather | 365 | 0.00 | 1.00 | 0.1154 | 0.31993 |
Weather forecast variables | |||||
Forecast of rain | 365 | 0.00 | 1.00 | 0.2932 | 0.45583 |
Forecast of UV warning | 365 | 0.00 | 1.00 | 0.2060 | 0.40502 |
Forecast of low temp | 365 | 0.00 | 1.00 | 0.0549 | 0.22819 |
Type | I | II | III | IV | V |
---|---|---|---|---|---|
Humidity | |||||
Cluster center value | 0–41% | 41–54% | 54–65% | 65–74% | 74–85% |
sample size | 63 | 103 | 89 | 68 | 42 |
Temperature | |||||
Cluster center value | 0–6 | 6–12 | 12–18 | 18–25 | 25+ |
sample size | 48 | 55 | 68 | 66 | 116 |
Wind velocity | |||||
Cluster center value | 0–1.7 | 1.7–2.6 | 2.6–3.5 | 3.5–4.8 | 4.8–6.9 |
sample size | 23 | 63 | 114 | 87 | 41 |
Rainfall | |||||
Cluster center value | 0 | 0–2 | 2–16 | ||
sample size | 242 | 72 | 51 | ||
UV intensity | |||||
Cluster center value | 1 | 2 | 3.5 | 7 | 9.1 |
sample size | 37 | 69 | 83 | 92 | 42 |
Authors | The Impact of Weather on Bike-Sharing Usage. | The Impact of Weather on Shared Bikes Transfer Volume |
---|---|---|
Xie et al. (2022) [57] | Temperature, thunderstorms, and wind speed significantly affect bike-sharing usage on Saturdays and Sundays. | An increase in temperature significantly promotes the combined use of shared bikes and subway transportation. |
Liu. (2022) [58] | Humidity has a relatively small impact on bike-sharing usage within a certain range. | When humidity increases from 10% to 60%, the change in shared bike transfer volume is relatively gradual. Beyond 60%, the shared bike transfer volume sharply decreases. |
Liu & Fan (2024) [59] | Temperature difference exhibits a nonlinear effect on bike-sharing usage. | When the temperature difference is less than 10 °C, it exhibits a positive correlation with the shared bikes transfer volume; however, when the temperature difference exceeds 10 °C, it shows a negative correlation with the shared bikes transfer volume. |
Bai et al. (2024) [60] | Long-term cycling of shared bikes under poor air quality may pose health risks, leading to a decrease in bike-sharing usage. | as the air pollution index increases, the predicted shared bikes transfer volume shows a linear decreasing trend. |
Zhao (2021) [61] | Weather temperature, rainfall, wind speed, and air quality have a significant impact on the demand for bike-sharing. | the relationships between rainfall and wind speed with the shared bikes transfer volume, showing negative correlations in both cases. |
Xie (2023) [62] | Low temperatures, poor visibility, and excessive rainfall all lead to a decrease in overall bike-sharing usage. | Visibility shows a positive correlation with the predicted shared bikes transfer volume |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, P.; Pan, Z.; Fan, Z.; Wang, X. The Impact of Weather on Shared Bikes. Appl. Sci. 2025, 15, 9834. https://doi.org/10.3390/app15179834
Liu P, Pan Z, Fan Z, Wang X. The Impact of Weather on Shared Bikes. Applied Sciences. 2025; 15(17):9834. https://doi.org/10.3390/app15179834
Chicago/Turabian StyleLiu, Peng, Zhicheng Pan, Zhenlong Fan, and Xiaoxia Wang. 2025. "The Impact of Weather on Shared Bikes" Applied Sciences 15, no. 17: 9834. https://doi.org/10.3390/app15179834
APA StyleLiu, P., Pan, Z., Fan, Z., & Wang, X. (2025). The Impact of Weather on Shared Bikes. Applied Sciences, 15(17), 9834. https://doi.org/10.3390/app15179834