<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Accessed October</journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>with an Eficient LSTM Model and Explainability Features</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Leonardo Dal Ronco</string-name>
          <email>leonardo.dalronco@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Erasmo Purificato</string-name>
          <email>erasmo.purificato@acm.org</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Long-Short Term Memory, Lithium-ion Battery, Capacity Estimation, Remaining Useful Life, Explainability</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Deepser</institution>
          ,
          <addr-line>Schio</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Joint Research Centre, European Commission</institution>
          ,
          <addr-line>Ispra</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>28</volume>
      <issue>2024</issue>
      <fpage>25</fpage>
      <lpage>28</lpage>
      <abstract>
        <p>Prognostic and Health Management (PHM) is essential for ensuring the reliable operation of machines by predicting failures and enabling preventive measures. In this context, accurately predicting the capacity of lithium-ion batteries, which power a wide range of applications, is crucial due to their inevitable degradation over time. Battery Management Systems (BMS) play a pivotal role in monitoring and managing battery health throughout their lifecycle. We propose a novel Long Short-Term Memory (LSTM) neural network model for lithium-ion battery capacity prediction. Our model is designed to be more eficient than state-of-the-art models, particularly in terms of the number of trainable parameters, making it suitable for deployment on low-resource devices commonly found in BMS. Utilizing the Li-ion Battery Aging Dataset provided by the NASA Ames Prognostics Center of Excellence, we demonstrate that our LSTM model ofers accurate and reliable capacity predictions. To complement the proposed model, this paper introduces ExplainBattery, a web application that allows users to interact with our eficient LSTM. This tool enables users to visualize predictions for diferent batteries and explore the most influential attributes through an explainable dashboard. ExplainBattery enhances both the usability and transparency of our model, providing an accessible platform for further research and practical application in PHM and BMS environments.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The growing integration of lithium-ion batteries across a wide range of applications [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], including
electric vehicles, renewable energy storage systems, and consumer electronics, emphasizes their key
role in advancing sustainable energy solutions. However, the performance and longevity of these
batteries are constrained by their gradual degradation over time, which leads to a reduction in their
overall capacity and eficiency. Consequently, accurately predicting battery capacity is fundamental to
maintaining optimal performance, enhancing safety, and preventing unexpected failures, particularly
in critical applications. This challenge forms a core aspect of Prognostic and Health Management
(PHM) [
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ], a multidisciplinary field dedicated to predicting the health and remaining useful life of
systems, thereby enabling proactive maintenance and reducing operational risks.
      </p>
      <p>
        Battery Management Systems (BMS) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] are at the forefront of this efort, as they are responsible for
continuously monitoring and controlling battery health parameters, ensuring the safe and eficient
operation of lithium-ion batteries throughout their lifecycle. Within the BMS framework, accurate
capacity prediction is essential for estimating the state of health (SOH) and state of charge (SOC) of
the battery, which directly influences the reliability and eficiency of the devices it powers. However,
https://erasmopurif.com/ (E. Purificato)
      </p>
      <p>CEUR</p>
      <p>ceur-ws.org
predicting battery capacity is a non-trivial task, given the complex electrochemical dynamics of
lithiumion batteries and the multitude of factors, such as temperature, charging rates, and usage patterns, that
influence their degradation over time.</p>
      <p>
        Traditional modeling techniques, including physics-based [
        <xref ref-type="bibr" rid="ref6 ref7 ref8 ref9">6, 7, 8, 9</xref>
        ] and data-driven [
        <xref ref-type="bibr" rid="ref10">10, 11, 12</xref>
        ]
approaches, have been extensively explored for battery capacity prediction. While physics-based models
ofer insights into the underlying degradation mechanisms, they often require detailed knowledge of
battery chemistry and are computationally intensive. In contrast, data-driven approaches, particularly
those based on machine learning, have emerged as a more practical solution. They can learn complex
patterns directly from historical data without requiring explicit modeling of electrochemical processes.
Among these, Recurrent Neural Networks (RNNs) [13, 14, 15, 16] have shown promise due to their
inherent ability to model temporal dependencies in sequential data. However, standard RNNs are prone
to the vanishing gradient problem, which limits their efectiveness in capturing long-term dependencies
and thus compromises prediction accuracy.
      </p>
      <p>Long Short-Term Memory (LSTM) [17, 18, 19] networks have been introduced as a superior alternative,
overcoming the limitations of traditional RNNs by incorporating memory cells and gating mechanisms
that enable the retention of long-term dependencies in sequential data. This capability makes LSTM
networks particularly well-suited for modeling the complex, time-dependent degradation behavior of
lithium-ion batteries. Nevertheless, existing LSTM-based models in the literature often sufer from high
computational complexity and a large number of trainable parameters, making them less practical for
deployment in BMS environments where computational resources and energy eficiency are constrained.</p>
      <p>To address these limitations, this paper proposes a novel LSTM-based neural network architecture
tailored for lithium-ion battery capacity prediction, focusing on achieving a balance between accuracy
and eficiency. Our approach builds upon the architecture proposed by Ansari et al. [ 20], but with a
critical modification, i.e., replacing traditional RNN layers with LSTM layers, to leverage the strengths of
LSTM in capturing long-term dependencies while ensuring an eficient parameter structure. This results
in a model that not only achieves high predictive accuracy but also maintains a reduced computational
footprint, making it more suitable for real-time applications in BMS.</p>
      <p>We conducted a comprehensive evaluation of the proposed model using the Li-ion Battery Aging
Dataset provided by the NASA Ames Prognostics Center of Excellence, a widely recognized benchmark in
the battery research community. The experimental results demonstrate that our LSTM-based model
outperforms existing state-of-the-art models, particularly those developed by Choi et al. [21] and Park et
al. [22], in terms of prediction accuracy. Remarkably, this performance is achieved with a significantly
lower number of trainable parameters, indicating that the model is not only more accurate but also
more eficient and potentially deployable in resource-constrained BMS environments.</p>
      <p>In addition to the development of the LSTM model, we recognize the importance of transparency,
interpretability, and trustworthiness in the today’s scientific context. This holds true for many domains,
such as loan approval systems [23], user profiling [ 24, 25, 26, 27], e-commerce [28, 29], and especially
for critical applications like battery health monitoring. Therefore, we developed ExplainBattery, a
webbased application designed to facilitate interaction with the dataset, the proposed LSTM model, and the
implemented explainability techniques, including SHAP [30, 31] and Saliency Maps [32]. ExplainBattery
allows users to visualize battery capacity predictions, explore the model’s decision-making process,
and investigate the impact of various features on the predictions. This enables deeper insights into the
model’s behavior and enhances its applicability in real-world PHM and BMS environments.</p>
      <p>This paper makes a contribution to the field of lithium-ion battery health management by presenting
an accurate, eficient, and explainable LSTM-based model for capacity prediction, complemented by a
user-friendly web application that encourages further research and practical deployment.</p>
      <p>The structure of the paper is organized as follows: Section 2 provides a review of the background
and related work in the domain of battery capacity prediction; Section 3 illustrates in detail the dataset
adopted as the benchmark; Section 4 describes the methodology and architecture of the proposed LSTM
model; Section 5 presents the experimental evaluation and results; Section 6 introduces ExplainBattery,
detailing its features and functionality; finally, Section 7 concludes the paper and outlines potential
directions for future research.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Background and Related Work</title>
      <p>In this section, we discuss definitions and techniques for predicting the health status of batteries and
explore explainability approaches specifically applied to RNNs, particularly LSTM networks.</p>
      <sec id="sec-2-1">
        <title>2.1. State of Health and Remaining Useful Life</title>
        <p>In the existing literature [22, 20, 21, 33], the State Of Health (SOH) and Remaining Useful Life (RUL)
of a battery are often used interchangeably, despite exhibiting distinct diferences alongside shared
commonalities.</p>
        <p>The estimation of a battery’s SOH is primarily based on the assessment of its capacity, which is
calculated from the battery’s current capacity using the following formula:
 =
  ∗ 100
 0
where  0 is the nominal capacity of the battery, and   is the capacity of the battery at the  th cycle.</p>
        <p>With the End Of Life (EOL) criterion of a battery defined as the threshold capacity value beyond
which the battery’s proper functioning is no longer guaranteed, the RUL can be formally defined as
the diference between the total number of charge-discharge cycles elapsed when the battery’s actual
capacity drops to the threshold value (  ) and the number of charge-discharge cycles performed thus
far by the battery ( ). Consequently, the RUL quantifies the number of remaining charge-discharge
cycles available to the battery, after which its performance and proper functioning are no longer assured.
In formula:
  = 

−</p>
        <p>Given that the primary objective of existing techniques and studies for estimating SOH and RUL [22,
20, 21, 33] is the assessment of battery capacity, the model proposed in this work aims to estimate the
capacity of lithium-ion batteries. This information will subsequently be utilized to evaluate the battery’s
health status, thereby providing valuable insights into its remaining lifespan and overall performance.</p>
        <p>The techniques for estimating battery SOH fall into three main model categories: experience-based,
physics-based, and data-driven.</p>
        <p>Experience-based methods utilize expert knowledge and predefined rules to estimate SOH by
analyzing stochastic deterioration patterns. While efective for less complex systems, they lack real-time
monitoring capability and are heavily reliant on domain expertise, which limits their adaptability [34].</p>
        <p>
          Physics-based models create mathematical representations of battery degradation using real-time data
to update parameters [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. They are suitable for accurate SOH prediction without requiring extensive
historical data but are hindered by the absence of established models for battery aging behaviors
and complexities in capturing failure modes [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Techniques such as Particle Filtering [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] and Kalman
ifltering [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] have been employed, yet challenges like particle degeneration limit their long-term accuracy.
        </p>
        <p>
          Data-driven models, which rely on historical measurements of battery parameters (e.g., voltage,
current, temperature), have shown the most promise due to their adaptability and eficiency. They do
not require explicit physical models, making them versatile for diferent battery types. Early methods
combined Ensemble Empirical Mode Decomposition (EEMD) with ARIMA [12] but faced limitations
in capturing non-linear behaviors. More sophisticated techniques, such as Support Vector Machines
(SVM) [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], Relevance Vector Machines (RVM) [11], and artificial neural networks (ANNs) [ 35], have
been developed. Recently, RNNs, specifically LSTM networks, have gained prominence for their ability
to handle time-series data efectively [ 36].
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Recurrent Neural Networks vs. Long-Short Term Memory Networks</title>
        <p>Recurrent Neural Networks (RNNs) [13, 14, 15, 16] are a class of ANNs designed to process sequential
data by maintaining a form of memory through their recurrent connections, allowing information to
(1)
(2)
persist over time. However, standard RNNs face challenges in learning long-term dependencies due to
the vanishing gradient problem, which hampers the network’s ability to propagate information over
extended sequences. Long Short-Term Memory (LSTM) [17, 18, 19] networks address this limitation by
incorporating a more sophisticated memory cell structure that includes gates (specifically, input, forget,
and output gates) that regulate the flow of information. These gates enable LSTMs to retain or discard
information as needed, making them significantly more eficient in capturing long-term dependencies
in sequential data compared to traditional RNNs. Consequently, LSTMs exhibit superior performance
in tasks involving lengthy sequences, such as time series prediction.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Single-Channel vs. Multi-Channel Input Profiles</title>
        <p>Machine learning models employing a Single-Channel Input (SCI) profile are characterized by their use
of a dataset from a single battery, typically split into training and testing sets. Such models rely on a
single battery parameter (e.g., voltage or capacity) as the input feature for predicting the SOH or RUL.
This univariate approach often results in high error rates due to the low dimensionality and lack of
comprehensive information inherent in the dataset. Consequently, SCI models struggle to capture the
complex degradation dynamics of batteries, leading to suboptimal accuracy in SOH and RUL predictions.</p>
        <p>In contrast, the adoption of a Multi-Channel Input (MCI) profile represents a significant advancement
in training methodologies. MCI models leverage datasets from multiple batteries, incorporating a range
of parameters—such as voltage, current, temperature, and capacity, across various charge-discharge
cycles. This multivariate approach enables the model to capture more intricate patterns of battery
degradation, including the phenomenon of capacity regeneration, which SCI models often fail to
represent adequately. The inclusion of multiple channels of input data allows for a more holistic
understanding of the battery’s health, thereby improving the model’s predictive accuracy.</p>
        <p>Literature on battery RUL prediction [22, 20, 21, 37] consistently demonstrates the superiority of
MCI methodologies over SCI approaches in terms of accuracy and robustness. MCI models not only
provide a more nuanced representation of the battery’s operational profile but also enhance the model’s
ability to generalize across diferent battery conditions. Therefore, in line with these findings, this work
employs an MCI methodology to train the proposed model, aiming to achieve more reliable and precise
predictions of battery SOH and RUL.</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.4. Explainable Artificial Intelligence</title>
        <p>As machine learning models increasingly inform critical decisions in battery SOH estimation,
explainability becomes a key concern. Trust in these models hinges on transparency, distinguishing between
trusting individual predictions and trusting the model’s overall behavior [38]. Building this trust is crucial,
particularly in applications where safety and operational eficiency are paramount.</p>
        <p>In the domain of lithium-ion batteries, XAI techniques ofer a pathway to understand and validate
model predictions, ensuring safe deployment in energy management systems. However, research on
the explainability of RNNs remains limited. Schlegel et al. [39] investigated XAI methods for
timeseries data, revealing that techniques like SHAP, Saliency Maps, DeepLIFT, and Layer-wise Relevance
Propagation (LRP) ofer valuable insights but vary in efectiveness based on model architecture. For
RNNs, SHAP proved consistent across models, while other techniques showed performance fluctuations,
indicating the need for further exploration of XAI methods in this field.</p>
        <p>Advancing data-driven SOH estimation with optimized RNN architectures, coupled with rigorous
XAI techniques, becomes essential for developing trustworthy, eficient battery management solutions.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Li-ion Battery Aging Dataset</title>
      <p>The benchmark dataset used in the presented work, which is the main dataset adopted in the
literature [22, 20, 21] to estimate the capacity of a lithium-ion battery, is the Li-on Battery Aging Dataset1
1https://catalog.data.gov/dataset/li-ion-battery-aging-datasets. Accessed October 28, 2024.
provided by the NASA Ames Prognostic Center of Excellence. The dataset contains the lifecycle data
of four custom-built lithium-ion batteries (identified as B0005, B0006, B0007, and B0018), each with a
nominal capacity of 2 Ah, which were subjected to and monitored under three diferent operational
profiles at room temperature: charge, discharge, and impedance.</p>
      <p>The batteries were charged in constant current (CC) mode at 1.5 A until the battery voltage reached
4.2 V, followed by constant voltage (CV) mode until the charge current dropped to 20 mA. The batteries’
discharge was carried out at a constant current (CC) level of 2 A until the battery voltage dropped to
2.7 V, 2.5 V, 2.2 V, and 2.5 V for batteries B0005, B0006, B0007, and B0018, respectively. Impedance
measurement, which indicates the ease with which alternating current passes through the electrical
circuit, was performed by frequency scanning using the technique of Electrochemical Impedance
Spectroscopy (EIS) from 0.1 Hz to 5 kHz.</p>
      <p>Repeated charge and discharge cycles lead to accelerated aging of the batteries, while impedance
measurements provide information on internal battery parameters that change as aging progresses.
Figure 1 shows the capacity degradation curve of the various batteries due to the repeated
chargedischarge cycles performed on them.</p>
      <p>After the data collection process, a predictive model will be trained utilizing the dataset to estimate
battery capacity. Notably, the dynamic nature of the discharge process, characterized by rapid variations
in current over time, renders the accurate measurement or calculation of internal battery parameters
challenging. Furthermore, the parameters governing the discharge process in real-world scenarios
can exhibit significant variability, contingent upon the specific usage patterns of the battery owner
and user. In contrast, the charging process is typically governed by manufacturer-defined protocols
and parameters embedded in the battery charger device, thereby facilitating the measurement and
comparison of battery performance during successive charging cycles. To elucidate the evolution of
internal battery parameters throughout its lifespan, this study will primarily focus on exploiting data
related to voltage, current intensity, and battery temperature recorded during charge cycles. Figures 2,
3, and 4 illustrate the trends of voltage, current intensity, and temperature values for batteries B0005,
B0006, B0007, and B0018 during the charging phase, as a function of increasing charge-discharge cycles.</p>
      <p>An examination of the voltage, current intensity, and temperature profiles measured during the
charging phase reveals distinct characteristics of batteries in advanced stages of aging, having undergone
numerous charge-discharge cycles. Specifically, the following trends are observed: (1) The threshold
voltage of 4.2 V is attained significantly earlier in aged batteries, as compared to their relatively newer
counterparts; (2) The current intensity diminishes more rapidly in aged batteries; and (3) The maximum
temperature is reached more expeditiously in aged batteries. These observations collectively indicate
that the voltage, current intensity, and temperature values measured during the charging phase are
strongly influenced by the battery’s health condition, which is, in turn, a function of its degree of aging.</p>
      <p>Based on these findings, it can be inferred that a correlation exists between the measured charging
phase parameters and the battery’s state of health. This relationship will be leveraged in subsequent
chapters to train a predictive model for estimating the capacity of lithium-ion batteries. To further
elucidate the evolution of internal battery parameters throughout its lifespan, the capacity measured
during the preceding discharge cycle will also be taken into account. By integrating these data, a more
comprehensive understanding of the aging process and its impact on battery capacity can be achieved.</p>
    </sec>
    <sec id="sec-4">
      <title>4. System Design and Implementation</title>
      <p>In the field of lithium battery capacity estimation, accurate and eficient prediction models are crucial
for ensuring reliable operation and longevity of battery systems. Recent advancements have led to the
development of state-of-the-art models by Choi et al. [21], Park et al. [22], and Ansari et al. [20], each
contributing unique strengths to the domain. A critical analysis of these models reveals an opportunity
to enhance predictive performance by combining their most efective elements.</p>
      <p>The models proposed by Choi et al. [21] and Park et al. [22] utilize LSTM-based architectures, which
excel in capturing the temporal dependencies and nonlinear degradation patterns inherent in battery
capacity data. Their sophisticated LSTM frameworks have demonstrated high predictive accuracy,
making them benchmarks for the industry. However, these models are computationally intensive,
with complex architectures that may be less practical for implementation in systems with limited
computational resources, such as BMS.</p>
      <p>In contrast, Ansari et al. [20]’s model adopts a more eficient approach by employing a simpler
RNNbased architecture. This model ofers faster training and inference times, making it more suitable for
real-time applications and deployment on hardware with restricted processing capabilities. Nevertheless,
this model’s reduced complexity results in lower predictive accuracy compared to Choi et al. [21]
and Park et al. [22]’s LSTM-based models, limiting its efectiveness in capturing battery degradation
behaviors.</p>
      <p>Recognizing the strengths and limitations of these approaches, our system design strategy aims to
integrate the eficiency of Ansari et al. [ 20]’s model with the predictive capabilities of LSTM architectures.
Specifically, we adopt this model architecture as a foundational framework due to its computational
eficiency and replace the standard RNN layers with LSTM layers. This hybrid approach seeks to
leverage the superior sequence-learning ability of LSTMs, allowing the model to capture long-term
dependencies in battery data more efectively, as demonstrated in Choi et al. [ 21] and Park et al. [22]’s
work. By incorporating LSTM layers within a less complex architecture, our objective is to achieve
a balance between computational eficiency and predictive accuracy, resulting in a model that can
be deployed in real-world BMS applications while maintaining high performance in battery capacity
estimation. This design choice represents a strategic synthesis of existing methodologies. It aims to
achieve the predictive robustness of LSTM-based models while retaining the operational eficiency
necessary for practical applications. Through this integrated approach, we aim to enhance the overall
reliability and applicability of lithium battery capacity estimation in energy management systems.</p>
      <p>Given the above motivation, the resulting proposed architecture, whose structure is shown in Figure 5,
is constructed with the input layer of 31 nodes, a hidden layer of 10 LSTM neurons, and the output layer
for estimating the battery capacity.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Evaluation</title>
      <p>In this section, we describe the proposed model’s training process, the experimental setting to compare
it with the existing models, and finally, discuss the experimental results.</p>
      <sec id="sec-5-1">
        <title>5.1. Training process</title>
        <p>For the training of the proposed LSTM-based neural architecture, we employed a technique called
systematic sampling [40, 41]. It is a sampling strategy that involves extracting samples at regular
intervals from an ordered reference population. In our specific case, data related to voltage, current
intensity, and temperature during a charging cycle, as well as the capacity recorded during the previous
discharge cycle, are used to estimate the battery’s current capacity. Specifically, for each charging cycle,
10 values for voltage, 10 values for current intensity, and 10 values for temperature are extracted using
the systematic sampling technique to form the input vector, which consists of 31 features, along with
the capacity recorded during the previous discharge cycle.</p>
        <p>Given its demonstrated eficacy, as discussed in Section 2.3, we train our model with an MCI profile
which entails that, in each iteration, data from three batteries are used as training datasets, with the
fourth serving as the testing dataset.</p>
        <p>Figure 6 illustrates the described training process, including systematic sampling and the MCI profile.</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Experimental Setting</title>
        <p>We assess the efectiveness of the proposed model on the Li-ion Battery Aging Dataset (Section 3)
comparing the results against the state-of-the-art models already mentioned in this paper, namely,
Choi et al. [21] (2019), Park et al. [22] (2020), and Ansari et al. [20] (2021). The metrics adopted for the
performance evaluation are Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute
Error (MAE), and Mean Absolute Percentage Error (MAPE). Moreover, the trainable parameters are also
calculated and reported to provide a measure of the complexity of the diferent models to relate them to
their potential eficiency for implementation on a BMS.</p>
        <p>For the training phase, we adopt the same MCI profile (see Section 5.1) for all the models, iterating at
each stage for 1000 epochs, employing a learning rate of 0.001 and an Adam optimizer.</p>
      </sec>
      <sec id="sec-5-3">
        <title>5.3. Experimental Results</title>
        <p>The results of the conducted experiments are presented in Table 1. Due to the MCI profile employed
for the training-testing process, the performance metric scores are reported as the mean values of the
individual experiments carried out on each battery, while the number of trainable parameters remains
(a) Voltage trend over time for diferent charge cycles
shown for battery B0005.
(b) Capacity trend over time shown for battery B0005,
from cycle 1 to cycle 168.
constant throughout the entire evaluation.</p>
        <p>A comprehensive analysis of the results reveals that the proposed model consistently outperforms the
most efective state-of-the-art model, as presented by Park et al. [ 22]. Specifically, our model achieves
substantial improvements across multiple evaluation metrics, with reductions of 46.45% in MSE, 21.21%
in RMSE, 13.59% in MAE, and 35.86% in MAPE. Notably, these enhancements are achieved while
simultaneously reducing the complexity of the neural architecture, demonstrated by a 75.67% decrease
in trainable parameters. Regarding eficiency, the increase in the number of trainable parameters
relative to the model proposed by Ansari et al. [20] amounts to 68.88%, indicating a judicious trade-of.
This augmentation is justified by the significantly enhanced performance achieved, which substantially
surpasses the improvements observed in the original model.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. ExplainBattery Web Application</title>
      <p>To facilitate exploration of the Li-ion Battery Aging Dataset used for training the proposed LSTM-based
neural architecture, as well as to enable interaction with the model for accuracy verification and
experimentation with explainability techniques for independent reliability assessment, the ExplainBattery
web application has been developed (using Streamlit 2) and published3. This tool serves as a foundation
for further exploration and investigation into explainability techniques applied to lithium-ion battery
capacity estimation using LSTM networks.</p>
      <p>The developed web application is structured with the four distinct pages illustrated below, accessible
via a dedicated sidebar menu.</p>
      <p>About This page functions as ExplainBattery’s homepage, describing the scientific research conducted
and ofering instructions on how to navigate and interact with the web application.
NASA Battery Dataset On this page, users can explore the Li-ion Battery Aging Dataset (illustrated
in detail in Section 3). After setting the desired parameters, a chart configured according to the selected
values will be generated and displayed on the page. Figure 7 presents examples of this page in use.
LSTM Capacity Prediction This page allows interaction with the proposed LSTM model
implemented in this study, enabling verification of the prediction accuracy. Once the parameters are set,
a table displaying the accuracy metrics (MSE, RMSE, MAPE, MAE) of the LSTM model, using the
(a) SHAP. The top 12 features are displayed in order of
relevance.
(b) Saliency Map.
selected battery as the test battery, will be shown. Subsequently, a chart comparing the actual capacity
values with the estimated values generated by the LSTM model for the selected cycles will be displayed.
Figure 8 illustrates an example of this page in use.</p>
      <p>Explainability This page enables experimentation with two explainability techniques, SHAP [30, 31]
and Saliency Maps [32], applied to the proposed LSTM-based neural network, allowing independent
verification of their reliability. For the SHAP technique, users can select the number of features to
display and choose to either order the features chronologically (from those related to the most recent
discharging cycle to the least recent) or rank them by relevance. For both explainability methods, users
can also choose which features to exclude from the visualization, thereby gaining insights into the
influence of all the features by means of the displayed charts. Once these parameters are configured, an
explanation chart based on the selected values will be generated and displayed on the page. Figure 9
provides examples of how the Explainability page can be utilized.</p>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusion</title>
      <p>In this study, we addressed the challenges of developing a neural model for accurately and eficiently
estimating the capacity of lithium-ion batteries. We implemented a novel neural architecture based
on the model proposed by Ansari et al. [20], replacing standard RNN layers with LSTM layers to
enhance the model’s ability to capture complex temporal dependencies. The evaluation was conducted
using NASA’s Li-ion Battery Aging Dataset, providing a robust benchmark for assessing the model’s
performance.</p>
      <p>The experimental results demonstrated that the proposed model outperformed state-of-the-art models,
specifically those by Choi et al. [ 21] and Park et al. [22], achieving superior accuracy with a less complex
architecture. This reduced complexity suggests that the model is not only more eficient but also
potentially more suitable for deployment in BMS.</p>
      <p>To further facilitate interaction with the developed model, we implemented a web application named
ExplainBattery. This tool allows users to explore the dataset, verify the model’s accuracy, and experiment
with explainability techniques, such as SHAP and Saliency Maps, to gain deeper insights into the model’s
decision-making process.</p>
      <p>Future work will involve an extended evaluation using additional datasets and models to further
validate the robustness and generalizability of the proposed approach, ensuring its applicability in a
broader range of real-world scenarios.
[11] D. Liu, J. Zhou, H. Liao, Y. Peng, X. Peng, A health indicator extraction and optimization framework
for lithium-ion battery degradation modeling and prognostics, IEEE Transactions on Systems,
Man, and Cybernetics: Systems 45 (2015) 915–928.
[12] Y. Zhou, M. Huang, Lithium-ion batteries remaining useful life prediction based on a mixture of
empirical mode decomposition and arima model, Microelectronics Reliability 65 (2016) 265–273.
[13] L. Medsker, L. C. Jain, Recurrent neural networks: design and applications, CRC press, 1999.
[14] L. R. Medsker, L. Jain, et al., Recurrent neural networks, Design and Applications 5 (2001) 2.
[15] Y. Yu, X. Si, C. Hu, J. Zhang, A review of recurrent neural networks: Lstm cells and network
architectures, Neural computation 31 (2019) 1235–1270.
[16] A. Sherstinsky, Fundamentals of recurrent neural network (rnn) and long short-term memory
(lstm) network, Physica D: Nonlinear Phenomena 404 (2020) 132306.
[17] S. Hochreiter, J. Schmidhuber, Long short-term memory, Neural computation 9 (1997) 1735–1780.
[18] P. Malhotra, L. Vig, G. Shrof, P. Agarwal, et al., Long short term memory networks for anomaly
detection in time series., in: Esann, volume 2015, 2015, p. 89.
[19] G. Van Houdt, C. Mosquera, G. Nápoles, A review on the long short-term memory model, Artificial</p>
      <p>Intelligence Review 53 (2020) 5929–5955.
[20] S. Ansari, A. Ayob, M. S. Hossain Lipu, A. Hussain, M. H. M. Saad, Data-driven remaining useful
life prediction for lithium-ion batteries using multi-charging profile framework: A recurrent neural
network approach, Sustainability 13 (2021) 13333.
[21] Y. Choi, S. Ryu, K. Park, H. Kim, Machine learning-based lithium-ion battery capacity estimation
exploiting multi-channel charging profiles, Ieee Access 7 (2019) 75143–75152.
[22] K. Park, Y. Choi, W. J. Choi, H.-Y. Ryu, H. Kim, Lstm-based battery remaining useful life prediction
with multi-channel charging profiles, Ieee Access 8 (2020) 20786–20798.
[23] E. Purificato, F. Lorenzo, F. Fallucchi, E. W. D. Luca, The Use of Responsible Artificial Intelligence
Techniques in the Context of Loan Approval Processes, International Journal of Human-Computer
Interaction (2023) 1543–1562. URL: https://doi.org/10.1080/10447318.2022.2081284. doi:10.1080/
10447318.2022.2081284.
[24] E. Purificato, L. Boratto, E. W. De Luca, Do Graph Neural Networks Build Fair User Models?
Assessing Disparate Impact and Mistreatment in Behavioural User Profiling, in: Proceedings
of the 31st ACM International Conference on Information &amp; Knowledge Management, CIKM
’22, Association for Computing Machinery, New York, NY, USA, 2022, pp. 4399–4403. URL: https:
//doi.org/10.1145/3511808.3557584. doi:10.1145/3511808.3557584.
[25] E. Purificato, E. W. De Luca, What Are We Missing in Algorithmic Fairness? Discussing Open
Challenges for Fairness Analysis in User Profiling with Graph Neural Networks, in: L. Boratto,
S. Faralli, M. Marras, G. Stilo (Eds.), Advances in Bias and Fairness in Information Retrieval,
Communications in Computer and Information Science, Springer Nature Switzerland, Cham, 2023,
pp. 169–175. doi:10.1007/978- 3- 031- 37249- 0_14.
[26] E. Purificato, L. Boratto, E. W. De Luca, User Modeling and User Profiling: A Comprehensive</p>
      <p>Survey, 2024. URL: http://arxiv.org/abs/2402.09660. doi:10.48550/arXiv.2402.09660.
[27] E. Purificato, L. Boratto, E. W. De Luca, Toward a Responsible Fairness Analysis: From Binary
to Multiclass and Multigroup Assessment in Graph Neural Network-Based User Modeling Tasks,
Minds and Machines 34 (2024) 33. URL: https://doi.org/10.1007/s11023-024-09685-x. doi:10.1007/
s11023- 024- 09685- x.
[28] E. Purificato, L. Boratto, E. W. De Luca, Recent advances in fairness analysis of user profiling
approaches in e-commerce with graph neural networks, in: Proceedings of the Discussion Papers
- 22nd International Conference of the Italian Association for Artificial Intelligence (AIxIA 2023
DP), CEUR, 2023, pp. 47–56. URL: https://ceur-ws.org/Vol-3537/paper6.pdf.
[29] M. Abdelrazek, E. Purificato, L. Boratto, E. W. De Luca, FairUP: A Framework for Fairness
Analysis of Graph Neural Network-Based User Profiling Models, in: Proceedings of the 46th
International ACM SIGIR Conference on Research and Development in Information Retrieval,
SIGIR ’23, Association for Computing Machinery, New York, NY, USA, 2023, pp. 3165–3169. URL:
https://dl.acm.org/doi/10.1145/3539618.3591814. doi:10.1145/3539618.3591814.
[30] S. M. Lundberg, S.-I. Lee, A unified approach to interpreting model predictions, Advances in
neural information processing systems 30 (2017).
[31] L. S. Shapley, et al., A value for n-person games (1953).
[32] K. Simonyan, A. Vedaldi, A. Zisserman, Deep inside convolutional networks: Visualising image
classification models and saliency maps, arXiv preprint arXiv:1312.6034 (2013).
[33] S. Ansari, A. Ayob, M. S. Hossain Lipu, A. Hussain, M. H. M. Saad, Multi-channel profile based
artificial neural network approach for remaining useful life prediction of electric vehicle lithium-ion
batteries, Energies 14 (2021) 7521.
[34] T. Biagetti, E. Sciubba, Automatic diagnostics and prognostics of energy conversion processes via
knowledge-based systems, Energy 29 (2004) 2553–2572.
[35] J. Wu, C. Zhang, Z. Chen, An online method for lithium-ion battery remaining useful life estimation
using importance sampling and neural networks, Applied energy 173 (2016) 134–140.
[36] Y. Zhang, R. Xiong, H. He, M. G. Pecht, Long short-term memory recurrent neural network
for remaining useful life prediction of lithium-ion batteries, IEEE Transactions on Vehicular
Technology 67 (2018) 5695–5705.
[37] X. Li, L. Zhang, Z. Wang, P. Dong, Remaining useful life prediction for lithium-ion batteries based
on a hybrid model combining the long short-term memory and elman neural networks, Journal of
Energy Storage 21 (2019) 510–518.
[38] M. T. Ribeiro, S. Singh, C. Guestrin, ” why should i trust you?” explaining the predictions of any
classifier, in: Proceedings of the 22nd ACM SIGKDD international conference on knowledge
discovery and data mining, 2016, pp. 1135–1144.
[39] U. Schlegel, H. Arnout, M. El-Assady, D. Oelke, D. A. Keim, Towards a rigorous evaluation of
xai methods on time series, in: 2019 IEEE/CVF International Conference on Computer Vision
Workshop (ICCVW), IEEE, 2019, pp. 4197–4201.
[40] F. Yates, Systematic sampling, Philosophical Transactions of the Royal Society of London. Series</p>
      <p>A, Mathematical and Physical Sciences 241 (1948) 345–377.
[41] S. A. Mostafa, I. A. Ahmad, Recent developments in systematic sampling: A review, Journal of
Statistical Theory and Practice 12 (2018) 290–310.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Polignano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Musto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Pellungrini</surname>
          </string-name>
          , E. Purificato, G. Semeraro,
          <string-name>
            <given-names>M.</given-names>
            <surname>Setzu</surname>
          </string-name>
          , XAI.it
          <year>2024</year>
          :
          <article-title>An Overview on the Future of Explainable AI in the era of Large Language Models</article-title>
          ,
          <source>in: Proceedings of 5th Italian Workshop on Explainable Artificial Intelligence, co-located with the 23rd International Conference of the Italian Association for Artificial Intelligence</source>
          , Bolzano, Italy,
          <source>November 25-28</source>
          ,
          <year>2024</year>
          , CEUR. org,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.-Q.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.-B. Ma</surname>
            , W. Lv,
            <given-names>Y.-B.</given-names>
          </string-name>
          <string-name>
            <surname>He</surname>
            ,
            <given-names>Q.-H.</given-names>
          </string-name>
          <string-name>
            <surname>Yang</surname>
          </string-name>
          ,
          <article-title>Progress and perspective of ceramic/polymer composite solid electrolytes for lithium batteries</article-title>
          ,
          <source>Advanced Science 7</source>
          (
          <year>2020</year>
          )
          <fpage>1903088</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Miao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Si</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Pan</surname>
          </string-name>
          , E. Zio,
          <article-title>Prognostics and health management: A review from the perspectives of design, development and decision</article-title>
          ,
          <source>Reliability Engineering &amp; System Safety</source>
          <volume>217</volume>
          (
          <year>2022</year>
          )
          <fpage>108063</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>E.</given-names>
            <surname>Zio</surname>
          </string-name>
          ,
          <article-title>Prognostics and health management (phm): Where are we and where do we (need to) go in theory and practice</article-title>
          ,
          <source>Reliability Engineering &amp; System Safety</source>
          <volume>218</volume>
          (
          <year>2022</year>
          )
          <fpage>108119</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Tian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Xu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <article-title>A comprehensive review of battery modeling and state estimation approaches for advanced battery management systems</article-title>
          ,
          <source>Renewable and Sustainable Energy Reviews</source>
          <volume>131</volume>
          (
          <year>2020</year>
          )
          <fpage>110015</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>G. L.</given-names>
            <surname>Plett</surname>
          </string-name>
          ,
          <article-title>Extended kalman filtering for battery management systems of lipb-based hev battery packs: Part 3. state and parameter estimation</article-title>
          ,
          <source>Journal of Power sources 134</source>
          (
          <year>2004</year>
          )
          <fpage>277</fpage>
          -
          <lpage>292</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lyu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>Remaining capacity estimation of li-ion batteries based on temperature sample entropy and particle filter</article-title>
          ,
          <source>Journal of Power Sources</source>
          <volume>268</volume>
          (
          <year>2014</year>
          )
          <fpage>895</fpage>
          -
          <lpage>903</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>L.</given-names>
            <surname>Liao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Köttig</surname>
          </string-name>
          ,
          <article-title>Review of hybrid prognostics approaches for remaining useful life prediction of engineered systems, and an application to battery life prediction</article-title>
          ,
          <source>IEEE Transactions on Reliability</source>
          <volume>63</volume>
          (
          <year>2014</year>
          )
          <fpage>191</fpage>
          -
          <lpage>207</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Liu</surname>
          </string-name>
          , G. Sun,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bu</surname>
          </string-name>
          , J. Han,
          <string-name>
            <given-names>X.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pecht</surname>
          </string-name>
          ,
          <article-title>Particle learning framework for estimating the remaining useful life of lithium-ion batteries</article-title>
          ,
          <source>IEEE Transactions on Instrumentation and Measurement</source>
          <volume>66</volume>
          (
          <year>2016</year>
          )
          <fpage>280</fpage>
          -
          <lpage>293</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A.</given-names>
            <surname>Nuhic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Terzimehic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Soczka-Guth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Buchholz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Dietmayer</surname>
          </string-name>
          ,
          <article-title>Health diagnosis and remaining useful life prognostics of lithium-ion batteries using data-driven methods</article-title>
          ,
          <source>Journal of power sources 239</source>
          (
          <year>2013</year>
          )
          <fpage>680</fpage>
          -
          <lpage>688</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>