Back To Projects

AI Detection of Emotions through EEG

Srinivas S.

We proceeded to develop a recurrent neural network (RNN) model structure that could analyze an individual’s brain waves and predict their emotional condition.


Electroencephalogram (EEG) brain waves are an extremely important resource for clinical analysis and diagnosis of mental health and other psychiatric diseases. They help current diagnosis of these diseases, as clinics use the external behavior of a patient and the psychiatrist’s qualitative reasoning to determine what disease the patient has. However, this approach does not examine internal activity in the brain, and is not uniformly quantifiable. EEG provides a means for psychiatrists to do this, however, this process can be complicated because the variability in EEG signals. Machine Learning (ML) provides a means to analyze these complex data. A computational tool that can recognize patterns in EEG signals would be a valuable starting point in diagnosis psychiatric disorders. We proceeded to develop a recurrent neural network (RNN) model structure that could analyze an individual’s brain waves and predict their emotional condition. We used the EEG Brainwave Dataset: Feeling Emotions dataset, which contains various statistical features of the EEG brain waves of two different test subjects as they were experiencing different emotions. We extracted frequency domain features, converted them to the time domain, and filtered them. We trained a gated recurrent unit (GRU) model from these filtered and attained a 96.95% validation accuracy.

Explore More!

Source Code
Srinivas S.
Nima Leclerc
UPenn PhD in Electrical Engineering

Related Projects

A Logistic Regression Model for Intraoperative Hypotension Prediction

This paper presents a study on using a logistic regression model for the prediction of intraoperative hypotension, a common but critical situation occurring during surgeries where the patient's blood pressure drops significantly.
Maryam A.
Mentored by
Sleep Stage Classification: Investigating Deep Learning with High Dataset Imbalance Under Temporal Interval Change and Data Imbalance Techniques

This study investigates automated sleep stage classification using a CNN-GRU architecture, demonstrating that three-channel multimodal data and longer temporal contexts (60s and 90s) improve classification performance compared with two-channel and 30s approaches. The findings support ASSC as an efficient and accurate alternative to manual sleep scoring, with the best-performing model achieving a macro F1 score of 0.78 ± 0.02.
Ochir J.
Mentored by Joe Xiao
Developing a novel 3D GNN and Random Forest Regression model for screening and predicting potential oxide electrocatalysts with greater accuracy and computational efficiency

Phase 1 of my research evaluated the Dimenet++ model and Graphormer 3D Transformer model on a subset of the OC20 (Open Catalyst 2020) IS2RE dataset to analyze the relationship between a 3D Transformer and a GNN, and establish a baseline model that can be used to compare to Phase 2.
Stanley C.
Mentored by