Correction: A hybrid LSTM–transformer model for accurate remaining useful life prediction of lithium-ion batteries

1. Introduction With the global transition toward cleaner energy and the rapid advancement of electrification technologies, lithium-ion batteries have emerged as essential energy storage components in electric vehicles, renewable energy storage systems, and portable electronic devices[1]. Owing to their high energy density, long cycle life, and low self-discharge rate, lithium-ion batteries have become increasingly important. However, their performance inevitably degrades over time due to repeated charge-discharge cycles, leading to capacity fade and a shortened remaining useful life (RUL)[2]. Accurate prediction of battery state of health (SOH) and RUL is crucial for optimizing battery management, extending service life, reducing maintenance costs, and ensuring system safety[3,4]. In particular, battery failure in electric vehicles or large-scale energy storage systems can result in significant safety hazards and economic losses, making the development of high-accuracy RUL prediction methods a pressing research focus. Precise RUL prediction plays a vital role in optimizing battery management systems. First, it provides a scientific basis for battery replacement and maintenance decisions, thereby lowering operational costs[5]. Second, it enables early identification of potential failures, thus enhancing system safety[6]. Moreover, accurate RUL estimates support battery recycling and second-life applications, contributing to sustainable resource utilization. Nevertheless, several challenges hinder effective RUL prediction. The degradation process is influenced by multiple factors such as temperature, charge/discharge rates, and usage scenarios, exhibiting high nonlinearity and complexity[7]. Real-world operational data often contain noise and missing values, increasing the difficulty of modeling[8]. Furthermore, long-term prediction requires models that can simultaneously capture short-term fluctuations and long-term trends, which is difficult for single-model architectures to achieve. Traditional RUL prediction approaches can be categorized into physics-based and data-driven methods. Physics-based models rely on the electrochemical mechanisms of batteries[9], using complex mathematical formulations to describe the degradation process. However, these methods require detailed knowledge of material properties and operating conditions, involve high computational complexity, and often lack generalizability across different battery types. In contrast, data-driven approaches have gained popularity by learning patterns directly from operational data[10]. With advances in sensor technology and data acquisition capabilities, these methods can effectively model battery behavior using features such as voltage, current, and temperature, showing improved adaptability and predictive accuracy. Data-driven RUL prediction techniques generally fall into three categories: statistical models[11], machine learning methods[12], and deep learning models[13]. Statistical approaches, such as Kalman filtering and particle filtering, model battery degradation probabilistically. For example, Nunes et al.[14] proposed an online RUL estimation method for second-life lithium-ion batteries based on an unscented Kalman filter and degradation curve modeling, validated on six different second-life battery datasets. Despite some success—achieving a worst-case mean absolute percentage error (MAPE) of 5.279% and an R² score of 0.726—statistical models often struggle with nonlinear or complex degradation behaviors. Machine learning approaches such as support vector machines, random forests, and XGBoost have demonstrated promising results in RUL prediction through hand-crafted features. Jafari et al.[15] introduced a hybrid RUL prediction method based on particle filtering and Kalman filtering, where XGBoost was used as the observation model due to its strong nonlinear fitting capabilities. Despite high predictive accuracy based on full-cycle test data, such methods are heavily dependent on the quality of feature engineering and may suffer from overfitting or inefficiency when applied to high-dimensional time-series data. The emergence of deep learning has opened new avenues for RUL prediction. Long Short-Term Memory (LSTM) networks, known for their capability in modeling temporal dependencies, have been widely adopted for battery degradation modeling. LSTM networks utilize gating mechanisms to effectively capture long-term dependencies, making them well-suited for modeling the nonlinear degradation process of batteries. Reza et al.[16] proposed an improved method combining LSTM with the Gravitational Search Algorithm (GSA), using data cleaning to remove noise, replacing anomalies with highly correlated data, and applying normalization. GSA was employed to optimize the LSTM hyperparameters to address key challenges in battery life prediction. However, LSTM models may still face limitations such as vanishing gradients and computational inefficiencies when dealing with long sequences. Recently, Transformer models have demonstrated excellent performance in natural language processing and time-series analysis tasks due to their strong capability in extracting global features[17,18]. The Transformer architecture processes sequences in parallel through multi-head attention mechanisms, effectively capturing long-range dependencies. Nevertheless, its application in battery RUL prediction remains relatively unexplored. Given the above challenges, accurate RUL prediction remains difficult due to the following key factors, (1) The degradation process is highly nonlinear and influenced by external factors such as temperature, cycling rate, and usage scenarios; (2) Real-world data are often noisy and incomplete, complicating the modeling process; (3) Long-term prediction tasks require models to simultaneously capture short-term variations and long-term trends, which is difficult for single models to handle effectively. To address these challenges, this study develops a hybrid deep learning model that captures both local temporal dependencies and global contextual features. As illustrated in Figure 1, we propose a novel LSTM-Transformer hybrid model based on the MIT battery dataset to enhance prediction accuracy and robustness. The LSTM module extracts local temporal dynamics from time-series inputs, while the Transformer module, with its attention mechanism, captures global feature dependencies. The integration of both allows the model to effectively represent complex degradation patterns. The main contributions of this work are as follows, (1) A novel hybrid deep learning architecture combining local temporal modeling and global attention mechanisms is proposed for lithium-ion battery RUL prediction. (2) Temperature-based features are engineered based on battery physical mechanisms to enhance input feature expressiveness. (3) The proposed model is validated on the MIT battery dataset, demonstrating superior prediction accuracy and robustness compared to existing methods, with strong potential for real-world applications. The remainder of this paper is organized as follows: Section 2 introduces the data preprocessing and feature engineering methods; Section 3 details the architecture and training process of the LSTM-Transformer hybrid model; Section 4 presents experimental results and performance evaluation; Section 5 concludes the paper with a summary of findings and future work directions. Through this research, we aim to provide an efficient and accurate solution for lithium-ion battery RUL prediction, offering theoretical and technical support for optimized battery management systems. Figure 1. Schematic diagram of the LSTM-Transformer hybrid model architecture. 2. Data Preprocessing and Feature Engineering Accurate prediction of the remaining useful life of lithium-ion batteries critically depends on high-quality data preprocessing and feature engineering. To construct a time-series modeling– ready prediction dataset, this study systematically performs data cleaning, temperature feature extraction, normalization, target variable transformation, and sample construction based on a sliding window. By incrementally sliding a fixed-length window over the time-series data to extract local segments, representative features or sequential samples are generated. This approach facilitates the capture of local temporal dependencies and dynamic variations[19], thereby ensuring that the input data fed into the model possesses strong representativeness and consistency. The original dataset used in this work is the MIT Battery Dataset, which includes operational data from multiple batteries under various charging and discharging conditions. Key variables include voltage, current, and temperature. Let the raw feature matrix be denoted as n d x   , where n represents the number of samples and d indicates the number of feature dimensions. The target variable is denoted as n y . To explore the linear relationships between different features, we construct a Pearson correlation-based heatmap, as illustrated in Figure 2(a). In this heatmap, red indicates strong positive correlations, while blue denotes strong negative correlations. The heatmap reveals significant correlations among several voltage-related, capacity-related, and temperature-related features. Based on this analysis, redundant features are removed to improve the generalization ability of the model and to mitigate issues related to multicollinearity. (a) (b) Figure 2. (a) Feature correlation heatmap based on Pearson coefficients. (b) Feature space distribution of battery life using Principal Component Analysis. To comprehensively evaluate the structure of the feature space, Principal Component Analysis was applied to the high-dimensional feature data after redundancy removal, as shown in Figure 2(b). The first two principal components were visualized, with a color gradient representing the corresponding battery RUL values. This visualization enables the observation of degradation trends within the feature space. The results indicate that samples with different RUL levels exhibit clear clustering patterns in the two-dimensional PCA space, demonstrating the discriminative capability of the extracted features in characterizing battery degradation states. Temperature, as a critical factor influencing lithium-ion battery aging and performance degradation, plays a key role in modeling degradation behavior. Analysis reveals that the raw temperature features (T1-0 to T3-3) exhibit significant dynamic fluctuations during battery operation and are highly correlated with changes in the RUL curve. To this end, three types of temperature-derived features are designed: temperature mean, temperature range, and temperature fluctuation. The temperature mean reflects the overall thermal load level during battery operation. Elevated operating temperatures accelerate electrolyte decomposition, solid electrolyte interphase (SEI) layer growth, and structural degradation of electrode materials, which are key contributors to capacity fade and internal resistance increase. The temperature range measures the amplitude of temperature variation within each time window, indicating the degree of thermal stress fluctuation. Frequent and intense thermal stress cycles may induce mechanical fatigue or even cracking of electrode particles, exacerbating material degradation and performance decline. Temperature fluctuation, quantified by the standard deviation, characterizes the local instability of temperature over time, typically associated with abnormal conditions such as high-current charge/discharge events and cooling system failures. These factors are prone to cause localized hotspots and accelerate undesirable electrochemical side reactions, ultimately shortening battery life. For each temperature sensor group, the temperature mean is defined as follows: 1 , 0 1 m mean i i j j T T m (1) In this j T denotes the temperature within the group, where 4 m represents the number of in each The corresponding temperature range is defined as follows: , , 0 range i i j i j j m j m T T T (2) The above two features the and of each temperature group, which can such as localized or abnormal In to capture the overall level of the thermal the standard across temperature is and used as an of temperature 2 1 1 T T (3) Let the number of temperature represent the of the temperature and T be the mean temperature across These three temperature-derived features enhance the of the data provide with the battery aging To among features and to improve training is applied to the feature ensuring that each feature has mean and fed into the x Let the mean and standard of each feature and x represent the feature This that features an and which facilitates of gradient during model training and generalization the is applied to the target variable for nonlinear This the data distribution to a thereby enhancing the and accuracy of model The is defined as follows: 2 1, 0 0 1, 2 2 2 y y y y y y y y y denotes the which is using the The variable y a which is for model and error To the of deep time modeling, the dataset is into a sliding window As illustrated in Figure the input window be in and the prediction be For the feature matrix n d x   and the target variable n y each training sample is from the following in d in in in x y y  The number of samples that can be from the dataset is 1 in n The dataset was into training and a of with the training to enhance sample and training robustness. The data preprocessing improved the and structural of the input data. The of temperature-derived features was with the battery physical and nonlinear during model while the sliding window data construction effectively the dynamic of battery these a solid for battery life prediction modeling based on the LSTM-Transformer architecture. and To prediction of the remaining useful life of lithium-ion this study a deep model that Long Short-Term Memory networks with the Transformer architecture. The model the of LSTM in capturing local temporal dynamics in time data and the capability of Transformer in modeling global dependencies, thereby enhancing the ability to the performance trends of batteries. features are fed into two parallel for by to ultimately the battery life over multiple future time LSTM In lithium-ion battery life prediction, operational features such as voltage, temperature, and exhibit temporal correlations. or modeling approaches often to capture the complex The Long Short-Term Memory gating mechanisms to the temporal the model to capture nonlinear dynamic changes with long-term dependencies. Figure 4 the architecture of the Figure of the LSTM The computational process of the LSTM is as The to the state from the time 1 the time and its is 1 , x 1 , x represents the of the state 1 and the input features and is the from 0 to 1, indicating the The input of the input is into the of two 1 , i i i x 1 , x denotes the input represents the and the that the range is within thereby enhancing the nonlinear fitting The state is by combining the of the and the input to the from the time 1 i In this denotes and the state is long-range of critical The the of as the as follows: 1 , x represents the state the time as the to the sequential input and to Through the gating mechanisms, the LSTM can effectively the patterns and long-term dependencies in time data, accurate modeling of the performance process in prediction Transformer LSTM performs in modeling, it from gradient and low training when long-term dependencies. To address these the Transformer architecture is which between within the through a multi-head mechanism, thereby enhancing the ability to capture global The in the Transformer is the defined as follows: , , T d and represent the and and d is a factor used to are a a of across time the Transformer an sequential is introduced to temporal The is employed as follows: model model 2 2 i d i d i i denotes the of the time i represents the and model d is the This enables the model to the sequential thereby it to capture temporal patterns such as and trends during modeling. In the proposed the Transformer of two each a multi-head attention and a The is a global feature which is to a fixed-length vector Feature and the of LSTM and Transformer in modeling different of sequential data, a is The by each are to a feature vector for prediction. The process is as follows: , LSTM LSTM  denotes the state from the LSTM and  represents the global feature vector by from the Transformer These two components are to a This is through to prediction, as defined by the following  denotes the remaining useful life for the time and are the of the linear This structure enables the model to of long-term degradation trends, thereby early and management of battery life. To prediction of battery remaining useful life, a parallel is Given a fixed-length input window, the model performs a single to directly the target over the prediction This approach effectively error during the prediction process and both prediction and computational and The prediction of the remaining useful life of lithium-ion batteries is a where the target variable is a percentage the mean error is adopted as the for is defined as follows: 2 1 1 i i i The variable i denotes the RUL of the sample by the represents the corresponding and is the number of As a widely used the prediction effectively reducing the of and the robustness of the model the is employed for This the of and learning offering and The learning is to 3 1  , and the number of training is to Furthermore, gradient with a of is used to enhance both the training and computational and Analysis A was to the predictive performance of the proposed LSTM-Transformer hybrid model on the MIT battery dataset, demonstrating its and in the of remaining useful life prediction for lithium-ion batteries. training and were on the MIT battery degradation data preprocessing and temporal the dataset was into time samples with an input of and an prediction of The was to the battery capacity degradation over the the was employed with an learning to and an was to the LSTM layer captures local temporal while the Transformer module its global attention to model long-term dependencies. The integration of both the capacity to capture the complex degradation of batteries. As shown in Figure the of both the training and over the behavior. can be that the with increasing training during the where a rapid is efficient the training to and the the training to the and the strong ability to By the of training the training to and the strong generalization on data. These training dynamics and test results the and Figure and over for To comprehensively and evaluate the performance of the proposed model in battery life prediction three used are and the of These the prediction performance from three absolute percentage and the ability to in the data. a for the and generalization capability of data-driven predictive These are widely adopted in which the standard of the prediction between the and values, is defined as follows: 2 1 1 n i i i y y n where denotes the of the i represents the of the i and n is the number of A indicates between and values, model accuracy. or measures the percentage between and values. is defined as follows: 1 1 n i i i i y y n y  This reflects the percentage error of the to the values, making it for prediction accuracy across different The of R² is used to the of of the model and is defined as follows: 2 2 1 2 1 1 n i i i n i i y y y y y denotes the mean of values. The of R² from , where to 1 indicate a degree of model and Analysis The results of the predictive performance are as follows: of of and an R² of These results that the model excellent capability in fitting error and capturing the variation trends of the target To the predictive Figure presents a the with the values. can be that the of are the indicating a high between the and the battery life across different This distribution the high R² that the model suffer from significant or thereby demonstrating strong generalization Figure the between the and on the test By future over time it is that the proposed LSTM-Transformer hybrid model can effectively the target with the and This result indicates that the model possesses short-term predictive effectively to the nonlinear degradation of the battery state thus the engineering for remaining useful life prediction. (a) (b) Figure (a) of (b) of and during the training process For analysis of prediction Figure presents the distribution of the prediction to or in the As the exhibit a with indicating that the overall prediction are and This statistical of the error distribution that the prediction from in the data from by the model the of long or in the distribution the and of the Figure the temporal variation of prediction for samples in the test during the prediction process. the prediction demonstrating that significant or overfitting during (a) (b) Figure (a) of model distribution (b) variation of prediction To the of the Figure the three performance and R² using a can be that fall within excellent approaches is the for predictive and R² the of for strong model This visualization facilitates a and of the performance enables with for (a) (b) Figure (a) of for the LSTM-Transformer model (b) of performance among different models In both and that the proposed LSTM-Transformer hybrid model high and in the battery remaining useful life prediction The model results in performance in fitting overall degradation trends and prediction strong support for approaches complex time-series Moreover, these a solid for the future application in engineering To the performance of the proposed LSTM-Transformer model in lithium-ion battery RUL prediction, several representative models were for as shown in Figure prediction on the dataset, by values, are in 1. The which particle filtering with nonlinear and the deep model of and both still from relatively fitting With the of attention mechanisms and learning model performance For the combining modeling with attention mechanisms, the to the feature and deep the error to demonstrating strong learning However, among compared the proposed LSTM-Transformer model the overall performance with an of indicating a significant accuracy These results that the LSTM-Transformer hybrid model effectively in capturing local temporal dynamics with ability to extract global features in time-series modeling. This enables a learning of the complex mechanisms battery life accuracy and making it a highly efficient modeling solution for RUL prediction 1. of different LSTM-Transformer With the of electrification and systems in energy and health management and remaining useful life prediction of lithium-ion batteries have become critical tasks to system safety and operational key challenges such as the difficulty of RUL prediction under nonlinear and complex degradation mechanisms during battery this work a hybrid deep learning model that Long Short-Term Memory networks with Transformer architecture based on the MIT battery The model to enhance prediction and generalization This study on the of modeling and deep First, in data preprocessing and feature raw sensor data battery temperature and were systematically Feature principal analysis, and temperature-derived feature were to construct input variables such as temperature mean, temperature range, and temperature fluctuation. data and transformation, were applied to improve the capability to handle and Furthermore, to with prediction a sliding window method was employed to time effectively local temporal Second, the model this work a modeling approach combining LSTM and Transformer The LSTM module gating mechanisms to capture short-term fluctuations and long-term dependencies, which is well-suited for modeling dynamic sequences exhibiting and features during battery The Transformer module multi-head attention and to model global dependencies across the input enhancing under conditions. By and the feature from both a prediction model of simultaneously capturing local temporal dynamics and global structural variations was In of training and performance a training based on mean error and the was after on the test demonstrated that the proposed LSTM-Transformer model an of of and R² of single deep learning distribution analysis and visualization of prediction results validated the strong ability to capture battery degradation trends, and lack of indicating potential for engineering applications. However, the proposed method still limitations in such as its on high-quality sensor data and across different usage research on enhancing the adaptability to data and that online learning with learning to improve its and robustness. In the proposed LSTM-Transformer prediction model high accuracy and in battery RUL provides effective technical support for the development of battery management systems, with promising for engineering and

Authors

Institutions

Publication Details

Journal
Frontiers in Electronics
Published
2025-10-27
DOI
https://doi.org/10.3389/felec.2025.1693752
Citations
1
Primary Topic
Advanced Battery Technologies Research
Type
article
Field-Weighted Citation Impact
0.68
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Correction: A hybrid LSTM–transformer model for accurate remaining useful life prediction of lithium-ion batteries

Shengxian Cao, Wei Feng, Minghao Wang, Gong Wang et al.
1 citations
Frontiers in Electronics
Advanced Battery Technologies Research
0.68
article

Correction: A hybrid LSTM–transformer model for accurate remaining useful life prediction of lithium-ion batteries

Shengxian Cao, Wei Feng, Minghao Wang, Gong Wang, T.C. Zhao, Yanhui Zhang
article en
1 citations

Abstract

1. Introduction With the global transition toward cleaner energy and the rapid advancement of electrification technologies, lithium-ion batteries have emerged as essential energy storage components in electric vehicles, renewable energy storage systems, and portable electronic devices[1]. Owing to their high energy density, long cycle life, and low self-discharge rate, lithium-ion batteries have become increasingly important. However, their performance inevitably degrades over time due to repeated charge-discharge cycles, leading to capacity fade and a shortened remaining useful life (RUL)[2]. Accurate prediction of battery state of health (SOH) and RUL is crucial for optimizing battery management, extending service life, reducing maintenance costs, and ensuring system safety[3,4]. In particular, battery failure in electric vehicles or large-scale energy storage systems can result in significant safety hazards and economic losses, making the development of high-accuracy RUL prediction methods a pressing research focus. Precise RUL prediction plays a vital role in optimizing battery management systems. First, it provides a scientific basis for battery replacement and maintenance decisions, thereby lowering operational costs[5]. Second, it enables early identification of potential failures, thus enhancing system safety[6]. Moreover, accurate RUL estimates support battery recycling and second-life applications, contributing to sustainable resource utilization. Nevertheless, several challenges hinder effective RUL prediction. The degradation process is influenced by multiple factors such as temperature, charge/discharge rates, and usage scenarios, exhibiting high nonlinearity and complexity[7]. Real-world operational data often contain noise and missing values, increasing the difficulty of modeling[8]. Furthermore, long-term prediction requires models that can simultaneously capture short-term fluctuations and long-term trends, which is difficult for single-model architectures to achieve. Traditional RUL prediction approaches can be categorized into physics-based and data-driven methods. Physics-based models rely on the electrochemical mechanisms of batteries[9], using complex mathematical formulations to describe the degradation process. However, these methods require detailed knowledge of material properties and operating conditions, involve high computational complexity, and often lack generalizability across different battery types. In contrast, data-driven approaches have gained popularity by learning patterns directly from operational data[10]. With advances in sensor technology and data acquisition capabilities, these methods can effectively model battery behavior using features such as voltage, current, and temperature, showing improved adaptability and predictive accuracy. Data-driven RUL prediction techniques generally fall into three categories: statistical models[11], machine learning methods[12], and deep learning models[13]. Statistical approaches, such as Kalman filtering and particle filtering, model battery degradation probabilistically. For example, Nunes et al.[14] proposed an online RUL estimation method for second-life lithium-ion batteries based on an unscented Kalman filter and degradation curve modeling, validated on six different second-life battery datasets. Despite some success—achieving a worst-case mean absolute percentage error (MAPE) of 5.279% and an R² score of 0.726—statistical models often struggle with nonlinear or complex degradation behaviors. Machine learning approaches such as support vector machines, random forests, and XGBoost have demonstrated promising results in RUL prediction through hand-crafted features. Jafari et al.[15] introduced a hybrid RUL prediction method based on particle filtering and Kalman filtering, where XGBoost was used as the observation model due to its strong nonlinear fitting capabilities. Despite high predictive accuracy based on full-cycle test data, such methods are heavily dependent on the quality of feature engineering and may suffer from overfitting or inefficiency when applied to high-dimensional time-series data. The emergence of deep learning has opened new avenues for RUL prediction. Long Short-Term Memory (LSTM) networks, known for their capability in modeling temporal dependencies, have been widely adopted for battery degradation modeling. LSTM networks utilize gating mechanisms to effectively capture long-term dependencies, making them well-suited for modeling the nonlinear degradation process of batteries. Reza et al.[16] proposed an improved method combining LSTM with the Gravitational Search Algorithm (GSA), using data cleaning to remove noise, replacing anomalies with highly correlated data, and applying normalization. GSA was employed to optimize the LSTM hyperparameters to address key challenges in battery life prediction. However, LSTM models may still face limitations such as vanishing gradients and computational inefficiencies when dealing with long sequences. Recently, Transformer models have demonstrated excellent performance in natural language processing and time-series analysis tasks due to their strong capability in extracting global features[17,18]. The Transformer architecture processes sequences in parallel through multi-head attention mechanisms, effectively capturing long-range dependencies. Nevertheless, its application in battery RUL prediction remains relatively unexplored. Given the above challenges, accurate RUL prediction remains difficult due to the following key factors, (1) The degradation process is highly nonlinear and influenced by external factors such as temperature, cycling rate, and usage scenarios; (2) Real-world data are often noisy and incomplete, complicating the modeling process; (3) Long-term prediction tasks require models to simultaneously capture short-term variations and long-term trends, which is difficult for single models to handle effectively. To address these challenges, this study develops a hybrid deep learning model that captures both local temporal dependencies and global contextual features. As illustrated in Figure 1, we propose a novel LSTM-Transformer hybrid model based on the MIT battery dataset to enhance prediction accuracy and robustness. The LSTM module extracts local temporal dynamics from time-series inputs, while the Transformer module, with its attention mechanism, captures global feature dependencies. The integration of both allows the model to effectively represent complex degradation patterns. The main contributions of this work are as follows, (1) A novel hybrid deep learning architecture combining local temporal modeling and global attention mechanisms is proposed for lithium-ion battery RUL prediction. (2) Temperature-based features are engineered based on battery physical mechanisms to enhance input feature expressiveness. (3) The proposed model is validated on the MIT battery dataset, demonstrating superior prediction accuracy and robustness compared to existing methods, with strong potential for real-world applications. The remainder of this paper is organized as follows: Section 2 introduces the data preprocessing and feature engineering methods; Section 3 details the architecture and training process of the LSTM-Transformer hybrid model; Section 4 presents experimental results and performance evaluation; Section 5 concludes the paper with a summary of findings and future work directions. Through this research, we aim to provide an efficient and accurate solution for lithium-ion battery RUL prediction, offering theoretical and technical support for optimized battery management systems. Figure 1. Schematic diagram of the LSTM-Transformer hybrid model architecture. 2. Data Preprocessing and Feature Engineering Accurate prediction of the remaining useful life of lithium-ion batteries critically depends on high-quality data preprocessing and feature engineering. To construct a time-series modeling– ready prediction dataset, this study systematically performs data cleaning, temperature feature extraction, normalization, target variable transformation, and sample construction based on a sliding window. By incrementally sliding a fixed-length window over the time-series data to extract local segments, representative features or sequential samples are generated. This approach facilitates the capture of local temporal dependencies and dynamic variations[19], thereby ensuring that the input data fed into the model possesses strong representativeness and consistency. The original dataset used in this work is the MIT Battery Dataset, which includes operational data from multiple batteries under various charging and discharging conditions. Key variables include voltage, current, and temperature. Let the raw feature matrix be denoted as n d x   , where n represents the number of samples and d indicates the number of feature dimensions. The target variable is denoted as n y . To explore the linear relationships between different features, we construct a Pearson correlation-based heatmap, as illustrated in Figure 2(a). In this heatmap, red indicates strong positive correlations, while blue denotes strong negative correlations. The heatmap reveals significant correlations among several voltage-related, capacity-related, and temperature-related features. Based on this analysis, redundant features are removed to improve the generalization ability of the model and to mitigate issues related to multicollinearity. (a) (b) Figure 2. (a) Feature correlation heatmap based on Pearson coefficients. (b) Feature space distribution of battery life using Principal Component Analysis. To comprehensively evaluate the structure of the feature space, Principal Component Analysis was applied to the high-dimensional feature data after redundancy removal, as shown in Figure 2(b). The first two principal components were visualized, with a color gradient representing the corresponding battery RUL values. This visualization enables the observation of degradation trends within the feature space. The results indicate that samples with different RUL levels exhibit clear clustering patterns in the two-dimensional PCA space, demonstrating the discriminative capability of the extracted features in characterizing battery degradation states. Temperature, as a critical factor influencing lithium-ion battery aging and performance degradation, plays a key role in modeling degradation behavior. Analysis reveals that the raw temperature features (T1-0 to T3-3) exhibit significant dynamic fluctuations during battery operation and are highly correlated with changes in the RUL curve. To this end, three types of temperature-derived features are designed: temperature mean, temperature range, and temperature fluctuation. The temperature mean reflects the overall thermal load level during battery operation. Elevated operating temperatures accelerate electrolyte decomposition, solid electrolyte interphase (SEI) layer growth, and structural degradation of electrode materials, which are key contributors to capacity fade and internal resistance increase. The temperature range measures the amplitude of temperature variation within each time window, indicating the degree of thermal stress fluctuation. Frequent and intense thermal stress cycles may induce mechanical fatigue or even cracking of electrode particles, exacerbating material degradation and performance decline. Temperature fluctuation, quantified by the standard deviation, characterizes the local instability of temperature over time, typically associated with abnormal conditions such as high-current charge/discharge events and cooling system failures. These factors are prone to cause localized hotspots and accelerate undesirable electrochemical side reactions, ultimately shortening battery life. For each temperature sensor group, the temperature mean is defined as follows: 1 , 0 1 m mean i i j j T T m (1) In this j T denotes the temperature within the group, where 4 m represents the number of in each The corresponding temperature range is defined as follows: , , 0 range i i j i j j m j m T T T (2) The above two features the and of each temperature group, which can such as localized or abnormal In to capture the overall level of the thermal the standard across temperature is and used as an of temperature 2 1 1 T T (3) Let the number of temperature represent the of the temperature and T be the mean temperature across These three temperature-derived features enhance the of the data provide with the battery aging To among features and to improve training is applied to the feature ensuring that each feature has mean and fed into the x Let the mean and standard of each feature and x represent the feature This that features an and which facilitates of gradient during model training and generalization the is applied to the target variable for nonlinear This the data distribution to a thereby enhancing the and accuracy of model The is defined as follows: 2 1, 0 0 1, 2 2 2 y y y y y y y y y denotes the which is using the The variable y a which is for model and error To the of deep time modeling, the dataset is into a sliding window As illustrated in Figure the input window be in and the prediction be For the feature matrix n d x   and the target variable n y each training sample is from the following in d in in in x y y  The number of samples that can be from the dataset is 1 in n The dataset was into training and a of with the training to enhance sample and training robustness. The data preprocessing improved the and structural of the input data. The of temperature-derived features was with the battery physical and nonlinear during model while the sliding window data construction effectively the dynamic of battery these a solid for battery life prediction modeling based on the LSTM-Transformer architecture. and To prediction of the remaining useful life of lithium-ion this study a deep model that Long Short-Term Memory networks with the Transformer architecture. The model the of LSTM in capturing local temporal dynamics in time data and the capability of Transformer in modeling global dependencies, thereby enhancing the ability to the performance trends of batteries. features are fed into two parallel for by to ultimately the battery life over multiple future time LSTM In lithium-ion battery life prediction, operational features such as voltage, temperature, and exhibit temporal correlations. or modeling approaches often to capture the complex The Long Short-Term Memory gating mechanisms to the temporal the model to capture nonlinear dynamic changes with long-term dependencies. Figure 4 the architecture of the Figure of the LSTM The computational process of the LSTM is as The to the state from the time 1 the time and its is 1 , x 1 , x represents the of the state 1 and the input features and is the from 0 to 1, indicating the The input of the input is into the of two 1 , i i i x 1 , x denotes the input represents the and the that the range is within thereby enhancing the nonlinear fitting The state is by combining the of the and the input to the from the time 1 i In this denotes and the state is long-range of critical The the of as the as follows: 1 , x represents the state the time as the to the sequential input and to Through the gating mechanisms, the LSTM can effectively the patterns and long-term dependencies in time data, accurate modeling of the performance process in prediction Transformer LSTM performs in modeling, it from gradient and low training when long-term dependencies. To address these the Transformer architecture is which between within the through a multi-head mechanism, thereby enhancing the ability to capture global The in the Transformer is the defined as follows: , , T d and represent the and and d is a factor used to are a a of across time the Transformer an sequential is introduced to temporal The is employed as follows: model model 2 2 i d i d i i denotes the of the time i represents the and model d is the This enables the model to the sequential thereby it to capture temporal patterns such as and trends during modeling. In the proposed the Transformer of two each a multi-head attention and a The is a global feature which is to a fixed-length vector Feature and the of LSTM and Transformer in modeling different of sequential data, a is The by each are to a feature vector for prediction. The process is as follows: , LSTM LSTM  denotes the state from the LSTM and  represents the global feature vector by from the Transformer These two components are to a This is through to prediction, as defined by the following  denotes the remaining useful life for the time and are the of the linear This structure enables the model to of long-term degradation trends, thereby early and management of battery life. To prediction of battery remaining useful life, a parallel is Given a fixed-length input window, the model performs a single to directly the target over the prediction This approach effectively error during the prediction process and both prediction and computational and The prediction of the remaining useful life of lithium-ion batteries is a where the target variable is a percentage the mean error is adopted as the for is defined as follows: 2 1 1 i i i The variable i denotes the RUL of the sample by the represents the corresponding and is the number of As a widely used the prediction effectively reducing the of and the robustness of the model the is employed for This the of and learning offering and The learning is to 3 1  , and the number of training is to Furthermore, gradient with a of is used to enhance both the training and computational and Analysis A was to the predictive performance of the proposed LSTM-Transformer hybrid model on the MIT battery dataset, demonstrating its and in the of remaining useful life prediction for lithium-ion batteries. training and were on the MIT battery degradation data preprocessing and temporal the dataset was into time samples with an input of and an prediction of The was to the battery capacity degradation over the the was employed with an learning to and an was to the LSTM layer captures local temporal while the Transformer module its global attention to model long-term dependencies. The integration of both the capacity to capture the complex degradation of batteries. As shown in Figure the of both the training and over the behavior. can be that the with increasing training during the where a rapid is efficient the training to and the the training to the and the strong ability to By the of training the training to and the strong generalization on data. These training dynamics and test results the and Figure and over for To comprehensively and evaluate the performance of the proposed model in battery life prediction three used are and the of These the prediction performance from three absolute percentage and the ability to in the data. a for the and generalization capability of data-driven predictive These are widely adopted in which the standard of the prediction between the and values, is defined as follows: 2 1 1 n i i i y y n where denotes the of the i represents the of the i and n is the number of A indicates between and values, model accuracy. or measures the percentage between and values. is defined as follows: 1 1 n i i i i y y n y  This reflects the percentage error of the to the values, making it for prediction accuracy across different The of R² is used to the of of the model and is defined as follows: 2 2 1 2 1 1 n i i i n i i y y y y y denotes the mean of values. The of R² from , where to 1 indicate a degree of model and Analysis The results of the predictive performance are as follows: of of and an R² of These results that the model excellent capability in fitting error and capturing the variation trends of the target To the predictive Figure presents a the with the values. can be that the of are the indicating a high between the and the battery life across different This distribution the high R² that the model suffer from significant or thereby demonstrating strong generalization Figure the between the and on the test By future over time it is that the proposed LSTM-Transformer hybrid model can effectively the target with the and This result indicates that the model possesses short-term predictive effectively to the nonlinear degradation of the battery state thus the engineering for remaining useful life prediction. (a) (b) Figure (a) of (b) of and during the training process For analysis of prediction Figure presents the distribution of the prediction to or in the As the exhibit a with indicating that the overall prediction are and This statistical of the error distribution that the prediction from in the data from by the model the of long or in the distribution the and of the Figure the temporal variation of prediction for samples in the test during the prediction process. the prediction demonstrating that significant or overfitting during (a) (b) Figure (a) of model distribution (b) variation of prediction To the of the Figure the three performance and R² using a can be that fall within excellent approaches is the for predictive and R² the of for strong model This visualization facilitates a and of the performance enables with for (a) (b) Figure (a) of for the LSTM-Transformer model (b) of performance among different models In both and that the proposed LSTM-Transformer hybrid model high and in the battery remaining useful life prediction The model results in performance in fitting overall degradation trends and prediction strong support for approaches complex time-series Moreover, these a solid for the future application in engineering To the performance of the proposed LSTM-Transformer model in lithium-ion battery RUL prediction, several representative models were for as shown in Figure prediction on the dataset, by values, are in 1. The which particle filtering with nonlinear and the deep model of and both still from relatively fitting With the of attention mechanisms and learning model performance For the combining modeling with attention mechanisms, the to the feature and deep the error to demonstrating strong learning However, among compared the proposed LSTM-Transformer model the overall performance with an of indicating a significant accuracy These results that the LSTM-Transformer hybrid model effectively in capturing local temporal dynamics with ability to extract global features in time-series modeling. This enables a learning of the complex mechanisms battery life accuracy and making it a highly efficient modeling solution for RUL prediction 1. of different LSTM-Transformer With the of electrification and systems in energy and health management and remaining useful life prediction of lithium-ion batteries have become critical tasks to system safety and operational key challenges such as the difficulty of RUL prediction under nonlinear and complex degradation mechanisms during battery this work a hybrid deep learning model that Long Short-Term Memory networks with Transformer architecture based on the MIT battery The model to enhance prediction and generalization This study on the of modeling and deep First, in data preprocessing and feature raw sensor data battery temperature and were systematically Feature principal analysis, and temperature-derived feature were to construct input variables such as temperature mean, temperature range, and temperature fluctuation. data and transformation, were applied to improve the capability to handle and Furthermore, to with prediction a sliding window method was employed to time effectively local temporal Second, the model this work a modeling approach combining LSTM and Transformer The LSTM module gating mechanisms to capture short-term fluctuations and long-term dependencies, which is well-suited for modeling dynamic sequences exhibiting and features during battery The Transformer module multi-head attention and to model global dependencies across the input enhancing under conditions. By and the feature from both a prediction model of simultaneously capturing local temporal dynamics and global structural variations was In of training and performance a training based on mean error and the was after on the test demonstrated that the proposed LSTM-Transformer model an of of and R² of single deep learning distribution analysis and visualization of prediction results validated the strong ability to capture battery degradation trends, and lack of indicating potential for engineering applications. However, the proposed method still limitations in such as its on high-quality sensor data and across different usage research on enhancing the adaptability to data and that online learning with learning to improve its and robustness. In the proposed LSTM-Transformer prediction model high accuracy and in battery RUL provides effective technical support for the development of battery management systems, with promising for engineering and

Frontiers in ElectronicsVol. 6
Northeast Electric Power University (CN), University of Macau (MO), Shenzhen Institutes of Advanced Technology (CN)
Openalex Percentile: Top 24%
Advanced Battery Technologies Research
0.68
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.