Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is There a Tool in NeuroKit2 for Arrhythmia Classification? #1073

Open
sreeshmaraj opened this issue Feb 12, 2025 · 2 comments
Open

Is There a Tool in NeuroKit2 for Arrhythmia Classification? #1073

sreeshmaraj opened this issue Feb 12, 2025 · 2 comments

Comments

@sreeshmaraj
Copy link

Hello NeuroKit community,

I am currently working with raw ECG data and using NeuroKit2 for signal processing. I wanted to know if NeuroKit2 has any built-in functions or methods for arrhythmia classification.

Additionally, if NeuroKit2 does not support this directly, could anyone suggest any Python packages or tools that can classify arrhythmias from raw ECG signals? I would appreciate any guidance or recommendations on this topic!

Thank you in advance! 😊

@Cobrachainsaw
Copy link

Hi @sreeshmaraj,

Unfortunately, NeuroKit2 does not have built-in methods to classify arrhythmia directly from raw ECG signals. However, it provides several functions that can assist in feature extraction, which is crucial for arrhythmia classification.

Arrhythmia classification relies heavily on feature engineering, where you extract temporal, spatial, and morphological features from the ECG signal before training a model.

For example, ecg_process() is a useful function that preprocesses the ECG signal and extracts key features such as ECG_R_Peaks, ECG_Quality, and ECG_P_Onset. While not all of these features are relevant for arrhythmia classification (primarily ECG_R_Peaks), this function gives you a solid starting point. You can further extract features such as mean RR interval, standard deviation, and interval variability to build a robust temporal feature set.

Additionally, signal_decompose() allows you to perform wavelet decomposition (e.g., using emd or ssa) to extract statistical features like kurtosis, entropy, and skewness, which can enhance your classification model.

If you're looking for a library that can classify arrhythmia directly from raw ECG signals, you might want to check out torch_ecg. It provides pre-trained CNN/RNN models specifically designed for ECG-based arrhythmia detection.

I hope this helps! 😊 If you have any further questions or need more recommendations, feel free to ask.

@sreeshmaraj
Copy link
Author

Thank you so much! Could you please provide a tutorial or guidance for the torch_ecg pipeline?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants