Skip to main content

Vibdata

MSSP IJPHM Stars Badge

Vibdata is an open-source repository that provides a common interface for developers to manipulate vibrational data . It uses a Python package to store and manipulate data, aiming to facilitate the development of machine learning techniques in the context of intelligent fault diagnosis for rotating machinery.

Paper Versions

For reproducibility purposes, specific versions of this repository were used in published papers:

  • For the exact code used in Mechanical Systems and Signal Processing paper, see tag mssp-similarity-bias-v1 (GitHub Release)
  • For the exact code used in International Journal of Prognostics and Health Management paper, see tag ijphm-towards-vibnet-v1 (GitHub Release)

Features

  • Provides a unified interface for handling vibrational data
  • Includes five public datasets:
    • CWRU - Case Western Reserve University Bearing Dataset;
    • IMS - Intelligent Maintenance System Bearing Dataset;
    • UOC - University of Connecticut Gearbox Dataset;
    • PU - Padeborn University Bearing Dataset ;
    • MFPT - Machinery Failure Prevention Technology Bearing Dataset;
    • HUST - Huazhong University of Science and Technology Bearing Dataset;
    • UORED - University of Ottawa Rolling-element Bearing Dataset.
  • Divided into two main modules:
    • raw: Structures datasets into classes for easy and practical data manipulation
    • deep: Offers a lazy implementation compatible with deep learning frameworks, especially PyTorch

Installation

Installing Vibdata is quick and easy! Just follow these simple steps:

  1. Ensure you have Python installed on your system*.
  2. Install Vibdata using pip:
pip install git+https://github.com/ivarejao/vibdata.git

That's it! You're now ready to start using Vibdata in your projects.

Note: Vibdata requires Python version 3.10 or later, but is not yet compatible with Python 3.12. Please ensure your Python version is within this range for optimal performance.

Usage

Here's a simple example of how to use Vibdata:

from vibdata.raw import MFPT_raw

root_dir = "MY_DATASET_DIR"  # Where to save and load datasets
D = MFPT_raw(root_dir, download=True)  # Downloads the dataset if not available

print(D.getMetaInfo())  # Prints metainfo of the dataset
print("Number of signals:", len(D))

# Get the temporal signal and the respectively sample rate
signal = D[0]
signal_metainfo = D.getMetaInfo().iloc[0]
print("Length of signal:", len(signal))
print("Signal sample rate:", signal_metainfo["sample_rate"])

Transformations

Vibdata provides common transformations used in machinery signal processing. You can implement new transformations using the Transformer interface, which is compatible with scikit-learn pipelines.

Example of using transformations:

from sklearn.pipeline import make_pipeline
from vibdata.raw import MFPT_raw
from vibdata.deep.signal.transforms import Split, FFT, FilterByValue, asType
from vibdata.deep.DeepDataset import convertDataset

transforms = make_pipeline(
    FilterByValue(on_field='sample_rate', values=48828),
    Split(1024),
    FFT(),
    asType(np.float32, on_field='signal'),
)

root_dir = "MY_DATASET_DIR"
D = MFPT_raw(root_dir, download=True)
D_transformed = convertDataset(dataset=D, transforms=transforms, dir_path=root_dir)
print(D_transformed[3]['signal'].shape)

Authors

  • Igor Mattos dos Santos Varejão
  • Luciano Henrique Silva Peixoto
  • Lucas Gabriel de Oliveira Costa
  • Lucas Henrique Sousa Mello

License

Vibdata is released under the MIT License. This means you are free to use, modify, distribute, and sell this software, provided you include the above copyright notice in all copies or substantial portions of the software.

Metadata

Release files for vibdata 1.1.4

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

Source distribution (sdist)

Source distribution for vibdata 1.1.4
File Size Uploaded Provenance Actions
vibdata-1.1.4.tar.gz 202.3 kB Without provenance Details for vibdata-1.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 414.8 kB

Release files / vibdata-1.1.4.tar.gz

Download URL vibdata-1.1.4.tar.gz
Size 202.3 kB
Tags Source
SHA-256 checksum
How to use checksums
42ca70ee8af37f479e9c4027063c2e88c8bb359886a2e822a4598cc55228c6f3
BLAKE2b-256 checksum
How to use checksums
9141681ae5c2d647a8f5fc51945029ad8c7528d394340869d36234eac17b8b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / vibdata-1.1.4-py3-none-any.whl

Download URL vibdata-1.1.4-py3-none-any.whl
Size 212.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c6f0182d488e5aef7a40f6ac7797e3cb4a4f24dec92a9885370208be5a1c29e
BLAKE2b-256 checksum
How to use checksums
07d4e64b80200ee6e658fea04546ac258a2507c8b0e842134db7d4bc1cd72e48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for vibdata 1.1.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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