Downloads · 30 days
0
0% of all-time downloads
hubii-world/ECG2HRV
ECG2HRV is a feature extraction model from hubii-world. Use it when you need embeddings to search or compare text.
Pipeline for the processing of heart rate data from raw ECG signals towards HRV features. For more details see HUBII
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
15
Public
Repo size
118 B
Likes
0
Public
Click a slice to open those files.
.ipynb807 KB · 98%
From the Hugging Face model README
Pipeline for the processing of heart rate data from raw ECG signals towards HRV features. For more details see HUBII
For importing the model in your project, you can use the following code:
# Imports
from huggingface_hub import hf_hub_download
import joblib
# Define parameters
REPO_ID = "hubii-world/ECG2HRV"
FILENAME = "ECG2HRV.joblib"
# Load the model
model = joblib.load(
hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
)
Example usage of the model:
# ecg should be a 1D numpy array with the ECG signal
hrv_features = model(input_data=ecg, frequency=100.0)
# returns hrv_features in a dictionary with the feature names as keys