Abstract

Automated pattern recognition of brain signals can bring about new experiences, enhancing applications in a wide array of areas. One of its fields of study is the recognition of emotions via electroencephalography (EEG), which shows exclusive advantages compared to other methods. However, research with brain-computer interfaces (BCI) is usually structured in two sequential stages: data collection and data analysis. These stages leave a gap in the perspective of a functional system in a production environment since the practitioner needs to wait a considerable length of time until they can see the results of the current activity. An on-line classification system of emotions (positive, neutral, and negative) was developed using open resources in this work. Five machine learning models were trained with the SEED IV dataset, which is labeled with different emotions. The models were trained and tested using nested cross-validation and grid search to obtain the best hyperparameters. The algorithm implementation in Python was integrated with the OpenBCI software to capture the EEG signals, process them, and command the simulations. The best average accuracy obtained for a single subject was 76.19%, and the average accuracy for all subjects was 57.07%. The average execution time for signal processing and prediction, combined, was around one millisecond, which demonstrates the potential for applications with real-time characteristics.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call