Design and Implementation of an Electroencephalography System for Emotion Recognition

Authors

  • Ghufran M. Fahad University of Wasit, College of Engineering, Department of Electrical Engineering, Wasit, Iraq
  • Manaf K. Hussein
  • Riyadh A. Abbas
  • Ali AL-SSherbaz

DOI:

https://doi.org/10.31185/wjes.Vol14.Iss1.789

Keywords:

Electroencephalography, Emotion recognition, STM32F103C8T6, Support vector machine

Abstract

Emotions directly affect essential functions in human cognition, decision-making, and interactions. Any change in a person’s emotions can lead to different patterns in brain wave signals. Electroencephalography (EEG) is one of the key methods used to measure the brain's electrical activity. Emotion identification through EEG data has become a crucial element of human-computer interaction. Recently, the increasing need for monitoring brain activity has been measured by EEG devices, and the high price of these devices, which are not accessible outside of the laboratory for personal use, has prompted the development of low-cost wearable EEG devices. This paper introduces the design and implementation of an EEG system using available and low-cost components. This EEG system applies to emotion identification using the STM32F103C8T6 microcontroller, two-stage amplifiers, and filtering by bandwidth of (0.5-48) Hz. These data are logged and processed using MATLAB 2024, where Power Spectral Density (PSD) is applied for feature extraction and then the Support Vector Machine (SVM) for emotion detection, such as boredom, calm, fear, and happiness. Results show that this system can achieve an accuracy of a range between (79-83) % for the four emotion classifications. This study concludes by summarizing the practical importance of Electroencephalography (EEG) signals in emotion recognition, focusing on its potential for future applications.

References

[1] F. Fürbass, M. A. Kural, G. Gritsch, M. Hartmann, T. Kluge, and S. Beniczky, “An artificial intelligence-based EEG algorithm for detection of epileptiform EEG discharges: Validation against the diagnostic gold standard,” Clin. Neurophysiol., vol. 131, no. 6, pp. 1174–1179, 2020, doi: 10.1016/j.clinph.2020.02.032. DOI: https://doi.org/10.1016/j.clinph.2020.02.032

[2] R. Anand, N. Radharapu, P. Pradhan, and R. Birok, “Removal of EOG Artefact from EEG â€" A Review,” Adv. Transdiscipl. Eng., vol. 27, pp. 477–484, 2022, doi: 10.3233/ATDE220783. DOI: https://doi.org/10.3233/ATDE220783

[3] M. Hamada, B. B. Zaidan, and A. A. Zaidan, “A Systematic Review for Human EEG Brain Signals Based Emotion Classification, Feature Extraction, Brain Condition, Group Comparison,” J. Med. Syst., vol. 42, no. 9, 2018, doi: 10.1007/s10916-018-1020-8. DOI: https://doi.org/10.1007/s10916-018-1020-8

[4] C. Yu and M. Wang, “Survey of emotion recognition methods using EEG information,” Cogn. Robot., vol. 2, no. May, pp. 132–146, 2022, doi: 10.1016/j.cogr.2022.06.001. DOI: https://doi.org/10.1016/j.cogr.2022.06.001

[5] S. Cano, N. Araujo, C. Guzman, C. Rusu, and S. Albiol-Pérez, “Low-cost assessment of user experience through EEG signals,” IEEE Access, vol. 8, pp. 158475–158487, 2020, doi: 10.1109/ACCESS.2020.3017685. DOI: https://doi.org/10.1109/ACCESS.2020.3017685

[6] T. Uktveris and V. Jusas, “Development of a modular board for eeg signal acquisition,” Sensors (Switzerland), vol. 18, no. 7, 2018, doi: 10.3390/s18072140. DOI: https://doi.org/10.3390/s18072140

[7] N. S. Suhaimi, J. Mountstephens, and J. Teo, “A Dataset for Emotion Recognition Using Virtual Reality and EEG (DER-VREEG): Emotional State Classification Using Low-Cost Wearable VR-EEG Headsets,” Big Data Cogn. Comput., vol. 6, no. 1, 2022, doi: 10.3390/bdcc6010016. DOI: https://doi.org/10.3390/bdcc6010016

[8] R. Pillalamarri and U. Shanmugam, “A review on EEG-based multimodal learning for emotion recognition,” Artif. Intell. Rev., vol. 58, no. 5, 2025, doi: 10.1007/s10462-025-11126-9. DOI: https://doi.org/10.1007/s10462-025-11126-9

[9] E. H. Houssein, A. Hammad, and A. A. Ali, “Human emotion recognition from EEG-based brain–computer interface using machine learning: a comprehensive review,” vol. 34, no. 15. Springer London, 2022. doi: 10.1007/s00521-022-07292-4. DOI: https://doi.org/10.1007/s00521-022-07292-4

[10] S. Shilaskar, S. Bhatlawande, R. Kulkarni, and T. Lonkar, “Brain Computer Interface for Emotion Recognition Based on EEG Signal,” ITM Web of Conferences 53, 01001,2023, doi:10.1051/itmconf/20235301001 DOI: https://doi.org/10.1051/itmconf/20235301001

[11] A. Attia, K. Amin, and mina ibrahim, “Machine Learning Algorithms for Enhancing Emotion Recognition from EEG Signals,” IJCI. Int. J. Comput. Inf., vol. 0, no. 0, pp. 0–0, 2023, doi: 10.21608/ijci.2023.199502.1099. DOI: https://doi.org/10.21608/ijci.2023.199502.1099

[12] B. Mouazen, A. Benali, N. T. Chebchoub, E. H. Abdelwahed, and G. De Marco, “Enhancing EEG-Based Emotion Detection with Hybrid Models : Insights from DEAP Dataset Applications,” pp. 1–22, 2025, doi:10.3390/s25061827. DOI: https://doi.org/10.20944/preprints202501.0956.v1

[13] A. Samavat, E. Khalili, B. Ayati, and M. Ayati, “Deep Learning Model with Adaptive Regularization for EEG-Based Emotion Recognition Using Temporal and Frequency Features,” IEEE Access, vol. 10, pp. 24520–24527, 2022, doi: 10.1109/ACCESS.2022.3155647. DOI: https://doi.org/10.1109/ACCESS.2022.3155647

[14] A. Yazdani, J. S. Lee, and T. Ebrahimi, “Implicit emotional tagging of multimedia using EEG signals and brain computer interface,” 1st ACM SIGMM Int. Work. Soc. Media, WSM’09, Co-located with 2009 ACM Int. Conf. Multimedia, MM’09, pp. 81–88, 2009, doi: 10.1145/1631144.1631160. DOI: https://doi.org/10.1145/1631144.1631160

[15] P. Zhong, D. Wang, and C. Miao, “EEG-Based Emotion Recognition Using Regularized Graph Neural Networks,” IEEE Trans. Affect. Comput., vol. 13, no. 3, pp. 1290–1301, 2022, doi: 10.1109/TAFFC.2020.2994159. DOI: https://doi.org/10.1109/TAFFC.2020.2994159

[16] Y. Qin, Y. Zhang, Y. Zhang, S. Liu, and X. Guo, “Application and Development of EEG Acquisition and Feedback Technology: A Review,” Biosensors, vol. 13, no. 10, 2023, doi: 10.3390/bios13100930. DOI: https://doi.org/10.3390/bios13100930

[17] J. N. Acharya, A. Hani, J. Cheek, P. Thirumala, and T. N. Tsuchida, “American Clinical Neurophysiology Society Guideline 2: Guidelines for Standard Electrode Position Nomenclature,” J. Clin. Neurophysiol., vol. 33, no. 4, pp. 308–311, 2016, doi: 10.1097/WNP.0000000000000316. DOI: https://doi.org/10.1097/WNP.0000000000000316

[18] D. Information, “TL08xx JFET-Input Operational Amplifiers,” vol. 082, 2015.

[19] H. A. Hamzah and K. K. Abdalla, “EEG-based emotion recognition systems; comprehensive study,” Heliyon, vol. 10, no. 10, p. e31485, 2024, doi: 10.1016/j.heliyon.2024.e31485. DOI: https://doi.org/10.1016/j.heliyon.2024.e31485

[20] E. Maiorana, J. Solé-Casals, and P. Campisi, “EEG signal preprocessing for biometric recognition,” Mach. Vis. Appl., vol. 27, no. 8, pp. 1351–1360, 2016, doi: 10.1007/s00138-016-0804-4. DOI: https://doi.org/10.1007/s00138-016-0804-4

[21] P. Tawheed, J. Mollick, N. Sakib, and M. K. Islam, “Development of a Low-cost PC-based Single-channel EEG Acquisition System for Educational and Research Purpose,” IEEE Reg. 10 Humanit. Technol. Conf. R10-HTC, vol. 2021-Septe, no. October, 2021, doi: 10.1109/R10-HTC53172.2021.9641637. DOI: https://doi.org/10.1109/R10-HTC53172.2021.9641637

[22] S. Hagihira, “Brain mechanisms during course of anesthesia: What we know from EEG changes during induction and recovery,” Front. Syst. Neurosci., vol. 11, no. May, pp. 1–5, 2017, doi: 10.3389/fnsys.2017.00039. DOI: https://doi.org/10.3389/fnsys.2017.00039

[23] V. Asanza, E. Peláez, F. Loayza, L. L. Lorente-Leyva, and D. H. Peluffo-Ordóñez, “Identification of Lower-Limb Motor Tasks via Brain–Computer Interfaces: A Topical Overview,” Sensors, vol. 22, no. 5, pp. 1–24, 2022, doi: 10.3390/s22052028. DOI: https://doi.org/10.3390/s22052028

[24] S. Koelstra et al., “DEAP: A database for emotion analysis; Using physiological signals,” IEEE Trans. Affect. Comput., vol. 3, no. 1, pp. 18–31, 2012, doi: 10.1109/T-AFFC.2011.15. DOI: https://doi.org/10.1109/T-AFFC.2011.15

[25] Z. Li, Y. Zeng, T. Fan, Y. Lv, and J. Ren, “Source separation method of machine faults based on post-nonlinear blind source separation,” Proc. World Congr. Intell. Control Autom., pp. 1786–1789, 2008, doi: 10.1109/WCICA.2008.4594464. DOI: https://doi.org/10.1109/WCICA.2008.4594464

[26] B. Sabarigiri and D. Suganyadevi, “A Hybrid Pre-Processing Techniques for Artifacts Removal to Improve the Performance of Electroencephalogram ( EEG ) Features Extraction,” vol. 3, no. 3, pp. 2087–2092, 2014.

[27] H. Liu, Y. Zhang, Y. Li, and X. Kong, “Review on Emotion Recognition Based on Electroencephalography,” Front. Comput. Neurosci., vol. 15, no. October, pp. 1–15, 2021, doi: 10.3389/fncom.2021.758212. DOI: https://doi.org/10.3389/fncom.2021.758212

[28] N. Ahmadzadeh Nobari Azar, N. Cavus, P. Esmaili, B. Sekeroglu, and S. Aşır, “Detecting emotions through EEG signals based on modified convolutional fuzzy neural network,” Sci. Rep., vol. 14, no. 1, pp. 1–13, 2024, doi: 10.1038/s41598-024-60977-9. DOI: https://doi.org/10.1038/s41598-024-60977-9

[29] M. Murugappan, “Proceedings : 2013 IEEE 9th International Colloquium on Signal Processing and Its Applications, CSPA 2013, 8-10 March 2013, Berjaya Times Square Hotel, Kuala Lumpur, Malaysia,” 2013 IEEE 9th Int. Colloq. Signal Process. Its Appl. CSPA, pp. 8–10, 2013.

[30] E. Ratti, S. Waninger, C. Berka, G. Ruffini, and A. Verma, “Comparison of medical and consumer wireless EEG systems for use in clinical trials,” Front. Hum. Neurosci., vol. 11, no. August, pp. 1–7, 2017, doi: 10.3389/fnhum.2017.00398. DOI: https://doi.org/10.3389/fnhum.2017.00398

[31] J. Zhang, M. Chen, S. Zhao, S. Hu, Z. Shi, and Y. Cao, “ReliefF-based EEG sensor selection methods for emotion recognition,” Sensors (Switzerland), vol. 16, no. 10, pp. 1–15, 2016, doi: 10.3390/s16101558. DOI: https://doi.org/10.3390/s16101558

[32] X. Li, D. Song, P. Zhang, Y. Zhang, Y. Hou, and B. Hu, “Exploring EEG features in cross-subject emotion recognition,” Front. Neurosci., vol. 12, no. MAR, 2018, doi: 10.3389/fnins.2018.00162. DOI: https://doi.org/10.3389/fnins.2018.00162

[33] E. S. Pane, A. D. Wibawa, and M. H. Pumomo, “Channel Selection of EEG Emotion Recognition using Stepwise Discriminant Analysis,” 2018 Int. Conf. Comput. Eng. Netw. Intell. Multimedia, CENIM 2018 - Proceeding, no. 4, pp. 14–19, 2018, doi: 10.1109/CENIM.2018.8711196. DOI: https://doi.org/10.1109/CENIM.2018.8711196

[34] S. J. and A. Ra’ad, “Comparison of Preprocessing Algorithms using an Affordable EEG Headset,” Int. J. Comput. Appl., vol. 160, no. 1, pp. 25–31, 2017, doi: 10.5120/ijca2017912949. DOI: https://doi.org/10.5120/ijca2017912949

Downloads

Published

2026-03-01

Issue

Section

Electrical Engineering

How to Cite

M. Fahad, G., Manaf K. Hussein, Riyadh A. Abbas, & Ali AL-SSherbaz. (2026). Design and Implementation of an Electroencephalography System for Emotion Recognition. Wasit Journal of Engineering Sciences, 14(1), 51-63. https://doi.org/10.31185/wjes.Vol14.Iss1.789