IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v380y2025ics0306261924013242.html
   My bibliography  Save this article

A transformer-based approach for deep feature extraction and energy consumption prediction of electric buses based on driving distances

Author

Listed:
  • Dong, Changyin
  • Xiong, Zhuozhi
  • Zhang, Chu
  • Li, Ni
  • Li, Ye
  • Xie, Ning
  • Zhang, Jiarui
  • Wang, Hao

Abstract

Electric buses (EBs) are widely recognized as an environmentally friendly and energy-efficient alternative to traditional diesel buses. However, the issue of driving range anxiety hinders their further adoption and popularity. This study proposes a transformer-based approach to predict the energy consumption rate (ECR) of EBs based on driving distances by extracting implicit features from dynamic characteristics. First, high-resolution bus data is acquired and divided into trip segments, which are then fused with meteorological and road network data. Second, sliding windows are employed for different travel ranges to construct the dataset. Each sample in the dataset contains 12 historical dynamic feature time series and 12 predetermined features within the predicted range. The historical dynamic features are deeply extracted using the Transformer encoder module to obtain implicit features like driver behavior and bus kinematic characteristics. They are then fused with other factors, and the prediction of the ECR is performed using a fully connected neural network. Finally, a sensitivity analysis is conducted for each feature to demonstrate its impact and variations under different implicit features and travel distances. The results indicate that the prediction accuracy improves as the driving range increases. The mean absolute error (MAE) decreases from 0.28kWh/km for 250 m to 0.09kWh/km for 10 km. Compared to seven methods in the literature, this approach reduces the MAE by 1% to 39% in various conditions. This research contributes to accurate prediction of energy consumption for future distances, and supports the real-time calculation of remaining battery-supported distance.

Suggested Citation

  • 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).
  • Handle: RePEc:eee:appene:v:380:y:2025:i:c:s0306261924013242
    DOI: 10.1016/j.apenergy.2024.123941
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0306261924013242
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.apenergy.2024.123941?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Cedric De Cauwer & Wouter Verbeke & Thierry Coosemans & Saphir Faid & Joeri Van Mierlo, 2017. "A Data-Driven Method for Energy Consumption Prediction and Energy-Efficient Routing of Electric Vehicles in Real-World Conditions," Energies, MDPI, vol. 10(5), pages 1-18, May.
    2. Irfan Ullah & Kai Liu & Toshiyuki Yamamoto & Rabia Emhamed Al Mamlook & Arshad Jamal, 2022. "A comparative performance of machine learning algorithm to predict electric vehicles energy consumption: A path towards sustainability," Energy & Environment, , vol. 33(8), pages 1583-1612, December.
    3. Rogge, Matthias & van der Hurk, Evelien & Larsen, Allan & Sauer, Dirk Uwe, 2018. "Electric bus fleet size and mix problem with optimization of charging infrastructure," Applied Energy, Elsevier, vol. 211(C), pages 282-295.
    4. Li, Pengshun & Zhang, Yi & Zhang, Yi & Zhang, Kai & Jiang, Mengyan, 2021. "The effects of dynamic traffic conditions, route characteristics and environmental conditions on trip-based electricity consumption prediction of electric bus," Energy, Elsevier, vol. 218(C).
    5. 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).
    6. Feng Mao & Zhiheng Li & Kai Zhang, 2021. "A Comparison of Carbon Dioxide Emissions between Battery Electric Buses and Conventional Diesel Buses," Sustainability, MDPI, vol. 13(9), pages 1-15, May.
    7. Vepsäläinen, Jari & Otto, Kevin & Lajunen, Antti & Tammi, Kari, 2019. "Computationally efficient model for energy demand prediction of electric city bus in varying operating conditions," Energy, Elsevier, vol. 169(C), pages 433-443.
    8. 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).
    9. 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.
    10. 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).
    11. Lim, Lek Keng & Muis, Zarina Ab & Ho, Wai Shin & Hashim, Haslenda & Bong, Cassendra Phun Chien, 2023. "Review of the energy forecasting and scheduling model for electric buses," Energy, Elsevier, vol. 263(PD).
    12. Jian Gong & Jie He & Cheng Cheng & Mark King & Xintong Yan & Zhixia He & Hao Zhang, 2020. "Road Test-Based Electric Bus Selection: A Case Study of the Nanjing Bus Company," Energies, MDPI, vol. 13(5), pages 1-12, March.
    13. 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.
    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. 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).
    2. 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).
    3. Zhang, Zhaosheng & Wang, Shuai & Ye, Baolin & Ma, Yucheng, 2025. "A feature prediction-based method for energy consumption prediction of electric buses," Energy, Elsevier, vol. 314(C).
    4. Viana-Fons, Joan Dídac & Payá, Jorge, 2024. "HVAC system operation, consumption and compressor size optimization in urban buses of Mediterranean cities," Energy, Elsevier, vol. 296(C).
    5. Basso, Franco & Feijoo, Felipe & Pezoa, Raúl & Varas, Mauricio & Vidal, Brian, 2024. "The impact of electromobility in public transport: An estimation of energy consumption using disaggregated data in Santiago, Chile," Energy, Elsevier, vol. 286(C).
    6. 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.
    7. Lim, Lek Keng & Muis, Zarina Ab & Ho, Wai Shin & Hashim, Haslenda & Bong, Cassendra Phun Chien, 2023. "Review of the energy forecasting and scheduling model for electric buses," Energy, Elsevier, vol. 263(PD).
    8. 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).
    9. Foda, Ahmed & Abdelaty, Hatem & Mohamed, Moataz & El-Saadany, Ehab, 2023. "A generic cost-utility-emission optimization for electric bus transit infrastructure planning and charging scheduling," Energy, Elsevier, vol. 277(C).
    10. 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).
    11. Zhao, Li & Ke, Hanchen & Huo, Weiwei, 2023. "A frequency item mining based energy consumption prediction method for electric bus," Energy, Elsevier, vol. 263(PD).
    12. Roman Michael Sennefelder & Rubén Martín-Clemente & Ramón González-Carvajal, 2023. "Energy Consumption Prediction of Electric City Buses Using Multiple Linear Regression," Energies, MDPI, vol. 16(11), pages 1-14, May.
    13. Pan, Yingjiu & Fang, Wenpeng & Ge, Zhenzhen & Li, Cheng & Wang, Caifeng & Guo, Baochang, 2024. "A hybrid on-line approach for predicting the energy consumption of electric buses based on vehicle dynamics and system identification," Energy, Elsevier, vol. 290(C).
    14. Brinkel, Nico & Zijlstra, Marle & van Bezu, Ronald & van Twuijver, Tim & Lampropoulos, Ioannis & van Sark, Wilfried, 2023. "A comparative analysis of charging strategies for battery electric buses in wholesale electricity and ancillary services markets," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 172(C).
    15. 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).
    16. Hatem Abdelaty & Moataz Mohamed, 2021. "A Prediction Model for Battery Electric Bus Energy Consumption in Transit," Energies, MDPI, vol. 14(10), pages 1-26, May.
    17. Ma, Xiaolei & Miao, Ran & Wu, Xinkai & Liu, Xianglong, 2021. "Examining influential factors on the energy consumption of electric and diesel buses: A data-driven analysis of large-scale public transit network in Beijing," Energy, Elsevier, vol. 216(C).
    18. 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).
    19. McCluskey, Jac & Druitt, Tom & Larkin, Charles, 2025. "Sustainability in transit: Assessing the economic case for electric bus adoption in the UK," Transport Policy, Elsevier, vol. 162(C), pages 493-508.
    20. 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.

    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:eee:appene:v:380:y:2025:i:c:s0306261924013242. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    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.