Heartbeat Classifier - Auto mode

39 views
Skip to first unread message

Preethi Krishnan

unread,
Jun 18, 2019, 12:16:26 PM6/18/19
to ecg-kit users
I am using Matlab 2018 version and I am unable to run the first example using auto - heartbeat classifier. Error given below :

+ Recording:  (AHA)
+ Mode: auto (12 clusters, 1 iterations, 75% cluster-presence)Error using waitbar (line 100)
The second argument must be a message character vector or a handle to an existing waitbar.

Error in progress_bar/set.Message (line 368)
                    waitbar( obj.counter - fix(obj.counter), obj.wb_handle, obj.Message );

Error in progress_bar/checkpoint (line 199)
                obj.Message = Message;

Error in ECGwrapper/Run (line 731)
                                    pb.checkpoint('Saving results');

Error in first_simple_example (line 123)
    ECGw.Run

Did anyone else get this error? 
I debugged the code and found that  Matlab has introduced new GUI app to design push button interface. So is the error due to Matlab version incompatibility? Can I disable the GUI feature and run the classifier only from command line? Any help will be appreciated.

Thank you,
Preethi

Mariano Llamedo Soria

unread,
Jun 18, 2019, 12:27:33 PM6/18/19
to Preethi Krishnan, ecg-kit users
Thanks for reporting that Preethi. Probably you are right and the most convenient thing is to comment all the waitbar calls done via "waitbar" and "pb" which stands for progress-bar. Unfortunately, I am planning migrating ecg-kit to Python, and the Matlab version will be left as is in the current state.

Best,
Mariano.

--
You received this message because you are subscribed to the Google Groups "ecg-kit users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ecg-kit-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ecg-kit-users/c91bd82b-f401-4282-83a3-e36ece2da83e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Preethi Krishnan

unread,
Jun 18, 2019, 12:39:53 PM6/18/19
to ecg-kit users
Thank you for the quick response. With which Matlab version was the original heartbeat classifier Matlab code was written? I can figure out  the GUI changes if know the original version.



On Tuesday, June 18, 2019 at 11:27:33 AM UTC-5, marianux wrote:
Thanks for reporting that Preethi. Probably you are right and the most convenient thing is to comment all the waitbar calls done via "waitbar" and "pb" which stands for progress-bar. Unfortunately, I am planning migrating ecg-kit to Python, and the Matlab version will be left as is in the current state.

Best,
Mariano.

El mar., 18 de jun. de 2019 a la(s) 13:16, Preethi Krishnan (preethik...@gmail.com) escribió:
I am using Matlab 2018 version and I am unable to run the first example using auto - heartbeat classifier. Error given below :

+ Recording:  (AHA)
+ Mode: auto (12 clusters, 1 iterations, 75% cluster-presence)Error using waitbar (line 100)
The second argument must be a message character vector or a handle to an existing waitbar.

Error in progress_bar/set.Message (line 368)
                    waitbar( obj.counter - fix(obj.counter), obj.wb_handle, obj.Message );

Error in progress_bar/checkpoint (line 199)
                obj.Message = Message;

Error in ECGwrapper/Run (line 731)
                                    pb.checkpoint('Saving results');

Error in first_simple_example (line 123)
    ECGw.Run

Did anyone else get this error? 
I debugged the code and found that  Matlab has introduced new GUI app to design push button interface. So is the error due to Matlab version incompatibility? Can I disable the GUI feature and run the classifier only from command line? Any help will be appreciated.

Thank you,
Preethi

--
You received this message because you are subscribed to the Google Groups "ecg-kit users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ecg-ki...@googlegroups.com.

Mariano Llamedo Soria

unread,
Jun 18, 2019, 1:18:53 PM6/18/19
to Preethi Krishnan, ecg-kit users
Hi Preethi, I check the code and saw that the problem you found, was because a descriptor already deleted. Do a pull from the repo, now this should work.

Best,
M.

To unsubscribe from this group and stop receiving emails from it, send an email to ecg-kit-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ecg-kit-users/7eef36bf-f749-4037-b2bd-91db021cd37a%40googlegroups.com.

Preethi Krishnan

unread,
Jun 20, 2019, 10:37:21 PM6/20/19
to ecg-kit users
I downloaded the code from github. I get the following error. Any help will be appreciated, thanks

Warning: File 'C:\Users\preet\AppData\Local\Temp\example_recording_1_10000.qrs' not found. 
> In ECGtask_QRS_detection/Process (line 436)
  In ECGwrapper/Run (line 724)
  In examples (line 146) 

Error using movefile
The system cannot find the path specified.



Error in ECGwrapper/Run (line 773)
                                    movefile( payload_files{jj}, obj.output_path, 'f' );

Error in examples (line 146)
            ECG_w.Run;
Error using uiimport (line 72)
Cannot open the Import Wizard on a file while the Import Wizard is open.

Mariano Llamedo Soria

unread,
Jun 20, 2019, 11:16:40 PM6/20/19
to Preethi Krishnan, ecg-kit users
Hi Preethi, I can not understand what are you trying to do. Please send an step by step commands that you are using. I dont know why are you using the import wizard.

Best,
M.

To unsubscribe from this group and stop receiving emails from it, send an email to ecg-kit-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ecg-kit-users/afe6e157-fc60-4318-8044-57d82f857391%40googlegroups.com.

Preethi Krishnan

unread,
Jun 21, 2019, 5:00:35 PM6/21/19
to ecg-kit users
Thanks for the support. I did a fresh install of ecgkit and I can get the heart beat classifier to work successfully in auto mode. I dont know what was wrong before, I am unable to figure it out. 
I do have a quick question.  How can I generate results for MIT ecg file. I pasted an example below from your ecgkit website. Do I enable report generation ? If yes, please scroll down for the error I get when I turn on report generation.

  • Recording: ... \example recordings\208.dat (MIT)
  • Mode: auto (12 clusters, 1 iterations, 75% cluster-presence)

  • True | Estimated Labels Labels | Normal Suprav Ventri Unknow| Totals -----------------|----------------------------|------- Normal | 1567 6 13 0 | 1586 Supraventricular| 2 0 0 0 | 2 Ventricular | 255 8 1102 0 | 1365 Unknown | 2 0 0 0 | 2 -----------------|----------------------------|------- Totals | 1826 14 1115 0 | 2955

Balanced Results for

| Normal || Supravent || Ventricul || TOTALS | | Se +P || Se +P || Se +P || Acc | Se | +P | | 99% 45% || 0% 0% || 81% 99% || 60% | 60% | 48% |

Unbalanced Results for

| Normal || Supravent || Ventricul || TOTALS | | Se +P || Se +P || Se +P || Acc | Se | +P | | 99% 86% || 0% 0% || 81% 99% || 90% | 60% | 62% | ```



Error in my 119 MIT ecg file during report generation


Results saved in
 + C:\Users\preet\ecg-kit\recordings\119_my_experiment_name_ECG_heartbeat_classifier.mat

Error using matlab.graphics.primitive.Text/vertcat
Conversion to matlab.graphics.primitive.Text from cell is not possible.

Error in plot_ecg_strip/PaperModeOn (line 2777)
                                paperModeHdl; ...

Error in plot_ecg_strip (line 1253)
    PaperModeOn()

Error in reportECG (line 162)
        eval(eval_str);

Error in first_simple_example (line 125)
  reportECG(ECGw, 'LowDetail', 'full')
Reply all
Reply to author
Forward
0 new messages