Battery State-of-Health Estimation as a Pre-Fault Warning Layer for TN-C-S Low-Voltage Distribution Systems

The safety case for watching battery aging

China added 66.43 GW / 189.48 GWh of new-type energy storage in 2025, growth of 52% in power and 73% in energy capacity year on year, and a growing share of that capacity sits on the distribution side, where it provides peak shaving, voltage support and demand response. The same assets also sit electrically close to the last mile of the power system. Roughly 8,000 people die each year in China from electric shock, and more than 85% of those accidents occur in low-voltage distribution networks.

Containerized lithium-ion battery energy storage system
Grid-side lithium-ion battery storage, the asset whose aging state is estimated here.

TN-C-S is one of the grounding arrangements used in these networks. The supply side runs a combined PEN conductor; at the user intake the PEN splits into a neutral conductor N and a protective conductor PE, with PE repeatedly grounded and then routed independently of N for the rest of the installation. That split gives converters and battery management systems a protective earth path, but the shared PEN segment creates failure modes that a purely local residual-current device cannot see: zero-sequence voltage offset, enclosure energization after a PEN break, and conducted common-mode interference. Aging of the battery that backs the storage branch adds a slower, cumulative contribution. Capacity fade and rising internal resistance reduce the operating margin of the branch, while degraded insulation raises residual current and pushes the installation closer to nuisance or genuine tripping.

Protection practice addresses these risks after the fact. Residual-current and unbalanced-current mutation methods detect and locate leakage faults once they exist, and recent work on TN-C-S systems has pushed detection sensitivity and fault discrimination considerably further. What remains thin is the pre-fault layer: information about how far the storage branch has drifted into an aged state before any electrical safety quantity crosses a threshold. A state-of-health (SOH) estimate is a natural candidate for that layer, because it is the one quantity in the system that evolves monotonically over years and summarizes the electrochemical degradation that eventually shows up as insulation loss and residual current.

From electrochemical degradation to residual-current risk

Lithium-ion cells age through solid–electrolyte interphase thickening, loss of lithium inventory (LLI), loss of active material (LAM) and electrolyte side reactions. The measurable consequences are capacity fade and a rise in internal resistance, which in turn amplify voltage excursion and thermal stress during charge and discharge. Insulation performance degrades alongside, so the residual current of the storage branch tends to creep upward as the cells age.

The mapping is not one-to-one, and it is worth being explicit about that. SOH does not determine residual current or tripping behaviour on its own; connection quality, ambient temperature, converter operating mode and grounding condition all intervene. SOH is therefore best treated as a prior state variable that complements zero-sequence voltage, residual current and protection-operation signals, not as a direct leakage criterion. Any quantitative link between a given SOH level and a given safety risk has to be calibrated against synchronized converter, battery-management and distribution-side field data.

Formally, the SOH used throughout this work is the ratio of present usable capacity to rated capacity:

$$\mathrm{SOH}=\frac{Q_{\mathrm{act}}}{Q_{0}}\times 100\%$$

where \(Q_{\mathrm{act}}\) is the current maximum available capacity and \(Q_{0}\) the rated capacity.

Two aging datasets spanning chemistry and rate

Validation drew on two independent aging datasets. The first is the publicly released cycling dataset from the Energy and Automotive Engineering Center at Tongji University, recorded on commercial 18650 cells with a nickel–cobalt–aluminium (NCA) cathode, graphite anode, 3.5 Ah rated capacity and 4.2 V rated voltage; cells NCA1 and NCA2 were used. The second comes from laboratory cycling of 12 lithium iron phosphate cells split into four groups of three, all charged at 5 C at 25 °C and discharged at 5 C, 10 C, 15 C and 20 C respectively; cells LB1 and LB4 were used for estimation, and LB1–LB3 for the repeatability check described later.

Table 1. Cycle-aging conditions of the cells used in this work
Cell Temperature Charge rate Discharge rate
NCA1 25 °C 0.5 C 0.5 C
NCA2 45 °C 0.5 C 0.5 C
LB1 25 °C 5 C 5 C
LB4 25 °C 5 C 10 C

The two sets differ in cathode chemistry, operating temperature and discharge rate, which is the minimum spread needed to test whether a feature set and a network architecture transfer between battery systems rather than fitting one cell type.

Health features that a distribution terminal can actually measure

Raw charge–discharge records carry abundant aging information but are high-dimensional and redundant. Candidate features were drawn from three families: time-domain behaviour, incremental capacity, and voltage relaxation.

Time-domain behaviour follows from polarization. As a cell ages, its terminal voltage reaches the charge cut-off sooner under constant current, so the constant-current charging time shortens with cycling, while the constant-voltage stage lengthens as diffusion slows. Voltage-plateau durations behave the same way: plateau regions correspond to lithium intercalation and phase evolution, and the charge passed within a given voltage window shrinks as LLI and LAM accumulate, while increased polarization brings the cell to its cut-off earlier. In NCA1 at 25 °C over 208 full cycles, SOH fell from 93.40% to 72.82%, the charge plateau shortened from 3,668.43 s to 3,028.22 s (−17.45%) and the discharge plateau from 2,364.83 s to 1,811.36 s (−23.40%). Linear regression gives 25.82 s and 24.99 s of plateau loss per percentage point of SOH, with \(R^2\) of 0.9817 and 0.9826. NCA2 at 45 °C shows the same direction with different rates: charge and discharge plateaus fell by 15.23% and 15.53%, confirming that the trend holds across temperature while its slope does not.

Incremental capacity (IC) is obtained by differentiating capacity against terminal voltage:

$$\mathrm{IC}_{k}=\frac{\Delta Q}{\Delta V}=\frac{Q_{k}-Q_{k-N}}{V_{k}-V_{k-N}}$$

where \(Q_k\) and \(V_k\) are the capacity and terminal voltage at sample \(k\), and \(N\) is the differencing interval. Because differentiation amplifies sampling noise, voltage and capacity sequences are Gaussian-smoothed before the derivative is taken; the smoothed curve exposes a clear main peak. For NCA1 the IC peak fell 24.18% and its voltage shifted positive by 41.1 mV over the same 208 cycles, the discharge relaxation rebound grew 52.43%, and a DC-resistance proxy rose 8.51% — external signatures consistent with reaction-zone shrinkage and growing polarization.

Seven candidate features were screened with two-sided Spearman rank correlation and Benjamini–Hochberg control of the false discovery rate at \(q<0.05\):

$$\rho_{s}=1-\frac{6\sum_{i=1}^{n}d_i^{2}}{n\left(n^{2}-1\right)}$$

All seven passed the significance test, so the filter was not statistical but structural: correlation strength, mutual redundancy, mechanistic complementarity and field measurability decided the final four.

Table 2. Candidate health features and screening outcome
Feature Spearman ρ with SOH Outcome
Constant-current charging time 0.9966 Selected — extractable from BMS voltage/current series
IC peak value 0.9993 Selected — conditional on a complete constant-current segment
Charge plateau duration 0.9932 Selected — time-domain, no extra sensor
Discharge plateau duration 0.9937 Selected — time-domain, complements the charge side
Constant-voltage charging time Significant, weaker Excluded — sensitive to cut-off settings, initial SOC, temperature; shortens sharply at high rate
Voltage at the IC peak Significant Excluded — overlaps with IC peak, sensitive to voltage resolution and smoothing
Discharge relaxation rebound Significant Excluded — requires a well-defined rest window that dispatch schedules rarely guarantee

Time-domain features are the cheapest to deploy: constant-current time and plateau durations can all be computed from the voltage–current time series a BMS already records, provided that a constant-current window of sufficient length actually occurs. The IC peak is different in kind. Reconstructing it demands a continuous, complete constant-current capacity–voltage trajectory and adequate voltage resolution, so it was classified as a conditionally measurable feature, to be enabled when the operating and sampling conditions allow and replaced by time-domain features when they do not.

The noise ceiling of incremental capacity

To locate that boundary, independent zero-mean Gaussian noise was added to terminal voltage and charge capacity during the constant-current segment of each of the 208 cycles, with standard deviation set from the root-mean-square of the de-meaned signal and a target signal-to-noise ratio (SNR). Five SNR levels were tested, each repeated 100 times.

Table 3. IC-peak robustness under increasing measurement noise (208 cycles, 100 repetitions per level)
SNR (dB) MdAPE (%) Median ρ with SOH 95% interval of ρ Repetitions with p < 0.05 (%)
60 0.334 0.9933 0.9906–0.9949 100.0
50 1.214 0.9638 0.9520–0.9715 100.0
40 6.593 0.8500 0.8165–0.8874 100.0
30 37.943 0.6165 0.5271–0.6876 100.0
20 949.372 0.2454 0.1257–0.3920 96.0

Down to about 40 dB the IC peak retains a strong monotonic relationship with SOH; at 30 dB and below, both extraction stability and ranking ability collapse, and at 20 dB the peak is effectively noise. The practical reading is that IC-based features should be gated on measured data quality rather than enabled unconditionally — a design rule that matters more in a substation terminal than in an offline study.

Model: TCN front end, Transformer back end, RIME tuning

The estimation network is a hybrid chosen for three distinct jobs. A temporal convolutional network (TCN) handles local, short-range structure: causal dilated convolution expands the receptive field without violating temporal causality, so the estimate at time \(t\) depends only on inputs up to \(t\), and the parallel structure keeps computational cost low enough for an edge device. Dilated convolution is defined as

$$F(s)=\left(x*_{d}f\right)(s)=\sum_{i=0}^{k-1}f(i)\cdot x_{s-d\cdot i}$$

with dilation factor \(d\), kernel size \(k\) and input \(x\); stacking layers with \(d\) growing as powers of two covers long histories at shallow depth. Each residual block contains two dilated causal convolutions followed by weight normalization and a ReLU, with a skip connection:

$$y=\mathrm{Activation}\left(x+F(x)\right)$$

A Transformer encoder then models dependencies across hundreds of cycles, something local convolution cannot represent. Positional encoding injects cycle order, and scaled dot-product attention with multiple heads lets the model weigh different temporal scales simultaneously:

$$\mathrm{Attention}(Q,K,V)=\mathrm{softmax}\left(\frac{QK^{\top}}{\sqrt{d_k}}\right)V$$

$$\mathrm{MultiHead}(Q,K,V)=\mathrm{Concat}\left(\mathrm{head}_{1},\dots,\mathrm{head}_{h}\right)W^{O}$$

Only the encoder is retained, which keeps parameter count and inference cost within reach of a monitoring terminal. The third component, the rime optimization algorithm (RIME), tunes the network’s key hyperparameters. RIME alternates a soft-rime search, in which particles diffuse and condense under a direction term \(r_1\cos\theta\), an environmental step factor \(\beta\) that decreases with iteration count, and an attachment coefficient \(E=t/T\) that raises the probability of position updates late in the search:

$$R_{ij}^{\mathrm{new}}=R_{ij}^{\mathrm{best}}+r_{1}\cos\theta\cdot\beta\cdot\left(h\cdot\left(Ub_{ij}-Lb_{ij}\right)+Lb_{ij}\right),\quad r_{2}<e$$

with a hard-rime puncturing step that replaces the dimensions of poorly fitted particles by the global best according to a normalized-fitness threshold, and a greedy selection rule that accepts a new position only if its fitness improves. The fitness function is the root-mean-square error of SOH estimation:

$$\mathrm{RMSE}=\sqrt{\frac{1}{n}\sum_{i=1}^{n}\left(y_{i}-\hat{y}_{i}\right)^{2}}$$

Table 4. Hyperparameter search ranges explored by RIME
Hyperparameter Lower bound Upper bound
Initial learning rate 0.0001 0.01
Number of convolution kernels 16 128
Kernel size 3 9
Dropout rate 0.01 0.5
Batch size 16 128
Attention heads 2 5

RIME itself needs only a population size and an iteration count, so the tuning overhead stays modest — relevant when the same model has to be reconfigured for stations with different load patterns, cell types and data distributions.

Estimation accuracy against SVR, LSTM and CNN

Each cell’s data was split 80% for training and 20% for testing, and the proposed model was compared with support vector regression (SVR), a convolutional neural network (CNN) and a long short-term memory network (LSTM) under identical compute conditions.

Table 5. SOH estimation error of benchmark models on four cells
Cell Model RMSE MAE MAPE R²
NCA1 SVR 0.0117 0.0128 0.49% 0.9559
LSTM 0.0111 0.0103 0.38% 0.9816
CNN 0.0081 0.0066 0.26% 0.9874
RIME-TCN-Transformer 0.0044 0.0036 0.13% 0.9971
NCA2 SVR 0.0115 0.0094 0.37% 0.8739
LSTM 0.0069 0.0066 0.25% 0.9546
CNN 0.0063 0.0058 0.22% 0.9629
RIME-TCN-Transformer 0.0037 0.0029 0.11% 0.9867
LB1 SVR 0.0104 0.0095 0.95% 0.6359
LSTM 0.0056 0.0053 0.52% 0.8920
CNN 0.0046 0.0042 0.41% 0.9271
RIME-TCN-Transformer 0.0023 0.0018 0.18% 0.9823
LB4 SVR 0.0181 0.0096 0.93% 0.8865
LSTM 0.0130 0.0068 0.65% 0.9412
CNN 0.0095 0.0074 0.73% 0.9687
RIME-TCN-Transformer 0.0036 0.0030 0.32% 0.9956

On NCA1, RMSE, MAE and MAPE fall by 62.39%, 71.88% and 73.47% relative to SVR, and RMSE falls by 60.36% and 45.68% relative to LSTM and CNN. On LB1 the corresponding RMSE reductions are 77.88%, 58.93% and 50.00%. SVR shows the largest errors throughout, and LSTM and CNN degrade visibly during the rapid end-of-life capacity decline, where the true trajectory bends sharply and the estimation error of both models widens. Error box plots show the proposed model’s interquartile range staying closest to the zero line across all four cells; LB1 and LB4 produce outliers under every model, with SVR accumulating the most on LB4, which is consistent with the capacity fluctuation of those cells rather than with a specific architecture.

Which component contributes what

Ablation removed one component at a time, yielding RIME-TCN, RIME-Transformer and TCN-Transformer variants under the same split.

Table 6. Ablation results on four cells
Cell Model RMSE MAE MAPE R²
NCA1 RIME-TCN-Transformer 0.0044 0.0036 0.13% 0.9971
RIME-TCN 0.0073 0.0063 0.23% 0.9924
RIME-Transformer 0.0116 0.0110 0.39% 0.9801
TCN-Transformer 0.0065 0.0053 0.19% 0.9937
NCA2 RIME-TCN-Transformer 0.0037 0.0029 0.11% 0.9867
RIME-TCN 0.0059 0.0043 0.17% 0.9665
RIME-Transformer 0.0077 0.0061 0.24% 0.9427
TCN-Transformer 0.0064 0.0053 0.21% 0.9602
LB1 RIME-TCN-Transformer 0.0023 0.0018 0.18% 0.9823
RIME-TCN 0.0037 0.0032 0.32% 0.9524
RIME-Transformer 0.0031 0.0025 0.25% 0.9682
TCN-Transformer 0.0028 0.0023 0.23% 0.9771
LB4 RIME-TCN-Transformer 0.0036 0.0030 0.32% 0.9956
RIME-TCN 0.0077 0.0057 0.57% 0.9794
RIME-Transformer 0.0059 0.0050 0.54% 0.9879
TCN-Transformer 0.0057 0.0052 0.56% 0.9889

The contribution pattern is asymmetric and depends on data volume. On NCA1, adding RIME to TCN-Transformer cuts RMSE from 0.0065 to 0.0044, a 32% reduction, with MAE and MAPE down by 32% and 31.5%, which isolates the value of hyperparameter search alone. Removing TCN is the most damaging change on the NCA cells: RIME-Transformer reaches RMSE 0.0116 on NCA1, the worst of the four variants, indicating that feeding a raw sequence to an attention stack without local feature extraction and denoising costs accuracy when the sample set is small. On the larger LB datasets the ordering flips — RIME-TCN degrades most on LB1 and LB4, since without attention the model struggles with long-range aging structure across long sequences. Box plots reinforce this: the full model’s error distribution is the tightest and centred on zero for all four cells, while RIME-TCN shows a pronounced offset and extreme outliers on LB4, consistent with a convolution-only model being pulled by individual anomalous cycles.

What SHAP reveals about cross-chemistry weighting

Shapley additive explanations were computed with 100 randomly drawn training samples as the background set, using the mean estimated SOH over those cycles as the baseline. Because the test cycles are more aged than the training cycles, all SHAP values are negative — features push the estimate below the baseline, which is exactly the signature of aging.

On NCA1, the IC peak dominates, accounting for 62.05% of global importance, and the dependence plot orders high peaks (red) to the right, meaning a higher IC peak yields a higher SOH estimate, matching the physical expectation. On NCA2 the IC peak still leads, but charge plateau duration and constant-current charging time contribute 29.88% and 28.21% respectively, so the model blends several features rather than relying on one. On the LFP cells the picture inverts: recomputation of the SHAP output gives IC peak shares of 0.0876% for LB1 and 0.1759% for LB4, roughly 0.09% and 0.18%. Sensitivity to the IC peak essentially disappears.

Two readings of this result are worth separating. The first is statistical: under a fixed four-feature input interface, the network allocates weight according to the information structure of the data at hand, softly down-weighting a feature that carries little discriminative content for that chemistry and rate. The second is engineering: the IC peak should remain a conditionally enabled input rather than a permanent one, with validity criteria built from constant-current segment completeness, SNR and data continuity. It was retained here partly because it still carries high information content on the NCA data, and partly because a uniform input interface simplifies model transfer between datasets. Whether the same weighting behaviour holds for other chemistries and for real substation data remains to be tested on independent cells and synchronized field records.

A repeatability check on identically cycled cells

Because four cells from different groups cannot establish how much of an aging trajectory is cell-to-cell scatter, LB1, LB2 and LB3 — all from the same 5 C/5 C group — were compared over their common cycle window. Normalized discharge capacity was computed as \(Q_{\mathrm{norm}}(N)=Q(N)/Q(0)\), with \(Q(0)\) the first-cycle discharge capacity, and dispersion as the ratio of the sample standard deviation to the mean (coefficient of variation).

Table 7. Capacity dispersion of three identically cycled LFP cells
Quantity Value
Cycles available (LB1 / LB2 / LB3) 1,404 / 1,350 / 1,368
Common analysis window Cycles 1–1,350
Mean coefficient of variation over common window 0.735%
Maximum coefficient of variation 1.159% (cycle 1,171)
Mean coefficient of variation, cycles 1–100 0.303%
Mean coefficient of variation, middle 100 cycles 0.747%
Mean coefficient of variation, final 100 cycles 1.033%
Final normalized capacity (LB1 / LB2 / LB3) 80.73% / 81.46% / 81.04%

All three cells follow the same decay direction and end within 0.73 percentage points of one another, which supports the repeatability of the aging data. Dispersion nevertheless grows steadily with cycle count, from 0.303% over the first hundred cycles to 1.033% over the last hundred, so individual cell-to-cell variation remains a real, if modest, source of uncertainty late in life. The curves shown for this comparison were smoothed with a 21-cycle moving average for legibility only; every statistic above was computed on unsmoothed data.

Deployment boundary and the calibration still missing

The architecture was shaped by terminal-side constraints rather than benchmark accuracy alone. Causal dilated convolution parallelizes well, and an encoder-only Transformer keeps parameter count and latency low, so the model has a plausible path onto a distribution monitoring terminal, possibly after pruning and quantization. Latency, memory footprint and power draw have not been measured on target hardware, and those measurements are a prerequisite for any claim of real-time operation.

Functionally, the estimate belongs upstream of protection. Fed into the intelligent monitoring terminal of a TN-C-S distribution system, it supplies an aging-state signal that sits alongside zero-sequence voltage, residual current and protection operations, forming a prediction–detection arrangement in which SOH degradation is flagged before a residual-current device ever operates. That arrangement is a framework, not a validated warning system: the threshold at which a given SOH level should raise an alarm, and the mapping from SOH to leakage risk, still require joint calibration using synchronized converter, battery-management and distribution-side data from real stations. The remaining work is therefore mostly field work — online internal-resistance identification, dynamic gating of conditionally measurable features, model transfer across cells, and hardware-level validation of compression, inference delay and power consumption.

The value of the approach at this stage is narrower and more defensible than a safety guarantee. High-accuracy SOH estimation, achievable at RMSE of 0.0044 on NCA cells and 0.0023 on LFP cells under the splits tested, converts an unseen electrochemical drift into a measurable, trackable state variable — one that can be trended over years and combined with the electrical safety quantities that protection engineers already trust.

Scroll to Top