Skip to main content

Python framework designed to create multiple variants of an idle-state signals and signals affected by external perturbations under the same environmental conditions.

Project description

SigVarGen: Synthetic Signal Variation Generator

Python package Python Versions PyPI version

SigVarGen is a Python framework designed to create multiple variants of a base 1D signal under the same environmental conditions. It allows the simulation of both idle-state signals and signals affected by external perturbations, enabling robust testing of algorithms in dynamic environments based on multiple measurements of the same event. Framework is suitable for time-series analysis, signal processing, and synthetic data generation in various domains such as sensor data modeling, embedded systems testing, and machine learning.


Key Features

  • Signal Generation: Synthesizes complex 1D signals by combining multiple sinusoidal components, providing realistic baseline idle signals.
  • Interrupting Signal Generation, Scheduling and Addition: Synthesizes interrupting 1D signal and blend into original signal, mimicking real-world anomalies such as sensor glitches, external perturbations, or event-driven variations.
  • Variation and Augmentation: Generates diverse signal variants by systematically altering signal parameters and applying a range of transformations, such as time shifting, warping, gain variation, amplitude modulation, and baseline drift.
  • Noise Generation and Addition: Supports the addition of various types of noise (e.g., white / colored, and stationary / non-stationary noise) to the generated signals, mimicking real-world interference.

Installation

SigVarGen is compatible with Python 3.8 and above. The framework works on Ubuntu, macOS, and Windows. Specifically, it has been tested on: Ubuntu 22.04, macOS 14 and Windows 11.

To install the framework, simply use pip:

pip install SigVarGen

Alternatively, clone the repository and install using:

git clone https://github.com/SigVarGen/SigVarGen.git
cd SigVarGen
pip install ./

Key Examples

For hands-on examples and tutorials, please refer to the tutorials folder. The tutorials demonstrate:

  • Generating idle signals and signals with interrupts using the signal generation module.
  • Applying variations and augmentations to simulate realistic signal perturbations.
  • Generating different noise types and integration into signal.
  • Generating periodic and semi-periodic background activity.
  • Generating datasets with different types of noise.

Documentation

Comprehensive documentation is available on our documentation site. The documentation covers:

  • Algorithms used in complex functions.
  • Detailed description and code examples.

Module Overview

Main Modules

  • Signal Generation: Implements functions for synthesizing complex signals by summing sinusoidal components, and introduces logic for custom interrupting signals.
  • Variation and Augmentation: Provides tools for systematic parameter variation and signal transformation, including time shifts, warping, amplitude modulation, and baseline drift.
  • Noise Generation and Addition: Contains functions to generate various noise types and to integrate noise into synthetic signals, emulating real-world conditions.

Helper Modules

  • Configure: Contains example parameters for device ranges, variation functions, and noise modulation envelopes.
  • Utils: Provides common utility functions such as Euclidean distance calculation, normalization, interpolation, and dividing device parameters into subranges for idle periods or in response to events.
  • Datasets: Short samples from previously generated datasets.

Contributing

We welcome contributions from the community! If you wish to contribute to SigVarGen, please:

  • Fork the repository.
  • Create a new branch for your feature or bugfix.
  • Submit a pull request with detailed information about your changes.

For more information, please refer to our Contributing Guidelines.


License

SigVarGen is released under the MIT License. Please see the LICENSE file for details.


Acknowledgements

This framework originated as part of my master’s research at the Real-time Embedded Systems Lab, University of Waterloo, where two years were dedicated to its development, refinement, and validation. The project has since evolved into an open-source initiative. I am grateful to my professor and friends, who supported me throughout this journey. I am also thankful to the Natural Sciences and Engineering Research Council of Canada, which supported my research at the University of Waterloo.

We extend our thanks to the contributors and the open-source community for their invaluable support and feedback. Additionally, we acknowledge the authors of related works whose research and methodologies provided theoretical and practical foundations for various components of this project. In particular, we recognize the contributions of:

  • Van Drongelen (Signal Processing for Neuroscientists, Academic Press, 2018) [1] for introduction into signal processing,
  • Haslwanter (Hands-on Signal Analysis with Python, Springer, 2021) [2] for practical examples of Python implementations,
  • Esakkirajan et al. (Digital Signal Processing: Illustration Using Python, Springer, 2024) [3] for expanding practical and theoretical principles for signal processing,
  • Mitrović et al. (Advances in Computers: Improving the Web, Elsevier, 2010) [4] for their noise generation approach.

For inquiries or support, please contact [ovakulenko@uwaterloo.ca].


References

  1. Van Drongelen, W. (2018). Signal Processing for Neuroscientists. Academic Press.
  2. Haslwanter, T. (2021). Hands-on Signal Analysis with Python. Springer.
  3. Esakkirajan, S., Veerakumar, T., & Subudhi, B. N. (2024). Digital Signal Processing: Illustration Using Python. Springer.
  4. Mitrović, D., Zeppelzauer, M., & Breiteneder, C. (2010). "Features for Content-Based Audio Retrieval." Advances in Computers: Improving the Web (Vol. 78), Elsevier, pp. 71-150.

SigVarGen is dedicated to advancing the field of synthetic signal generation by providing a robust, flexible, and extensible toolkit for academic and industrial applications. Happy coding!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sigvargen-1.1.1.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sigvargen-1.1.1-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file sigvargen-1.1.1.tar.gz.

File metadata

  • Download URL: sigvargen-1.1.1.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sigvargen-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5c75acec07ba42de667cd70db80e3a1f2dc6985618ff325ed9bf0ec3c0f86bf2
MD5 200e69309bd999334fa4629ad1f7d5d8
BLAKE2b-256 2f1ec3e0c2115534120959177d58af62fdc12662780b19fbcd2c902c934cdc57

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigvargen-1.1.1.tar.gz:

Publisher: python-publish.yml on SigVarGen/SigVarGen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sigvargen-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: sigvargen-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sigvargen-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 afe3edd9d046bb7576a3a410fe0bb6a5bce578afee0311e63fc71fa4bc548346
MD5 c9e92ad043f2f691dbbb7c4269a920dd
BLAKE2b-256 2e03f7ddba52a172ca53525f09719e54525108482e39e136579833dabf586426

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigvargen-1.1.1-py3-none-any.whl:

Publisher: python-publish.yml on SigVarGen/SigVarGen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page