IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v18y2026i8p3766-d1917508.html

Ensemble Learning with Systematic Hyperparameter Optimization for Urban-Bike-Sharing Demand Prediction

Author

Listed:
  • Ivona Brajevic

    (Faculty of Applied Management, Economics and Finance, University Business Academy in Novi Sad, 11000 Belgrade, Serbia)

  • Eva Tuba

    (Singidunum University, 11010 Belgrade, Serbia
    Jozef Stefan Institute, 1000 Ljubljana, Slovenia
    D. R. Semmes School of Science, Trinity University, San Antonio, TX 78212, USA)

  • Milan Tuba

    (Singidunum University, 11010 Belgrade, Serbia
    Sinergija University, 76300 Bijeljina, Bosnia and Herzegovina)

Abstract

Bike sharing is an established component of urban mobility infrastructure, offering a low-emission alternative to motorized transport for short trips in cities worldwide. Accurate demand forecasting is essential for efficient system operation: it enables better bike redistribution, reduces user wait times, and lowers the operational costs associated with rebalancing. This study evaluated multiple ensemble strategies for hourly bike-sharing demand prediction, comparing bagging methods (Random Forest, Extra Trees), boosting methods (AdaBoost, Gradient Boosting Regressor, Histogram-based Gradient Boosting Regressor), and a Voting ensemble, while systematically investigating the impact of hyperparameter optimization. A repeated hold-out protocol was used, in which the dataset was randomly divided into 80% training and 20% test subsets across 10 random splits; 5-fold cross-validation was applied within each training fold exclusively for hyperparameter tuning, ensuring the test set remained unseen during model selection. Random Search and Bayesian Optimization were compared under identical budgets of 60 configurations per model. Results show that optimization substantially improves all models, with the most pronounced gains for AdaBoost (58% RMSE reduction) and Gradient Boosting Regressor (45% RMSE reduction). A Voting ensemble combining a Random Search-tuned Gradient Boosting Regressor and a Bayesian-optimized Histogram-based Gradient Boosting Regressor achieves the best overall performance (RMSE of 38.48, R 2 of 0.955) with the lowest variance among all repeated splits. Feature importance analysis confirms that hour of day and temperature are the dominant demand drivers, consistent with the operational patterns of urban bike-sharing systems. The performance difference between Random Search and Bayesian Optimization is negligible for most models, suggesting that well-designed search spaces allow simpler strategies to achieve competitive results. A controlled comparison conducted under identical experimental conditions shows that the Voting ensemble is statistically equivalent to XGBoost and nominally better than LightGBM, while CatBoost achieves a statistically significant advantage, highlighting it as a strong individual alternative.

Suggested Citation

  • Ivona Brajevic & Eva Tuba & Milan Tuba, 2026. "Ensemble Learning with Systematic Hyperparameter Optimization for Urban-Bike-Sharing Demand Prediction," Sustainability, MDPI, vol. 18(8), pages 1-22, April.
  • Handle: RePEc:gam:jsusta:v:18:y:2026:i:8:p:3766-:d:1917508
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/18/8/3766/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/18/8/3766/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:18:y:2026:i:8:p:3766-:d:1917508. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.