Please need help applying EEG seizure detection code on edf files instead of txt
Hello, I’ve been trying to test different available codes to understand how to design an EEG seizure detection algorithm.
I would like to know how to change the code here: https://www.mathworks.com/help/wavelet/ug/time-frequency-convolutional-network-for-eeg-data-classification.html so I can use it fir the CHB MIT data (edf files) instead of txt files from the Bonn data set if possible. The section below in particular:
ds = tabularTextDatastore(dataDir,"IncludeSubfolders",true,"FileExtensions",".txt");
extraTXT = contains(tds.Files,"__MACOSX");
tds.Files(extraTXT) = [];
labels = filenames2labels(tds.Files,"ExtractBetween",[1 1]);
ii = 1;
eegData = cell(numel(labels),1);
while hasdata(tds)
tsTable = read(tds);
ts = tsTable.Var1;
eegData{ii} = reshape(ts,1,[]);
ii = ii+1;
endHello, I’ve been trying to test different available codes to understand how to design an EEG seizure detection algorithm.
I would like to know how to change the code here: https://www.mathworks.com/help/wavelet/ug/time-frequency-convolutional-network-for-eeg-data-classification.html so I can use it fir the CHB MIT data (edf files) instead of txt files from the Bonn data set if possible. The section below in particular:
ds = tabularTextDatastore(dataDir,"IncludeSubfolders",true,"FileExtensions",".txt");
extraTXT = contains(tds.Files,"__MACOSX");
tds.Files(extraTXT) = [];
labels = filenames2labels(tds.Files,"ExtractBetween",[1 1]);
ii = 1;
eegData = cell(numel(labels),1);
while hasdata(tds)
tsTable = read(tds);
ts = tsTable.Var1;
eegData{ii} = reshape(ts,1,[]);
ii = ii+1;
end Hello, I’ve been trying to test different available codes to understand how to design an EEG seizure detection algorithm.
I would like to know how to change the code here: https://www.mathworks.com/help/wavelet/ug/time-frequency-convolutional-network-for-eeg-data-classification.html so I can use it fir the CHB MIT data (edf files) instead of txt files from the Bonn data set if possible. The section below in particular:
ds = tabularTextDatastore(dataDir,"IncludeSubfolders",true,"FileExtensions",".txt");
extraTXT = contains(tds.Files,"__MACOSX");
tds.Files(extraTXT) = [];
labels = filenames2labels(tds.Files,"ExtractBetween",[1 1]);
ii = 1;
eegData = cell(numel(labels),1);
while hasdata(tds)
tsTable = read(tds);
ts = tsTable.Var1;
eegData{ii} = reshape(ts,1,[]);
ii = ii+1;
end deep learning, eeg, eeg detection, edf files, neural network, matlab MATLAB Answers — New Questions