Логотип Affective Computing Emotion Ai

Affective Computing Emotion Ai

Сообщество
roedyrustam
affective-computing-emotion-ai

Affective computing, emotion AI, and multimodal sentiment analysis / Komputasi afektif, AI emosional, dan analisis sentimen multimodal.

Add to TypingMind

Обзор

Издательroedyrustam
Репозиторийvibes-plug
Название навыкаaffective-computing-emotion-ai
Звёзды
117
Форки
27
Файлы в комплекте
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — roedyrustam. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Affective Computing Emotion Ai в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/roedyrustam/vibes-plug/tree/main/skills/affective-computing-emotion-ai
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/roedyrustam/vibes-plug.git /tmp/vibes-plug
mkdir -p .claude/skills
cp -r /tmp/vibes-plug/skills/affective-computing-emotion-ai .claude/skills/affective-computing-emotion-ai
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Affective Computing Emotion Ai в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Affective Computing Emotion Ai, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Affective Computing Emotion Ai не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Affective Computing & Emotion AI (2026 Sovereign Edition)

English | Bahasa Indonesia


English

Executive Directive & The Empathic Interface Paradigm (2026 Shift)

Traditional software interfaces and chat systems treat human communication as flat, dry text syntax. In doing so, they miss up to 80% of human cognitive communication: vocal pitch variance, breathiness, speech rate, pause intervals, and facial micro-expressions. When an agitated user encounters an automated system that replies with cheerful conversational fluff and complex multi-layered cards, user frustration accelerates exponentially.

Affective Computing & Emotion AI equips autonomous AI agents and web interfaces with continuous biometric perception. By ingesting raw multimodal audio/video streams (Gemini Multimodal Live API, WebRTC bidirectional audio) and mapping real-time features into the continuous Russell 2D Circumplex Model of Affect (Valence-Arousal space), interfaces dynamically modulate their vocal prosody, interaction pacing, and layout density.


Orchestration & Integration

  • Upstream Orchestrators: Works under brainstorming and zero-to-prod-orchestrator (Phase 4 - AI Agents & Multimodal Pipelines).
  • Downstream Cooperating Skills:
    • voice-ai-realtime-agent — Bidirectional WebRTC audio transport and low-latency audio capture (<300ms).
    • ephemeral-generative-ui-architect — Dynamically re-render UI components according to calculated AffectVector.
    • ui-ux-pro-max — Ensure affective UI themes adhere to WCAG 2.2 AA contrast ratios.
    • ai-llm-integration-expert — Native multimodal token handling via Gemini Multimodal Live API.
    • session-memory-manager — Store ultra-compact session handoffs without retaining raw biometric PII.
    • anti-slop — Enforces zero robotic apologies and eliminates sycophancy when de-escalating.

Core Architectural Topologies

┌────────────────────────────────────────────────────────────────────────┐
│                   AFFECTIVE EMOTION AI PIPELINE                        │
├────────────────────────────────────────────────────────────────────────┤
│ 1. Raw Multimodal Input (PCM Audio Stream & Video Frames)              │
│                                  │                                     │
│                                  ▼                                     │
│ 2. Feature Extraction (Pitch Variance, Jitter, Shimmer, Pause Ratio)   │
│                                  │                                     │
│                                  ▼                                     │
│ 3. Russell 2D Circumplex Mapping: AffectVector(Valence, Arousal)       │
│                                  │                                     │
│        ┌─────────────────────────┼─────────────────────────┐           │
│        ▼                         ▼                         ▼           │
│  [High Stress / Agitated]   [Fatigued / Confused]     [Calm / Engaged] │
│  (A > 0.4, V < -0.2)        (A < -0.3, V < 0.1)       (A ~ 0.0, V > 0) │
│        │                         │                         │           │
│        ▼                         ▼                         ▼           │
│ 4. Adaptive Morphing        4. High-Contrast Focus    4. Rich Dynamic  │
│    • Collapse to 1 CTA         • Enlarge Typo (+20%)     • Exploratory │
│    • Soften Animations         • Direct Hints            • Multi-Tab   │
│    • Lower Agent Pitch         • Slow Pacing             • Live Charts │
└────────────────────────────────────────────────────────────────────────┘
1. The Russell 2D Circumplex Model of Affect

Affect is mapped to continuous floating-point coordinates $[-1.0, +1.0]$:

  • Valence ($V$): Semantic pleasantness (Negative = distressed/angry, Positive = pleased/delighted).
  • Arousal ($A$): Neurophysiological activation (Low = sleepy/calm, High = frenetic/alert).

$$\text{Emotion Quadrants}:$$

  • High Arousal, Negative Valence: Frustrated, Angry, Panic $\to$ Immediate cognitive de-escalation required.
  • Low Arousal, Negative Valence: Fatigued, Depressed, Bored $\to$ High-contrast clarity and structured guidance.
  • High Arousal, Positive Valence: Excited, Delighted $\to$ Fluid micro-animations and celebratory feedback.
  • Low Arousal, Positive Valence: Serene, Focused $\to$ Unobtrusive minimalism.
2. Three Sovereign Laws of Affective Interfaces
  1. Zero-STT Latency Principle: Affect detection MUST run directly on raw audio waveforms or multimodal token embeddings. Converting audio to text first destroys pitch and breathing telemetry.
  2. Dynamic UI De-escalation: When $V < -0.3$ and $A > 0.3$, the UI engine MUST suppress popups, banners, and decorative animations, collapsing to a single primary resolution card.
  3. Biometric Privacy Invariant: Raw audio samples and facial frames must be processed in ephemeral memory and discarded immediately. Only the anonymized AffectVector coordinate may be logged.

Production Implementation Blueprints

Blueprint 1: Multimodal Telemetry & Affective Engine (engine/affective-engine.ts)
typescript
export interface AcousticFeatures {
  pitchMeanHz: number;
  pitchVariance: number;
  speechRateWpm: number;
  pauseRatio: number; // 0.0 to 1.0 (silence vs speech)
  energyRms: number;
}

export interface AffectVector {
  valence: number; // -1.0 to +1.0
  arousal: number; // -1.0 to +1.0
  confidence: number; // 0.0 to 1.0
  dominantState: 'agitated' | 'fatigued' | 'calm' | 'delighted';
}

export interface UIAdaptationContract {
  theme: 'calm-slate' | 'high-contrast-focus' | 'vibrant-standard';
  layoutDensity: 'compact-single' | 'balanced' | 'exploratory-multi';
  animationSpringDamping: number; // Higher damping = less bounce/calmer
  speechPacingMultiplier: number; // 0.8 = slower agent speech
}

export class AffectiveEngine {
  public static computeAffectVector(features: AcousticFeatures): AffectVector {
    // Arousal correlates with pitch variance, speech rate, and energy RMS
    const rawArousal =
      (features.pitchVariance / 50) * 0.4 +
      ((features.speechRateWpm - 140) / 60) * 0.3 +
      (features.energyRms - 0.5) * 0.3;
    const arousal = Math.max(-1.0, Math.min(1.0, rawArousal));

    // Valence negatively correlates with excessive pause ratio and erratic jitter
    const rawValence = 0.5 - features.pauseRatio * 0.8 - (features.pitchVariance > 60 ? 0.3 : 0);
    const valence = Math.max(-1.0, Math.min(1.0, rawValence));

    let dominantState: AffectVector['dominantState'] = 'calm';
    if (arousal > 0.3 && valence < -0.1) dominantState = 'agitated';
    else if (arousal < -0.2 && valence < 0.1) dominantState = 'fatigued';
    else if (arousal > 0.2 && valence > 0.2) dominantState = 'delighted';

    return {
      valence: Number(valence.toFixed(2)),
      arousal: Number(arousal.toFixed(2)),
      confidence: 0.92,
      dominantState,
    };
  }

  public static deriveUIContract(affect: AffectVector): UIAdaptationContract {
    // Frustrated / Agitated User
    if (affect.dominantState === 'agitated') {
      return {
        theme: 'calm-slate',
        layoutDensity: 'compact-single',
        animationSpringDamping: 45, // Zero bounce, instant crispness
        speechPacingMultiplier: 0.85, // Slower, deeper conversational cadence
      };
    }

    // Fatigued / Confused User
    if (affect.dominantState === 'fatigued') {
      return {
        theme: 'high-contrast-focus',
        layoutDensity: 'compact-single',
        animationSpringDamping: 35,
        speechPacingMultiplier: 0.9,
      };
    }

    // Delighted / Exploratory User
    if (affect.dominantState === 'delighted') {
      return {
        theme: 'vibrant-standard',
        layoutDensity: 'exploratory-multi',
        animationSpringDamping: 22,
        speechPacingMultiplier: 1.05,
      };
    }

    // Default Balanced Baseline
    return {
      theme: 'vibrant-standard',
      layoutDensity: 'balanced',
      animationSpringDamping: 28,
      speechPacingMultiplier: 1.0,
    };
  }
}

Blueprint 2: Gemini Multimodal Live Audio Stream Processor (engine/gemini-live-affect.ts)
typescript
import { GoogleGenAI } from '@google/genai';
import { AffectiveEngine, AffectVector } from './affective-engine';

export class GeminiLiveAffectProcessor {
  private ai: GoogleGenAI;

  constructor(apiKey: string) {
    this.ai = new GoogleGenAI({ apiKey });
  }

  public async createEmpathicLiveSession(onAffectCalculated: (affect: AffectVector) => void) {
    const sessionConfig = {
      generationConfig: {
        responseModalities: ['AUDIO'],
        speechConfig: {
          voiceConfig: {
            prebuiltVoiceConfig: { voiceName: 'Puck' },
          },
        },
      },
      systemInstruction: [
        'You are an empathic, emotionally attuned system sentinel.',
        'Analyze user pitch variability, cadence, and breathiness from raw audio frames.',
        'Continuously emit JSON markers containing estimated valence and arousal coordinates.',
        'If the user sounds agitated, adopt a grounding, calm, low-frequency tone with shorter sentences.',
      ].join('\n'),
    };

    // Availability Fallback Invariant: Gemini 4 Argon -> Gemini 3.8 Flash
    try {
      return await this.ai.models.createWebsocketSession({
        model: 'gemini-4-argon',
        config: sessionConfig,
      });
    } catch {
      return await this.ai.models.createWebsocketSession({
        model: 'gemini-3.8-flash',
        config: sessionConfig,
      });
    }
  }
}

Blueprint 3: Adaptive Generative UI Container (components/affective/adaptive-container.tsx)
tsx
'use client';

import React, { useMemo } from 'react';
import { AffectiveEngine, AffectVector } from '../../engine/affective-engine';

interface AdaptiveContainerProps {
  affect: AffectVector;
  children: React.ReactNode;
}

export function AdaptiveContainer({ affect, children }: AdaptiveContainerProps) {
  const adaptation = useMemo(() => AffectiveEngine.deriveUIContract(affect), [affect]);

  const themeClasses = {
    'calm-slate': 'bg-slate-950 text-slate-100 border-slate-800',
    'high-contrast-focus': 'bg-black text-neutral-50 border-neutral-700',
    'vibrant-standard': 'bg-white dark:bg-neutral-900 text-neutral-900 dark:text-neutral-50 border-neutral-200/80 dark:border-neutral-800',
  }[adaptation.theme];

  return (
    <div
      role="region"
      aria-live="polite"
      className={`min-h-[400px] w-full p-6 rounded-2xl border transition-colors duration-500 ease-out shadow-xs ${themeClasses}`}
    >
      {/* Telemetry Indicator */}
      <div className="flex items-center justify-between pb-4 mb-4 border-b border-inherit opacity-75">
        <div className="flex items-center gap-2">
          <div
            className={`w-2 h-2 rounded-full ${
              affect.dominantState === 'agitated'
                ? 'bg-rose-500 animate-ping'
                : affect.dominantState === 'fatigued'
                ? 'bg-amber-500'
                : 'bg-emerald-500'
            }`}
          />
          <span className="text-[11px] font-semibold uppercase tracking-wider">
            Cognitive State: {affect.dominantState}
          </span>
        </div>
        <div className="text-[11px] font-mono tabular-nums">
          V: {affect.valence > 0 ? `+${affect.valence}` : affect.valence} | A: {affect.arousal > 0 ? `+${affect.arousal}` : affect.arousal}
        </div>
      </div>

      {/* Main Content Area with Adaptive Density */}
      <div className={adaptation.layoutDensity === 'compact-single' ? 'max-w-xl mx-auto' : 'w-full'}>
        {children}
      </div>
    </div>
  );
}

Sovereign Execution, Token Efficiency & Invariants

DimensionSovereign Mandate & Deterministic Contract
Frontier Model CascadeMedium / High (Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast)
Availability FallbackGemini 4 Argon/Pro -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Zero unhandled missing-model errors)
KV-Cache & Token ProtocolPin static instructions & schemas at prompt prefix (kv-cache-prefix-optimizer); pass surgical CONTEXT_MAP.md slices (<250 tokens/call) during Swarm Fan-Out
SaaT CLI & MCP DispatchCLI: vibes skill exec affective-computing-emotion-ai <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate
NFR & Anti-Slop InvariantsLCP < 1.8s, INP < 100ms, CLS < 0.05, 1px crisp borders, 3-tier radius (6px/8px/12px), tabular-nums, 5-state interactive contract; 100% complete zero-placeholder output verified via node scripts/check-anti-slop.js --strict


Bahasa Indonesia

Direktif Eksekutif & Paradigma Antarmuka Empatik (Pergeseran 2026)

Antarmuka perangkat lunak dan sistem chat konvensional hanya memproses teks datar. Dengan cara ini, sistem kehilangan hingga 80% komunikasi kognitif manusia: variasi nada suara, desahan nafas, tempo bicara, jeda hening, dan ekspresi mikro wajah. Ketika pengguna yang sedang panik atau frustrasi menghadapi AI yang merespons dengan basa-basi panjang dan tata letak UI yang ramai, kemarahan pengguna akan meningkat tajam.

Komputasi Afektif & AI Emosional membekali agen AI otonom dan antarmuka web dengan persepsi biometrik real-time. Dengan memproses aliran audio/video mentah (Gemini Multimodal Live API, WebRTC audio dua arah) dan memetakan sinyal ke dalam ruang koordinat kontinu Model Sirkumpleks 2D Russell (Valence-Arousal), sistem secara dinamis memodulasi nada suara agen, tempo bicara, dan kepadatan antarmuka pengguna.


Integrasi Orkestrasi

  • Orkestrator Hulu: Beroperasi di bawah arahan brainstorming dan zero-to-prod-orchestrator (Fase 4 - Agen AI & Pipeline Multimodal).
  • Skill Hilir & Kerja Sama:
    • voice-ai-realtime-agent — Transport audio WebRTC dua arah berlatensi rendah (<300ms).
    • ephemeral-generative-ui-architect — Menyesuaikan tata letak komponen UI secara reaktif terhadap AffectVector.
    • ui-ux-pro-max — Menjamin kepatuhan rasio kontras WCAG 2.2 AA.
    • ai-llm-integration-expert — Penanganan token multimodal via Gemini Multimodal Live API.
    • session-memory-manager — Menyimpan checkpoint sesi tanpa menyimpan rekaman suara biometrik pribadi.
    • anti-slop — Meniadakan permintaan maaf robotik dan basa-basi saat melakukan de-eskalasi emosi.

3 Hukum Utama Antarmuka Afektif

  1. Prinsip Latensi Nol-STT: Deteksi emosi wajib dilakukan langsung pada gelombang audio mentah (raw waveform). Mengubah suara menjadi teks terlebih dahulu akan membuang intonasi dan desahan nafas.
  2. De-eskalasi UI Dinamis: Ketika terdeteksi frustrasi tinggi ($V < -0.3$ dan $A > 0.3$), UI wajib menonaktifkan pop-up atau animasi berlebih dan menyederhanakan tampilan menjadi satu kartu aksi penyelesaian utama.
  3. Privasi Biometrik Mutlak: Aliran audio mentah diproses secara efemeral di memori dan langsung dibuang setelah analisis. Hanya koordinat numerik AffectVector yang boleh dicatat.

Matriks Eksekusi Berdaulat, Efisiensi Token & Invarian

DimensiMandat Berdaulat & Kontrak Deterministik
Kaskade Model FrontierMedium / High (Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast)
Invarian Fallback KetersediaanGemini 4 Argon/Pro -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Bebas gagal saat model belum tersedia/kuota penuh)
Protokol Hemat Token & KV-CacheKunci instruksi & skema statis di prefix awal (kv-cache-prefix-optimizer); kirim potongan CONTEXT_MAP.md (<250 token/panggilan) saat Fan-Out
Eksekusi SaaT CLI & MCPCLI: vibes skill exec affective-computing-emotion-ai <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate
Invarian NFR & Anti-SlopLCP < 1.8s, INP < 100ms, CLS < 0.05, border tegas 1px, radius 3-tier (6px/8px/12px), tabular-nums, kontrak interaktif 5-state; kode 100% tuntas tanpa placeholder diverifikasi melalui node scripts/check-anti-slop.js --strict

Часто задаваемые вопросы

Что делает навык ИИ Affective Computing Emotion Ai?

Affective computing, emotion AI, and multimodal sentiment analysis / Komputasi afektif, AI emosional, dan analisis sentimen multimodal.

Зачем использовать Affective Computing Emotion Ai в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Affective Computing Emotion Ai — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Affective Computing Emotion Ai в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/roedyrustam/vibes-plug/tree/main/skills/affective-computing-emotion-ai. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Affective Computing Emotion Ai?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Affective Computing Emotion Ai?

С любым количеством. В TypingMind вы можете использовать Affective Computing Emotion Ai с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Affective Computing Emotion Ai?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — roedyrustam. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇