- The paper introduces ILTS-SINDy, a filter-then-sparsify method that uses iterative least trimmed squares to remove corrupted observations before applying sequential thresholded least squares.
- ILTS-SINDy achieved the strongest support recovery across SIR, Lorenz, and Lotka–Volterra benchmarks, retaining near-perfect accuracy at up to 20% outliers and 20% noise.
- The results show that filtering improves exact equation recovery more reliably than ensemble or joint approaches, although the method currently requires the outlier fraction and relies on a central-difference-specific trimming heuristic.
Motivation and contribution
The Sparse Identification of Nonlinear Dynamics (SINDy) framework recovers governing ODEs by regressing finite-difference derivative estimates against a library of candidate functions, then enforcing sparsity. Its principal weakness is sensitivity to corrupted data: a single outlier contaminates not only the regression matrix row but also up to three central-difference derivative estimates, and this error propagates into spurious model terms. Existing robustifications each carry drawbacks — Weak SINDy requires careful test-function selection, Ensemble SINDy is computationally costly and inherits biases from corrupted resamples, and trimmed SINDy variants couple outlier selection and sparse regression in a single joint optimization, so heavily corrupted samples may still be classified as inliers.
The paper proposes ILTS-SINDy, a filter-then-sparsify pipeline that decouples these two tasks. An Iterative Least Trimmed Squares (ILTS) procedure first identifies a trusted subset of observations by alternating between least-squares fitting on the current inlier set and re-selection of the p smallest-residual samples; Sequentially Thresholded Least Squares (STLS) then recovers sparse coefficients from the cleaned data pair (A^,b^i). This corresponds to an approximate solution of the non-convex Least Trimmed Squares objective αimin21j=0∑p−1rℓj(αi)2, i.e., minimization over the p smallest squared residuals.
Method
The pipeline per state variable xi proceeds as follows:
- Initialization: compute the ordinary least-squares estimate on all data.
- ILTS trimming: iteratively select the p observations with smallest residuals, refit restricted least squares on that subset, and terminate when the trimmed residual sum ceases to decrease. The output includes the cleaned matrix A^∈Rp×d and target vector b^i∈Rp.
- STLS sparsification: apply hard thresholding with parameter λ and restricted least-squares refits until the active set stabilizes.
A key design choice is the inlier count p=(m+1)−⌊3q(m+1)⌋, where (A^,b^i)0 is the assumed outlier fraction. The multiplier (A^,b^i)1 compensates for stencil contamination: one corrupted snapshot corrupts its own and two neighboring derivative estimates. The appendix ablation justifies this choice — recall of true outliers peaks near (A^,b^i)2 across all three benchmarks (e.g., (A^,b^i)3 for SIR at (A^,b^i)4 versus (A^,b^i)5 at (A^,b^i)6), approaching the theoretical "exact" values ((A^,b^i)7, (A^,b^i)8, (A^,b^i)9). Notably, recall behaves non-monotonically in αimin21j=0∑p−1rℓj(αi)20, and the optimum shifts across noise realizations; αimin21j=0∑p−1rℓj(αi)21 is adopted as a system-agnostic heuristic rather than a provably optimal setting.
Experimental setup
Benchmarks are the SIR, Lorenz, and Lotka–Volterra systems, integrated via RK4 with polynomial candidate libraries (quadratic without self-interactions for SIR; cubic for Lorenz and Lotka–Volterra). Corruption is injected as additive Gaussian noise scaled by each state's RMS value, applied to a randomly selected fraction αimin21j=0∑p−1rℓj(αi)22 of snapshots. For each of 64 pairs αimin21j=0∑p−1rℓj(αi)23 with both ranging over αimin21j=0∑p−1rℓj(αi)24, 100 independent trials are run — 6,400 trajectories per model — evaluated by mean support recovery accuracy and exact recovery rate. Comparisons are against standard STLS-based SINDy and E-SINDy (PySINDy defaults).
Results
Two findings stand out. First, ILTS-SINDy achieves the highest mean support recovery accuracy across all systems and corruption levels, remaining close to 1 even at 20% outliers and 20% noise, whereas standard SINDy degrades sharply, particularly on SIR and Lotka–Volterra. Second — and more diagnostic — the exact recovery results separate the methods decisively: E-SINDy often attains high mean accuracy while its exact identification rates remain low across most settings, showing that accurate trajectory-level prediction does not imply correct structure recovery. ILTS-SINDy maintains near-perfect exact recovery on SIR and strong performance on Lorenz and Lotka–Volterra even under severe contamination. Noise degrades performance more than outliers for all methods, consistent with the fact that noise perturbs every derivative estimate while outliers affect only localized stencils that trimming can excise.
The practical implication is that decoupling filtering from sparsification yields structurally correct models where joint or ensemble approaches recover only approximately correct supports — a distinction that matters when the identified equations are used for interpretation or extrapolation rather than short-horizon prediction.
Limitations and open questions
The authors state plainly that the headline comparison assumes exact knowledge of the outlier percentage αimin21j=0∑p−1rℓj(αi)25, which is rarely available in practice; the adaptive estimation of αimin21j=0∑p−1rℓj(αi)26 (and hence αimin21j=0∑p−1rℓj(αi)27) is deferred to future work. The multiplier αimin21j=0∑p−1rℓj(αi)28 is an empirical heuristic tied specifically to three-point central differences, and its transfer to higher-order or integral differentiation schemes is unexamined. Evaluation is confined to synthetic benchmarks with Gaussian corruption; no real-world datasets are tested, and behavior under non-Gaussian or correlated noise is not characterized. Extension to SINDy with control inputs is also left open.
Conclusion
ILTS-SINDy is a simple two-stage modification of the standard SINDy pipeline — ILTS-based trimming followed by STLS — that substantially improves exact recovery of governing equations under combined noise and outlier contamination, outperforming standard SINDy and E-SINDy across three benchmark systems at corruption levels up to 20%. Its main unresolved dependency is the prior specification of the outlier fraction, which currently must be supplied by the user.