필터 지우기
필터 지우기

Classify ECG Signals Using Long Short-Term Memory Networks

조회 수: 1 (최근 30일)
Tamilselvan M
Tamilselvan M 2018년 4월 19일
댓글: debojit sharma 2022년 3월 24일
where to download physionetdata download script for the problem.
  댓글 수: 1
jianyu wang
jianyu wang 2018년 9월 9일
Do you find where to download physinonetdata? This code "ReadPhysionetData", I can't run in the matlab. thank you

댓글을 달려면 로그인하십시오.

답변 (2개)

Tunai Marques
Tunai Marques 2020년 2월 4일
편집: Tunai Marques 2020년 2월 7일
Hi,
Try running the following code on your MATLAB, and then executing it.
openExample('deeplearning_shared/ClassifyECGSignalsUsingLSTMNetworksExample')
And just for reference, this is the content of the "ReadPhysionetData.m" script:.
% This script parses the data from the PhysioNet 2017 Challenge and saves
% the data into PhysionetData.mat for quick and easy future use.
% This function is in support of ClassifyECGSignalsUsingLSTMNetworksExample. It may
% change or be removed in a future release.
% Copyright 2019 The MathWorks, Inc.
% Download and unzip the data, training2017.zip, from the PhysioNet website
unzip('https://archive.physionet.org/challenge/2017/training2017.zip')
% Navigate to the directory
cd training2017
% File with filenames and labels
ref = 'REFERENCE.csv';
% Create a table that contains the filenames and corresponding label data
tbl = readtable(ref,'ReadVariableNames',false);
tbl.Properties.VariableNames = {'Filename','Label'};
% Delete 'Other Rhythm' and 'Noisy Recording' signals
toDelete = strcmp(tbl.Label,'O') | strcmp(tbl.Label,'~');
tbl(toDelete,:) = [];
% Load each file in the table and store the corresponding signal data
H = height(tbl);
for ii = 1:H
fileData = load([tbl.Filename{ii},'.mat']);
tbl.Signal{ii} = fileData.val;
end
% Leave the training2017 directory
cd ..
% Format the data properly for LSTM training
% Signals: Cell array of predictors
% Labels: Categorical array of responses
Signals = tbl.Signal;
Labels = categorical(tbl.Label);
% Save the variables to a MAT-file
save PhysionetData.mat Signals Labels
  댓글 수: 2
Kristofer Soler
Kristofer Soler 2020년 3월 1일
Cheers ! works perfectly !
debojit sharma
debojit sharma 2022년 3월 24일
I was trying to use the above program for my own data (communication signal) but I am getting error in the line "tb1.Signal{ii} = fileData.val;" as Reference to non-existent field 'val'. Someone please help

댓글을 달려면 로그인하십시오.


soeren Leth
soeren Leth 2019년 11월 20일
me too, can anyone help?
Thanks

카테고리

Help CenterFile Exchange에서 AI for Signals에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by