Understanding Emotional Body Expressions via Large Language Models

Haifeng Lu, Jiuyi Chen, Feng Liang, Mingkui Tan, Runhao Zeng, Xiping Hu · DOI

Abstract

Recognizing human emotions from 3D skeleton data remains a significant challenge due to the "black box" nature of existing models and the heterogeneity of available datasets. We present the Emotion-Action Interpreter (EAI-LLM), a framework that leverages Large Language Models (LLMs) to classify and explain emotional body language. By treating skeleton sequences as specialized linguistic tokens, EAI-LLM achieves state-of-the-art accuracy and provides nuanced, human-readable justifications for its emotional assessments.

Introduction

While machine learning has made strides in emotion recognition from facial and vocal cues, body language analysis often struggles with environmental factors like poor lighting or distance. Furthermore, current 3D skeleton-based methods typically lack explainability—they can identify a "sad" posture but cannot articulate the specific movements that led to that conclusion. Additionally, the field is fragmented by datasets with varying joint configurations and frame rates. EAI-LLM addresses these issues by utilizing the reasoning capabilities of LLMs to bridge the gap between raw motion data and descriptive emotional vocabulary.

Methodology: The EAI-LLM Framework

The EAI-LLM architecture treats 3D skeleton sequences as unique input tokens for a LLaMA-7B model. The framework introduces three core components to handle the complexity of motion data:

  1. Multi-Granularity Skeleton Tokenizer (MGST): This module extracts two distinct token types: Semantic Tokens for global classification and Spatio-temporal Tokens for capturing detailed movement trajectories necessary for descriptive tasks.
  2. Unified Skeleton Token (UST) Module: To handle dataset heterogeneity, the UST module employs a masking mechanism that allows the model to process varying joint counts and sequence lengths within a single, unified language space.
  3. Skeleton-Language Alignment: A contrastive learning framework aligns the skeleton feature space with the LLM’s linguistic space, ensuring the model correctly associates movement patterns with emotional terms.
The EAI-LLM architecture, featuring the Multi-Granularity Skeleton Tokenizer (MGST) and Unified Skeleton Token (UST) modules.

The model is fine-tuned using Low-Rank Adaptation (LoRA) to maintain computational efficiency while leveraging the LLM's pre-trained common-sense reasoning.

Experimental Setup and Datasets

The model was evaluated across three major 3D skeleton datasets: Emilya (daily actions with 8 emotions), KDAE (actor recordings with 7 emotions), and EGBM (emotional gestures). To facilitate the "interpreter" functionality, the authors manually annotated a subset of 279 samples with fine-grained textual descriptions of emotional actions, creating a new benchmark for explainable motion analysis.

Discussion: Insights into Motion and Language

Several key findings emerged from the development of EAI-LLM:

  • Skeleton as a Language: Treating heterogeneous 3D data as "dialects" allowed for successful joint training. Knowledge transfer between datasets improved overall performance.
  • Token Specialization: Semantic tokens are optimized for classification accuracy, whereas spatio-temporal tokens are essential for generating high-quality textual descriptions.
  • Task Ordering: The sequence of training matters significantly. Training the model on description tasks before recognition tasks yielded the best results, preventing catastrophic forgetting of recognition capabilities.

Results

EAI-LLM demonstrates performance comparable to or exceeding specialized state-of-the-art models like CTR-GCN. Notably, joint training via the UST module provided a significant boost in classification accuracy, as shown in the performance metrics below.

Performance comparison of token types across different datasets under separate and joint training regimes.

Beyond raw accuracy, EAI-LLM provides superior explainability. In qualitative comparisons, it outperformed general-purpose models like GPT-4 and Gemini 1.5 Pro in generating descriptions that accurately reflected the input 3D motion.

Limitations and Future Work

Despite its strengths, EAI-LLM faces challenges common to LLMs, such as hallucinations (e.g., describing facial "frowns" not present in skeleton data). There are also occasional semantic mismatches where the model uses a human-accurate synonym (like "distressed" for "anxious") that is technically penalized in strict classification benchmarks. Future research will focus on more robust evaluation protocols and methods to mitigate hallucinated features.

Summary updated

BibTeX
@inproceedings{lu2025understanding,
  author = {Haifeng Lu and Jiuyi Chen and Feng Liang and Mingkui Tan and Runhao Zeng and Xiping Hu},
  title = {{Understanding Emotional Body Expressions via Large Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=ZpuwRyVpUe},
}
Figure