GM-GReFEL: Geometry-Guided Spatiotemporal State-Space Learning for Robust Dynamic Facial Expression Recognition
Organizations: Department of Electrical Engineering, National Taiwan University of Science and Technology, Taipei 106335, Taiwan
Abstract
Recognizing facial expressions in unconstrained video suffers from two coupled problems: self-attention grows quadratically in cost with clip length, and crowdsourced labels are noisy. We present GM-GReFEL, a spatiotemporal state-space network with a geometry-aware decision stage. Its Modulated GroupMamba backbone replaces a spatiotemporal Vision Transformer. Six channel groups are scanned separately, four over the frame plane and two over time, so the cost grows linearly with sequence length (); after each layer, a Channel Affinity Modulation gate mixes the groups again. On top of the backbone, a GReFEL reliability module turns the normalized entropy of each prediction into a mixing weight between the classifier output and a vote from trainable geometric anchors, so that facial geometry counts for more when the network is unsure. The model is initialized by static-to-dynamic weight transfer and trained with a Triple Loss. In five-fold cross-validation, the best fold scores 66.57%/76.46% UAR/WAR on DFEW, 0.3 points or less below the strongest compared method, and 45.66%/62.27% on MAFW, ahead of all compared methods; on FERV39k the mean over five splits, 42.30%/52.66%, is competitive. The five-fold means are 64.07%/74.54% on DFEW, on par with recent large pre-trained models, and 38.90%/54.37% on MAFW, below the best of them. A paired -test on DFEW indicates a modest benefit of temporal modeling (+1.61 UAR points, one-sided ). Attention stays on plausible facial regions, and latency is close to a ViT-B/16 baseline (47.4 vs.\ 46.8 ms per clip). Code: https://github.com/ardiytama/GroupMamba-DFER.
Figures & tables
| Configuration | WAR (%) | UAR (%) |
|---|---|---|
| GM-GReFEL (full) | 73.46 1.21 | 64.69 1.68 |
| w/o Temporal Modeling | 73.59 1.28 | 63.08 1.70 |
| w/o Trainable Anchors (frozen) | 74.69 1.19 | 64.95 2.20 |
| GroupMamba-SSM depth | 74.58 1.49 | 64.94 1.53 |
| w/ Single-Stage Training | 74.80 1.37 | 64.40 2.00 |
| w/o Jittered Sampling | 74.73 1.52 | 64.68 1.90 |
| Hyperparameter | Values tested | Best | UAR / WAR (%) |
|---|---|---|---|
| Dropout | 0, 0.25, 0.5, 0.75 | 0.75 | 64.10 / 74.93 |
| Layers | 1, 3, 5 | 1 | 64.19 / 75.69 |
| (center) | 0, 0.1, 1, 10 | 10 | 64.02 / 75.95 |
| (orth.) | 0, 0.1, 1, 10 | 10 | 64.08 / 75.69 |
| Temperature | 0.01, 0.05, 0.1, 0.5 | 0.10 | 65.20 / 75.22 |
| Dataset | Mean UAR | Std UAR | Mean WAR | Std WAR |
|---|---|---|---|---|
| DFEW | 64.07% | 1.80 | 74.54% | 1.54 |
| FERV39k | 42.30% | 0.84 | 52.66% | 0.69 |
| MAFW | 38.90% | 5.65 | 54.37% | 6.35 |
| Method | H | S | N | A | Sp | D | F | UAR | WAR |
|---|---|---|---|---|---|---|---|---|---|
| C3D [ 18 ] | 75.1 | 39.4 | 55.1 | 62.4 | 45.0 | 1.3 | 20.5 | 42.7 | 53.5 |
| P3D [ 19 ] | 74.8 | 43.4 | 54.1 | 60.4 | 50.9 | 0.6 | 23.2 | 43.9 | 54.4 |
| I3D [ 20 ] | 78.6 | 44.1 | 56.6 | 55.8 | 45.8 | 2.0 | 20.5 | 43.4 | 54.2 |
| R(2+1)D18 [ 21 ] | 79.6 | 39.0 | 57.6 | 50.3 | 48.2 | 3.4 | 21.0 | 42.7 | 53.2 |
| 3D ResNet18 [ 22 ] | 73.1 | 48.2 | 50.5 | 64.7 | 50.1 | 0.0 | 26.3 | 44.7 | 54.9 |
| ResNet18+LSTM [ 2 ] | 78.0 | 40.6 | 53.7 | 56.8 | 45.0 | 4.1 | 21.6 | 42.8 | 53.0 |
| Method | WAR | UAR |
|---|---|---|
| C3D [ 18 ] | 31.69 | 22.68 |
| P3D [ 19 ] | 33.39 | 23.20 |
| I3D [ 20 ] | 38.78 | 30.17 |
| R(2+1)D18 [ 21 ] | 41.28 | 31.55 |
| 3D ResNet18 [ 22 ] | 37.57 | 26.67 |
| R18+LSTM [ 1 ] | 42.95 | 30.92 |
| Method | WAR | UAR |
|---|---|---|
| Former-DFER [ 23 ] | 43.27 | 31.16 |
| T-MEP [ 31 ] | 52.85 | 39.37 |
| DFER-CLIP [ 32 ] | 52.55 | 39.89 |
| EmoCLIP [ 33 ] | 41.46 | 34.24 |
| A 3 lign-DFER [ 34 ] | 53.24 | 42.07 |
| SVFAP [ 35 ] | 54.28 | 41.19 |
| Method (Sampling)/Backbone | DFEW | FERV39k | MAFW | |||
| UAR | WAR | UAR | WAR | UAR | WAR | |
| EC-STFL (TI)/C3D+P3D [ 2 ] | 45.3 | 56.5 | – | – | – | – |
| Former-DFER (DS)/Trans. [ 23 ] | 53.6 | 65.7 | 37.2 | 46.8 | 31.1 | 43.2 |
| CEFLNet (CLIP)/ResNet-18 [ 40 ] | 51.1 | 65.3 | – | – | – | – |
| NR-DFERNet (DS)/CNN-Trans. [ 26 ] | 54.2 | 68.1 | 33.9 | 45.9 | – | – |
| STT (DS)/ResNet-18 [ 24 ] | 54.5 | 66.6 | 37.7 | 48.1 | – | – |
| Metric | GM-GReFEL | ViT-B/16 | |
|---|---|---|---|
| Total Params | 155.99 M | 147.69 M | +8.30 M (+5.6%) |
| GFLOPs | 539.62 | 548.75 | |
| FPS (clips/s) | 21.1 | 21.4 | ( ) |
| Latency (ms) | 47.4 | 46.8 | +0.6 |
| Method | Backbone | Params (M) | GFLOPs |
|---|---|---|---|
| M3DFEL [ 28 ] | ResNet-18-3D | 37.5 | 58.0 |
| SVFAP-B [ 35 ] | ViT-B/16 | 78.0 | 44.0 |
| MAE-DFER [ 37 ] | ViT-B/16 | 85.0 | 50.0 |
| VideoMAE [ 17 ] | ViT-B/16 | 86.0 | 82.0 |
| S4D [ 39 ] | ViT-B/16 (MoAE) | 90.0 | – |
| A 3 lign-DFER [ 34 ] | CLIP-ViT-L/14 | – | – |
| Yudhistira Arditya Pratama received the B.S. degree in Mechatronics Engineering from Politeknik Elektronika Negeri Surabaya (PENS), Surabaya, Indonesia, and the M.S. degree in Electrical Engineering from National Taiwan University of Science and Technology (NTUST), Taipei, Taiwan. He is currently pursuing the Ph.D. degree in Electrical Engineering at NTUST. His research interests include computer vision, dynamic facial expression recognition, spatiotemporal state-space modeling, and underwater image processing. |
| Yi-Zeng Hsieh (Senior Member, IEEE) received the B.S., M.S., and Ph.D. degrees in computer science and information engineering from National Central University, Taoyuan City, Taiwan, in 2004, 2006, and 2012, respectively. He is currently a Professor with the Department of Electrical Engineering, National Taiwan University of Science and Technology, Taipei, Taiwan. He has authored or coauthored more than 100 journal and refereed conference papers. His research interests include deep learning, machine learning, neural networks, pattern recognition, image processing, computer vision, and swarm intelligence. He is a Senior Member of both the IEEE Consumer Technology Society and the IEEE Signal Processing Society, and was recognized as an Outstanding Young Scholar by the IEEE Consumer Technology Society in 2023. |
Facial Expression Recognition
Facial Expression Recognition studies how computers infer emotion and facial actions from images and video.
See all 79 papers