Skip to main content
. 2024 Jun 29;24(13):4234. doi: 10.3390/s24134234
Algorithm 1 Algorithm for feature extraction
  • Input: EEG database N=Nns, where n is the number of EEG channels, s means the number of subjects.

  • Output: RGB map of cwPLI+SaEn

  •    for p=1 to s do

  •       preprocess the EEG signal

  •       dataset D=Dd segmented each Nnp into epochs of 1 s

  •       PLIp calculate the PLI matrix of each Nnp

  •       for i=1 to n do

  •         for j=1 to n do

  •            wij calculate the correlation weight of each PLIij in PLIp matrix

  •         end for

  •       end for

  •       wwij

  •    end for

  •    for m=1 to d do

  •       PLIm calculate the PLI of each Dm

  •       cwPLImPLIm×w

  •       SaEnm calculate the SaEn of each Dm

  •       (cwPLI+SaEn) mPLIm+SaEnm

  •    end for

  •    Convert cwPLI+SaEn to RGB map

  •    return Outputs