mah533 / Augmentation-of-ECG-Training-Dataset-with-CGAN

Imbalanced MIT-BIH dataset is augmented with the generated beats by WGAN-GP and AC-WGAN-GP to improve the classification metrics.
31 stars 2 forks source link

How can I use the classifier (EcgResNet34) to classify signals? #2

Open Goreoos opened 1 year ago

Goreoos commented 1 year ago

There's a model structure of EcgResNet34 in model_classifier.py,but I can't find any files that use it to classify signals.So I want to ask how can I use this classifier ? image

mah533 commented 1 year ago

Try this, You might need to adapt it to your application, Written specifically for my application  Best

Sent from Yahoo Mail on Android

On Sun, Jan 15, 2023 at 7:08 AM, @.***> wrote:

There's a model structure of EcgResNet34 in model_classifier.py,but I can't find any files that use it to classify signals.So I want to ask how can I use this classifier ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

greymattar commented 1 year ago

Can I have the classifier file that uses the model structure, please?

mah533 commented 1 year ago

We used several metrics in our evaluations, one of them was Authentication/Classification test. This ResNet classifier is used for that metric. It was not used in our data generation. Hope it helps.

greymattar commented 1 year ago

And i had another query. I can't find the "data_rl_dict.json" file used in dtw_of_beats.py. How did you generate the file? And if it's not too much to ask can i have the file? And also if you have the main_classifier_ecg.py file, would you be kind enough to share it with me?

On Sat, 6 May 2023, 9:55 pm Edmond Adib, @.***> wrote:

We used several metrics in our evaluations, one of them was Authentication/Classification test. This ResNet classifier is used for that metric. It was not used in our data generation. Hope it helps.

— Reply to this email directly, view it on GitHub https://github.com/mah533/Augmentation-of-ECG-Training-Dataset-with-CGAN/issues/2#issuecomment-1537170213, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7UQVZWFI3XSFYJ7YP2OUITXEZX5VANCNFSM6AAAAAAT33NNKY . You are receiving this because you commented.Message ID: <mah533/Augmentation-of-ECG-Training-Dataset-with-CGAN/issues/2/1537170213 @github.com>

Katherinewxy commented 1 year ago

I had the same issue. @greymattar Did you find the "data_rl_dict.json"file. If not, how you fix this issue?

mah533 commented 1 year ago

I put the link to the 7 classes from MITBIH used in this study as real data (data_rl_dict.json) in the README file. Just rename and use it, it should work. hope it helps

Katherinewxy commented 1 year ago

Thank you so much for your quick response. One more question, where do you find "dist_real_beats.txt"files?