<!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>August</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>An IoT-based real time inner-state monitoring system for lithium-ion batteries</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Takaki Ojima</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Masahiro Fukui</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Graduate School of Science and Engineering, Ritsumeikan University</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>1</volume>
      <fpage>9</fpage>
      <lpage>22</lpage>
      <abstract>
        <p>Modern electric vehicles and portable electronic devices necessitate high-performance and reliable battery systems. To achieve this, it is crucial to monitor the battery's state continuously and accurately. In response, there is ongoing development of remote monitoring and history management system for lithium-ion batteries. Against this context, the authors are engaged in the development of a new Battery Management System that integrates real-time battery state estimation capabilities using the Extended Kalman Filter with functions for estimating internal parameters. This paper presents a report on the development of an internal parameter estimation feature for battery state monitoring under various operational conditions, utilizing the Recursive Least Squares method.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Lithium-ion battery</kwd>
        <kwd>Kalman Filter</kwd>
        <kwd>Recursive Least Square</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>voltage drops due to internal resistance and polarization, making high-precision estimation a
challenge. Therefore, several new methods have been proposed to address these shortcomings,
such as the Kalman filter method [ 6, 7], the neural network (NN) method [8], and the sliding
mode observer [9]. Among these methods, the Kalman filter is particularly eficient and simple.
Kalman filters are suitable for operation on the edge computer side because they can cope with
large current fluctuations. Edge computer operation reduces delays in data transmission to
the central system and enables real-time battery state estimation. In particular, the Extended
Kalman Filter (EKF) provides excellent state estimation for nonlinear systems and accurately
captures the battery’s real-time behavior, ofering robustness against system uncertainties and
external noise.</p>
      <p>The authors have already incorporated an Extended Kalman Filter (EKF) into the edge
computing side for real-time state estimation of batteries. This technology enables the capture
of actual battery behavior in real-time, providing robustness against system uncertainties and
external noise. However, the accuracy of estimations under specific conditions such as battery
degradation and temperature changes may decrease. Therefore, by also integrating the Recursive
Least Squares (RLS) method [10], we have enabled real-time updates of internal parameters,
achieving high accuracy in state estimation across all operational conditions. This paper reports
on the battery remaining capacity estimation functionality that incorporates internal parameter
estimation using RLS integrated with EKF.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Internal estimation of lithium-ion batteries</title>
      <p>This section describes a detailed explanation of Equivalent Circuit Models (ECM), Extended
Kalman Filters (EKF), and Recursive Least Squares (RLS). The ECM represents the electrical
behavior of batteries through a combination of simple electronic components, helping to
understand the dynamic characteristics of batteries. The EKF is used for state estimation of
nonlinear systems and accurately tracks the charge state and health of batteries. The RLS
method continuously updates the internal parameters of the battery, enabling precise modeling
according to changing conditions.</p>
      <sec id="sec-2-1">
        <title>2.1. The Equivalent Circuit Models</title>
        <p>The single-stage RC equivalent circuit model commonly used for parameter estimation in storage
batteries is shown in Figure 1 [11]. This model can be easily converted into a state-space model
and a regression model for parameter estimation. In this model, the battery’s electromotive
force is represented by a voltage source called Open Circuit Voltage (OCV). The model includes
internal resistance, which is divided into two parts: a direct current resistance  that represents
the charge transfer resistance within the electrolyte, and a parallel circuit consisting of a resistor
 and a capacitor  that represents the slow reaction associated with difusion. The terminal
voltage of the battery is denoted by , and the terminal current is denoted by . The current
lfowing into the battery is considered positive. During discharge,  is negative, and during
charging,  is positive.
RRC</p>
        <p>
          By using the forward Euler method and the equation L = RRC + OCV, equation (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) is
derived.  is the sampling period.
        </p>
        <p>L() = a() +
︂)
︂(
s</p>
        <p>︂)
b − a ( − 1) +</p>
        <p>bb − 1 OCV()
−
︂(
︂( sa +
bb
s
s
︂)
bb − 1 L( − 1) + OCV()</p>
        <p>
          Through the variable transformation shown in equation (
          <xref ref-type="bibr" rid="ref3">3</xref>
          ), the regression model of the
battery can be written as equation (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ).
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Recursive Least Square</title>
        <p>
          To estimate the parameters of a battery online (during charge or discharge mode), the Recursive
Least Squares (RLS) method is a conventional identification method. Figure 2 shows the block
diagram of parameter estimation with system identification. System identification uses statistical
methods to build mathematical models of dynamic systems from measured data. Therefore, the
mathematical regression model of the battery must be built from the equivalent circuit model.
The diferential equation of  (the voltage of  and the RC circuit , ) is given by
equation (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ).
        </p>
        <p>bb
1 =</p>
        <p>
          s ,  = (1 + 1)OCV
0 = a, 1 =
sa +
bb
s
b − a
(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
        </p>
        <p>
          In equation (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ), is considered an unknown parameter to be estimated using RLS identification.
The values of , , , and  can be calculated from the parameter  using equation (
          <xref ref-type="bibr" rid="ref5">5</xref>
          ).
() = L() =  T()
        </p>
        <p>⎡ () ⎤
 () = ⎢⎢⎣− ((− − 1)1)⎥⎦⎥ ,  = ⎢⎢⎣11⎥⎦⎥</p>
        <p>1
 = 0,  =
 =</p>
        <p>1 − 10
,  =
⎡0 ⎤</p>
        <p>1 − 10
1 + 1</p>
        <p>1 + 1</p>
        <p>
          Following the RLS identification theory, the evaluation function with a forgetting factor for
the RLS is given by equation (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ).  is forgetting factor, a positive number less than 1.
        </p>
        <p>() = ∑︁  − 2()</p>
        <p>=1</p>
        <p>
          The RLS algorithm to minimize the equation (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ) is described as Algorithm 1.  () is the
estimated value of the parameters at time ,  () is error-covariance matrix at time , 
is identity matrix, ^(0) is the initial value of the parameter setting,  (0) is the initial
errorcovariance matrix setting.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Extended Kalman Filters</title>
        <p>
          In recent studies, the method for estimating SOC based on the extended Kalman filtering
(EKF) technique has been proposed. The EKF is an approximately optimal state estimator for a
(
          <xref ref-type="bibr" rid="ref4">4</xref>
          )
(
          <xref ref-type="bibr" rid="ref5">5</xref>
          )
(
          <xref ref-type="bibr" rid="ref6">6</xref>
          )
Algorithm 1
Initialization Value:
̂︀(0) =  0
0 ≪
 (0) =    is a positive number
 &lt;
1
        </p>
        <p>Forgetting factor
Recursive Process:
() = () −  ⊺()̂︀( − 1)

1 {︃
 () =
 ( − 1) −
 ( − 1) () ⊺() ( − 1) }︃</p>
        <p>+  ⊺() ( − 1) ()
̂︀() = ̂︀( − 1) +</p>
        <p>( − 1) ()
 +  ⊺() ( − 1) ()
()
zero-mean white Gaussian noise processes with covariance  2 and  2 respectively. For battery
equivalent circuit model, the detail of state space model is shown in Table 1.</p>
        <p>
          The EKF algorithm is described as Algorithm 2. This algorithm consists of three steps:
Initialization, Prediction, and Filtering. Here, ^− is the one-step prediction vector, ^ is the
ifltered estimate vector,  − is the prediction error covariance matrix, and  is the lfitering
error covariance matrix. In this paper,  is diferent from
 .  is the error covariance matrix
of RLS,  is the covariance matrix of EKF. As represented in equation (
          <xref ref-type="bibr" rid="ref9">9</xref>
          ), () is the Jacobian
matrix of ℎ(()), which represents the nonlinear relationship between OCV and SOC.
Filtering Step:
+1 = −+1 /(−+1 +  2 )
^+1 = ^−+1 + +1(+1 − ^−+1)
+1 = (1 + +1)−+1
Prediction Step:
^−+1 = ^ + 
−+1 =  +  2
        </p>
      </sec>
      <sec id="sec-2-4">
        <title>2.4. The parameter and state estimation</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. The IoT-based Battery Management System</title>
      <sec id="sec-3-1">
        <title>3.1. The BMS Architecture</title>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. State estimation module with RLS</title>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. The Test Experiments and Results</title>
      <p>In this paper, we have added a battery internal parameter estimation function using RLS to a BMS
with SOC estimation capabilities based on EKF. To verify its proper functioning, we examined
SOC estimation using EKF with and without RLS. The estimation experiments utilized discharge
waveforms of 18650-type lithium-ion batteries. Various patterns of discharge waveforms were
prepared, and the measured terminal voltage and current were input into the RLS-EKF algorithm
to simultaneously estimate circuit parameters and SOC. Figure 6 shows the terminal voltage,
terminal current, our SOC estimation results, the true SOC values, and their absolute errors.
Additionally, Figure 7 shows the estimation results of the internal parameters using RLS. Figure 8
shows the Comparison of SOC Estimation Results Using EKF with and without RLS. By adding
RLS, it is confirmed that SOC can be estimated with higher accuracy.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>In this study, a function for estimating internal parameters by RLS was added to a real-time
battery condition monitoring system. This function is expected to enable more accurate
estimation of the state of the battery, which depends on the state of degradation and temperature
changes. At the present stage, the functionality of the BMS has not been evaluated in a real
environment, so the accuracy of the SOC estimation and the influence of the internal parameter
estimation will be evaluated in a real environment in the future.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This work is partly commissioned by NEDO (Project Number JPNP10020).
circuit battery models part 2. parameter and state estimation, Journal of Power Sources
262 (2014) 457–482.
[11] M. S. Grewal, A. P. Andrews, Kalman filtering: Theory and Practice with MATLAB, John
Wiley &amp; Sons, 2014.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Weicker</surname>
          </string-name>
          ,
          <article-title>A systems approach to lithium-ion battery management</article-title>
          ,
          <source>Artech house</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>K.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Peng</surname>
          </string-name>
          ,
          <string-name>
            <surname>C. Zhang,</surname>
          </string-name>
          <article-title>A brief review on key technologies in the battery management system of electric vehicles</article-title>
          ,
          <source>Frontiers of mechanical engineering 14</source>
          (
          <year>2019</year>
          )
          <fpage>47</fpage>
          -
          <lpage>64</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>K.-S.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.-S.</given-names>
            <surname>Moo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.-P.</given-names>
            <surname>Chen</surname>
          </string-name>
          , Y.-C. Hsieh,
          <article-title>State-of-charge estimation for lead-acid batteries based on dynamic open-circuit voltage</article-title>
          ,
          <source>in: 2008 IEEE 2nd International Power and Energy Conference</source>
          , IEEE,
          <year>2008</year>
          , pp.
          <fpage>972</fpage>
          -
          <lpage>976</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>K. S.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.-S.</given-names>
            <surname>Moo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.-P.</given-names>
            <surname>Chen</surname>
          </string-name>
          , Y.-C. Hsieh,
          <article-title>Enhanced coulomb counting method for estimating state-of-charge and state-of-health of lithium-ion batteries</article-title>
          ,
          <source>Applied energy 86</source>
          (
          <year>2009</year>
          )
          <fpage>1506</fpage>
          -
          <lpage>1511</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Rodrigues</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Munichandraiah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Shukla</surname>
          </string-name>
          ,
          <article-title>A review of state-of-charge indication of batteries by means of ac impedance measurements</article-title>
          ,
          <source>Journal of power Sources</source>
          <volume>87</volume>
          (
          <year>2000</year>
          )
          <fpage>12</fpage>
          -
          <lpage>20</lpage>
          .
        </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 2. modeling and identification</article-title>
          ,
          <source>Journal of Power sources 134</source>
          (
          <year>2004</year>
          )
          <fpage>262</fpage>
          -
          <lpage>276</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <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="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>W.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Williard</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pecht</surname>
          </string-name>
          ,
          <article-title>State of charge estimation for li-ion batteries using neural network modeling and unscented kalman filter-based error cancellation</article-title>
          ,
          <source>International Journal of Electrical Power &amp; Energy Systems</source>
          <volume>62</volume>
          (
          <year>2014</year>
          )
          <fpage>783</fpage>
          -
          <lpage>791</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>T.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Qiao</surname>
          </string-name>
          , L. Qu,
          <article-title>Online soc and soh estimation for multicell lithium-ion batteries based on an adaptive hybrid battery model and sliding-mode observer, in: 2013 IEEE energy conversion congress and exposition</article-title>
          , IEEE,
          <year>2013</year>
          , pp.
          <fpage>292</fpage>
          -
          <lpage>298</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>C.</given-names>
            <surname>Fleischer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Waag</surname>
          </string-name>
          , H.
          <string-name>
            <surname>-M. Heyn</surname>
          </string-name>
          , D. U. Sauer,
          <article-title>On-line adaptive battery impedance parameter and state estimation considering physical principles in reduced order equivalent</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>