In this activity, students will:
- Understand the basics of EEG signals and how they can indicate whether eyes are open or closed.
- Learn what features are in data and how feature extraction (like signal strength) helps classify EEG patterns.
- Explore how machine learning works by training a computer to recognize patterns in EEG data using the k-nearest neighbor algorithm.
- Practice building and testing a simple machine learning model to classify EEG data automatically.
- Evaluate and compare the accuracy and efficiency of human labeling vs. computer predictions.
Required MathWorks® Products (https://www.mathworks.com)
Other Materials
- Printed Activity Handout
- Colored markers or pens
- Open the Live Script titled: "EEG_Classification_Activity.mlx".
- Review introductory material on EEG data included in the Live Script.
- Instruct students to complete the activity handout ("EEG_Classification_Activity_Handout.pdf") and practice classifying EEG signals by hand (Part 1 of the Live Script). Once students have completed the activity, have students pair up or group up to discuss similarities or differences in how they classified the EEG signals.
- Guide students through Parts 2 and 3. Students will practice building, testing, and evaluating a simple machine learning model to classify EEG data in MATLAB.
- Guide students through the discussion (Part 4) to compare and contrast human labeling versus machine learning classification.
The license is available in the License.txt file in this GitHub repository.
Copyright 2025 The MathWorks, Inc.
