|
a |
|
b/data preprocessing_Matlab/readme |
|
|
1 |
1. Install WFDB Toolbox for MATLAB from https://physionet.org/physiotools/matlab/wfdb-app-matlab/ |
|
|
2 |
2. Run download_MITBIHDB.m to download the MIT-BIH database |
|
|
3 |
-- In the code, you need to determine the local path to save the database and the path for the installed WFDB Toolbox |
|
|
4 |
For example: |
|
|
5 |
-- path_to_exes = 'path_to_WFDB_Toolbox\mcode\nativelibs\windows\bin'; |
|
|
6 |
-- path_to_save_records = 'path_to_save_database'; |
|
|
7 |
|
|
|
8 |
3. Run seq2seq_mitbih_AAMI.m to prepare data for the intra-patient paradigm |
|
|
9 |
-- Modify the below line of the code based on your local address to the mitbih database |
|
|
10 |
--addr = '.\mitbihdb'; |
|
|
11 |
4. Run seq2seq_mitbih_AAMI_DS1DS2.m to prepare data for the inter-patient paradigm |
|
|
12 |
-- Modify the below line of the code based on your local address to the mitbih database |
|
|
13 |
-- addr = '.\mitbihdb'; |