Nils Klüwer

Research

Publication · ACM CHI EA 2025

Context over Categories: Implementing the Theory of Constructed Emotion with LLM-Guided User Analysis

Author: Nils Kluewer · Yokohama, Japan · ACM Digital Library

A context-aware LLM pipeline based on Lisa Feldman Barrett's Theory of Constructed Emotion.

Abstract and keywords

Keywords: Context Aware Computing; Emotion Analysis; Human-Computer Interaction; Large Language Models (LLMs); Online Content Moderation

Emotion analysis is a critical research area with applications in content moderation and personalized systems. Many existing approaches rely on Ekman’s universal emotions theory, which reduces emotions to static categories, neglecting their complexity and contextual variability. This work introduces a novel, context-aware approach based on Lisa Feldman Barrett’s Theory of Constructed Emotion. A key contribution is the development of the “context sphere,” a personalized construct derived from user behavior data. To our knowledge, this is the first operationalization for computational methods. A context-aware emotion analysis pipeline was developed, incorporating advanced Large Language Model (LLM) prompting strategies like role-play and controlled generation. A case study in content moderation demonstrates how the “context sphere” enables contextually aware emotion analyses. Future directions include refining the framework, advancing LLM methodologies, and conducting user studies. This research lays the foundation for more human-centered, ethical, and effective emotion analysis systems.

Master thesis · TU Wien

Context over categories: implementing the theory of constructed emotion

Author: Nils Kluewer · TU Wien, Vienna · TU Wien Repositum

Computational operationalization via the "context sphere", a user-specific construct for emotion analysis.

Abstract and keywords

Keywords: Emotion Analysis; Theory of Constructed Emotion; LLM; Context Sphere; Context-Aware Emotion Analysis; Lisa Feldman Barrett; LLM Guidance; LLM Prompting; Online Content Moderation; Emotion Classification

Emotion analysis is a critical research area with applications ranging from content moderation to personalized systems. Despite its importance, many approaches rely on traditional models, such as Ekman’s universal emotions theory, which reduces emotions to static, predefined categories. This oversimplification neglects the complexity and contextual variability of human emotions. Drawing on Lisa Feldman Barrett’s Theory of Constructed Emotion introduces a novel, context-aware approach to emotion analysis. A central contribution is the development of the “context sphere”, a personalized construct derived from user behavior data. To our knowledge, this is the first operationalization of Barrett’s theory for computational methods, enabling the dynamic modeling of emotions as emergent and context-dependent phenomena. The Design Science Research methodology is employed to develop a context-aware emotion analysis pipeline, which utilizes advanced Large Language Model (LLM) prompting strategies, including Role-Play prompting and Controlled Generation, to align with constructed emotion principles. A case study in online content moderation demonstrates the feasibility of this approach, showing that the “context sphere” facilitates nuanced and contextually aware emotion analyses that surpass traditional model limitations. Furthermore, a Semi-Structured Interview evaluation with five participants revealed strong alignment, with all participants agreeing that the LLM-generated analysis closely matched their perceptions based on the “context sphere”. Although minor disagreements regarding individual words were noted, there was no consistency across participants in these discrepancies. These findings suggest that the pipeline successfully analyzes user emotions using the Theory of Constructed Emotion without relying on distinct labels. This work bridges advancements in cognitive science and computer science to propose a novel, context-aware approach to emotion analysis. Challenges in evaluating such analyses without a definitive ground truth are discussed, and future directions include refining the “context sphere,” enhancing LLM-guided methodologies for emotion analysis, and integrating different user studies. This research lays the groundwork for developing more nuanced, context-sensitive emotion analysis systems, opening new avenues for human-centered, ethical, and effective applications in technology.

Speaking

Talks on what works when teams deploy LLMs and coding agents in production, grounded in daily engineering practice.

Talk · Rheinwerk "Coding mit KI" 2026

FOMO, Hype und Alltag – KI-Engineering bei der REWE Group

Speaker: Nils Klüwer, REWE Group · Online conference · June 23, 2026

How teams adopt agentic engineering in practice at REWE Group, based on lessons from production projects instead of rigid rules.

Abstract in German and keywords

Keywords: Agentic Engineering; LLMs; Agentic Systems; AI Adoption; Software Development

LLMs und agentische Systeme versprechen Produktivitätsgewinne, Automatisierung, »10x Engineers« und neue Formen der Softwareentwicklung. Gleichzeitig entwickeln sich Ansätze und Methoden für agentisches Programmieren sehr dynamisch und uneinheitlich weiter. In kurzer Taktung erscheinen neue Modelle, die Benchmarks schlagen und bestehende Annahmen infrage stellen. Häufig bestimmt dabei FOMO statt klarer Orientierung den Entwicklungsalltag. In diesem Vortrag teilt Nils Klüwer Erfahrungen aus dem Analytics Umfeld der REWE Group – konkret aus dem Bereich AI Strategy & Enablement. Dabei zeigt er auf, wie Agentic Engineering aktiv eingesetzt und auf dieser Basis schrittweise in die Organisation getragen und enabled wird. Der Fokus liegt bewusst auf Learnings aus realen Projekten: was im Alltag hilft, wo Grenzen sichtbar werden und warum Agentic Engineering aktuell nicht über starre Regeln, sondern als Lern- und Adoptionsprozess verstanden wird – mit dem Ziel produktiver Softwareentwicklung.