Downloads · 30 days
0
outofray/kardionet
kardionet is a machine learning model from outofray. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as afl-3.0.
Downloads · 30 days
0
Access
Public
Updated Oct 10, 2024
Repo size
34.5 MB
Likes
1
Public
Click a slice to open those files.
.pt34.5 MB · 100%
From the Hugging Face model README
Prerequisites
Ensure that all ECG files are saved in *.npy format with the following shapes:
Store these files in a single flat directory, and include a manifest CSV file in the same location to accompany them.
Manifest File Format
The manifest CSV file should include a header. Each row corresponds to one ECG file with the following columns:
use predict_potassium_12lead.py to get the potassium level prediction.
Edit data_path and manifest_path and run the predict_potassium.py script.
Upon completion, a file named "dataloader_0_predictions.csv" will be saved in the same directory. This file contains the inference results "preds" from the model.
Use generate_result.py to get the performance metric and figure.
Use preprocessing.py for denoise, normalize, and segment ECG into 5-second for input
Set the following paths in preprocessing.py:
Execute predict.py.
If the ECG files were already normalize, can execute the segmentation function only.
use predict_potassium_1lead.py to get the potassium level prediction.
Edit data_path and manifest_path and run the predict_potassium.py script.
Upon completion, a file named "dataloader_0_predictions.csv" will be saved in the same directory. This file contains the inference results "preds" from the model.
Use generate_result.py to get the performance metric and figure.
Paper Link: https://www.sciencedirect.com/science/article/pii/S2405500X24007527
Citation: I-Min Chiu, Po-Jung Wu, Huan Zhang, J. Weston Hughes, Albert J. Rogers, Laleh Jalilian, Marco Perez, Chun-Hung Richard Lin, Chien-Te Lee, James Zou, David Ouyang, Serum Potassium Monitoring Using AI-Enabled Smartwatch Electrocardiograms, JACC: Clinical Electrophysiology, 2024, ISSN 2405-500X, https://doi.org/10.1016/j.jacep.2024.07.023.
<!-- #endregion -->