Next Article in Journal
Modification of Short-Channel Structures Towards Heat Transfer Intensification: CFD Modeling
Previous Article in Journal
Identification of Critical Transmission Sections Considering N-K Contingencies Under Extreme Events
Previous Article in Special Issue
Fast Identification of LiNMC Cells for Railway Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhancing Fuel Cell Hybrid Electric Vehicle Energy Management with Real-Time LSTM Speed Prediction

1
ESTACA, ESTACA’Lab–Paris-Saclay, 78180 Montigny-le-Bretonneux, France
2
DRIVE Nevers, Université de Bourgogne, 58027 Nevers, France
*
Author to whom correspondence should be addressed.
Energies 2025, 18(16), 4340; https://doi.org/10.3390/en18164340
Submission received: 8 July 2025 / Revised: 5 August 2025 / Accepted: 11 August 2025 / Published: 14 August 2025

Abstract

This paper presents an innovative approach to optimize real-time energy management in fuel cell electric vehicles (FCEVs) through an integrated EMS (iEMS) framework based on a nested concept. Central to our method are two LSTM-based speed prediction models, trained and validated on open-source datasets to enhance adaptability and efficiency. The first model, trained on a 27 h real-time database, is embedded within the iEMS for dynamic real-time operation. The second model assesses the impact of incorporating external traffic data on the prediction accuracy, offering a systematic approach to refining speed prediction models. The results demonstrate significant improvements in fuel efficiency and overall performance compared to existing models. This study highlights the promise of data-driven AI models in next-generation FCEV energy management, contributing to smarter and more sustainable mobility solutions.

1. Introduction

The automotive industry operates within a complex landscape shaped by economic, technological, and environmental factors [1,2,3,4,5]. Economic aspects, such as consumer demand and interest rates, influence sales, while technological advancements in safety and fuel efficiency drive innovation. Additionally, environmental concerns, including climate change and air pollution, play a crucial role in shaping regulations and consumer preferences [6,7].
In response, fuel cell hybrid electric vehicles (FCHEVs) emerge as a promising solution, offering zero emissions, a longer driving range compared to battery-electric vehicles, rapid refueling, a reduced dependence on fossil fuels, and greater energy efficiency than internal combustion engine vehicles [8,9,10]. However, integrating fuel cell systems (FCSs) into electric vehicles presents several challenges, such as system control complexity, cost, and long-term durability [11]. Fuel cells gradually lose performance over time due to material degradation, catalyst loss, mechanical wear, and variable operating conditions. This decline reduces efficiency, shortens lifespan, and raises maintenance and replacement costs [12].
To address these challenges, an energy management strategy (EMS) can be implemented to optimize the performance of fuel cell systems, enhancing their competitiveness with other powertrain technologies [13,14,15]. EMS plays a crucial role in managing hydrogen storage, distribution, control, and optimization while also improving durability and reliability, resulting in increased efficiency, reduced energy waste, and lower operating costs for fuel cell vehicles [15,16]. Various EMS frameworks have been developed, ranging from rule-based systems to global optimization algorithms such as Dynamic Programming and the Pontryagin Minimum Principle [17,18,19,20]. Although such approaches provide theoretical optimality, their dependence on prior knowledge of driving cycles limits real-time applicability.
Recent advancements in deep learning have opened new avenues for predictive energy management [21]. It aligns with the growing integration of intelligent transportation systems (ITSs) [22]. For instance, ref. [23,24] explores the use of deep reinforcement learning (DRL) algorithms to develop sophisticated EMS for hybrid electric vehicles (HEVs). Innovative forecasting methods, such as those discussed in [25], highlight the potential of deep learning architectures in capturing complex spatiotemporal traffic patterns.
In our context, the accuracy of speed prediction is crucial, as it directly impacts optimization outcomes. In [26], the authors demonstrate that an optimization algorithm can achieve global optimality with a sliding window speed prediction of 7 s or more. However, accurately predicting the stochastic nature of complex real-time driving conditions remains a significant challenge. Multiple factors influence speed prediction. In [27], the authors classify these factors based on whether they are internal or external and their dynamic or static characteristics (see Table 1). Each factor influences speed differently depending on the vehicle referential (i.e., single-, double-, or multi-vehicle scenarios). Learning-based techniques, trained on a wide range of data, have shown the best results for predicting the speed of a single vehicle [28,29,30]. In [31,32], the authors demonstrate that the Long Short-Term Memory (LSTM) model achieves the highest accuracy for speed over a prediction horizon of 1 to 10 s. Moreover, the challenge of accurate speed prediction in dynamic traffic conditions is being tackled through innovative models such as the D-LSTM. Ref. [33] presents a model that combines Dynamic Time Warping with LSTM, significantly improving traffic speed predictions, particularly under varying conditions.
In this work, we adopt a hybrid energy storage system (HESS) with a parallel architecture (FCS and battery), incorporating two converters to maximize controllability (see Figure 1) [34,35]. We incorporated an LSTM module for speed prediction to improve our energy estimation. Our work differs in its integration strategy and application scope. First, we introduce a real-time Integrated Energy Management System (iEMS) that incorporates LSTM-based speed predictions within a hybrid rule-based, optimization-based, and learning-based framework. Second, we examine not only the base LSTM model but also evaluate the influence of external data (e.g., traffic signals and leading vehicle behavior) on prediction accuracy. Third, we implement online filtering and validate the predictive results within an iEMS architecture in real-world scenarios. This approach enables smoother control transitions and more efficient fuel usage, as validated through performance comparisons with a reference iEMS model.
The remainder of this paper is organized as follows: Section 2 provides an overview of our iEMS framework, which integrates three key strategies: optimization-based, rule-based, and learning-based, previously detailed in [36]. Section 3 introduces and validates our speed prediction model, a crucial component for improving the adaptability of iEMS to real-time driving conditions. Finally, Section 4 presents the results of integrating the new LSTM speed prediction model into our iEMS and evaluates its impact on system performance.

2. Integrated Energy Management Strategy Model

The proposed system uses a Hybrid Energy Storage System (HESS) composed of a fuel cell system (FCS) and a high-voltage battery connected in a parallel configuration, as shown in Figure 1. Each source is managed by a dedicated DC/DC converter, enabling independent power control. The FCS supplies steady power for long-range driving, while the battery handles transients and peak loads. This setup improves flexibility, supports regenerative braking, and reduces stress on the fuel cell. The dual-converter design allows the EMS to optimize power flow in real time based on predicted speed and state of charge (SOC), making the architecture adaptable to various vehicle types.
The EMS model, illustrated in Figure 2, incorporates three key strategies: an optimal online On-Board Strategy (OBS) for fuel consumption optimization, a Rule-Based Strategy (RBS) for managing electrical energy and power assistance, and a Learning-Based Strategy (LBS) to adapt the iEMS to the vehicle’s real-time environment.
The OBS relies on a dynamic convergence condition (target SOC) over a future horizon. At each iteration of the Pontryagin’s Minimum Principle (PMP), it computes the optimal control sequence to reach the target SOC at t + Hp, where Hp is the prediction horizon. This approach minimizes real-time energy consumption, thereby enhancing the overall performance of the iEMS. As part of the PMP framework, the co-state variable is introduced; it acts as a dynamic weighting factor that reflects the relative cost of using battery energy versus fuel cell energy, and helps guide optimal energy-splitting decisions over time.
The OBS requires two key inputs. The first is the target SOC, calculated by the RBS block, which leverages expert knowledge of vehicle states and driving patterns to formulate a battery usage strategy. It also incorporates fuzzy C-means clustering for Driving Pattern Recognition (PDR). The second input, crucial to this study, is the predicted speed at the fixed horizon, which enables accurate system optimization. This aspect, handled by the LBS block, will be detailed in the next section.
The iEMS model is designed to adapt dynamically to real-time driving conditions, integrating additional constraints from the cooperative driving environment and the challenges posed by the fuel cell system in electric vehicles.
The FCHEV system model considered in this study is described in detail in [36]. To evaluate hydrogen consumption (our cost indicator), we introduced a second-order polynomial interpolation of the FCS fuel power, P f u e l , as illustrated in Figure 3. This interpolation enables the real-time application of PMP by expressing the cost function (i.e., P f u e l ) in terms of the control variable, namely the FCS net power P f c . The FCHEV model is designed for adaptability across a wide range of sizing applications, offering an intelligent trade-off between computational efficiency and modeling accuracy for real-time iEMS implementation.
This iEMS model represents a significant advancement in the development of Energy Management Systems (EMSs), providing a structured and systematic approach to designing complex EMS solutions. Its adaptability to real-time operating conditions, coupled with its emphasis on improving fuel efficiency, makes it a promising framework for future research and development in the field.
The next section explores the development of a speed prediction model based on a Long Short-Term Memory (LSTM) neural network. This model aims to further enhance the iEMS’s ability to adapt to real-time driving conditions, thereby improving the overall performance of the FCHEV. As a key innovation in EMS, the speed prediction model holds great potential for increasing the adaptability and efficiency of electric vehicles.

3. Speed Prediction

A more precise speed prediction model enhances the efficiency of the iEMS by enabling more informed power distribution between the fuel cell and the battery. Accurate forecasts of future speed allow the iEMS to minimize energy losses and improve overall system performance. In our case, as discussed in Section 1, the predicted speed is directly utilized by the OBS (see Figure 2). LSTM networks are particularly well-suited for vehicle speed prediction, as they effectively capture long-term dependencies and temporal dynamics within input sequences.

3.1. Long Short-Term Memory Neural Network

LSTM is a type of recurrent neural network (RNN) architecture specifically designed to address the vanishing gradient problem in traditional RNNs. This issue makes it challenging for standard RNNs to learn from data where outputs depend on long-term dependencies [37,38]. The key difference between LSTMs and conventional RNNs lies in the structure of their hidden layer. In a traditional RNN, the repeating module typically contains a single activation function. In contrast, LSTMs incorporate three distinct gates, each with its own activation function, which interact in a structured manner:
  • The input gate determines which values from the input should update the cell state.
  • The forget gate decides which information should be discarded from the cell state.
  • The output gate controls what portion of the cell state should be passed forward.
These gates regulate information flow using a sigmoid neural net layer and pointwise multiplication operations (see Figure 4 and reference [39] for further details). By enabling selective memory retention and removal, LSTMs are particularly well-suited for tasks requiring the comprehension of long data sequences, such as speed prediction.

3.2. Database Preprocessing

Database preprocessing is a critical step in deep learning model design, ensuring data quality, consistency, and compatibility. It involves data integration, feature extraction, data augmentation, normalization, standardization, and data splitting, all of which significantly impact model performance, generalization, and reliability.
  • Datasets
For this study, we use an open access, real-time database that records 20 driving cycles over 20 laps along the same route, with a resolution of 10 Hz. This dataset includes external factors such as the front vehicle’s behavior and traffic light data [40]. We selected this database to demonstrate how integrating external data can enhance speed prediction accuracy.
  • Handling Missing Data
Missing data is a common challenge in data analysis and machine learning. Addressing missing values involves identifying them and choosing an appropriate handling strategy, such as deletion, imputation, prediction, or the use of indicator variables. The chosen method depends on the quantity and pattern of missing data, the type of analysis, and the study objectives. In this work, since the number of missing values is negligible compared to the total dataset, we opted for a simple deletion approach.
  • Normalization
Before training machine learning models, data normalization is essential to improve model performance, accelerate training, enhance interpretability, and prevent numerical issues due to varying feature scales.
Min–max normalization, also known as feature scaling, is a standard technique that rescales all input features to a range between 0 and 1. This method ensures uniformity across features, contributing to a more stable and efficient learning process.
Min–max normalization can be calculated as
X n o r m = X X m i n X m a x X m i n
where X is the original value of an input feature, X m i n is the minimum value of that feature, X m a x is the maximum value of that feature, and X n o r m is the normalized value of that feature.
  • Features selection
Feature selection is a crucial step in the preprocessing phase of machine learning. It involves identifying and selecting the most relevant and informative features (i.e., variables or attributes) from the dataset to be used in the model. This process plays a key role in model development by enhancing predictive performance, reducing the risk of overfitting, improving training efficiency, and increasing model interpretability.
To achieve these objectives, feature selection methods such as the filter method help reduce the number of input variables by retaining only those most predictive of the target outcome. This refinement ensures that the model focuses on the most meaningful data, leading to better generalization and overall efficiency.
We employ a filter method to select our features, assessing their relevance based on statistical properties such as correlation with the target variable and variance (see Figure 5). Since this dataset corresponds to a specific track, applying this feature selection step to any other real-time database remains appropriate.
Notably, we do not expect the LSTM model trained on the 20-lap dataset to generalize directly about real-time traffic conditions. Instead, our goal is to establish a precise methodology that can be adapted to any real-time traffic database.
Histogram analysis reveals that speed, acceleration, front vehicle distance, and traffic light distance are the most predictive features. Accordingly, these variables are selected as input candidates for the LSTM-based speed prediction model. Each feature will be incorporated individually and in combination to evaluate its respective contributions, with the goal of determining the optimal input configuration for speed prediction.

3.3. LSTM Model Training

  • Dataset Splitting
Dividing the dataset into training, validation, and test sets is a crucial step in machine learning to effectively evaluate model performance. The primary objective of this split is to ensure that the model is trained on one subset of the dataset, validated on another, and tested on an independent set. This approach helps to evaluate how well the model generalizes to unseen data while mitigating the risk of overfitting.
  • Sliding Window and Prediction Horizon
The concepts of the sliding window and prediction horizon play a fundamental role in training LSTM models, especially for time series data analysis.
The sliding window technique involves segmenting a time series dataset into multiple shorter sequences of fixed length (as illustrated in Figure 6). For instance, if speed measurements are recorded for over one hour, the dataset can be divided into smaller sequences of fixed intervals. This method helps capture temporal dependencies and patterns within the data, which are critical for making accurate predictions.
The prediction horizon refers to the time interval into the future that we aim to predict. In the context of speed prediction, our objective is to forecast vehicle speed at a future point based on historical speed measurements. The prediction horizon is a critical parameter, as it defines the number of time steps the LSTM model must anticipate, directly influencing the complexity of the forecasting task.
By integrating the sliding window technique with the prediction horizon, we generate a sequence of input–output pairs for training and testing our LSTM model. Each input sequence consists of a window of previous feature measurements, while the corresponding output is the predicted speed at a future time step.
After several tests and comparisons, we found for the iEMS framework a 7 s prediction horizon and a 7 s sliding window. This configuration ensures temporal coherence between input sequences and output targets, and it aligns with previous work [32]. This ensures effective training and evaluation of our LSTM model, optimizing its accuracy and reliability for real-time speed prediction.

3.4. LSTM Architecture

The LSTM architecture consists of several key layers, each playing a distinct role in the network:
  • Sequence Input Layer: This layer receives sequential data, such as time series measurements, serving as the entry point for the network.
  • LSTM Layer: This core layer processes the input sequence, capturing long-term dependencies and temporal patterns critical for accurate predictions.
  • Fully Connected Layer: Positioned after the LSTM layer, this densely connected layer transforms the LSTM outputs into a fixed-size feature vector, enabling higher-level pattern recognition.
  • Regression Layer: The final layer processes the feature vector to generate a continuous output signal, making it well-suited for predicting real-valued data, such as vehicle speed.
In our case, we opted for a single-layer LSTM architecture. This decision was based on a trade-off between model complexity and real-time applicability. Preliminary testing with deeper stacked LSTM networks did not yield substantial improvements in prediction accuracy, while significantly increasing computational load and training time. Given the relatively compact size and consistency of our dataset, a single-layer structure proved sufficient for capturing temporal dependencies effectively. The defining feature of the LSTM architecture is its ability to capture and predict long-term dependencies within sequential data. This is made possible through a memory cell, which retains information from past inputs, enabling the network to remember relevant patterns and incorporate them into future predictions. The options used to train the models are summarized in Table 2. Regarding hyperparameter selection, we conducted a manual grid search using validation RMSE as the selection criterion. The selected configuration provided a favorable balance between prediction accuracy and training efficiency.
  • Model validation
During training, validation is a crucial step in LSTM modeling. It involves splitting the dataset into training and validation sets to evaluate the model’s performance on unseen data. This ensures that the model generalizes well and helps detect potential issues such as overfitting or underfitting.
To enhance validation accuracy, we applied k-fold cross-validation, a technique that divides the dataset into k equally sized folds. The model is then trained and evaluated k times, each time using a different combination of folds for training and validation. This approach offers a more robust assessment of the model’s performance.
In the next section, we present results from our speed prediction model and its integration into our iEMS.

3.5. Post-Processing

To ensure accurate real-world applicability, the LSTM-based speed prediction model must be refined prior to its integration into our iEMS framework. This section outlines the necessary post-processing steps to enhance prediction accuracy and system performance.
  • Identifying the Issue
Raw LSTM speed predictions often exhibit oscillations compared to actual values (Figure 7). These fluctuations can significantly impact acceleration calculations, which are crucial for FCHEV control and health management.
  • Enhancing Integrated Energy Management with Online Exponential Filtering
To mitigate these oscillations, we incorporate an online exponential filter into our iEMS framework. This filter smooths raw predictions using the following formula:
V f i l t e r e d t =   α V p r e d t +   1     α V f i l t e r e d ( t     T s )
Here, V f i l t e r e d   represents the filtered speed prediction, V p r e d is the LSTM raw predicted speed, α is the smoothing filter factor, and Ts is the speed prediction vector sample time. α is set to 0.02 through tuning, and the filter’s last-known speed initializes Vfiltered.
This filtering process reduces noise, ensuring smoother and more reliable predictions, which ultimately enhances the efficiency of iEMS decision-making. Results showed that applying the filter reduced the RMSE from 0.135 to 0.124, confirming that the filter not only smooths oscillations but also improves prediction accuracy. It proves to be a highly effective solution for smoothing LSTM speed predictions, offering several key advantages:
  • Preserves Data Integrity: Unlike traditional filtering techniques, it reduces oscillations without introducing undesirable signal shifts.
  • Computational Efficiency: The lightweight nature of the filter makes it well-suited for real-time iEMS applications, ensuring fast processing without excessive computational overhead.
  • Improved Accuracy: By refining speed predictions, the filter enhances acceleration calculations, directly contributing to better fuel efficiency and power management within the FCHEV system.
With the successful implementation of this exponential filter, our LSTM speed prediction model is now fully integrated into the iEMS framework. This integration results in a more stable and reliable EMS, ultimately optimizing FCHEV performance in real-world driving conditions.

4. Results and Discussion

To validate our innovative iEMS, we conducted a rigorous assessment using a cycle test partition from our original open-source database. Our evaluation followed a two-step process:
-
Speed Prediction Model Assessment
  • We first examined the impact of internal and external inputs on the LSTM speed prediction model.
  • Performance was assessed across four test cycles, highlighting improvements in accuracy with additional input features.
-
Comparative Analysis of the Real-Time iEMS
  • We systematically compared our newly integrated real-time iEMS with the reference iEMS from our previous work [37].
  • A key part of this evaluation included investigating the influence of initial state-of-charge (SOC) on energy management.
  • Two initial SOC conditions (35% and 65%) were analyzed for each test cycle, providing insights into how different SOC levels affect energy distribution strategies.
This comprehensive assessment provides a data-driven validation of our iEMS framework, demonstrating its ability to optimize fuel cell hybrid electric vehicle (FCHEV) performance under real-world conditions.

4.1. Real-Time Speed Prediction Model

To ensure a robust comparison between different LSTM model configurations, we employed a comprehensive methodology involving ten training and evaluation iterations per configuration, resulting in average RMSE values as the primary evaluation metric (see Table 3). In addition, the MAE is estimated between 0.123 for the speed-only model to 0.935 for the full-feature model.
A consistent trend emerged: As more input features were integrated, the mean RMSE decreased, indicating improved prediction accuracy. The best performance was achieved with four key features (speed, acceleration, traffic light distance, and followed vehicle distance), and resulted in the most accurate speed predictions. These results highlight the importance of considering both vehicle dynamics and external traffic context, incorporating proximities to other vehicles and traffic lights significantly enhances the model’s ability to precisely predict vehicle speed in real-time conditions.
This confirms that a multi-feature LSTM model is crucial for optimal speed prediction in an integrated energy management system (iEMS).
Figure 7 illustrates the outcomes of our optimal model, incorporating four inputs and the previously discussed filtering mechanism. We see a strong match between the predicted and actual signals. The model prediction aligns well with high and low speeds. It also responds well to changes from low to high speed and vice versa, indicating it has learned to use acceleration changes effectively. This configuration leads to stable, realistic speed predictions and moderate acceleration, aligning seamlessly with our iEMS framework.
Figure 7 shows the performance of our optimal LSTM model, which integrates
  • Four key input features (speed, acceleration, traffic light distance, and followed vehicle distance).
  • An exponential filtering mechanism for refining predictions.
We can summarize our findings as follows:
  • Strong correlation between predicted and actual speed signals.
  • Accurate predictions at both high and low speeds.
  • Effective response to acceleration changes, ensuring smooth transitions from low to high speed and vice versa.
  • Stable and realistic speed predictions lead to moderate acceleration values, a critical factor for FCHEV energy efficiency.
This refined speed prediction model seamlessly integrates into our iEMS framework, significantly enhancing real-time adaptability and energy management performance.

4.2. Speed Prediction Model iEMS Integration and Comparison

After integrating our LSTM speed prediction model, we evaluated its impact on real-time energy management.
In Figure 8, both costate trajectories exhibit oscillations within the range of 1.5 to 2, often stabilizing at 1.5, indicative of minimal FCS power usage. This observation underscores the substantial similarity between the two trajectories. Additionally, it is noteworthy that under the initial SOC condition of 35%, co-states exhibit higher values in the initial segment of the cycle, typically up to around the 200th second, in contrast to the rest of the cycle or to the corresponding portion of the cycle with an initial SOC of 65%. This disparity reflects the battery usage strategy’s successful efforts to replenish the battery when SOC is low and to maintain it when SOC is within an acceptable range, provided that power demand remains moderate. Consequently, we expect the SOC to remain within the 65% configurations and to increase within the 35% configurations, an aspect to be elaborated upon in the ensuing section.
However, a discernible distinction arises as our real-time iEMS demonstrates a marginally lower hydrogen consumption rate, resulting in a slightly improved fuel economy compared with our reference iEMS. This achievement is attributed to our LSTM model combined with our filtering method, enabling a slight underestimation of acceleration demands, thereby placing less strain on the FCS. Subsequently, we anticipate observing a lesser extent of battery stack replenishment by the real-time iEMS.
This achievement is attributed to our LSTM model combined with our filtering method, enabling a slight underestimation of acceleration demands. This results in less strain on the FCS, optimizing energy efficiency. Our enhanced real-time iEMS achieves better fuel economy and smoother energy management compared to the reference model.
Figure 9 consists of two subfigures for each test configuration, offering a comprehensive view of our findings. The left-hand side subfigures showcase the outcomes of our real-time iEMS, displaying power profiles for P b u s , P b a t t , and P f c , the system’s trajectory (i.e., SOC), and fuel consumption. On the right, subfigures offer a direct comparison between trajectories and battery energy consumption of our real-time iEMS and the benchmark iEMS, which operates with an ideal speed prediction model.
To thoroughly evaluate our real-time iEMS, Figure 9 presents two sets of subfigures for each test configuration. The left-hand side subfigures showcase the outcomes of our real-time iEMS, displaying the following:
  • Power Profiles:
    P b u s : Power demand on the bus;
    P b a t t : Battery power output;
    P f c : Fuel cell system power output.
  • State-of-Charge (SOC) Trajectory: Reflecting battery charge levels over time.
  • Fuel Consumption: Evaluating hydrogen efficiency.
On the right-hand side, subfigures offer a direct comparison between the following:
  • SOC trajectories of our real-time iEMS vs. benchmark iEMS (ideal speed prediction).
  • Battery Energy Consumption, showing differences in energy usage.
Globally, the battery successfully manages high-frequency power demands, preserving the fuel cell system’s longevity and health. Also, the SOC is effectively regulated, increasing from 35% to approximately 45% or maintaining a satisfactory range close to 65%.
Nonetheless, distinctive differences emerge in the SOC trajectory between our real-time iEMS and the reference iEMS. The reference iEMS tends to use more battery energy, which was not anticipated based on the previous fuel consumption comparison, as this strategy tends to consume slightly more hydrogen. Once again, the considered speed prediction model compensates for a drawback in our reference iEMS by effectively mitigating the issue of over-reliance on the FCS. The real-time iEMS successfully balances energy sources, optimizing hydrogen efficiency and battery usage, proving its practicality for real-world deployment.
The battery effectively handles high-frequency power demands, reducing strain on the fuel cell system (FCS) and extending its lifespan. Also, the SOC regulation is a success with
  • The 35% SOC scenario: Gradual increase to ~45%, ensuring stability.
  • The 65% SOC scenario: Maintains a satisfactory range, balancing energy sources efficiently.
From a comparative point of view, the reference iEMS unexpectedly consumes more battery energy while also slightly increasing hydrogen consumption. Thus, our real-time iEMS counterbalances this issue by optimizing speed predictions, reducing over-reliance on the FCS, and improving overall fuel efficiency. Moreover, iEMS achieves smoother SOC regulation, more balanced power distribution between the battery and fuel cell, and reduced hydrogen consumption—up to 7.3% lower than the reference model. These results demonstrate that the real-time LSTM-based iEMS achieves near-optimal performance with improved energy efficiency under real-world prediction constraints. LSTM-based speed prediction model plays a crucial role in enhancing energy efficiency, demonstrating its potential as a pivotal component in iEMS.
While the proposed real-time iEMS framework shows promising results, several limitations should be acknowledged. First, the training and validation of the LSTM-based speed prediction model were based on a specific open-source driving cycle database. Although diverse, this dataset may not fully capture the variety of real-world driving behaviors, road conditions, and vehicle types. Future studies should incorporate additional datasets, including those from different geographic regions and real traffic recordings, to enhance model generalization and robustness. We also need, in this case, to use more rigorous statistical approaches for feature selection. Second, the current study focuses primarily on software architecture and algorithmic validation through simulation. While the results show clear improvements in fuel efficiency and power management, further work is needed to integrate the model into a hardware-in-the-loop (HIL) platform for real-time testing. Such experiments would help verify the responsiveness, latency, and stability of the control strategy under realistic computation and sensor conditions. Additionally, fuel cell degradation and thermal behavior were not explicitly modeled in the current system. These factors can significantly affect long-term energy management decisions and system health. Incorporating aging models and thermal constraints into the iEMS could further improve reliability and real-world applicability.
The final section will synthesize the study’s contributions, outlining its impact and future directions for optimizing real-time energy management in FCHEVs.

5. Conclusions and Future Work

This paper presented a real-time Integrated Energy Management Strategy (iEMS) for Fuel Cell Hybrid Electric Vehicles (FCHEVs), enhanced by an LSTM-based speed prediction model and a lightweight exponential filtering method. The proposed framework leverages speed predictions to anticipate future power demands and optimize energy distribution between the fuel cell and battery. Comparative evaluations with a reference iEMS using ideal speed profiles demonstrated that our approach achieves near-optimal control performance, while offering improved hydrogen efficiency, smoother SOC regulation, and more stable power sharing. The exponential filter not only reduced prediction oscillations but also improved overall predictive accuracy. Our real-time architecture achieved significant improvements while maintaining a practical computational load suitable for embedded control environments.
To estimate the practical impact of improved hydrogen efficiency, we translated the fuel savings into economic terms. Based on current hydrogen prices (e.g., $12–$16 per kg in most regions), a 7.3% reduction in hydrogen consumption would yield approximately $250–$300 in annual savings for a commercial FCHEV covering 20,000 km per year. This represents a tangible reduction in operating cost. However, it is also important to note that as prediction accuracy improves beyond a certain point, the marginal cost savings may diminish. A detailed life cycle cost (LCC) or total cost of ownership (TCO) analysis, following the SAE J2908 standard, could more precisely evaluate this trade-off and guide controller design decisions from an economic perspective.
Despite these promising results, some limitations remain. The training and evaluation of the LSTM model were based on a single open-source dataset, which may not fully capture the diversity of real-world driving conditions. In future work, we plan to train and test the prediction model on broader datasets, including real-world driving logs and varying geographic environments, to improve model generalization. We also intend to deploy the iEMS framework on a real EMS test bench for hardware validation. This will allow us to assess system responsiveness, latency, and stability under actual runtime constraints. Further research will also explore the integration of fuel cell aging models and thermal constraints into the control logic, enabling better long-term management of system health.

Author Contributions

Conceptualization, T.A.; methodology, M.M. (Matthieu Matignon), M.M. (Mehdi Mcharek) and T.A.; validation, M.M. (Matthieu Matignon); formal analysis, M.M. (Matthieu Matignon) and M.M. (Mehdi Mcharek); writing—original draft, M.M. (Matthieu Matignon) and M.M. (Mehdi Mcharek); writing—review & editing, T.A.; supervision, T.A. and A.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Champion, V.; Allen, A.; Wigston, J. Investigating the potential energy savings of MVHR in automotive HVAC systems. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2023, 237, 1170–1180. [Google Scholar] [CrossRef]
  2. Mohsin, M.; Orynbassarov, D.; Anser, M.K.; Oskenbayev, Y. Does hydropower energy help to reduce CO2 emissions in European Union countries? evidence from quantile estimation. Environ. Dev. 2023, 45, 100794. [Google Scholar] [CrossRef]
  3. Antonacci, A.; Matheis, R.; Del Pero, F.; Thirunavukkarasu, D.; Delogu, M. Design of experiments framework for performance and environmental assessment in automotive context. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2025, 239, 464–488. [Google Scholar] [CrossRef]
  4. Fuller, R.; Landrigan, P.J.; Balakrishnan, K.; Bathan, G.; Bose-O’REilly, S.; Brauer, M.; Caravanos, J.; Chiles, T.; Cohen, A.; Corra, L.; et al. Pollution and health: A progress update. Lancet Planet. Health 2022, 6, e535–e547. [Google Scholar] [CrossRef] [PubMed]
  5. Saha, S.; Saha, A.; Saha, M.; Saha, K.; Chowdhury, Z.J. The positive effects of COVID-19 lockdown on environmental attributes: A Review. Am. J. Environ. Clim. 2022, 1, 38–44. [Google Scholar] [CrossRef]
  6. Hannappel, R. The impact of global warming on the automotive industry. AIP Conf. Proc. 2017, 1871, 060001. [Google Scholar]
  7. Sims, R.; Schaeffer, F.; Creutzig, X.; Cruz-Nunez, M.; D’agosto, D.; Dimitriu, M.J.; Meza, L.F.; Fulton, S.; Kobayashi, O.; Lah; et al. Transport Climate Change 2014: Mitigation of Climate Change. Contribution of Working Group III to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change; Edenhofer, O.R., Pichs-Madruga, Y., Sokona, E., Farahani, S., Kadner, K., Seyboth, A., Adler, I., Baum, S., Brunner, P., Eickemeier, B., et al., Eds.; Cambridge University Press: New York, NY, USA, 2014. [Google Scholar]
  8. Larminie, J.R.J. Fuel Cell-Technology Handbook. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2003, 217, 415. [Google Scholar] [CrossRef]
  9. Khokhar, H.N. Decarbonisation of Global Economies; Is net zero emission achievable? The case for hydrogen and fuel cell technology for innovative futures. J. Entrep. Innov. Emerg. Econ. 2023, 9, 92–130. [Google Scholar] [CrossRef]
  10. Endiz, M.S. A Comparison of battery and hydrogen fuel cell electric vehicles for clean transportation. Orclever Proc. Res. Dev. 2023, 2, 10–17. [Google Scholar] [CrossRef]
  11. Visvanathan, V.K.; Palaniswamy, K.; Ponnaiyan, D.; Chandran, M.; Kumaresan, T.; Ramasamy, J.; Sundaram, S. Fuel cell products for sustainable transportation and stationary power generation: Review on market perspective. Energies 2023, 16, 2748. [Google Scholar] [CrossRef]
  12. Meng, X.; Mei, J.; Tang, X.; Jiang, J.; Sun, C.; Song, K. The degradation prediction of proton exchange membrane fuel cell performance based on a transformer model. Energies 2024, 17, 3050. [Google Scholar] [CrossRef]
  13. Jia, H.; Li, H.; Yin, B.; Xie, X.; Pei, Y.; Gu, H. Study on energy management strategy of fuel cell patrol vehicle hybrid power system. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2024, 239, 2141–2152. [Google Scholar] [CrossRef]
  14. Matthieu, M.; Toufik, A.; Mehdi, M.; Chaibet, A. Real-time and multi-layered energy management strategies for fuel cell electric vehicle overview. In Proceedings of the IEEE 95th Vehicular Technology Conference, Helsinki, Finland, 19–22 June 2022; pp. 1–6. [Google Scholar]
  15. Song, D.; Wu, Q.; Yang, D.; Zeng, X.; Qian, Q.; Zhang, X. Research on operation cost minimization online energy management strategy for fuel cell hybrid passenger vehicles. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2022, 238, 420–432. [Google Scholar] [CrossRef]
  16. Touileb, R.; Abbou, A. Simulation and optimization of hydrogen consumption in a fuel cell/battery hybrid vehicle. Int. J. Power Electron. Drive Syst. (IJPEDS) 2023, 14, 662–672. [Google Scholar] [CrossRef]
  17. Szałek, A.; Pielecha, I.; Cieslik, W. Fuel cell electric vehicle (FCEV) energy flow analysis in real driving conditions (RDC). Energies 2021, 14, 5018. [Google Scholar] [CrossRef]
  18. Tang, X.; Xie, Y.; Wang, B.; Shi, L.; Wu, X. Energy management strategy for hydraulic hybrid system with compound accumulator based on dynamic programming. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2023, 237, 1819–1829. [Google Scholar] [CrossRef]
  19. Liu, K.; Asher, Z.; Gong, X.; Huang, M.; Kolmanovsky, I. Vehicle Velocity Prediction and Energy Management Strategy Part 1: Deterministic and Stochastic Vehicle Velocity Prediction Using Machine Learning, SAE Technical Paper Series; SAE Technical Paper: Warrendale, PA, USA, 2019. [Google Scholar]
  20. DeHua, S.; XiangWei, R.; ShaoHua, W.; YingFeng, C.; HuaPing, S.; Tao, Y. Adaptive energy management strategy for hybrid electric vehicle based on power prediction. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2022, 237, 1365–1377. [Google Scholar] [CrossRef]
  21. Khalatbarisoltani, A.; Zhou, H.; Tang, X.; Kandidayeni, M.; Boulon, L.; Hu, X. Energy management strategies for fuel cell vehicles: A comprehensive review of the latest progress in modeling, strategies, and future prospects. IEEE Trans. Intell. Transp. Syst. 2024, 25, 14–32. [Google Scholar] [CrossRef]
  22. Zhu, L.; Yu, F.R.; Wang, Y.; Ning, B.; Tang, T. Big data analytics in intelligent transportation systems: A survey. IEEE Trans. Intell. Transp. Syst. 2018, 20, 383–398. [Google Scholar] [CrossRef]
  23. Gan, J.; Li, S.; Wei, C.; Deng, L.; Tang, X. Intelligent learning algorithm and intelligent transportation-based energy management strategies for hybrid electric vehicles: A review. IEEE Trans. Intell. Transp. Syst. 2023, 24, 10345–10361. [Google Scholar] [CrossRef]
  24. Zhang, Y.; Huo, W.; Chen, Y.; Li, F.; Gong, G. Energy management and optimization for fuel cell vehicles incorporating deep reinforcement learning and traffic light information. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2025. [Google Scholar] [CrossRef]
  25. Arthurs, P.; Gillam, L.; Krause, P.; Wang, N.; Halder, K.; Mouzakitis, A. A taxonomy and survey of edge cloud computing for intelligent transportation systems and connected vehicles. IEEE Trans. Intell. Transp. Syst. 2021, 23, 6206–6221. [Google Scholar] [CrossRef]
  26. Yazdani, A.; Bidarvatan, M. Real-time optimal control of power management in a fuel cell hybrid electric vehicle: A comparative analysis. SAE Int. J. Altern. Powertrains 2018, 7, 43–54. [Google Scholar] [CrossRef]
  27. Zhou, Z.; Yang, Z.; Zhang, Y.; Huang, Y.; Chen, H.; Yu, Z. A comprehensive study of speed prediction in transportation system: From vehicle to traffic. iScience 2022, 25, 103909. [Google Scholar] [CrossRef] [PubMed]
  28. Ma, X.; Zhong, H.; Li, Y.; Ma, J.; Cui, Z.; Wang, Y. Forecasting transportation network speed using deep capsule networks with nested LSTM models. IEEE Trans. Intell. Transp. Syst. 2020, 22, 4813–4824. [Google Scholar] [CrossRef]
  29. Mackenzie, J.; Roddick, J.F.; Zito, R. An Evaluation of HTM and LSTM for short-term arterial traffic flow prediction. IEEE Trans. Intell. Transp. Syst. 2018, 20, 1847–1857. [Google Scholar] [CrossRef]
  30. Wang, R.; Shi, X.; Su, Y.; Song, T. A predictive energy management strategy for plug-in hybrid electric vehicles using real-time traffic based reference SOC planning. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2024, 239, 1872–1889. [Google Scholar] [CrossRef]
  31. Guo, J.; He, H.; Sun, C. ARIMA-based road gradient and vehicle velocity prediction for hybrid electric vehicle energy management. IEEE Trans. Veh. Technol. 2019, 68, 5309–5320. [Google Scholar] [CrossRef]
  32. Gaikwad, T.; Rabinowitz, A.; Motallebiaraghi, F.; Bradley, T.; Asher, Z.; Fong, A.; Meyer, R. Vehicle Velocity Prediction Using Artificial Neural Networks and Effect of Real-World Signals on Prediction Window; SAE Technical Paper: Warrendale, PA, USA, 2020; pp. 729–789. [Google Scholar]
  33. Meng, X.; Fu, H.; Peng, L.; Liu, G.; Yu, Y.; Wang, Z.; Chen, E. D-LSTM: Short-term road traffic speed prediction model based on gps positioning data. IEEE Trans. Intell. Transp. Syst. 2020, 23, 2021–2030. [Google Scholar] [CrossRef]
  34. Azib, T.; Bethoux, O.; Remy, G.; Marchand, C.; Berthelot, E. An innovative control strategy of a single converter for hybrid fuel cell/supercapacitor power source. IEEE Trans. Ind. Electron. 2010, 57, 4024–4031. [Google Scholar] [CrossRef]
  35. Sorlei, I.-S.; Bizon, N.; Thounthong, P.; Varlam, M.; Carcadea, E.; Culcer, M.; Iliescu, M.; Raceanu, M. Fuel cell electric vehicles—A brief review of current topologies and energy management strategies. Energies 2021, 14, 252. [Google Scholar] [CrossRef]
  36. Matignon, M.; Azib, T.; Mcharek, M.; Chaibet, A.; Ceschia, A. Real-Time Integrated Energy Management Strategy Applied to Fuel Cell Hybrid Systems. Energies 2023, 16, 2645. [Google Scholar] [CrossRef]
  37. Topić, J.; Škugor, B.; Deur, J. Receding-horizon prediction of vehicle velocity profile using deterministic and stochastic deep neural network models. Sustainability 2022, 14, 10674. [Google Scholar] [CrossRef]
  38. Pascanu, R.; Mikolov, T.; Bengio, Y. On the difficulty of training recurrent neural networks. In Proceedings of the International conference on machine learning, Atlanta, GA, USA, 16–21 June 2013; pp. 1310–1318. [Google Scholar]
  39. Ciechulski, T.; Osowski, S. High precision LSTM model for short-time load forecasting in power systems. Energies 2021, 14, 2983. [Google Scholar] [CrossRef]
  40. Rabinowitz, A.I.; Gaikwad, T.; White, S.; Bradley, T.; Asher, Z. Synchronous and Open, Real World, Vehicle, ADAS, and Infrastructure Data Streams for Automotive Machine Learning Algorithms Research; SAE Technical Paper: Warrendale, PA, USA, 2020; p. 736. [Google Scholar]
Figure 1. The FCHEV’s hybrid energy storage system and EMS.
Figure 1. The FCHEV’s hybrid energy storage system and EMS.
Energies 18 04340 g001
Figure 2. Proposed new iEMS algorithm architecture.
Figure 2. Proposed new iEMS algorithm architecture.
Energies 18 04340 g002
Figure 3. (a) Fuel cell system efficiency; (b) fuel cell system used versus output power.
Figure 3. (a) Fuel cell system efficiency; (b) fuel cell system used versus output power.
Energies 18 04340 g003
Figure 4. Detailed structure of an LSTM cell.
Figure 4. Detailed structure of an LSTM cell.
Energies 18 04340 g004
Figure 5. Database features weights.
Figure 5. Database features weights.
Energies 18 04340 g005
Figure 6. Sliding window and sequence-to-sequence prediction horizon operating process.
Figure 6. Sliding window and sequence-to-sequence prediction horizon operating process.
Energies 18 04340 g006
Figure 7. LSTM model results integrating external data using two test cycles.
Figure 7. LSTM model results integrating external data using two test cycles.
Energies 18 04340 g007
Figure 8. Online PMP costate results compared with the reference iEMS.
Figure 8. Online PMP costate results compared with the reference iEMS.
Energies 18 04340 g008
Figure 9. Comparing the performance of our real-time iEMS with a reference one utilizing ideal speed prediction.
Figure 9. Comparing the performance of our real-time iEMS with a reference one utilizing ideal speed prediction.
Energies 18 04340 g009
Table 1. Influencing factors of speed prediction.
Table 1. Influencing factors of speed prediction.
Data LocationData GroupSingle-Vehicle Data Examples
Internal: measurable by the powertrain sensors
  • Driving behavior (dynamic)
Driver’s behavior (e.g., calm, sportive…)
  • Vehicle information (static)
Vehicle weight, maximum speed…
  • Vehicle state (dynamic)
Vehicle speed, available fuel, battery SOC…
External: cooperative environment data
  • Traffic flow state (dynamic)
Front vehicle speed, distance…
  • Weather conditions (dynamic)
Fog, rain, snow…
  • Road and traffic rules (static)
Slope, speed limits, type of road (e.g., urban)…
  • Traffic signals and events (dynamic)
Traffic light state and distance, accidents…
Table 2. Options configuration of the Matlab training algorithm.
Table 2. Options configuration of the Matlab training algorithm.
OptionsParametersDescription
Training solverAdamOptimization algorithm
InitialLearnRate0.001Initial learning rate
ValidationData{Xval; Yval}Validation data
MaxEpoches100Training maximum number of epochs
ValidationFrequency10Frequency between validations
ValidationPatience5End of the network validation
MiniBatchSize256Midi-batch size used
ShuffleNeverWe never shuffle the data because our data are time-dependent
PlotsTraining progressDisplay the training progression on a plot
Table 3. Traffic Lights Database LSTM models comparison.
Table 3. Traffic Lights Database LSTM models comparison.
InputsMean RMSE
Speed0.1537
Speed, acceleration0.1310
Speed, acceleration, traffic light distance0.1294
Speed, acceleration, traffic light distance, followed vehicle distance0.1247
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.

Share and Cite

MDPI and ACS Style

Matignon, M.; Mcharek, M.; Azib, T.; Chaibet, A. Enhancing Fuel Cell Hybrid Electric Vehicle Energy Management with Real-Time LSTM Speed Prediction. Energies 2025, 18, 4340. https://doi.org/10.3390/en18164340

AMA Style

Matignon M, Mcharek M, Azib T, Chaibet A. Enhancing Fuel Cell Hybrid Electric Vehicle Energy Management with Real-Time LSTM Speed Prediction. Energies. 2025; 18(16):4340. https://doi.org/10.3390/en18164340

Chicago/Turabian Style

Matignon, Matthieu, Mehdi Mcharek, Toufik Azib, and Ahmed Chaibet. 2025. "Enhancing Fuel Cell Hybrid Electric Vehicle Energy Management with Real-Time LSTM Speed Prediction" Energies 18, no. 16: 4340. https://doi.org/10.3390/en18164340

APA Style

Matignon, M., Mcharek, M., Azib, T., & Chaibet, A. (2025). Enhancing Fuel Cell Hybrid Electric Vehicle Energy Management with Real-Time LSTM Speed Prediction. Energies, 18(16), 4340. https://doi.org/10.3390/en18164340

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop