https://github.com/epsilon-deltta/ppg
ppg preprocessing (e.g., ppg> spectrogram, bandpass, moving average)
https://github.com/epsilon-deltta/ppg
biosignal ppg preproc spectrogram
Last synced: 5 months ago
JSON representation
ppg preprocessing (e.g., ppg> spectrogram, bandpass, moving average)
- Host: GitHub
- URL: https://github.com/epsilon-deltta/ppg
- Owner: epsilon-deltta
- License: mit
- Created: 2022-08-13T08:56:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-14T19:56:35.000Z (almost 4 years ago)
- Last Synced: 2025-12-20T09:25:40.844Z (6 months ago)
- Topics: biosignal, ppg, preproc, spectrogram
- Language: Jupyter Notebook
- Homepage:
- Size: 1.01 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ppg
ppg preprocessing (e.g., ppg> spectogram, bandpass, moving average)
ALL in One: Simple PPG preprocessing
# Usage
Installation
```
pip install ppg-pre
```
python usage
```
from ppg_pre import get_ppg_sample
x = get_ppg_sample() # get sample ppg data
from ppg_pre import ppg2specgram
x = ppg2specgram(x) # u can get the spectrogram data
```
# Function
ppg2specgram function has the following processing.
- interpolate
- bandpass (0.5~10 Hz)
- moving average (30 taps)
- z-score normalization (mean:47, std:15)
- spectrogram
# Visualization
```
from matplotlib import pyplot as plt
from ppg_pre import get_ppg_sample
x = get_ppg_sample()
plt.plot(x[12000:15000])
```
