AI Exam Stress Detector

by aishwarynarayan in Workshop > Hydroponics

21 Views, 1 Favorites, 0 Comments

AI Exam Stress Detector

Screenshot 2026-05-29 231835.png

The AI Exam Stress Detector is an innovative project developed using PictoBlox and Artificial Intelligence. It detects the stress level of students during examinations by analyzing facial expressions through a webcam. The system uses AI-based emotion recognition to identify emotions such as fear, sadness, anger, and happiness. Based on the detected emotion, it calculates the stress percentage and provides smart suggestions to help students stay calm and focused. This project promotes mental wellness and demonstrates the practical use of AI in education and student health monitoring.

Supplies

Material Used:

  1. Pictoblox - A Coding Software
  2. Face Detection Extension
  3. Text-to-Speech Extension

Open PictoBlox

Screenshot (56).png

Open PictoBlox

Create a New Project

Select:

  1. Stage Mode
  2. Python not required for this version


Add Extensions

Screenshot (57).png
Screenshot (58).png

Click Add Extension and add:

  1. Face Detection
  2. Text to Speech


Variables to Create

Screenshot 2026-05-30 000818.png

Create these variables:

  1. emotion
  2. stress
  3. status
  4. faces

Start Camera

Screenshot 2026-05-30 000913.png
Screenshot 2026-05-30 001000.png

when green flag clicked


turn video ON

set video transparency to 0

Detect Face

Screenshot 2026-05-30 001025.png

forever


if <face detected?> then

Detect Emotion

Screenshot 2026-05-30 001130.png

set [emotion] to (detected emotion)

Stress Calculation Logic : Happy

Screenshot 2026-05-30 001206.png

if <(emotion) = [happy]> then


set [stress v] to (10)


set [status v] to [CALM]

Neutral

Screenshot 2026-05-30 001650.png

if <(emotion) = [neutral]> then


set [stress v] to (40)


set [status v] to [NORMAL]

SAD

Screenshot 2026-05-30 001507.png

if <(emotion) = [sad]> then


set [stress v] to (70)


set [status v] to [STRESSED]

Angry

Screenshot 2026-05-30 001723.png

if <(emotion) = [angry]> then


set [stress v] to (80)


set [status v] to [HIGH STRESS]

Fear

Screenshot 2026-05-30 001753.png

if <(emotion) = [fear]> then


set [stress v] to (90)


set [status v] to [PANIC]

Show Stress on Screen

Screenshot 2026-05-30 001831.png

say (join [Stress Level : ] (stress))


say (join [Status : ] (status))

Smart Suggestions : High Stress

Screenshot 2026-05-30 001930.png

if <(stress) > (70)> then


speak [Please relax and take deep breaths]

Medium Stress

Screenshot 2026-05-30 002025.png

if <(stress) > (40)> then


speak [Stay calm and focused]

Low Stress

Screenshot 2026-05-30 002059.png