OpenAHBU: Open-sourced Automatic Human Behaviour Understanding Toolkit Through Facial Behaviour Analysis

Zijian Wu, Yupeng Huo, Cheng Luo, Yichen Huang, Junan Long, Haijun Lin, Lu Liu, Hatice Gunes, Bernard Ghanem, Siyang SongarXiv 2026

Imagine you’re sitting in a crowded cafe, people-watching. You see a friend’s brow furrow, a stranger’s quick micro-smile, or the weary slump of a colleague’s eyes. Instinctively, you’re performing a complex calculation: decoding muscle movements into emotions, and emotions into deeper states like pain, fatigue, or even personality traits.

For years, computer scientists have tried to build a "digital eye" that can do the same. But most existing tools are like specialized lenses—one might see the geometry of your nose, while another tries to guess if you’re happy, but they rarely talk to each other. They are often closed-source, finicky to set up, or fail the moment they step out of the lab and into the messy real world.

Enter OpenAHBU, a new, fully open-sourced toolkit designed to be the "Swiss Army knife" of human behavior understanding.

TL;DR

OpenAHBU is a comprehensive, open-source toolkit that decodes human behavior through facial analysis across 11 different functions—ranging from simple muscle movements to complex psychological traits like depression and personality. By using a clever "synergy" module where different tasks help each other out, it achieves state-of-the-art accuracy while remaining flexible enough to run on everything from a high-end server to a resource-constrained mobile device.

What Problem Does This Paper Address?

The field of Automatic Facial Behaviour Understanding (AFBU) is currently a bit of a fragmented mess. If you’re a researcher or an engineer, you usually face three hurdles:

  1. Scope: Most tools only do one thing (like detecting "Action Units" or facial landmarks) and ignore the "why" behind the movement.
  2. Generalization: A model trained on one specific group of people in a lab often fails when it sees a different face in different lighting.
  3. Accessibility: Many high-performing tools are commercial (expensive and "black boxes") or have broken, incomplete code repositories.

The authors of OpenAHBU wanted to build a unified, robust, and "plug-and-play" system that bridges the gap between raw physical data (where are the eyes?) and deep psychological insights (is this person depressed?).

Methods

The researchers didn't just train one giant model; they built an entire ecosystem.

The Three Levels of Understanding: OpenAHBU operates on a hierarchy. It starts with short-term attributes (landmarks and muscle "Action Units"), moves to short-term states (pain levels and emotional valence), and finally reaches for long-term traits (depression severity and the "Big Five" personality traits).

The Secret Sauce: SMTE The most innovative part of the system is the Synergistic Multi-task Enhancement (SMTE) module. Think of it as a "buddy system" for AI. If the model is trying to detect a specific muscle movement (like a lip corner puller), it asks for help from the "Expression" model. If the expression model says "this person is smiling," the muscle detector becomes much more confident.

Fig. 3: Schematic illustration of the proposed Synergistic Multi-Task Enhancement (SMTE) module. Left: SMTE de- tails for three different conditions. The ”snowflake” and ”flame” icons denote frozen parameters to preserve pre- trained representations and learnable modules, respectively. Right: Example application of the SMTE. The user selects the FAUD as the target function, while the SMTE selects its best activated support function SFER. Then, the given image/video is processed by both FAUD and SFER, fol- lowed by SMTE refining the FAUD predictions using the SFER predictions.

Scalable Architecture: Recognizing that not everyone has a supercomputer, they developed at least four different versions of each model. You can choose a "lightweight" version for real-time processing on a laptop or a "high-capacity" version for maximum precision in a research setting.

Datasets

To ensure the toolkit actually works in the real world, the authors trained it on a massive "comprehensive corpus" aggregating 28 different academic datasets. This includes well-known benchmarks like AffectNet (for expressions), BP4D and DISFA (for muscle movements), and Aff-Wild2 (for in-the-wild behavior). By blending these datasets, they forced the models to learn universal facial patterns rather than just memorizing one specific dataset's quirks.

Key Insights and Ideas

  • Context is King: The "Aha!" moment here is that facial tasks are deeply interdependent. A "furrowed brow" means something different during a math test than it does during a painful medical procedure. SMTE captures this context mathematically.
  • The Generalization Gap: The paper proves that training on a "mega-corpus" of multiple datasets significantly reduces the "Coefficient of Variation"—meaning the tool's performance stays stable across different types of faces and environments.
  • Openness as a Feature: By releasing the training scripts, pre-trained weights, and a user-friendly GUI, the authors are treating "reproducibility" as a core technical requirement, not an afterthought.
Fig. 2: Overview of the proposed OpenAHBU toolkit which supports: (a) three types of face images/videos analysis; (b) 11 multi-level human facial behaviour and psychological state understanding; (c) enhancing function performances by modelling inter-dependencies between them; (d) four types of result visualisation/output; and (e) flexible deployment on Windows, Linux and MacOS.

Key Results

OpenAHBU was put head-to-head against the heavyweights of the field (like OpenFace and LibreFace) and came out on top:

  • Superior Accuracy: It improved the mean performance by 38.8% for Action Unit detection and 36.0% for expression recognition compared to the next best toolkit.
  • Synergy Boost: The SMTE module provided consistent gains. For example, Action Unit detection improved by 1.56% just by "listening" to the expression recognition model.
  • Stability: It showed the lowest performance fluctuation across different datasets, proving it’s much more reliable for real-world use.

Limitations and Future Work

While OpenAHBU is a massive leap forward, the authors are honest about its current boundaries:

  • Facial-Only: Currently, the tool only looks at the face. It doesn't yet incorporate body language or voice, which are also huge parts of human behavior.
  • Single-Support SMTE: Right now, the synergy module only lets one task help another at a time. Future versions might allow a "council" of tasks to all help each other simultaneously.
  • Real Personality: While it estimates "apparent" personality (how others see you), the "real" personality recognition function is still in the research phase and not yet ready for high-stakes deployment.

The team plans to expand into multi-modal analysis (adding sound and body movement) and continue updating the models as new deep-learning architectures emerge. For now, OpenAHBU stands as a powerful, open window into the complexities of the human face.

Summary updated

Abstract

Automatic facial behaviour understanding (AFBU) is fundamental to various human-centred applications, yet existing academically available toolkits offer limited functionality, closed training pipelines, and weak generalisation. This paper presents OpenAHBU, a fully open-sourced, generalisable toolkit integrating 11 AFBU functions across three semantic levels: (i) short-term external facial attributes, including landmarks, blendshapes, Action Units, and expressions; (ii) short-term facial behaviour-related human psychological states, including valence/arousal and pain; and (iii) long-term facial behaviour-related psychological traits, including depression and personality. Particularly, we re-developed eight functions, where at least four deep learning models covering different computational complexities are developed for each function, providing flexible deployment on resource-constrained and high-throughput computing scenarios. More importantly, models of most functions are trained on a comprehensive corpus aggregating multiple academically available datasets, ensuring robust cross-dataset generalisability.In addition, we include a Synergistic Multi-task Enhancement (SMTE) module to efficiently and adaptively enhance each OpenAHBU function by leveraging the complementary cues contained in its most-related support function's predictions.Extensive evaluations demonstrate that our OpenAHBU outperformed existing open-source toolkits not only in functional coverage but also the predictive performances, while providing superior deployment flexibility across diverse computational scenarios.With fully publicly available training and inference scripts, pre-trained weights, user-friendly GUI, Python library, and cross-platform compatibility, our OpenAHBU provides a reproducible, scalable and extensible toolkit at https://github.com/OpenAHBU/OpenAHBU.
BibTeX
@misc{wu2026openahbu,
  author = {Zijian Wu and Yupeng Huo and Cheng Luo and Yichen Huang and Junan Long and Haijun Lin and Lu Liu and Hatice Gunes and Bernard Ghanem and Siyang Song},
  title = {{OpenAHBU: Open-sourced Automatic Human Behaviour Understanding Toolkit Through Facial Behaviour Analysis}},
  year = {2026},
  eprint = {2611.27862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27862},
}
Figure