import React from 'react'; import { motion } from 'framer-motion'; import { Smile, Brain, AlertTriangle, Gamepad2, Accessibility, Heart, Shield, CheckCircle2 } from 'lucide-react'; import ClickReveal from './ClickReveal'; import KeyTermBadge from './KeyTermBadge'; import { EmotionFaceDemo } from './AnimatedDiagram'; export const chapter3Slides = [ // Slide 1: What is Emotion Recognition? { content: (

What is Emotion Recognition?

Chapter 3 • Slide 1 of 5

teaches computers to understand how people are feeling by looking at their faces!

Just like you can tell when a friend is happy, sad, or surprised, AI can learn to read these same expressions — and it's getting really good at it!

Humans can recognize emotions in just 100 milliseconds — that's faster than the blink of an eye! AI is learning to match this speed.

) }, // Slide 2: The 7 Emotions { content: (

The 7 Basic Emotions

What AI learns to detect

{[ { emoji: "😊", label: "Happy", color: "from-yellow-400 to-orange-400" }, { emoji: "😢", label: "Sad", color: "from-blue-400 to-indigo-400" }, { emoji: "😠", label: "Angry", color: "from-red-400 to-rose-400" }, { emoji: "😨", label: "Fear", color: "from-purple-400 to-violet-400" }, { emoji: "😲", label: "Surprise", color: "from-pink-400 to-fuchsia-400" }, { emoji: "🤢", label: "Disgust", color: "from-green-400 to-lime-400" }, { emoji: "😐", label: "Neutral", color: "from-gray-400 to-slate-400" } ].map((emotion, i) => ( {emotion.emoji} {emotion.label} ))}

These 7 emotions are called emotions!

These 7 emotions are recognized across all cultures! A smile means happiness whether you're in Tokyo, New York, or Cairo.

) }, // Slide 3: How the Model Reads Faces { content: (

How AI Reads Faces

The technical magic explained

48×48 Pixels

The AI looks at tiny images — just 48 by 48 pixels! That's smaller than most emojis.

Pattern Recognition

The model looks for patterns: raised eyebrows = surprise, frown + lowered brows = anger, upturned mouth = happy!

Confidence Scores

The AI gives a score for each emotion, like "85% happy, 10% neutral, 5% surprise."

) }, // Slide 4: Real-World Uses { content: (

Real-World Applications

Where emotion AI helps

{[ { icon: Gamepad2, title: "Video Games", description: "Games can adapt to your mood! If you look frustrated, the game might offer hints. If you're having fun, it might increase the challenge.", color: "from-purple-500 to-pink-500" }, { icon: Heart, title: "Smart Assistants", description: "Virtual assistants might change their tone based on your mood — being more upbeat when you're sad or calmer when you're stressed.", color: "from-red-500 to-rose-500" }, { icon: Accessibility, title: "Accessibility", description: "Helps people with autism or other conditions understand facial expressions better through real-time feedback.", color: "from-emerald-500 to-teal-500" } ].map((item, i) => (

{item.title}

{item.description}

))}

Film studios use emotion recognition to test audience reactions to trailers and scenes before movies are released!

) }, // Slide 5: Chapter Summary { content: (
🌟

Chapter Complete!

You've mastered Emotion Recognition

Remember

Just because AI can do something doesn't mean it should. Always use emotion recognition responsibly!

What You Learned

{[ { icon: "😊", text: "Emotion AI detects 7 basic facial expressions" }, { icon: "🖼️", text: "It uses small grayscale images (48×48 pixels)" }, { icon: "🎮", text: "Applications include games, assistants, and accessibility" }, { icon: "⚖️", text: "Ethics and privacy are crucial considerations" } ].map((item, i) => (
{item.icon}

{item.text}

))}
🎯
5
Slides Completed
😊
7
Emotions Tracked
🖼️
48×48
Pixel Size
) } ];