IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v17y2025i15p7105-d1718265.html
   My bibliography  Save this article

Electric Bus Battery Energy Consumption Estimation and Influencing Features Analysis Using a Two-Layer Stacking Framework with SHAP-Based Interpretation

Author

Listed:
  • Runze Liu

    (School of Traffic & Transportation Engineering, Central South University, Changsha 410075, China)

  • Jianming Cai

    (School of Traffic & Transportation Engineering, Central South University, Changsha 410075, China)

  • Lipeng Hu

    (School of Traffic & Transportation Engineering, Central South University, Changsha 410075, China)

  • Benxiao Lou

    (School of Traffic & Transportation Engineering, Central South University, Changsha 410075, China)

  • Jinjun Tang

    (School of Traffic & Transportation Engineering, Central South University, Changsha 410075, China)

Abstract

The widespread adoption of electric buses represents a major step forward in sustainable transportation, but also brings new operational challenges, particularly in terms of improving their efficiency and controlling costs. Therefore, battery energy consumption management is a key approach for addressing these issues. Accurate prediction of energy consumption and interpretation of the influencing factors are essential for improving operational efficiency, optimizing energy use, and reducing operating costs. Although existing studies have made progress in battery energy consumption prediction, challenges remain in achieving high-precision modeling and conducting a comprehensive analysis of the influencing features. To address these gaps, this study proposes a two-layer stacking framework for estimating the energy consumption of electric buses. The first layer integrates the strengths of three nonlinear regression models—RF (Random Forest), GBDT (Gradient Boosted Decision Trees), and CatBoost (Categorical Boosting)—to enhance the modeling capacity for complex feature relationships. The second layer employs a Linear Regression model as a meta-learner to aggregate the predictions from the base models and improve the overall predictive performance. The framework is trained on 2023 operational data from two electric bus routes (NO. 355 and NO. W188) in Changsha, China, incorporating battery system parameters, driving characteristics, and environmental variables as independent variables for model training and analysis. Comparative experiments with various ensemble models demonstrate that the proposed stacking framework exhibits superior performance in data fitting. Furthermore, XGBoost (Extreme Gradient Boosting, version 2.1.4) is introduced as a surrogate model to approximate the decision logic of the stacking framework, enabling SHAP (SHapley Additive exPlanations) analysis to quantify the contribution and marginal effects of influencing features. The proposed stacked and surrogate models achieved superior battery energy consumption prediction accuracy (lowest MSE, RMSE, and MAE), significantly outperforming benchmark models on real-world datasets. SHAP analysis quantified the overall contributions of feature categories (battery operation parameters: 56.5%; driving characteristics: 42.3%; environmental data: 1.2%), further revealing the specific contributions and nonlinear influence mechanisms of individual features. These quantitative findings offer specific guidance for optimizing battery system control and driving behavior.

Suggested Citation

  • Runze Liu & Jianming Cai & Lipeng Hu & Benxiao Lou & Jinjun Tang, 2025. "Electric Bus Battery Energy Consumption Estimation and Influencing Features Analysis Using a Two-Layer Stacking Framework with SHAP-Based Interpretation," Sustainability, MDPI, vol. 17(15), pages 1-27, August.
  • Handle: RePEc:gam:jsusta:v:17:y:2025:i:15:p:7105-:d:1718265
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/17/15/7105/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/17/15/7105/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Zhang, Jin & Wang, Zhenpo & Liu, Peng & Zhang, Zhaosheng, 2020. "Energy consumption analysis and prediction of electric vehicles based on real-world driving data," Applied Energy, Elsevier, vol. 275(C).
    2. Yajing Gao & Shixiao Guo & Jiafeng Ren & Zheng Zhao & Ali Ehsan & Yanan Zheng, 2018. "An Electric Bus Power Consumption Model and Optimization of Charging Scheduling Concerning Multi-External Factors," Energies, MDPI, vol. 11(8), pages 1-17, August.
    3. Wang, An & Xu, Junshi & Zhang, Mingqian & Zhai, Zhiqiang & Song, Guohua & Hatzopoulou, Marianne, 2022. "Emissions and fuel consumption of a hybrid electric vehicle in real-world metropolitan traffic conditions," Applied Energy, Elsevier, vol. 306(PB).
    4. Nan, Sirui & Tu, Ran & Li, Tiezhu & Sun, Jian & Chen, Haibo, 2022. "From driving behavior to energy consumption: A novel method to predict the energy consumption of electric bus," Energy, Elsevier, vol. 261(PA).
    5. Wager, Guido & Whale, Jonathan & Braunl, Thomas, 2016. "Driving electric vehicles at highway speeds: The effect of higher driving speeds on energy consumption and driving range for electric vehicles in Australia," Renewable and Sustainable Energy Reviews, Elsevier, vol. 63(C), pages 158-165.
    6. Jari Vepsäläinen & Antti Ritari & Antti Lajunen & Klaus Kivekäs & Kari Tammi, 2018. "Energy Uncertainty Analysis of Electric Buses," Energies, MDPI, vol. 11(12), pages 1-29, November.
    7. Yang Liu & Tianxing Yang & Liwei Tian & Bincheng Huang & Jiaming Yang & Zihan Zeng, 2024. "Ada-XG-CatBoost: A Combined Forecasting Model for Gross Ecosystem Product (GEP) Prediction," Sustainability, MDPI, vol. 16(16), pages 1-19, August.
    8. Jarosław Ziółkowski & Mateusz Oszczypała & Jerzy Małachowski & Joanna Szkutnik-Rogoż, 2021. "Use of Artificial Neural Networks to Predict Fuel Consumption on the Basis of Technical Parameters of Vehicles," Energies, MDPI, vol. 14(9), pages 1-23, May.
    9. Qian Zhang & Shaopeng Tian, 2023. "Energy Consumption Prediction and Control Algorithm for Hybrid Electric Vehicles Based on an Equivalent Minimum Fuel Consumption Model," Sustainability, MDPI, vol. 15(12), pages 1-17, June.
    10. Fiori, Chiara & Ahn, Kyoungho & Rakha, Hesham A., 2016. "Power-based electric vehicle energy consumption model: Model development and validation," Applied Energy, Elsevier, vol. 168(C), pages 257-268.
    11. Zhen Chen & Wei Fan, 2021. "A Freeway Travel Time Prediction Method Based on an XGBoost Model," Sustainability, MDPI, vol. 13(15), pages 1-15, July.
    12. Gallet, Marc & Massier, Tobias & Hamacher, Thomas, 2018. "Estimation of the energy demand of electric buses based on real-world data for large-scale public transport networks," Applied Energy, Elsevier, vol. 230(C), pages 344-356.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zhang, Xinfang & Zhang, Zhe & Liu, Yang & Xu, Zhigang & Qu, Xiaobo, 2024. "A review of machine learning approaches for electric vehicle energy consumption modelling in urban transportation," Renewable Energy, Elsevier, vol. 234(C).
    2. Dong, Changyin & Xiong, Zhuozhi & Li, Ni & Yu, Xinlian & Liang, Mingzhang & Zhang, Chu & Li, Ye & Wang, Hao, 2025. "A real-time prediction framework for energy consumption of electric buses using integrated Machine learning algorithms," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 194(C).
    3. Ali Saadon Al-Ogaili & Ali Q. Al-Shetwi & Hussein M. K. Al-Masri & Thanikanti Sudhakar Babu & Yap Hoon & Khaled Alzaareer & N. V. Phanendra Babu, 2021. "Review of the Estimation Methods of Energy Consumption for Battery Electric Buses," Energies, MDPI, vol. 14(22), pages 1-28, November.
    4. Jia, Zhenyu & Yin, Jiawei & Cao, Zeping & Wu, Lin & Wei, Ning & Zhang, Yanjie & Jiang, Zhiwen & Guo, Dongping & Zhang, Qijun & Mao, Hongjun, 2025. "Regional vehicle energy consumption evaluation framework to quantify the benefits of vehicle electrification in plateau city: A case study of Xining, China," Applied Energy, Elsevier, vol. 377(PC).
    5. Feng, Zhanyu & Zhang, Jian & Jiang, Han & Yao, Xuejian & Qian, Yu & Zhang, Haiyan, 2024. "Energy consumption prediction strategy for electric vehicle based on LSTM-transformer framework," Energy, Elsevier, vol. 302(C).
    6. Teresa Pamuła & Wiesław Pamuła, 2020. "Estimation of the Energy Consumption of Battery Electric Buses for Public Transport Networks Using Real-World Data and Deep Learning," Energies, MDPI, vol. 13(9), pages 1-17, May.
    7. Jiang, Junyu & Yu, Yuanbin & Min, Haitao & Cao, Qiming & Sun, Weiyi & Zhang, Zhaopu & Luo, Chunqi, 2023. "Trip-level energy consumption prediction model for electric bus combining Markov-based speed profile generation and Gaussian processing regression," Energy, Elsevier, vol. 263(PD).
    8. Li, Pengshun & Zhang, Yuhang & Zhang, Yi & Zhang, Yi & Zhang, Kai, 2021. "Prediction of electric bus energy consumption with stochastic speed profile generation modelling and data driven method based on real-world big data," Applied Energy, Elsevier, vol. 298(C).
    9. Papa, Gregor & Santo Zarnik, Marina & Vukašinović, Vida, 2022. "Electric-bus routes in hilly urban areas: Overview and challenges," Renewable and Sustainable Energy Reviews, Elsevier, vol. 165(C).
    10. Boud Verbrugge & Mohammed Mahedi Hasan & Haaris Rasool & Thomas Geury & Mohamed El Baghdadi & Omar Hegazy, 2021. "Smart Integration of Electric Buses in Cities: A Technological Review," Sustainability, MDPI, vol. 13(21), pages 1-23, November.
    11. Huang, Hai-chao & He, Hong-di & Peng, Zhong-ren, 2024. "Urban-scale estimation model of carbon emissions for ride-hailing electric vehicles during operational phase," Energy, Elsevier, vol. 293(C).
    12. Yuan, Xinmei & Zhang, Chuanpu & Hong, Guokai & Huang, Xueqi & Li, Lili, 2017. "Method for evaluating the real-world driving energy consumptions of electric vehicles," Energy, Elsevier, vol. 141(C), pages 1955-1968.
    13. Sun, Xilei & Fu, Jianqin, 2024. "Many-objective optimization of BEV design parameters based on gradient boosting decision tree models and the NSGA-III algorithm considering the ambient temperature," Energy, Elsevier, vol. 288(C).
    14. Li, Qianwen & Leng, Yunhan & Yao, Handong & Pei, Mingyang, 2024. "Assessment of transit bus electricity consumption using a random parameters approach," Energy, Elsevier, vol. 307(C).
    15. Yang, Lan & Hu, Zhiqiang & Wang, Liang & Liu, Yang & He, Jiangbo & Qu, Xiaobo & Zhao, Xiangmo & Fang, Shan, 2024. "Entire route eco-driving method for electric bus based on rule-based reinforcement learning," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 189(C).
    16. Andrea Di Martino & Seyed Mahdi Miraftabzadeh & Michela Longo, 2022. "Strategies for the Modelisation of Electric Vehicle Energy Consumption: A Review," Energies, MDPI, vol. 15(21), pages 1-20, October.
    17. Kristián Čulík & Vladimíra Štefancová & Karol Hrudkay & Ján Morgoš, 2021. "Interior Heating and Its Influence on Electric Bus Consumption," Energies, MDPI, vol. 14(24), pages 1-19, December.
    18. Jiang, Yu & Guo, Jianhua & Zhao, Di & Li, Yue, 2024. "Intelligent energy consumption prediction for battery electric vehicles: A hybrid approach integrating driving behavior and environmental factors," Energy, Elsevier, vol. 308(C).
    19. Klemen Deželak & Klemen Sredenšek & Sebastijan Seme, 2023. "Energy Consumption and Grid Interaction Analysis of Electric Vehicles Based on Particle Swarm Optimisation Method," Energies, MDPI, vol. 16(14), pages 1-15, July.
    20. Dong, Changyin & Xiong, Zhuozhi & Zhang, Chu & Li, Ni & Li, Ye & Xie, Ning & Zhang, Jiarui & Wang, Hao, 2025. "A transformer-based approach for deep feature extraction and energy consumption prediction of electric buses based on driving distances," Applied Energy, Elsevier, vol. 380(C).

    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:17:y:2025:i:15:p:7105-:d:1718265. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.