Skip to content

Repository files navigation

GUARDIAN ANGEL – Real-Time Emotion-Aware Monitoring System

A multi-modal IoT + Affective Computing system for real-time emotional well-being support.


Overview

GUARDIAN ANGEL is an IoT-based emotion-aware monitoring system designed to provide real-time emotional feedback using physiological biosignals.

The system continuously monitors Heart Rate Variability (HRV) and Electrodermal Activity (EDA/GSR), classifies the user's emotional state using Machine Learning, and delivers personalized ambient feedback through lighting and audio.

The solution integrates ESP32 sensing, AWS cloud services, and Raspberry Pi automation to create a complete real-time emotion monitoring system.


Key Features

  • Real-time HRV and EDA/GSR monitoring using ESP32
  • MQTT-based communication with AWS IoT Core
  • Emotion classification using an LSTM model
  • Serverless prediction with AWS Lambda
  • Raspberry Pi-based ambient feedback system
  • RGB LED and audio control based on detected emotion
  • User stop button for manual interruption
  • End-to-end IoT architecture

System Architecture

1. Edge Layer (ESP32)

  • Reads physiological sensor data
  • Publishes data securely using MQTT

2. Cloud Layer

  • AWS IoT Core receives sensor data
  • AWS Lambda performs emotion prediction using the trained model

3. Local Layer (Raspberry Pi)

  • Retrieves prediction results
  • Controls RGB LEDs
  • Plays emotion-specific audio
  • Supports manual stop functionality

Physiological Signals

  • Heart Rate Variability (HRV)
  • Electrodermal Activity (EDA/GSR)

These physiological indicators are used to estimate the user's emotional state.


Hardware Components

  • ESP32 Development Board
  • MAX30102 Pulse Sensor
  • GSR/EDA Sensor
  • Raspberry Pi
  • RGB LED
  • Speaker
  • Push Button

Cloud Services

  • AWS IoT Core
  • AWS Lambda
  • MQTT Protocol
  • ThingSpeak

Machine Learning

The project uses an LSTM-based neural network for emotion classification.

Predicted Emotions

Class Emotion
0 Neutral
1 Happy
2 Sad
3 Stress

Ambient Feedback

Emotion LED Audio
Neutral Blue Calm Music
Happy Green Happy Music
Sad Cyan Relaxing Music
Stress Red Stress Relief Audio

Project Workflow

  1. ESP32 collects HRV and GSR data.
  2. Sensor data is transmitted to AWS IoT Core.
  3. AWS Lambda predicts the emotional state.
  4. Raspberry Pi receives the prediction.
  5. LEDs and audio are adjusted according to the detected emotion.
  6. The user can stop the feedback using the physical button.

Repository Structure

Emotion-Aware-Rooms
│
├── ESP32-controller_code.ino
├── data_preprocessing.py
├── dataset_lstm.py
├── lstm_train.py
├── lambda_function.py
├── raspby_room_control.py
├── NODEMCU-CIRCUIT.png
├── RASPBERRY-CIRCUIT.png
├── README.md

Technologies Used

  • Python
  • Arduino (ESP32)
  • Raspberry Pi
  • AWS IoT Core
  • AWS Lambda
  • MQTT
  • ThingSpeak
  • TensorFlow / Keras
  • LSTM
  • Machine Learning

Applications

  • Smart Homes
  • Healthcare Monitoring
  • Elderly Care
  • Student Wellness
  • Emotion-Aware Automation
  • Ambient Assisted Living

Future Enhancements

  • Mobile application
  • Web dashboard
  • Real-time analytics
  • Cloud database integration
  • Multiple emotion detection models
  • Voice emotion recognition
  • Wearable device integration

Conclusion

GUARDIAN ANGEL demonstrates how IoT, cloud computing, and machine learning can work together to create an intelligent emotion-aware monitoring system. By combining physiological sensing with automated ambient feedback, the system provides a scalable foundation for smart wellness applications.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages