Skip to content
Tech News
← Back to articles

PySINDy – A package for the sparse identification of nonlinear dynamical systems

read original more articles
Why This Matters

PySINDy is a powerful tool for the sparse identification of nonlinear dynamical systems, enabling researchers and developers to derive interpretable models from measurement data. Its ability to accurately infer governing equations can enhance predictive modeling, control, and theoretical analysis across various tech applications, from robotics to data science. By simplifying the process of system identification, PySINDy accelerates innovation and understanding in complex dynamic systems.

Key Takeaways

PySINDy

PySINDy is a package for system identification, primarily revolving around the method of Sparse Identification of Nonlinear Dynamical systems (SINDy) method introduced in Brunton et al. (2016a). It also includes other methods from related literature.

System identification refers to the process of using measurement data to infer the governing dynamics. Once discovered, these equations can make predictions about future states, can inform control inputs, or can enable the theoretical study using analytical techniques. The resulting models are inherently interpretable and generalizable.

First Steps

Installation

The preferred way to install is with pip or conda e.g. pip install pysindy . You may have to add the --user option. Pysindy also provides several extras, e.g. pip install pysindy[miosr] :

cvxpy Convex optimizer SR3 and subclasses miosr Branch-and-bound optimizer for L0-constraint, MIOSR sbr Bayesian regression optimizer yielding posteriors, SBR .

Example

Suppose we have measurements of the position of a particle obeying the following dynamical system at different points in time

x' &= -2 x \\ y' &= y

... continue reading