The Discrete Laplacian

Sequential Testing for Battery Replacement Detection via Remote Telemetry: An E-Process Framework

Problem Formulation: Battery Replacement as a Change-Point Problem

Signal Model

Consider a device transmitting battery telemetry signals $X_t = (V_t, I_t, T_t, Z_t)$ where: - $V_t$: Voltage measurement at time $t$ - $I_t$: Current draw at time $t$ - $T_t$: Temperature at time $t$ - $Z_t$: Internal impedance at time $t$

The battery replacement problem is formulated as detecting a change-point $\tau$:

$$ X_t \sim \begin{cases} P_{\theta_{\text{old}}} & \text{if } t < \tau \ P_{\theta_{\text{new}}} & \text{if } t \geq \tau \end{cases} $$

where $\theta_{\text{old}}$ represents degraded battery characteristics and $\theta_{\text{new}}$ represents fresh battery parameters.

Hypothesis Testing Framework

We test sequentially: - $H_0$: No battery replacement has occurred (battery parameters follow degradation curve) - $H_1$: Battery has been replaced at some unknown time $\tau$

Battery-Specific Signal Characteristics

Voltage Profile Evolution

For a degrading battery, the open-circuit voltage follows:

$$ V_{\text{OCV}}(t, \text{SoC}) = V_0(\text{SoC}) - \alpha \cdot N(t) - \beta \cdot \sqrt{t} $$

where: - $N(t)$: Number of charge cycles - $\alpha$: Cycle-based degradation rate - $\beta$: Calendar aging factor

After replacement, we observe a discontinuous jump:

$$ \Delta V = V_{\text{new}}(\text{SoC}) - V_{\text{degraded}}(\text{SoC}) \approx 0.1\text{-}0.3V $$

Impedance Signature

Internal impedance increases with battery age:

$$ Z(t) = Z_0 \cdot \exp\left(\gamma \cdot \frac{t}{t_{\text{life}}}\right) + Z_{\text{SEI}}(t) $$

where $Z_{\text{SEI}}(t)$ represents solid-electrolyte interface growth.

A replacement manifests as:

$$ Z_{\text{post}} \approx Z_0 \ll Z_{\text{pre}} $$

E-Process Construction for Battery Monitoring

Multi-Signal E-Value

We construct a composite E-value combining all telemetry signals:

$$ E_t = w_V E_t^{(V)} + w_I E_t^{(I)} + w_T E_t^{(T)} + w_Z E_t^{(Z)} $$

where weights satisfy $\sum w_i = 1$ and are optimized based on signal reliability.

Voltage-Based E-Process

For voltage measurements under constant load:

$$ E_t^{(V)} = \exp\left(\lambda_V \sum_{i=1}^{t} (V_i - \hat{V}_i^{\text{deg}}) - t\psi_V(\lambda_V)\right) $$

where $\hat{V}_i^{\text{deg}}$ is the predicted voltage under degradation model:

$$ \hat{V}i^{\text{deg}} = V_0 - \alpha \cdot \hat{N}_i - \beta \cdot \sqrt{i\Delta t} - R(i) \cdot I_i $$}

Impedance-Based E-Process

The impedance E-process leverages the monotonic increase property:

$$ E_t^{(Z)} = \prod_{i=1}^{t} \mathbb{1}(Z_i < Z_{i-1}) \cdot \exp\left(\frac{(Z_{i-1} - Z_i)^2}{2\sigma_Z^2}\right) $$

This E-value grows exponentially when impedance decreases (indicating replacement).

Charge Capacity E-Process

Track full charge capacity $Q_t$ between complete charge cycles:

$$ E_t^{(Q)} = \exp\left(\frac{(Q_t - Q_{\text{pred}})^+}{\sigma_Q} - \frac{1}{2}\right) $$

where $(x)^+ = \max(x, 0)$ and $Q_{\text{pred}}$ follows:

$$ Q_{\text{pred}} = Q_0 \cdot \left(1 - \frac{N(t)}{N_{\text{EOL}}}\right)^{0.8} $$

Exponential Tilting for Battery Signals

Optimal Tilting Parameters

For battery voltage with bounded support $V \in [V_{\min}, V_{\max}]$:

$$ \lambda_V^* = \frac{\log(V_{\max}/V_{\min})}{V_{\max} - V_{\min}} $$

For impedance measurements with log-normal noise:

$$ \lambda_Z^* = \frac{\mu_{\text{new}} - \mu_{\text{old}}}{\sigma^2} $$

Adaptive Tilting Based on State-of-Charge

Adjust tilting parameters based on estimated SoC:

$$ \lambda_t = \lambda_0 \cdot g(\text{SoC}_t) $$

where:

$$ g(\text{SoC}) = \begin{cases} 1.5 & \text{SoC} \in [0.2, 0.8] \ 0.5 & \text{otherwise} \end{cases} $$

This accounts for reduced signal reliability at extreme SoC levels.

Sequential Detection Algorithm

Algorithm: Battery Replacement Detection

Initialize: 
    E_0 = 1
    degradation_model = fit_degradation_curve(historical_data)
    threshold = 1/α (for significance level α)

For each telemetry reading t = 1, 2, ...:
    1. Preprocess signals:
       V_t_norm = normalize_by_SoC(V_t, SoC_t)
       Z_t_temp_comp = temperature_compensate(Z_t, T_t)

    2. Compute residuals:
       r_V = V_t_norm - predict_voltage(degradation_model, t)
       r_Z = Z_t_temp_comp - predict_impedance(degradation_model, t)

    3. Update individual E-values:
       E_t^(V) = E_{t-1}^(V) · exp(λ_V · r_V - ψ_V(λ_V))
       E_t^(Z) = E_{t-1}^(Z) · exp(λ_Z · max(0, -r_Z) - ψ_Z(λ_Z))

    4. Combine E-values:
       E_t = w_V · E_t^(V) + w_Z · E_t^(Z) + w_Q · E_t^(Q)

    5. Detection decision:
       if E_t  threshold:
           DETECT: Battery replaced
           τ_est = estimate_changepoint(E_history)
           Reset monitoring with new baseline

    6. Update degradation model:
       if mod(t, update_interval) == 0:
           degradation_model.update(recent_data)

Changepoint Estimation

Once detection occurs, estimate replacement time:

$$ \hat{\tau} = \arg\max_{s \leq t} \frac{E_t}{E_s} $$

Alternatively, use the CUSUM statistic:

$$ \hat{\tau} = \arg\max_{s \leq t} \left|\sum_{i=s}^{t} (X_i - \hat{X}_i^{\text{deg}})\right| $$

Handling Real-World Challenges

Missing and Irregular Sampling

For irregular sampling intervals $\Delta t_i$:

$$ E_t = \exp\left(\sum_{i=1}^{t} \lambda(X_i - \mu_0)\Delta t_i - \sum_{i=1}^{t} \psi(\lambda)\Delta t_i\right) $$

Temperature Compensation

Adjust measurements for temperature effects:

$$ V_{\text{comp}} = V_{\text{meas}} + k_T(T - T_{\text{ref}}) $$

$$ Z_{\text{comp}} = Z_{\text{meas}} \cdot \exp\left(-\frac{E_a}{R}\left(\frac{1}{T} - \frac{1}{T_{\text{ref}}}\right)\right) $$

where $E_a$ is activation energy.

Charge/Discharge Cycle Effects

Account for hysteresis during active use:

$$ V_{\text{rest}} = V_{\text{measured}} + I \cdot R_{\text{int}} + V_{\text{hysteresis}}(I, \text{SoC}) $$

Privacy-Preserving Battery Monitoring

Differential Privacy for Fleet Analysis

When aggregating battery data across fleet:

$$ \tilde{E}{\text{fleet}} = E\right) $$}} + \text{Lap}\left(\frac{\Delta_E}{\epsilon

where $\Delta_E$ is the sensitivity of the E-statistic.

Sequential Privacy Budget Allocation

For continuous monitoring with privacy constraints:

$$ \epsilon_t = \epsilon_{\text{total}} \cdot \frac{\rho_t}{\sum_{s=1}^{T} \rho_s} $$

where $\rho_t$ is the privacy weight at time $t$.

The privacy E-process ensures:

$$ E_t^{\text{priv}} = \exp\left(\epsilon L_t - t \cdot \frac{\epsilon^2}{2}\right) \leq \frac{1}{\delta} $$

Composition for Multi-Battery Systems

Parallel Battery Packs

For systems with $n$ parallel batteries:

$$ E_{\text{system}}^{(j)} = \prod_{i=1}^{n} E_t^{(i,j)} \cdot \mathbb{1}(\text{battery } j \text{ replaced}) $$

Series Configuration

Detect which battery in series was replaced:

$$ j^* = \arg\max_j \left{E_t^{(j)} : E_t^{(j)} > \frac{1}{\alpha/n}\right} $$

using Bonferroni correction.

Performance Metrics and Validation

Detection Delay

Expected detection delay under alternative:

$$ \mathbb{E}{\tau}[\hat{\tau} - \tau | \text{detection}] = \frac{1}{D + o(1) $$}(P_{\text{new}} || P_{\text{old}})

For typical battery parameters:

$$ D_{KL} \approx \frac{(\Delta V)^2}{2\sigma_V^2} + \frac{(\log Z_{\text{ratio}})^2}{2\sigma_{\log Z}^2} $$

False Positive Control

Ensure anytime-valid false positive rate:

$$ P_{H_0}(\exists t \leq T : E_t \geq 1/\alpha) \leq \alpha $$

Power Analysis

Detection probability within $k$ samples of replacement:

$$ P_{\text{detect}} = 1 - \exp\left(-k \cdot \frac{(\mu_{\text{new}} - \mu_{\text{old}})^2}{2\sigma^2}\right) $$

Implementation Considerations

Feature Engineering for Battery Signals

  1. Voltage Features:
  2. Rest voltage after fixed rest period
  3. Voltage drop under standard load
  4. Voltage recovery rate

  5. Impedance Features:

  6. AC impedance at multiple frequencies
  7. DC resistance from pulse tests
  8. Phase angle measurements

  9. Derived Features:

  10. $dV/dQ$ curves (incremental capacity)
  11. $dQ/dV$ curves (differential voltage)
  12. Coulombic efficiency trends

Computational Optimization

# Efficient E-process update
class BatteryEProcess:
    def __init__(self, lambda_v, lambda_z):
        self.log_E = 0  # Work in log space
        self.lambda_v = lambda_v
        self.lambda_z = lambda_z

    def update(self, v_residual, z_residual):
        # Voltage contribution
        log_contrib_v = self.lambda_v * v_residual - psi_v(self.lambda_v)

        # Impedance contribution (only if decreased)
        log_contrib_z = 0
        if z_residual < 0:
            log_contrib_z = self.lambda_z * abs(z_residual) - psi_z(self.lambda_z)

        # Update in log space to avoid overflow
        self.log_E += log_contrib_v + log_contrib_z

        return np.exp(self.log_E)

Robustness Enhancements

  1. Outlier Handling: Use Huber-type E-values:

$$ E_t^{\text{robust}} = \exp\left(\rho(r_t/\sigma) - \mathbb{E}_{H_0}[\rho(r_t/\sigma)]\right) $$

where $\rho$ is the Huber function.

  1. Model Uncertainty: Incorporate prediction intervals:

$$ E_t = \frac{P(X_t | \theta_{\text{new}})}{P(X_t | \theta_{\text{old}} \pm \sigma_{\theta})} $$

Case Studies and Validation

Electric Vehicle Fleet

Parameters for EV battery monitoring: - Sampling rate: 1 Hz during drive, 0.1 Hz during park - Detection threshold: $\alpha = 0.001$ (1 false alarm per 1000 vehicles) - Typical detection delay: 2-3 drive cycles post-replacement

Grid Energy Storage

For stationary storage systems: - High-frequency impedance spectroscopy: 1 kHz - 0.1 Hz - E-process updated hourly - Multi-scale detection: cell, module, and rack levels

IoT Sensor Networks

Low-power implementation: - Daily voltage readings only - Simplified E-value: $E_t = \exp((V_t - V_{\text{pred}})/\sigma_V - 0.5)$ - Detection within 7-14 days of replacement

Conclusion

Sequential testing via E-processes provides a principled framework for real-time battery replacement detection with:

  • Anytime-valid inference: Continuous monitoring without multiple testing issues
  • Multi-signal fusion: Optimal combination of voltage, impedance, and capacity signals
  • Adaptive detection: Accounts for degradation models and operating conditions
  • Privacy preservation: Enables fleet-wide analysis while protecting individual usage patterns

The framework achieves typical detection delays of 10-100 telemetry samples post-replacement while maintaining strict false positive control, making it suitable for large-scale deployment in EV fleets, grid storage, and IoT applications.