Flex-Filter: Cognitive-Flexble Filtering: structure selection under noise

Rare yet Responsive Switching: A Design Region for Cognitive–Flexible Structure Selection

Preparing for IEEE Transactions on Signal Processing, 2026

▶ Preprint: TechRxiv (coming soon)    ▶ Supplementary Video S1: MP4 (48 s)

Julia source code and data:

  • code_release/ — Julia scripts (standard library only), saved results, and run_all.jl that reproduces every table and figure (quick check: a few minutes; full Monte Carlo: ~2 h on one core)

Scores \(\Phi_t(s)\) → Spread \(\bar\varsigma\) → Design region \(\Delta > 2\bar\varsigma\) → Margin rule \(\delta\) → Structure \(s_{t+1}\)

The design region \(\Delta > 2\bar\varsigma\) is necessary and sufficient for score descent and finite switching. A data-dependent margin tracks \(\bar\varsigma\) online — no offline calibration required.

Cognitive Flexibility (CF) selects, at each step, the latent structure that minimises an innovation-based predictive score, guaranteeing finite switching and score descent when scores are exact. In practice the switching rate also depends on how the margin threshold \(\delta\) is chosen relative to the score spread, yet no design principle has connected the two.


What Is the Problem?

Existing CF theory guarantees structural descent and finite switching under exact scores, but gives no guidance on choosing \(\delta\). Too small a margin admits spurious switches driven by score variation; too large a margin slows recovery after a genuine regime change. The gap between the margin and the score spread is the quantity that actually governs the switching rate, yet it has never been formalised.

Design Region and Main Results

  • Theorem 4 (Design region): \(\Delta > 2\bar\varsigma\) is both necessary and sufficient for the descent and finite-switching guarantees to hold with high probability, where \(\Delta\) is the margin and \(\bar\varsigma\) the spread of settled-step scores.
  • Theorem 5 (Optimality): no selector consistently beats the threshold rule inside the design region.
  • Corollary 1 (Data-dependent margin): a margin that tracks \(\bar\varsigma\) online from the settled non-good steps \(\mathcal{X}_\delta\) stays inside the design region without offline calibration.
  • Label-free margin \(\hat\varsigma^{(W)}_t\): estimated from \(W\)-step score means — no regime labels required.
  • IMM-d design rule: applies the same principle to \(-\log\) IMM mode probabilities, bringing the design region to soft-output particle filters.

Core Insight

The margin must exceed twice the score spread to protect the switching guarantees. A data-dependent margin that tracks this spread online matches offline-calibrated performance — without requiring labelled regime data or a held-out calibration set.


Simulation Study: 3-D Coordinated-Turn Radar

Does the design region predict empirical switching behaviour, and does the adaptive margin match offline calibration?

SelectorOOWAccuracyDelayMiss (%)
None (\(\delta=0\))high0.7212.3/4.18/12
Fixed \(\delta=4.83\)low0.8912.1/3.86/9
Adaptive (design rule)low0.9372.0/3.65/8
Score IMMlow0.9312.1/3.75/9

3-D spatial model, \(K=2\), varying budget, 100 evaluation trials. OOW: out-of-window switches. Delay: sustained delay given detection (onset/recovery).

Supplementary Video S1. Simulated 3-D CV/CT tracking (one trial, \(K=2\), varying budget): the aircraft turns at \(\omega=10^\circ\)/s for \(t\in[30,70)\). Right panels show the structure selected by each rule, cumulative changes, margins and the design-region check.

Reproducibility

All simulations are written in Julia (standard library only). The code release reproduces every table and figure from saved results in a few minutes, or reruns the full Monte Carlo studies (~2 h on one core). Seeds are fixed; the same Julia version reproduces the saved results exactly.

  • code_release/ — run_all.jl (quick check and full reproduction), make_tables_revision.jl (Tables II–IV), baselines/, label_free/, imm_design/

Robust Cognitive–Flexible Filtering Under Noisy Innovation Scores

IEEE Signal Processing Letters, vol. 33, pp. 4036–4040, 2026  ·  DOI: 10.1109/LSP.2026.3737379

▶ Published paper: IEEE Xplore
Julia source code:

Noisy scores \(\hat\Phi_t(s)\) → Noise envelope \(\varepsilon_t^{\mathrm{env}}\) → Adaptive margin \(\delta_t\) → Switch if \(\hat\Phi_t(s_t)-\hat\Phi_t(\hat s_t) > \delta_t\) → Structure \(s_{t+1}\)

A margin \(\delta > 2\bar\varepsilon\) recovers score descent, finite expected switching, and almost-sure non-chattering despite bounded score noise. A batch-split estimator tracks the noise envelope online at no extra Monte Carlo cost.

Cognitive Flexibility (CF) assumes exact innovation scores; particle filters corrupt them with bounded, conditionally zero-mean noise. We introduce a margin-based switching rule calibrated against the noise bound \(\bar\varepsilon\) and prove all three noiseless-style guarantees are recovered. The fixed margin is then replaced by fully online \(\mathcal{I}_t\)-adapted sequences, and all three guarantees persist whenever the effective margin \(\delta_t - 2\varepsilon_t\) stays above a floor.


Main Results

  • Theorem 1 (Score descent): under \(\delta > 2\bar\varepsilon\), each switch strictly decreases the true score.
  • Theorem 2 (Finite expected switching): \(\mathbb{E}[N_T] \le C/(\delta-2\bar\varepsilon)\).
  • Theorem 3 (Almost-sure non-chattering): the switching sequence is eventually non-chattering a.s.
  • Theorem 4 (Adaptive margin): all three guarantees survive time-varying \(\varepsilon_t,\,\delta_t\) provided \(\delta_t - 2\varepsilon_t \ge m > 0\).
  • Batch-split estimator: reuses the existing particle budget; needs no stationary validation window.

Core Insight

A margin that exceeds twice the noise bound is both necessary and sufficient to recover the noiseless CF guarantees under particle-filter score corruption. Adapting the margin online to a running noise-envelope estimate closes the loop without offline calibration.


Simulation Study: Coordinated-Turn Radar

SelectorFalse alarmsAccuracyDelay
No margin (\(\delta=0\))highbaseline—
Fixed margin \(\delta > 2\bar\varepsilon\)×10 reduction+0.36 over no-marginminimal
Adaptive margin×10 reductionmatches offlineminimal

Results for both \(K=2\) and \(K=4\) model dictionaries, 100 evaluation trials.


Switching Budgets for Cognitive–Flexible Filters: When Does a Finite Budget Suffice?

Preparing for IEEE Control Systems Letters (LCSS), 2026

▶ Preprint: coming soon

Julia source code and data:

  • thanana.github.io — Julia scripts (standard library only), saved results, and run_all.jl that reproduces every table and figure

Score gap \(\Phi_t(s_t)-\Phi_t(\hat s_t)\) → Budget \(B\) → Remaining switches \(B - N_t\) → Budget-aware margin \(\delta_t(B)\) → Structure \(s_{t+1}\)

A finite switching budget \(B\) is sufficient when it exceeds the worst-case switching count implied by the design region. A budget-aware margin depletes the budget only on genuine regime changes.

Cognitive Flexibility (CF) provides a score-descent guarantee and finite expected switching, but practioners must often impose a hard switching budget (power-limited sensors, latency-constrained systems). This paper asks: when is a finite budget \(B\) provably sufficient to track all regime changes in a horizon \(T\), and how should the switching rule adapt its margin as the budget depletes?


What Is the Problem?

The design region \(\Delta > 2\bar\varsigma\) guarantees finite expected switching, but gives no bound on the worst-case count — and practioners need to allocate a hard budget before deployment. If the budget is set too low, the filter is forced to stay on a wrong structure; too high, and resources are wasted. The question is how to characterise the minimum sufficient budget and how to spend it optimally.

Main Results

  • Theorem 1 (Minimum sufficient budget): a budget \(B \ge B^\star(\Delta,\bar\varsigma,T)\) is necessary and sufficient to guarantee no forced miss over horizon \(T\) with high probability, where \(B^\star\) is explicit in the design parameters.
  • Theorem 2 (Budget-aware margin): inflating the margin as the budget depletes — \(\delta_t = \delta_0 + \alpha/(B - N_t + 1)\) — keeps the expected remaining switches below the remaining budget for all \(t\).
  • Corollary 1 (Budget allocation rule): given a regime-change rate estimate \(\hat\lambda\), the rule \(B = \lceil 2\hat\lambda T \rceil + c_\alpha\) yields a budget that is sufficient with probability \(1-\alpha\).
  • Online budget estimator: estimates \(\hat\lambda\) from settled non-good steps; no offline regime-change data required.

Core Insight

A finite budget is sufficient when it covers twice the expected number of genuine regime changes. Spending the budget on genuine changes only — by inflating the margin as it depletes — keeps the filter tracking through the whole horizon without over-committing resources.


Simulation Study: Budget-Constrained Radar Tracking

Does the minimum sufficient budget predict empirical miss rates, and does the budget-aware margin outperform a fixed margin at equal budget?

MethodBudget \(B\)Miss rateUnused budget
Fixed margin, \(B=B^\star\)\(B^\star\)baselinemoderate
Fixed margin, \(B < B^\star\)\(B^\star - 2\)highlow
Budget-aware margin, \(B=B^\star\)\(B^\star\)lowestlow
No budget (unconstrained)∞reference—

3-D coordinated-turn model, \(K=2\), 100 evaluation trials, horizon \(T=500\). Miss rate: fraction of regime changes not detected within window.

Reproducibility

All simulations are written in Julia (standard library only). The code release reproduces every table and figure from saved results in a few minutes, or reruns the full Monte Carlo studies on one core.