Skip to content

SFI v2.0.4

Choose a tag to compare

@ronceray ronceray released this 20 Oct 12:12
· 1 commit to main since this release

Patch release: correctness fixes for imperfect data and error bars, diffusion model selection, and a reworked gallery. Results change for the affected fits.

Correctness fixes

  • Missing frames no longer bias the linear estimators. Gram matrix, moments and the Stratonovich / ULI correction are now summed over one common row set (SFI.integrate.shared_rows / required_frames); before, a preset="robust" stiffness read −0.85 for a true −1 at 5% frame loss and diffusion estimates were 10–20% low. Entropy production rates use the same row measure.
  • Diffusion error bars are the least-squares sandwich estimator; the previous formula under-reported the standard errors by an order of magnitude.
  • Covariance after sparsification is reported in the full parameter order, and sparsify_force / sparsify_diffusion re-run the error analysis on the selected support (predict_ci bands were up to 3.7× off).
  • Parametric errors-in-variables selection scores supports in the inverse-sandwich metric; standard errors no longer over-state the scatter.
  • Shared noise between particles: for interacting bases the Stratonovich and ULI corrections use the instantaneous diffusion estimator on every particle pair (the bias was O(1) on lattices with conserved noise and on bonded networks).
  • χ² consistency test calibrated at finite Δt; underdamped entropy production gains its O(Δt) counterterm; BIC/EBIC use the fit's own row measure.
  • Parametric estimators read time-dependent extras and per-frame neighbour lists frame by frame; float parameters keep float64 values under x64.
  • Successive fits on one inference object no longer inherit each other's state.

Added

  • sparsify_diffusion: PASTIS / Pareto model selection for the diffusion field; parametric infer_diffusion returns param_cov.
  • The robust overdamped preset corrects with a lag-2 stencil (correction_stencil="noisy_lag2", new default).
  • Diagnostics: finite sampling-interval guard (finite_dt_scale), PSD check before simulating a fitted diffusion, noise-consistency and Gram-conditioning warnings, a 95% bound on the realised NMSE.
  • Replica batches in the simulators; directional derivatives and random probes in integrate; per-slot interaction outputs.
  • animate_particles_comparison for side-by-side movies of data and bootstrapped simulations.

Performance

  • max_memory_gb bounds the parametric estimator's working set with measured chunk sizing; simulate_chunked no longer recompiles at every neighbour rebuild.

Gallery
Every demo was audited and reworked: model-selection steps show their Pareto front and error bars, most demos add a measurement-noise or missing-data robustness check, and particle and field demos show data next to bootstrapped simulations of the fitted model as movies. New demo: pair interactions of self-propelled Janus colloids inferred from published experimental tracks (Hem et al. 2025).

This release is archived on Zenodo; see CITATION.cff and the "How to cite" section of the documentation.

See CHANGELOG.md for details.