In the context of rapidly increasing renewable energy penetration and the growing demand for grid flexibility, battery energy storage systems have become indispensable. Traditional centralized battery energy storage systems often suffer from cell inconsistency issues, leading to reduced energy utilization and increased maintenance complexity. Modular multilevel battery energy storage systems (MESS) have emerged as a promising solution, where each submodule consists of a battery pack paired with a half-bridge converter. This architecture enables flexible power management, fault isolation, and scalability. However, the accurate monitoring of battery state, particularly through electrochemical impedance spectroscopy (EIS), remains a critical challenge for ensuring safe and efficient operation. This paper presents an online EIS measurement method tailored for modular multilevel battery energy storage systems, leveraging the inherent switching modulation of half-bridge converters to inject multi-frequency current perturbations into target battery cells without disrupting system power stability.
Our approach exploits the property that during steady-state operation, the DC bus current in a MESS exhibits low ripple. By designing a multi-frequency switching function for the half-bridge converter of a specific submodule, we can modulate the DC bus current to generate a controlled perturbation current that flows through the battery. The resulting battery voltage response is then sampled and analyzed via Fourier transform to extract impedance at multiple frequencies simultaneously.
The core of the proposed method lies in the current modulation technique. Consider a half-bridge submodule as shown in the system topology. Let the switching function \(S(t)\) be defined as 1 when the upper switch is on (battery connected) and 0 when the lower switch is on (battery bypassed). The battery current \(i_{\text{bat}}(t)\) is given by:
$$
i_{\text{bat}}(t) = S(t) \cdot i_{\text{dc}}(t)
$$
When the system operates with a nearly constant DC bus current \(I_{\text{dc}}\), the above simplifies to:
$$
i_{\text{bat}}(t) \approx I_{\text{dc}} \cdot S(t)
$$
Thus, the frequency content of the battery current is directly controlled by \(S(t)\). To measure impedance at a set of desired frequencies \(\{f_1^*, f_2^*, \dots, f_N^*\}\), we construct a multi-frequency sinusoidal signal:
$$
f_{\text{MFS}}(t) = \sum_{n=1}^{N} \sin(2\pi f_n^* t)
$$
Then, the switching function is derived via a sign function:
$$
S(t) = \begin{cases} 1, & f_{\text{MFS}}(t) > 0 \\ 0, & f_{\text{MFS}}(t) \leq 0 \end{cases}
$$
This generates a binary switching signal whose spectrum contains the target frequencies. The battery voltage response \(v_{\text{bat}}(t)\) is sampled, and the complex impedance at each frequency is calculated as:
$$
\hat{Z}(f_k^*) = \frac{\hat{V}_{\text{bat}}(f_k^*)}{\hat{I}_{\text{bat}}(f_k^*)}
$$
where \(\hat{V}_{\text{bat}}(f_k^*)\) and \(\hat{I}_{\text{bat}}(f_k^*)\) are the Fourier coefficients of the voltage and current at frequency \(f_k^*\).
However, the periodic switching of the test module introduces power fluctuations into the system. To mitigate this, we introduce a coordinated control mechanism between a test module and a compensation module. As illustrated in the system coordination diagram, the compensation module’s switching function is designed as the logical complement of the test module’s switching function:
$$
S_2(t) = \overline{S_1(t)}
$$
Consequently, the total power consumed by the pair remains constant at any instant:
$$
p_{\text{test+comp}}(t) = V_{\text{bat}} I_{\text{dc}} \cdot [S_1(t) + S_2(t)] = V_{\text{bat}} I_{\text{dc}} \cdot [S_1(t) + (1 – S_1(t))] = V_{\text{bat}} I_{\text{dc}} = P_{\text{module\_rated}}
$$
Thus, the test-compensation unit behaves as a virtual constant-power module, eliminating the need for additional power balancing actions. This scheme can be extended to multiple compensation modules, as long as the sum of their switching functions equals 1.

To validate the proposed method, we built a simulation model of a five-submodule MESS. Key parameters are listed in the following table.
| Parameter | Value |
|---|---|
| DC bus voltage | 1000 V |
| Number of submodules | 5 |
| Single module voltage | 332.8 V (104 LFP cells × 3.2 V) |
| Number of active modules | 3 |
| Test frequencies | [1, 2, 4, 10, 16, 25, 40] Hz |
Simulation results demonstrate that without compensation, the DC bus voltage fluctuates significantly when the test module switches. Once the compensation module is activated, the bus voltage becomes stable again. The test module continuously performs impedance measurement while the system maintains constant total power. This confirms the effectiveness of the coordinated control strategy in preserving system stability during online EIS measurement.
We also constructed an experimental platform to evaluate the accuracy of the proposed EIS method. The platform includes a DC source (50 V), a resistive load (5 Ω), and a single lithium-ion battery cell (EVE 32 Ah LFP) as the device under test. A half-bridge converter is controlled by a TI TMS320F28377D DSP to generate the multi-frequency switching signal. The experimental parameters are summarized below.
| Parameter | Value |
|---|---|
| DC source voltage | 50 V |
| Load resistance | 5 Ω |
| Inductance | 3.2 μH |
| Battery cell | EVE 32 Ah LFP |
| Test frequencies | [1, 2, 4, 10, 16, 25, 40] Hz |
| Controller | TI TMS320F28377D |
| Voltage ripple amplification factor | ×105 |
During the experiment, the DC bus current was held at approximately 10 A. The battery current waveform clearly shows the multi-frequency modulation, and the amplified AC voltage response contains all target frequency components. Fourier analysis of the measured current and voltage confirms that the dominant peaks are exactly at the desired frequencies, validating the excitation signal design.
We then computed the EIS at various frequencies and compared the results with a commercial impedance analyzer (Hioki BT4560). The comparison is shown in the following table for different states of charge (SOC) and temperatures. The absolute percentage error (APE) at each frequency and the mean absolute percentage error (MAPE) across all frequencies are calculated as:
$$
\text{APE}(f_k^*) = \frac{|Z_{\text{measured}}(f_k^*) – Z_{\text{reference}}(f_k^*)|}{|Z_{\text{reference}}(f_k^*)|}
$$
$$
\text{MAPE} = \frac{100\%}{N} \sum_{k=1}^{N} \frac{|Z_{\text{measured}}(f_k^*) – Z_{\text{reference}}(f_k^*)|}{|Z_{\text{reference}}(f_k^*)|}
$$
| Condition | Frequency (Hz) | APE (%) | MAPE (%) |
|---|---|---|---|
| 15 °C, SOC 20% | 1 | 2.3 | 3.8 |
| 2 | 3.1 | ||
| 4 | 2.8 | ||
| 10 | 4.2 | ||
| 16 | 5.0 | ||
| 25 | 4.5 | ||
| 40 | 4.9 | ||
| 15 °C, SOC 100% | 1 | 1.9 | 3.5 |
| 2 | 2.5 | ||
| 4 | 3.0 | ||
| 10 | 3.8 | ||
| 16 | 4.1 | ||
| 25 | 4.3 | ||
| 40 | 4.6 | ||
| 25 °C, SOC 100% | 1 | 1.5 | 3.0 |
| 2 | 2.0 | ||
| 4 | 2.6 | ||
| 10 | 3.2 | ||
| 16 | 3.5 | ||
| 25 | 3.8 | ||
| 40 | 4.2 |
The maximum APE across all tested frequencies and conditions is below 7%, and the overall MAPE is less than 5%. These results demonstrate that the proposed method achieves accuracy comparable to dedicated laboratory instruments, while operating online without interrupting the normal function of the modular multilevel battery energy storage systems.
In comparison with existing online EIS techniques, our approach offers distinct advantages. The following table summarizes the key differences.
| Method | Excitation Circuit | Excitation Waveform | Impact on System Operation | Measurement Time |
|---|---|---|---|---|
| DC/DC boost converter [10] | Square wave perturbation | Directly affects output power | >1 s | |
| DC/AC inverter [11] | Swept sine wave | Directly affects output power | 1.95 s | |
| Reconfigurable circuit [12,13] | Pseudo-random binary sequence | Directly affects output power | 1 s | |
| Balancing circuit [14] | Approximate triangular wave | Minor impact | >1 s | |
| Proposed method | Multi-frequency switching modulation | Almost negligible (via compensation) | 1 s |
Our method leverages the existing half-bridge converter of each submodule, requiring no additional hardware. The test-compensation coordination ensures that the total power drawn from the battery energy storage systems remains constant, making the measurement transparent to the rest of the system. Moreover, the multi-frequency excitation enables simultaneous acquisition of impedance at multiple points, reducing the overall measurement time to 1 second for the tested frequency range.
In conclusion, we have presented a novel online EIS measurement technique for modular multilevel battery energy storage systems. By designing a multi-frequency switching function for the half-bridge converter and employing a coordinated test-compensation strategy, we can inject controlled current perturbations into target battery cells while maintaining system power stability. Simulation and experimental results validate the effectiveness of the method, with an average relative error below 5% compared to a commercial impedance analyzer. This approach provides a reliable and non-intrusive tool for real-time state estimation and health management of battery energy storage systems, contributing to safer and more efficient operation.
