Emotional State Detection Using Electroencephalogram Signals: A Genetic Algorithm Approach

Rosa A. García-Hernández, José M. Celaya-Padilla, Huizilopoztli Luna-García, Alejandra García-Hernández, Carlos E. Galván-Tejada, Jorge I. Galván-Tejada, Hamurabi Gamboa-Rosales, David Rondon, Klinge O. Villalba-Condori

Research output: Contribution to journalArticlepeer-review

3 Scopus citations


Emotion recognition based on electroencephalogram signals (EEG) has been analyzed extensively in different applications, most of them using medical-grade equipment in laboratories. The trend in human-centered artificial intelligence applications is toward using portable sensors with reduced size and improved portability that can be taken to real life scenarios, which requires systems that efficiently analyze information in real time. Currently, there is no specific set of features or specific number of electrodes defined to classify specific emotions using EEG signals, and performance may be improved with the combination of all available features but could result in high dimensionality and even worse performance; to solve the problem of high dimensionality, this paper proposes the use of genetic algorithms (GA) to automatically search the optimal subset of EEG data for emotion classification. Publicly available EEG data with 2548 features describing the waves related to different emotional states are analyzed, and then reduced to 49 features with genetic algorithms. The results show that only 49 features out of the 2548 can be sufficient to create machine learning (ML) classification models with, using algorithms such as k-nearest neighbor (KNN), random forests (RF) and artificial neural networks (ANN), obtaining results with 90.06%, 93.62% and 95.87% accuracy, respectively, which are higher than the 87.16% and 89.38% accuracy of previous works.

Original languageEnglish
Article number6394
JournalApplied Sciences (Switzerland)
Issue number11
StatePublished - Jun 2023


  • ANN
  • KNN
  • RF
  • affective computing
  • electroencephalogram
  • emotion recognition
  • genetic algorithms


Dive into the research topics of 'Emotional State Detection Using Electroencephalogram Signals: A Genetic Algorithm Approach'. Together they form a unique fingerprint.

Cite this