PySINDy discovers interpretable differential-equation models from time-series data using sparse regression and related identification methods.
Overview
PySINDy focuses on system identification: inferring governing equations from observations. Its centerpiece is sparse identification of nonlinear dynamics (SINDy), alongside algorithms described in related research literature.
Given state measurements over time, a SINDy model fits sparse linear combinations of candidate features to approximate derivatives, yielding human-readable equations. Those models can support prediction, control design, or further analytical study. The package emphasizes interpretable, generalizable results rather than opaque black-box fits.
Installation is via pip or conda, with optional extras for convex solvers, mixed-integer sparse regression, and Bayesian sparse regression backends. Tutorials walk through generating synthetic data, fitting models, and printing discovered right-hand sides.
PySINDy pairs naturally with the separate derivative package for numerical differentiation and smoothing of raw signals before fitting.
Key features
- SINDy sparse dynamics discovery
- Additional literature-based identifiers
- Time-series fit and print workflow
- Optional convex and MI optimizers
- Bayesian sparse regression extra
- Named feature libraries
- Tutorial and example coverage
- Interpretable equation output
Use cases
- Discovering ODE models from experiments
- Teaching nonlinear dynamics identification
- Control-oriented model building
- Research reproducibility for SINDy papers
- Exploring sparse regression variants