biobss


Namebiobss JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/obss/BIOBSS
SummaryA biological signal processing and feature extraction library.
upload_time2023-02-09 08:29:54
maintainer
docs_urlNone
authorOBSS R&D
requires_python>=3.8
licenseMIT
keywords signal processing feature extraction photoplethysmography ppg electrocardiography ecg acceleration electrodermal activity eda galvanic skin response hrv heart rate variability
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # <div align="center"> __BIOBSS__ </div>

<p align="center">
<a href="https://pypi.org/project/biobss"><img src="https://img.shields.io/pypi/pyversions/biobss" alt="Python versions"></a>
<a href="https://pepy.tech/project/biobss"><img src="https://pepy.tech/badge/biobss" alt="downloads"></a>
<a href="https://pypi.org/project/biobss"><img src="https://img.shields.io/pypi/v/biobss" alt="PyPI version"></a>
<br>
<a href="https://github.com/obss/biobss/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/github/license/obss/biobss"></a>
<a href="https://github.com/obss/biobss/actions"><img alt="Build status" src="https://github.com/obss/biobss/actions/workflows/ci.yml/badge.svg"></a>
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>


A package for processing signals recorded using wearable sensors, such as Electrocardiogram (ECG), Photoplethysmogram (PPG), Electrodermal activity (EDA) and 3-axis acceleration (ACC). 

BIOBSS's main focus is to generate end-to-end pipelines by adding required processes from BIOBSS or other Python packages. Some preprocessing methods were not implemented from scratch but imported from the existing packages.

Main features:

- Applying basic preprocessing steps (*)
- Assessing quality of PPG and ECG signals
- Extracting features for ECG, PPG, EDA and ACC signals
- Performing Heart Rate Variability (HRV) analysis using PPG or ECG signals
- Extracting respiratory signals from PPG or ECG signals and estimating respiratory rate (*)
- Calculating activity indices from ACC signals
- Generating and saving pipelines 

(*): Not all methods were implemented from scratch but imported from existing packages.

The table shows the capabilites of BIOBSS and the other Python packages for physiological signal processing.

<table>
  <thead>
    <tr>
      <th style="text-align:center" colspan="2"><b>Functionality</b></th>
      <th style="text-align:center">BIOBSS</th>
      <th style="text-align:center">BioSPPy</th>
      <th style="text-align:center">HeartPy</th>
      <th style="text-align:center">HRV</th>
      <th style="text-align:center">hrv-analysis</th>
      <th style="text-align:center">pyHRV</th>
      <th style="text-align:center">pyPhysio</th>
      <th style="text-align:center">PySiology</th>
      <th style="text-align:center">Neurokit2</th>
      <th style="text-align:center">FLIRT</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td align="center" colspan="2"><b>File reader</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" colspan="2"><b>Sliding window</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" colspan="2"><b>Preprocessing</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" colspan="2"><b>Pipeline</b></td>
      <td align="center"><b>&check;(*)</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center"></td>
    </tr>
    <tr>
      <td align="center" style="text-align:center" rowspan="5"><b>Processing</b></td>
      <td align="center"><b>ECG</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center"></td>
    </tr>
    <tr>
      <td align="center" style="text-align:center"><b>PPG</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" style="text-align:center"><b>IBI / RRI</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" style="text-align:center"><b>EDA</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" style="text-align:center"><b>ACC</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" style="text-align:center" rowspan="4"><b>Feature Extraction</b></td>
      <td align="center"><b>ECG</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
    </tr>
    <tr>
      <td align="center" style="text-align:center"><b>PPG</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
    </tr>
    <tr>
      <td align="center" style="text-align:center"><b>EDA</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
    </tr>
    <tr>
      <td align="center" style="text-align:center"><b>ACC</b></td>
      <td align="center"><b>&check;</b></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center"></td>
      <td align="center">&check;</td>
    </tr>
  </tbody>
</table>

(*): Pipeline module differs between the two packages. BIOBSS pipeline aims to provide a more flexible and customizable pipeline for the user.

__Modified from__ Föll, Simon, et al. “FLIRT: A feature generation toolkit for wearable data.” Computer Methods and Programs in Biomedicine 212 (2021): 106461.

You can also read the [blog post about BIOBSS](https://medium.com/codable/biobss-a-biological-signal-processing-and-feature-extraction-library-137f9b082634).

## <div align="left"> __Preprocessing__ </div>
BIOBSS has modules with basic signal preprocessing functionalities. These include:
- Resampling
- Segmentation
- Normalization
- Filtering (basic filtering functions with commonly used filter parameters for each signal type)
- Peak detection 

## <div align="left"> __Visualization__ </div>
BIOBSS has basic plotting modules specific to each signal type. Using the modules, the signals and peaks can be plotted using Matplotlib or Plotly packages.

## <div align="left"> __Signal Quality Assessment__ </div>
Signal quality assessment steps listed below can be used with PPG and ECG signals.
- Clipping detection
- Flatline detection
- Physiological checks
- Morphological checks
- Template matching

## <div align="left"> __Feature Extraction__ </div>

<table>
<thead>
<tr>
<th style="text-align:center">Signal</th>
<th style="text-align:center" width="110">Domain / Type</th>
<th style="text-align:center">Features</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">ECG</td>
<td align="center">Time</td>
<td align="center">Morphological features related to fiducial point locations and amplitudes</td>
</tr>
<tr>
<td align="center" rowspan="3">PPG</td>
<td align="center">Time</td>
<td align="center">Morphological features related to fiducial point locations and amplitudes, zero-crossing rate, signal to noise ratio</td>
</tr>
<tr>
<td align="center">Frequency</td>
<td align="center">Amplitude and frequency of FFT peaks, signal power</td>
</tr>
<tr>
<td align="center">Statistical</td>
<td align="center">Mean, median, standard deviation, percentiles, mean absolute deviation, skewness, kurtosis, entropy</td>
</tr>
<tr>
<td align="center">VPG</td>
<td align="center">Time</td>
<td align="center">Morphological features related to fiducial point locations and amplitudes</td>
</tr>
<tr>
<td align="center">APG</td>
<td align="center">Time</td>
<td align="center">Morphological features related to fiducial point locations and amplitudes</td>
</tr>
<tr>
<td align="center" rowspan="3">ACC</td>
<td align="center">Frequency</td>
<td align="center">Mean, median, standard deviation, min, max, range, mean absolute deviation, median absolute deviation, interquartile range, skewness, kurtosis, energy, entropy of fft signal; fft-peak related features and signal power</td>
</tr>
<tr>
<td align="center">Statistical</td>
<td align="center">Mean, median, standard deviation, min, max, range, mean absolute deviation, median absolute deviation, interquartile range, skewness, kurtosis, energy, momentum of ACC signals; peak related features</td>
</tr>
<tr>
<td align="center">Correlation</td>
<td align="center">Correlation of ACC signals of different axes</td>
</tr>
<tr>
<td align="center" rowspan="4">EDA</td>
<td align="center">Time</td>
<td align="center">Rms, acr length, integral, average power</td>
</tr>
<tr>
<td align="center">Frequency</td>
<td align="center">FFT peak related features, energy, entropy of fft signal</td>
</tr>
<tr>
<td align="center">Statistical</td>
<td align="center">Mean, standard deviation, min, max, range, kurtosis, skewness, momentum</td>
</tr>
<tr>
<td align="center">Hjorth</td>
<td align="center">Activity, complexity, mobility</td>
</tr>
</tbody>
</table>

## <div align="left"> __Heart Rate Variability Analysis__ </div>
Heart rate variability analysis can be performed with BIOBSS and the parameters given below can be calculated for PPG or ECG signals.

<table>
<thead>
<tr>
<th style="text-align:center">Domain</th>
<th style="text-align:center">Parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">Time-domain</td>
<td align="center">mean_nni, sdnn, rmssd, sdsd, nni_50, pnni_50, nni_20, pnni_20, cvnni, cvsd, median_nni, range_nni mean_hr, min_hr, max_hr, std_hr, mad_nni, mcv_nni, iqr_nni</td>
</tr>
<tr>
<td align="center">Frequency-domain</td>
<td align="center">vlf, lf, hf, lf_hf_ratio, total_power, lfnu, hfnu, lnLF, lnHF, vlf_peak, lf_peak, hf_peak</td>
</tr>
<tr>
<td align="center">Nonlinear</td>
<td align="center">SD1, SD2, SD2_SD1, CSI, CVI, CSI_mofidied, ApEn, SampEn</td>
</tr>
</tbody>
</table>

## <div align="left"> __Activity Indices__ </div>
BIOBSS has functionality to calculate activity indices from 3-axis acceleration signals. These indices are:
- Proportional Integration Method (PIM)
- Zero Crossing Method (ZCM)
- Time Above Threshold (TAT)
- Mean Amplitude Deviation (MAD)
- Euclidian Norm Minus One (ENMO)
- High-pass Filtered Euclidian (HFEN)
- Activity Index (AI)

Reference: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0261718

The preprocessing steps which should be applied on the raw acceleration differs for each of the activity indices listed above. In other words, each activity index can be calculated only from specific datasets. These datasets can be generated using BIOBSS both independently or as a part of activity index calculation pipeline.

The generated datasets are:
- UFXYZ: unfiltered acc signals 
- UFM: magnitude of unfiltered acc signals 
- UFM_modified: modified magnitude of unfiltered signals (absolute(UFM-length(UFM)))
- UFNM: normalized magnitude of unfiltered acc signals 
- FXYZ: filtered acc signals
- FXYZ_modified: modified filtered acc signals (absolute(FXYZ))   
- FMpre: magnitude of filtered acc signals
- SpecialXYZ: filtered acc signals (special filter parameters)  
- SpecialM: magnitude of filtered acc signals (special filter parameters)
- FMpost: filtered magnitude of acc signals
- FMpost_modified: modified of filtered magnitude of acc signals (absolute(FMpost))

## <div align="left"> __Respiratory Analysis__ </div>
BIOBSS has modules to perform basic respiratory analyses. The functionalities are:
- Preprocessing PPG or ECG signals for respiratory analysis using predefined filter parameters
- Extracting respiratory signals from modulations (amplitude modulation, frequency modulation, baseline wander) in PPG or ECG signals
- Estimating respiratory rate from the extracted respiratory signals
- Calculation respiratory quality indices (RQI)
- Fusing respiratory rate estimates 


## <div align="left"> __Pipeline Generation__ </div>

The main focus of BIOBSS is to generate and save pipelines for signal processing and feature extraction problems. Thus, it is aimed to :
- Simplify the preprocessing procedures by generating signal and event channels
- Make it easy to use processes 
- Decrease the amount of work for repetitive processes and for those who work on multiple datasets
- Make it possible to save and share pipelines to compare results of different works

<br/><br/>
To learn more, visit the [Documentation page](https://biobss.readthedocs.io/en/latest/).


## <div align="center"> Installation </div>

Through pip,

    pip install biobss

or build from source,

    git clone https://github.com/obss/biobss.git
    cd BIOBSS
    python setup.py install

## <div align="center"> Dependencies </div> 

- neurokit2
- antropy
- cvxopt
- heartpy
- scipy
- py_ecg_detectors


## <div align="center"> Tutorial notebooks </div>

- PPG Signal Processing   [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/ppg_processing.ipynb)
- ECG Signal Processing   [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/ecg_processing.ipynb)
- ACC Signal Processing   [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/acc_processing.ipynb)
- HRV Analysis    [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/hrv_analysis.ipynb)
- Respiratory Analysis    [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/respiratory_analysis.ipynb)


## <div align="center"> License </div>

Licensed under the [MIT](LICENSE) License.


## <div align="center"> Contributing </div>

If you have ideas for improving existing features or adding new features to BIOBSS, please contact us. 


## <div align="center"> Contributors </div>
[Çağatay Taşcı](https://github.com/tascic)

[İpek Karakuş](https://github.com/karakusipek)

[Devrim Çavuşoğlu](https://github.com/devrimcavusoglu)

[Fatih Çağatay Akyön](https://github.com/fcakyon)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/obss/BIOBSS",
    "name": "biobss",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "signal processing,feature extraction,photoplethysmography,PPG,electrocardiography,ECG,acceleration,electrodermal activity,EDA,galvanic skin response,HRV,Heart Rate Variability",
    "author": "OBSS R&D",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/76/bd/568903506cc2e68a3a941af56167a3614f3beb702c4e183efdcbb336c811/biobss-0.1.1.tar.gz",
    "platform": null,
    "description": "# <div align=\"center\"> __BIOBSS__ </div>\n\n<p align=\"center\">\n<a href=\"https://pypi.org/project/biobss\"><img src=\"https://img.shields.io/pypi/pyversions/biobss\" alt=\"Python versions\"></a>\n<a href=\"https://pepy.tech/project/biobss\"><img src=\"https://pepy.tech/badge/biobss\" alt=\"downloads\"></a>\n<a href=\"https://pypi.org/project/biobss\"><img src=\"https://img.shields.io/pypi/v/biobss\" alt=\"PyPI version\"></a>\n<br>\n<a href=\"https://github.com/obss/biobss/blob/main/LICENSE\"><img alt=\"License: MIT\" src=\"https://img.shields.io/github/license/obss/biobss\"></a>\n<a href=\"https://github.com/obss/biobss/actions\"><img alt=\"Build status\" src=\"https://github.com/obss/biobss/actions/workflows/ci.yml/badge.svg\"></a>\n<a href=\"https://github.com/psf/black\"><img alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"></a>\n\n\nA package for processing signals recorded using wearable sensors, such as Electrocardiogram (ECG), Photoplethysmogram (PPG), Electrodermal activity (EDA) and 3-axis acceleration (ACC). \n\nBIOBSS's main focus is to generate end-to-end pipelines by adding required processes from BIOBSS or other Python packages. Some preprocessing methods were not implemented from scratch but imported from the existing packages.\n\nMain features:\n\n- Applying basic preprocessing steps (*)\n- Assessing quality of PPG and ECG signals\n- Extracting features for ECG, PPG, EDA and ACC signals\n- Performing Heart Rate Variability (HRV) analysis using PPG or ECG signals\n- Extracting respiratory signals from PPG or ECG signals and estimating respiratory rate (*)\n- Calculating activity indices from ACC signals\n- Generating and saving pipelines \n\n(*): Not all methods were implemented from scratch but imported from existing packages.\n\nThe table shows the capabilites of BIOBSS and the other Python packages for physiological signal processing.\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"text-align:center\" colspan=\"2\"><b>Functionality</b></th>\n      <th style=\"text-align:center\">BIOBSS</th>\n      <th style=\"text-align:center\">BioSPPy</th>\n      <th style=\"text-align:center\">HeartPy</th>\n      <th style=\"text-align:center\">HRV</th>\n      <th style=\"text-align:center\">hrv-analysis</th>\n      <th style=\"text-align:center\">pyHRV</th>\n      <th style=\"text-align:center\">pyPhysio</th>\n      <th style=\"text-align:center\">PySiology</th>\n      <th style=\"text-align:center\">Neurokit2</th>\n      <th style=\"text-align:center\">FLIRT</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td align=\"center\" colspan=\"2\"><b>File reader</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" colspan=\"2\"><b>Sliding window</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" colspan=\"2\"><b>Preprocessing</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" colspan=\"2\"><b>Pipeline</b></td>\n      <td align=\"center\"><b>&check;(*)</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\" rowspan=\"5\"><b>Processing</b></td>\n      <td align=\"center\"><b>ECG</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\"><b>PPG</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\"><b>IBI / RRI</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\"><b>EDA</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\"><b>ACC</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\" rowspan=\"4\"><b>Feature Extraction</b></td>\n      <td align=\"center\"><b>ECG</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\"><b>PPG</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\"><b>EDA</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n    </tr>\n    <tr>\n      <td align=\"center\" style=\"text-align:center\"><b>ACC</b></td>\n      <td align=\"center\"><b>&check;</b></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\"></td>\n      <td align=\"center\">&check;</td>\n    </tr>\n  </tbody>\n</table>\n\n(*): Pipeline module differs between the two packages. BIOBSS pipeline aims to provide a more flexible and customizable pipeline for the user.\n\n__Modified from__ F\u00f6ll, Simon, et al. \u201cFLIRT: A feature generation toolkit for wearable data.\u201d Computer Methods and Programs in Biomedicine 212 (2021): 106461.\n\nYou can also read the [blog post about BIOBSS](https://medium.com/codable/biobss-a-biological-signal-processing-and-feature-extraction-library-137f9b082634).\n\n## <div align=\"left\"> __Preprocessing__ </div>\nBIOBSS has modules with basic signal preprocessing functionalities. These include:\n- Resampling\n- Segmentation\n- Normalization\n- Filtering (basic filtering functions with commonly used filter parameters for each signal type)\n- Peak detection \n\n## <div align=\"left\"> __Visualization__ </div>\nBIOBSS has basic plotting modules specific to each signal type. Using the modules, the signals and peaks can be plotted using Matplotlib or Plotly packages.\n\n## <div align=\"left\"> __Signal Quality Assessment__ </div>\nSignal quality assessment steps listed below can be used with PPG and ECG signals.\n- Clipping detection\n- Flatline detection\n- Physiological checks\n- Morphological checks\n- Template matching\n\n## <div align=\"left\"> __Feature Extraction__ </div>\n\n<table>\n<thead>\n<tr>\n<th style=\"text-align:center\">Signal</th>\n<th style=\"text-align:center\" width=\"110\">Domain / Type</th>\n<th style=\"text-align:center\">Features</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"center\">ECG</td>\n<td align=\"center\">Time</td>\n<td align=\"center\">Morphological features related to fiducial point locations and amplitudes</td>\n</tr>\n<tr>\n<td align=\"center\" rowspan=\"3\">PPG</td>\n<td align=\"center\">Time</td>\n<td align=\"center\">Morphological features related to fiducial point locations and amplitudes, zero-crossing rate, signal to noise ratio</td>\n</tr>\n<tr>\n<td align=\"center\">Frequency</td>\n<td align=\"center\">Amplitude and frequency of FFT peaks, signal power</td>\n</tr>\n<tr>\n<td align=\"center\">Statistical</td>\n<td align=\"center\">Mean, median, standard deviation, percentiles, mean absolute deviation, skewness, kurtosis, entropy</td>\n</tr>\n<tr>\n<td align=\"center\">VPG</td>\n<td align=\"center\">Time</td>\n<td align=\"center\">Morphological features related to fiducial point locations and amplitudes</td>\n</tr>\n<tr>\n<td align=\"center\">APG</td>\n<td align=\"center\">Time</td>\n<td align=\"center\">Morphological features related to fiducial point locations and amplitudes</td>\n</tr>\n<tr>\n<td align=\"center\" rowspan=\"3\">ACC</td>\n<td align=\"center\">Frequency</td>\n<td align=\"center\">Mean, median, standard deviation, min, max, range, mean absolute deviation, median absolute deviation, interquartile range, skewness, kurtosis, energy, entropy of fft signal; fft-peak related features and signal power</td>\n</tr>\n<tr>\n<td align=\"center\">Statistical</td>\n<td align=\"center\">Mean, median, standard deviation, min, max, range, mean absolute deviation, median absolute deviation, interquartile range, skewness, kurtosis, energy, momentum of ACC signals; peak related features</td>\n</tr>\n<tr>\n<td align=\"center\">Correlation</td>\n<td align=\"center\">Correlation of ACC signals of different axes</td>\n</tr>\n<tr>\n<td align=\"center\" rowspan=\"4\">EDA</td>\n<td align=\"center\">Time</td>\n<td align=\"center\">Rms, acr length, integral, average power</td>\n</tr>\n<tr>\n<td align=\"center\">Frequency</td>\n<td align=\"center\">FFT peak related features, energy, entropy of fft signal</td>\n</tr>\n<tr>\n<td align=\"center\">Statistical</td>\n<td align=\"center\">Mean, standard deviation, min, max, range, kurtosis, skewness, momentum</td>\n</tr>\n<tr>\n<td align=\"center\">Hjorth</td>\n<td align=\"center\">Activity, complexity, mobility</td>\n</tr>\n</tbody>\n</table>\n\n## <div align=\"left\"> __Heart Rate Variability Analysis__ </div>\nHeart rate variability analysis can be performed with BIOBSS and the parameters given below can be calculated for PPG or ECG signals.\n\n<table>\n<thead>\n<tr>\n<th style=\"text-align:center\">Domain</th>\n<th style=\"text-align:center\">Parameters</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"center\">Time-domain</td>\n<td align=\"center\">mean_nni, sdnn, rmssd, sdsd, nni_50, pnni_50, nni_20, pnni_20, cvnni, cvsd, median_nni, range_nni mean_hr, min_hr, max_hr, std_hr, mad_nni, mcv_nni, iqr_nni</td>\n</tr>\n<tr>\n<td align=\"center\">Frequency-domain</td>\n<td align=\"center\">vlf, lf, hf, lf_hf_ratio, total_power, lfnu, hfnu, lnLF, lnHF, vlf_peak, lf_peak, hf_peak</td>\n</tr>\n<tr>\n<td align=\"center\">Nonlinear</td>\n<td align=\"center\">SD1, SD2, SD2_SD1, CSI, CVI, CSI_mofidied, ApEn, SampEn</td>\n</tr>\n</tbody>\n</table>\n\n## <div align=\"left\"> __Activity Indices__ </div>\nBIOBSS has functionality to calculate activity indices from 3-axis acceleration signals. These indices are:\n- Proportional Integration Method (PIM)\n- Zero Crossing Method (ZCM)\n- Time Above Threshold (TAT)\n- Mean Amplitude Deviation (MAD)\n- Euclidian Norm Minus One (ENMO)\n- High-pass Filtered Euclidian (HFEN)\n- Activity Index (AI)\n\nReference: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0261718\n\nThe preprocessing steps which should be applied on the raw acceleration differs for each of the activity indices listed above. In other words, each activity index can be calculated only from specific datasets. These datasets can be generated using BIOBSS both independently or as a part of activity index calculation pipeline.\n\nThe generated datasets are:\n- UFXYZ: unfiltered acc signals \n- UFM: magnitude of unfiltered acc signals \n- UFM_modified: modified magnitude of unfiltered signals (absolute(UFM-length(UFM)))\n- UFNM: normalized magnitude of unfiltered acc signals \n- FXYZ: filtered acc signals\n- FXYZ_modified: modified filtered acc signals (absolute(FXYZ))   \n- FMpre: magnitude of filtered acc signals\n- SpecialXYZ: filtered acc signals (special filter parameters)  \n- SpecialM: magnitude of filtered acc signals (special filter parameters)\n- FMpost: filtered magnitude of acc signals\n- FMpost_modified: modified of filtered magnitude of acc signals (absolute(FMpost))\n\n## <div align=\"left\"> __Respiratory Analysis__ </div>\nBIOBSS has modules to perform basic respiratory analyses. The functionalities are:\n- Preprocessing PPG or ECG signals for respiratory analysis using predefined filter parameters\n- Extracting respiratory signals from modulations (amplitude modulation, frequency modulation, baseline wander) in PPG or ECG signals\n- Estimating respiratory rate from the extracted respiratory signals\n- Calculation respiratory quality indices (RQI)\n- Fusing respiratory rate estimates \n\n\n## <div align=\"left\"> __Pipeline Generation__ </div>\n\nThe main focus of BIOBSS is to generate and save pipelines for signal processing and feature extraction problems. Thus, it is aimed to :\n- Simplify the preprocessing procedures by generating signal and event channels\n- Make it easy to use processes \n- Decrease the amount of work for repetitive processes and for those who work on multiple datasets\n- Make it possible to save and share pipelines to compare results of different works\n\n<br/><br/>\nTo learn more, visit the [Documentation page](https://biobss.readthedocs.io/en/latest/).\n\n\n## <div align=\"center\"> Installation </div>\n\nThrough pip,\n\n    pip install biobss\n\nor build from source,\n\n    git clone https://github.com/obss/biobss.git\n    cd BIOBSS\n    python setup.py install\n\n## <div align=\"center\"> Dependencies </div> \n\n- neurokit2\n- antropy\n- cvxopt\n- heartpy\n- scipy\n- py_ecg_detectors\n\n\n## <div align=\"center\"> Tutorial notebooks </div>\n\n- PPG Signal Processing   [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/ppg_processing.ipynb)\n- ECG Signal Processing   [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/ecg_processing.ipynb)\n- ACC Signal Processing   [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/acc_processing.ipynb)\n- HRV Analysis    [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/hrv_analysis.ipynb)\n- Respiratory Analysis    [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/obss/BIOBSS/blob/main/examples/respiratory_analysis.ipynb)\n\n\n## <div align=\"center\"> License </div>\n\nLicensed under the [MIT](LICENSE) License.\n\n\n## <div align=\"center\"> Contributing </div>\n\nIf you have ideas for improving existing features or adding new features to BIOBSS, please contact us. \n\n\n## <div align=\"center\"> Contributors </div>\n[\u00c7a\u011fatay Ta\u015fc\u0131](https://github.com/tascic)\n\n[\u0130pek Karaku\u015f](https://github.com/karakusipek)\n\n[Devrim \u00c7avu\u015fo\u011flu](https://github.com/devrimcavusoglu)\n\n[Fatih \u00c7a\u011fatay Aky\u00f6n](https://github.com/fcakyon)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A biological signal processing and feature extraction library.",
    "version": "0.1.1",
    "split_keywords": [
        "signal processing",
        "feature extraction",
        "photoplethysmography",
        "ppg",
        "electrocardiography",
        "ecg",
        "acceleration",
        "electrodermal activity",
        "eda",
        "galvanic skin response",
        "hrv",
        "heart rate variability"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aca6aa846bd6c1ed2be257f414b9cba6b1db86b9e4ecfe951f59df799e9296d1",
                "md5": "8c4d69c59f88889de2d0377deffb04d5",
                "sha256": "f8d385b9ed7743a91d7bede7c7d370e3c622a84d2e42e5be8340d90f1f4d9e4c"
            },
            "downloads": -1,
            "filename": "biobss-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c4d69c59f88889de2d0377deffb04d5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 117223,
            "upload_time": "2023-02-09T08:29:52",
            "upload_time_iso_8601": "2023-02-09T08:29:52.424992Z",
            "url": "https://files.pythonhosted.org/packages/ac/a6/aa846bd6c1ed2be257f414b9cba6b1db86b9e4ecfe951f59df799e9296d1/biobss-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "76bd568903506cc2e68a3a941af56167a3614f3beb702c4e183efdcbb336c811",
                "md5": "8fb957e249adc58b75235d3ac3df835f",
                "sha256": "56f1378a449aa48bc862ba1dccb35af3ef9880ef6c9232f6ab7c6b6421944c9f"
            },
            "downloads": -1,
            "filename": "biobss-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8fb957e249adc58b75235d3ac3df835f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 83565,
            "upload_time": "2023-02-09T08:29:54",
            "upload_time_iso_8601": "2023-02-09T08:29:54.184995Z",
            "url": "https://files.pythonhosted.org/packages/76/bd/568903506cc2e68a3a941af56167a3614f3beb702c4e183efdcbb336c811/biobss-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-09 08:29:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "obss",
    "github_project": "BIOBSS",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "biobss"
}
        
Elapsed time: 0.03772s