eeg data to move a motor
6 views (last 30 days)
Show older comments
Gabriel Enzo
on 22 Jun 2022
Commented: Gabriel Enzo
on 24 Jun 2022
hello, i want to ask about how to move the motor in wheelchair with eeg data that i processed in matlab, please help because it's quite stuck, maybe i will use arduino or matlab directly
4 Comments
Walter Roberson
on 22 Jun 2022
ANN? As in Artificial Neural Network?
So how is this going to work? You are going to record fixed length multiband segments of the user thinking some particular thought at some point during the segment, and you are going to create a list of what class (forward, back, left, right, stop, other) the recording represents, and you are going to train the neural network against that raw multiband data? With no filtering or feature extraction or pca or attempt to locate the beginning of the action in the signal?
Accepted Answer
Walter Roberson
on 23 Jun 2022
Create a numeric array in which each row is a different (fixed-length) eeg sample, and in which you have another variable which indicates which class number each row is associated with.
Then at the command line command
nprtool
and use the tool to design an ANN for classification purposes.
7 Comments
Walter Roberson
on 24 Jun 2022
Your sample code
[vec,ts] = inlet.pull_sample();
% and display it
fprintf('%.2f\t',vec);
fprintf('%.5f\n',ts);
is something that I recognize from some documentation I pointed you to the other day.
Notice that the values obtained are being returned as floating point in both cases -- vec is displayed with two decimal places and ts is displayed with 5 decimal places.
None of what is returned by pull_sample() has character strings.
Either there is a different way to read that kind of data, or else pull_sample is already parsing the character stream to extract values as numeric.
More Answers (0)
See Also
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!