脳波を用いた特徴抽出のプログラムを理解したい

3 次查看(过去 30 天)
天地
天地 2022-12-14
こちらの記事を参考に脳波の特徴抽出を行なったのですが途中のプログラムの処理が理解できないです。
記事の内容としては手の運動中の脳波を4パターンに分類する。というものです。
私が知りたいことは最初の変数のWindow,Overlap,Qのそれぞれの変数の意味についてです。
私の考えとしてはWindowはフレームの長さ(500点間隔)
Overlapはフレームの長さに対して95ずつオーバーラップする
というものです。しかしQの意味と
Window,Overlapのそれぞれについて私の予想がが正しいかどうか知りたく質問させていただきました。
以下のプログラムは脳波の特徴を抽出しデータセットを作成するプログラムになります。
Window = 500;
Overlap = 95;
Q = idivide(int16(length(LB)), int16(Window));
% LeftBackward
for ii = 1:(100/(100-Overlap))*Q-1
Mean(ii) = mean(LB( (100/(100-Oveap))*ii : (100/(100-Overlap))*ii+Window-1) );
Std(ii) = std(LB( (100/(100-Overlap))*ii : (100/(100-Overlap))*ii+Window-1) );
y = fft(LB( (100/(100-Overlap))*ii : (100/(100-Overlap))*ii+Window-1) );
power = abs(y).^2/Window;
DeltaPower(ii) = mean(power(2:5)); % delta wave
ThetaPower(ii) = mean(power(5:9)); % theta wave
AlphaPower(ii) = mean(power(9:14)); % alpha wave
BetaPower(ii) = mean(power(14:21)); % beta wave
Peak2Peak(ii) = peak2peak(LB( (100/(100-Overlap))*ii : (100/(100-Overlap))*ii+Window-1) );
Label(ii) = "LeftBackward";
end
ご回答いただけると幸いです。
  1 个评论
Walter Roberson
Walter Roberson 2022-12-14
Approximate translation:
I used this article as a reference to extract the features of the EEG, but I cannot understand the processing of the program in the middle. The content of the article classifies brain waves during hand movement into four patterns. That's what it means. What I want to know is the meaning of each of the Window, Overlap and Q variables in the first variable. In my opinion Window is the length of the frame (500 point intervals) Overlap overlaps the length of the frame by 95. That's what it means. But the meaning of Q an dI would like to ask whether my predictions for Window and Overlap are correct.
I would appreciate it if you could answer.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 EEG/MEG/ECoG 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by