AGENT SKILL

affective-computing-basics

Measuring emotion from behavior and physiology — facial expression, voice, EDA, and self-report integration.

License 许可
MIT
所属仓库
TanNhatCMS/jarvis
最近更新
2026-11-07
Stars
★ 0
Forks
1

01 前言 Front Matter

name
affective-computing-basics
category
scientific
description
Measuring emotion from behavior and physiology — facial expression, voice, EDA, and self-report integration.

03 SKILL.md 正文

Overview

affective-computing-basics covers the scientific measurement of emotion and affect: self-report instruments, facial expression analysis, vocal prosody, and peripheral physiology (EDA, heart rate, respiration). It focuses on validity — what each channel actually indexes — because emotion measurement is where convenient proxies most often replace the construct.

The dimensional view (valence × arousal, plus dominance) organizes most measurement; discrete emotion categories ("basic emotions") are useful labels but contested as natural kinds. Measure dimensions; interpret categories cautiously.

When to use

  • Choosing emotion measures for an experiment: self-report vs behavior vs physiology.
  • Facial expression analysis: FACS/action units vs black-box "emotion AI" classifiers.
  • Vocal affect: prosodic features (pitch, intensity, rate) and their limits.
  • Physiology: EDA (arousal), HRV (regulatory capacity), startle/facial EMG (valence).
  • Multimodal integration: combining channels without double-counting.
  • Evaluating commercial "emotion recognition" claims.

Core concepts

  • Self-report: still the gold standard for experience. Validated scales (PANAS, SAM manikins, Geneva Emotion Wheel) measure felt affect directly. Limitations: introspection limits, demand characteristics, and retrospective bias — use momentary (EMA) over recalled reports when possible. Never treat a proxy as superior to self-report for subjective experience without evidence.
  • Dimensional vs discrete. Valence (pleasant-unpleasant) × arousal (calm-activated) captures most variance in affective responses. Discrete labels (anger, fear, joy) are folk categories with fuzzy boundaries — useful for communication, weak as measurement targets.
  • Facial expressions. FACS action units (AU4 brow lowerer, AU12 lip corner puller) are anatomically grounded and codable; automated AU detection is reasonably mature. Black-box "this face = angry" classifiers conflate expression with felt emotion — posed-expression training data doesn't generalize to spontaneous affect, and context dominates interpretation.
  • Vocal prosody. Mean/range of F0, intensity, speech rate, jitter/shimmer index arousal reliably; valence from voice alone is weak. Speaker normalization is essential; recording conditions (microphone, room) confound features.
  • EDA (skin conductance). Indexes sympathetic arousal — sensitive, but valence-blind (fear and excitement look identical). Measure: skin conductance responses (event-related peaks, 1-4 s latency) and tonic level. Confounds: temperature, humidity, movement, electrode drying. Always record a baseline and analyze change scores.
  • Cardiac measures. Heart rate (arousal/effort), HRV — RMSSD and high-frequency power index parasympathetic activity, associated with emotion regulation capacity. Needs clean ECG/PPG, controlled respiration (respiratory rate confounds HF-HRV), and ≥5 min recordings for trait HRV.
  • Facial EMG. Corrugator (frown) tracks negative valence, zygomaticus (smile) positive valence — more valence-sensitive than EDA. Invasive-feeling but the best peripheral valence measure available.
  • Multimodal integration. Channels disagree routinely (desynchrony is normal — experience, expression, and physiology decouple). Don't average them into one "emotion score"; model them as separate indicators of a latent state, and report divergence as a finding.

Practical workflow

  1. Define the affective target. Valence? Arousal? Specific appraisal? Pick measures that index that target (don't use EDA to study valence).
  2. Baseline. Resting baseline for every physiological channel, every session; control room temperature and time of day.
  3. Elicit. Validated stimuli (IAPS/NAPS images, film clips, music) with pilot-tested effectiveness; include neutral controls; randomize order.
  4. Record multimodally. Self-report (SAM/PANAS) + at least one behavioral + one physiological channel; synchronize timestamps.
  5. Preprocess. Artifact rejection per channel (movement in EDA, ectopic beats in ECG); baseline-correct; extract features in preregistered windows.
  6. Analyze. Channel-appropriate models; test convergence across channels; treat divergence as informative, not as error.
  7. Report. Stimulus validation data, preprocessing parameters, baseline procedures, and the validity evidence for each measure's claimed interpretation.

Common pitfalls

  • Treating commercial "emotion AI" labels as ground truth about felt emotion.
  • Using EDA (arousal-only) to claim valence effects.
  • Posed-expression datasets presented as spontaneous-emotion evidence.
  • Ignoring desynchrony — forcing channels to agree.
  • No baseline correction for physiology (individual differences swamp effects).
  • Retrospective emotion ratings treated as momentary experience.
  • Confounding emotion with attention, effort, or novelty (arousal is not specific).

04 同仓库更多 Skills

TanNhatCMS
TanNhatCMS/jarvis

web-scrape

Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.

★ 0
TanNhatCMS
TanNhatCMS/jarvis

design-taste-frontend

tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.

★ 0
TanNhatCMS
TanNhatCMS/jarvis

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code

★ 0
TanNhatCMS
TanNhatCMS/jarvis

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

★ 0
TanNhatCMS
TanNhatCMS/jarvis

requesting-code-review

Use when completing tasks, implementing major features, or before merging to verify work meets requirements

★ 0
TanNhatCMS
TanNhatCMS/jarvis

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

★ 0