Skip to main content

PySDKit: signal decomposition in Python

PyPI version License Python Downloads codestyle

A Python library for signal decomposition algorithms 🥳

Installation | Example Script | Target | Acknowledgements

Logo_sd

Installation 🚀

You can install PySDKit through pip:

pip install pysdkit

We only used NumPy, Scipy and matplotlib when developing the project.

Example Script ✨

This project integrates simple signal processing methods, signal decomposition and visualization, and builds a general interface similar to Scikit-learn. It is mainly divided into three steps:

  1. Import the signal decomposition method;
  2. Create an instance for signal decomposition;
  3. Use the fit_transform method to implement signal decomposition;
  4. Visualize and analyze the original signal and the intrinsic mode functions IMFs obtained by decomposition.
import numpy as np
from pysdkit import EMD
from pysdkit.plot import plot_IMFs

t = np.linspace(0, 1, 1000)
signal = np.sin(2 * np.pi * 5 * t) + 0.7 * np.sin(2 * np.pi * 25 * t) + 0.45 * np.sin(2 * np.pi * 80 * t)

emd = EMD()
IMFs = emd.fit_transform(signal, max_imfs=3)
plot_IMFs(signal, IMFs, view="2d_freq", fs=1000, freq_max=150)

example

The EMD in the above example is the most classic empirical mode decomposition algorithm in signal decomposition. For more complex signals, you can try other algorithms such as variational mode decomposition (VMD).

from pysdkit import VMD
from pysdkit.data import test_vmd
from pysdkit.plot import plot_IMFs

t, signal, fs = test_vmd()

vmd = VMD(alpha=2000, K=4, tau=0.0, tol=1e-7)
IMFs = vmd.fit_transform(signal)
plot_IMFs(signal, IMFs, view="2d_freq", fs=fs, freq_max=fs / 2)

vmd_example

For multichannel recordings, algorithms such as multivariate VMD (MVMD) keep shared oscillations mode-aligned across channels:

import numpy as np
from pysdkit import MVMD
from pysdkit.plot import plot_IMFs

t = np.arange(0, 1, 0.001)
# ch1: 2+36 Hz, ch2: 24+36 Hz, ch3: 80+36 Hz (36 Hz shared)
signal = np.vstack([
    np.cos(2*np.pi*2*t) + np.cos(2*np.pi*36*t),
    np.cos(2*np.pi*24*t) + np.cos(2*np.pi*36*t),
    np.cos(2*np.pi*80*t) + np.cos(2*np.pi*36*t),
])

mvmd = MVMD(alpha=2000, K=4, tau=0.0, init="uniform")
IMFs = mvmd.fit_transform(signal)   # shape: (K, T, C)
plot_IMFs(signal, IMFs)             # per-channel panels

mvmd_example

Target 🎯

PySDKit is still under development. We are currently working on reproducing the signal decomposition algorithms in the table below, including not only common decomposition algorithms for univariate signals such as EMD, VMD, OVMD, AVNCMD, ALIF and APMD, but also decomposition algorithms for multivariate signals such as MEMD and MVMD. We will also further reproduce the decomposition algorithms for two-dimensional images to make PySDKit not only suitable for signal processing, but also for image analysis and understanding. See Mission for the reasons why we developed PySDKit.

Algorithm Paper Source State
EMD (Empirical Mode Decomposition) [paper] [code] ✔️
MEMD (Multivariate Empirical Mode Decomposition) [paper] [code] ✔️
BEMD (Bidimensional Empirical Mode Decomposition) [paper] [code] ✔️
EEMD (Ensemble Empirical Mode Decomposition) [paper] [code] ✔️
REMD (Robust Empirical Mode Decomposition) [paper] [code] ✔️
EMD2D (Empirical Mode Decomposition 2D for images) [paper] [code] ✔️
BMEMD (Bidimensional Multivariate Empirical Mode Decomposition) [paper] [code] ✔️
CEEMDAN (Complete Ensemble EMD with Adaptive Noise) [paper] [code] ✔️
TVF_EMD (Time Varying Filter Based EMD) [paper] [code] ✔️
FAEMD (Fast and Adaptive EMD) [paper] [code] ✔️
FAEMD2D (Two-Dimensional Fast and Adaptive EMD) [paper] [code] ✔️
FAEMD3D (Three-Dimensional Fast and Adaptive EMD) [paper] [code] ✔️
HVD (Hilbert Vibration Decomposition) [paper] [code] ✔️
ITD (Intrinsic Time-Scale Decomposition) [paper] [code] ✔️
ALIF (Adaptive Local Iterative Filtering) [paper] [code] ✔️
IMD (Impulsive Mode Decomposition) [paper] [code] ✔️
APMD (Adaptive Polymorphic Mode Decomposition) [paper] [code] ✔️
LMD (Local Mean Decomposition) [paper] [code] ✔️
RLMD (Robust Local Mean Decomposition) [paper] [code] ✔️
FMD (Feature Mode Decomposition) [paper] [code] ✔️
SSA (Singular Spectral Analysis) [paper] [code] ✔️
EWT (Empirical Wavelet Transform) [paper] [code] ✔️
EFD (Empirical Fourier Decomposition) [paper] [code] ✔️
EWT2D (2D Empirical Wavelet Transform) [paper] [code] ✔️
VMD (Variational Mode Decomposition) [paper] [code] ✔️
MVMD (Multivariate Variational Mode Decomposition) [paper] [code] ✔️
VMD2D (Two-Dimensional Variational Mode Decomposition) [paper] [code] ✔️
CVMD2D (Two-Dimensional Compact Variational Mode Decomposition) [paper] [code] ✔️
VME (Variational Mode Extraction) [paper] [code] ✔️
OVMD (Orthogonalized Variational Mode Decomposition) [paper] [code] ✔️
SVMD (Successive Variational Mode Decomposition) [paper] [code] ✔️
STVMD (Short Time Variational Mode Decomposition) [paper] [code] ✔️
VNCMD (Variational Nonlinear Chirp Mode Decomposition) [paper] [code] ✔️
INCMD (Iterative Nonlinear Chirp Mode Decomposition) [paper] [code] ✔️
MNCMD (Multivariate Nonlinear Chirp Mode Decomposition) [paper] [code] ✖️
AVNCMD (Adaptive Variational Nonlinear Chirp Mode Decomposition) [paper] [code] ✔️
ACMD (Adaptive Chirp Mode Decomposition) [paper] [code] ✔️
BA-ACMD (Bandwidth-aware Adaptive Chirp Mode Decomposition) [paper] [code] ✔️
DD-ACMD (Data-driven Adaptive Chirp Mode Decomposition) [paper] [code] ✔️
GDMD (Generalized Dispersion Mode Decomposition) [paper] [code] ✔️
VGNMD (Variational Generalized Nonlinear Mode Decomposition) [paper] [code] ✔️
IVGNMD (Improved Variational Generalized Nonlinear Mode Decomposition) [paper] [code] ✔️
AGNCMD (Adaptive Generalized Dispersive Mode Decomposition) [paper] [code] ✔️
JMD (Jump Plus AM-FM Mode Decomposition) [paper] [code] ️✔️
MJMD (Multivariate Jump Plus AM-FM Mode Decomposition) [paper] [code] ✔️
SJMD / SMJMD (Successive Jump and Mode Decomposition) [paper] [code] ✔️
ESMD (Extreme-Point Symmetric Mode Decomposition) [paper] [code] ✔️
STNBMD (Short-Time Narrow-Band Mode Decomposition) [paper] [code] ✔️
VTFMTD (Variational TF Mode Tracking Decomposition) [paper] [code] ✔️
SWD (Swarm Decomposition) [paper] [code] ✔️
OSD (Optimization-based Signal Decomposition) [paper] [code] ✔️
STL (Seasonal-Trend decomposition using LOESS) [paper] [code] ✔️
MSTL (Multivariate Seasonal-Trend decomposition using LOESS) [paper] [code] ✔️

Acknowledgements 🎖️

We would like to thank the researchers in signal processing for providing us with valuable algorithms and promoting the continuous progress in this field. However, since the main programming language used in signal processing is Matlab, and Python is the main battlefield of machine learning and deep learning, the usage of signal decomposition in machine learning and deep learning is far less extensive than wavelet transformation. In order to further promote the organic combination of signal decomposition and machine learning, we developed PySDKit. We would like to express our gratitude to PyEMD, Sktime, Scikit-learn, Scikit-Image, statsmodels, vmdpy, MEMD-Python-, ewtpy, EWT-Python, PyLMD, pywt, SP_Lib, dsatools and signal-decomposition.

Contributing 🤗

This project exists thanks to all the people who contribute.

Metadata

Release files for PySDKit 0.4.50

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PySDKit 0.4.50
File Size Uploaded Provenance Actions
pysdkit-0.4.50.tar.gz 1.6 MB With provenance Details for pysdkit-0.4.50.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PySDKit 0.4.50
File Interpreter ABI Platform Actions
pysdkit-0.4.50-py3-none-any.whl Python 3 none any Details for pysdkit-0.4.50-py3-none-any.whl

Total release size: 3.3 MB

Release files / pysdkit-0.4.50.tar.gz

Download URL pysdkit-0.4.50.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
ab947ed80e6ad5911063c55dfaa0b3094730f0ce0c314f56c01b797e245bb12f
BLAKE2b-256 checksum
How to use checksums
526a50162b0663fedea2e8474831dfa806654805a34311f7f74b89cc98b66e7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Release files / pysdkit-0.4.50-py3-none-any.whl

Download URL pysdkit-0.4.50-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
080d1bdd957ec361de8e8d96b8f72eb2258560a2cccf01d13a0d40b8873624e8
BLAKE2b-256 checksum
How to use checksums
6bfc031f1a949bdc8d5c768b8f3596c233e64d523a5a1e1cd1133c2e60cff9df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Security for PySDKit 0.4.50

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pysdkit-0.4.50.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.50 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page