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

SOC prediction for electric buses based on interpretable transformer model: Impact of traffic conditions and feature importance

Author

Listed:
  • Hu, Lipeng
  • Tang, Jinjun
  • Xu, Fuqiao
  • Liang, Xiao

Abstract

With increasingly serious environmental issues, the adoption of low-noise, low-emission new energy electric buses in urban public transportation systems is steadily increasing. Accurately estimating the battery State of Charge (SOC) during electric bus operations has emerged as a significant research challenge to improve battery health status. This study introduces a Transformer-based model employing a masked multi-head attention mechanism, designed to precisely capture both local and long-term dependencies through multi-source data integration, thereby achieving high-accuracy SOC predictions. The model effectively integrates vehicle dynamics, driver behavior, traffic conditions, and weather data through a Gated Residual Network (GRN) and a Variable Selection Network (VSN), improving SOC prediction accuracy. The GRN captures complex relationships between features, while the VSN identifies key factors related to SOC and reduces noise interference. The Masked Multi-Head Attention Mechanism enhances the model's ability to capture long-term dependencies, further improving SOC predictions over extended time horizons. The model is trained and evaluated using real-world datasets collected in Changsha city, China, including electric bus operation data, license plate recognition data, and weather information. Experimental results demonstrate that the model effectively captures the complex relationships between multi-source data and SOC, yielding accurate SOC predictions for the 10, 20, and 30-min prediction horizons. The corresponding Symmetric Mean Absolute Percentage Errors (SMAPE) are 0.418 %, 0.220 %, and 0.301 %, respectively, which validates the precision and reliability of proposed model.

Suggested Citation

  • Hu, Lipeng & Tang, Jinjun & Xu, Fuqiao & Liang, Xiao, 2025. "SOC prediction for electric buses based on interpretable transformer model: Impact of traffic conditions and feature importance," Energy, Elsevier, vol. 324(C).
  • Handle: RePEc:eee:energy:v:324:y:2025:i:c:s0360544225015774
    DOI: 10.1016/j.energy.2025.135935
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.energy.2025.135935?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.

    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:energy:v:324:y:2025:i:c:s0360544225015774. 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: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/energy .

    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.