selection_EEGepochs_2024_02_14.m 941 B

12345678910111213141516171819202122232425
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % G.V. Anguelova %
  3. % 08 november 2022; 20-02-2023 %
  4. % selectie van EEG epochs die na doorlopen van TWEEDE deep neuraal netwerk %
  5. % boven een bepaalde probability komen voor waarschijnlijk zijnde een %
  6. % epileptiforme afwijking %
  7. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  8. % clear
  9. % cd '/Users/galiaanguelova/Downloads/tryout/Ambulatory_Epi'
  10. % load('EEG_pred_2023_02_20_v2.mat', 'EEG_pred')
  11. [prob_val2,prob_idx2]=sort(EEG_pred(:,2)); % van laag naar hoog geordend, value en index
  12. prob_matrix2 = [prob_val2,prob_idx2];
  13. seizureLocation2_selectie = [];
  14. limit_selectie = 0.99;
  15. for k = 1:length(prob_matrix2)
  16. if prob_matrix2(k,1) > limit_selectie
  17. seizureLocation2_selectie = cat(1,seizureLocation2_selectie,prob_matrix2(k,:)); % variabele met alleen de geselecteerde indices
  18. end
  19. end