Skip to main content

Paderborn Bearing Package

This package is created to extract and preprocess the Paderborn bearing datasets provided by the Paderborn University Faculty of Mechanical Engineering. This package is specifically designed to extract multivariate sensor readings from the MATLAB files containing different Bearing faults. The current version supports all operating systems, but keep in mind that you need different software packages installed depending on the operating system you use.

Dataset

The dataset consists of 25 damaged bearing states and 6 undamaged bearing states (Healthy condition). The damaged bearings are divided into artificial and real damages. Both of these damaged bearing states, two options are available where the damages are located, e.g., inner race (IR) and outer race (OR). One of the experiment types for the artificial OR condition is removed.

Installation

Installing the package can be done manually, but I recommend to install via pip since this is much easier by just copying the code below and paste it in your terminal/command prompt:

$ pip install paderborn-bearing

Please also check which dependencies are needed to use the package.

Use of the package

After the installation, the package can be imported in your specific session, for example in Jupyter Notebook;

from paderborn_bearing import *

Then the class in the package can be called as follows;

data = Paderborn("Artificial", 1024, "OR")

The called function results in three different objects:

  • data.motor_current, contains all the samples represented in a 3D-array for the two motor current sensor readings related to the specific experiment and fault name. The lay-out of the array is as follows; nr of time series, sequence length, amount of sensors.
  • data.vibrations, contains all the samples represented in a 3D-array for the vibration sensor related to the specific experiment and fault name. The lay-out of the array is as follows; nr of time series, sequence length, amount of sensors.
  • data.labels, labels representing different fault conditions.

Arguments

As can be seen in the previous code block, the package asks three arguments for extracting and preprocessing the Paderborn bearing datasets into usable objects. The following arguments need to be addressed when using Paderborn class:

  1. Experiment: A string value that indicates the specific name for the experiment to use. There are three options: "Artificial", "Healthy" and "Real".
  2. Length: an integer value that indicates the sequence length of every time series.
  3. Fault location: A string value that specifies the fault location of the bearing to narrow down the experiment's data. There are three options are available (Inner, Outer and Normal), "IR","OR" and "Normal". For the "Artificial" and "Real" options both "IR" and "OR" can be combined. For the "Heathly" option only the "Normal" condition can be used.

Dependencies

The following dependencies are needed to get the package installed. Because the MATLAB files need to be unpacked, we use different packages depending on the operating system.

  • numpy
  • patool (Windows)
  • scipy
  • subprocess (Mac OS/Linux)
  • tqdm
  • requests

MacOS/Linux

Since the package wants to unpack .rar files, you first need to install Homebrew in your terminal combined with Unar.

Paste this in a macOS Terminal to install Homebrew:

$/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Next, use the following command to install Unar:

$brew install unar

Additional information

The objects that are created are extracted from many MATLAB files, resulting in large-scale arrays. Therefore, I would like to emphasise to create every object separately, e.g., one experiment option + one fault location option to reduce the computation time of the data preprocessing. Keep in mind that the creation of one of these objects might take approximately 10 minutes since the arrays have to be stacked together across a wide variety of files. This results in large-scale data object of at least 3GB per object. I would therefore recommend to save the objects after preprocessing as numpy arrays, so that when you want to apply ML or DL algorithms, you only need to load in the objects (and potentially concatenate them).

Metadata

Release files for paderborn-bearing 1.1.2

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

Source distribution (sdist)

Source distribution for paderborn-bearing 1.1.2
File Size Uploaded
paderborn_bearing-1.1.2.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paderborn-bearing 1.1.2
File Interpreter ABI Platform
paderborn_bearing-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / paderborn_bearing-1.1.2.tar.gz

Download URL paderborn_bearing-1.1.2.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8dca25ce692cda01025cb8e741a3e1ca71a1683c095684926a2509e7b0cc75da
BLAKE2b-256 checksum
How to use checksums
d19335e3acb77d9aedf832cff32cedec47869634af48296af72ce22ced1f7c63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release files / paderborn_bearing-1.1.2-py3-none-any.whl

Download URL paderborn_bearing-1.1.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33346eae323a01b9726a680242a9368e07e34917f4c293631781aa99d0d48aee
BLAKE2b-256 checksum
How to use checksums
95710e8848cf43aff6e97644cbfa371730cf1c8267dd6e63475f6da8b0d7e528
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.0

2 release files

1.0.0

1 release file

0.2.1

1 release file

0.1.3

1 release file

0.1

1 release file

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