Learning Multi-dimensional Edge Feature-based AU Relation Graph for Facial Action Unit Recognition
Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence. Main Track. Pages 1239-1246.
https://doi.org/10.24963/ijcai.2022/173
Keywords
- Computer Vision: Action and Behaviour Recognition
- Computer Vision: Biometrics, Face, Gesture and Pose Recognition
- Machine Learning: Multi-label
- Computer Vision: Representation Learning
- Machine Learning: Sequence and Graph Learning
Abstract
The activations of Facial Action Units (AUs) mutually influence one another. While the relationship between a pair of AUs can be complex and unique, existing approaches fail to specifically and explicitly represent such cues for each pair of AUs in each facial display. This paper proposes an AU relationship modelling approach that deep learns a unique graph to explicitly describe the relationship between each pair of AUs of the target facial display. Our approach first encodes each AU's activation status and its association with other AUs into a node feature. Then, it learns a pair of multi-dimensional edge features to describe multiple task-specific relationship cues between each pair of AUs. During both node and edge feature learning, our approach also considers the influence of the unique facial display on AUs' relationship by taking the full face representation as an input. Experimental results on BP4D and DISFA datasets show that both node and edge feature learning modules provide large performance improvements for CNN and transformer-based backbones, with our best systems achieving the state-of-the-art AU recognition results. Our approach not only has a strong capability in modelling relationship cues for AU recognition but also can be easily incorporated into various backbones. Our PyTorch code is made available at https://github.com/CVI-SZU/ME-GraphAU.
- [Bresson and Laurent, 2017] Xavier Bresson and Thomas Laurent. Residual gated graph convnets. arXiv preprint arXiv:1711.07553, 2017.
- [Churamani et al., 2021] Nikhil Churamani, Sinan Kalkan, and Hatice Gunes. Aula-caps: Lifecycle-aware capsule networks for spatio-temporal analysis of facial actions. In IEEE International Conference on Automatic Face and Gesture Recognition (FG), pages 01-08, 2021.
- [Corneanu et al., 2018] Ciprian Corneanu, Meysam Madadi, and Sergio Escalera. Deep structure inference network for facial action unit recognition. In Proceedings of the Euro- pean Conference on Computer Vision (ECCV), pages 298- 313, 2018.
- [Deng et al., 2009] Jia Deng, Wei Dong, Richard Socher, Li- Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 248-255, 2009.
- [Eleftheriadis et al., 2015] Stefanos Eleftheriadis, Ognjen Rudovic, and Maja Pantic. Multi-conditional latent vari- able model for joint facial action unit detection. In Pro- ceedings of the IEEE International Conference on Com- puter Vision (ICCV), pages 3792-3800, 2015.
- [Friesen and Ekman, 1978] E Friesen and Paul Ekman. Fa- cial action coding system: a technique for the measure- ment of facial movement. Palo Alto, 1978.
- [Gong and Cheng, 2019] Liyu Gong and Qiang Cheng. Ex- ploiting edge features for graph neural networks. In Pro- ceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 9211-9219, 2019.
- [Jacob and Stenger, 2021] Geethu Miriam Jacob and Bjorn Stenger. Facial action unit detection with transformers. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7680-7689, 2021.
- [Li et al., 2018] Wei Li, Farnaz Abtahi, Zhigang Zhu, and Lijun Yin. Eac-net: Deep nets with enhancing and crop- ping for facial action unit detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(11):2583- 2596, 2018.
- [Li et al., 2019a] Guanbin Li, Xin Zhu, Yirui Zeng, Qing Wang, and Liang Lin. Semantic relationships guided rep- resentation learning for facial action unit recognition. In Proceedings of the AAAI Conference on Artificial Intelli- gence (AAAI), volume 33, pages 8594-8601, 2019.
- [Li et al., 2019b] Yong Li, Jiabei Zeng, Shiguang Shan, and Xilin Chen. Self-supervised representation learning from videos for facial action unit detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 10924-10933, 2019.
- [Liu et al., 2020] Zhilei Liu, Jiahui Dong, Cuicui Zhang, Longbiao Wang, and Jianwu Dang. Relation modeling with graph convolutional networks for facial action unit detection. In International Conference on Multimedia Modeling, pages 489-501, 2020.
- [Martinez et al., 2017] Brais Martinez, Michel F Valstar, Bi- han Jiang, and Maja Pantic. Automatic analysis of facial actions: A survey. IEEE Transactions on Affective Com- puting, 10(3):325-347, 2017.
- [Mavadati et al., 2013] S Mohammad Mavadati, Moham- mad H Mahoor, Kevin Bartlett, Philip Trinh, and Jef- frey F Cohn. Disfa: A spontaneous facial action inten- sity database. IEEE Transactions on Affective Computing, 4(2):151-160, 2013.
- [Niu et al., 2019] Xuesong Niu, Hu Han, Songfan Yang, Yan Huang, and Shiguang Shan. Local relationship learning with person-specific shape regularization for facial action unit detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 11917-11926, 2019.
- [Ridnik et al., 2021] Tal Ridnik, Emanuel Ben-Baruch, Na- dav Zamir, Asaf Noy, Itamar Friedman, Matan Protter, and Lihi Zelnik-Manor. Asymmetric loss for multi-label classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 82-91, 2021.
- [Shao et al., 2018] Zhiwen Shao, Zhilei Liu, Jianfei Cai, and Lizhuang Ma. Deep adaptive attention for joint facial ac- tion unit detection and face alignment. In Proceedings of the European Conference on Computer Vision (ECCV), pages 705-720, 2018.
- [Shao et al., 2019] Zhiwen Shao, Zhilei Liu, Jianfei Cai, Yunsheng Wu, and Lizhuang Ma. Facial action unit de- tection using attention and relation learning. IEEE Trans- actions on Affective Computing, 2019.
- [Shao et al., 2021a] Zhiwen Shao, Zhilei Liu, Jianfei Cai, and Lizhuang Ma. Jaa-net: joint facial action unit detec- tion and face alignment via adaptive attention. Interna- tional Journal of Computer Vision, 129(2):321-340, 2021.
- [Shao et al., 2021b] Zilong Shao, Siyang Song, Shashank Jaiswal, Linlin Shen, Michel Valstar, and Hatice Gunes. Personality recognition by modelling person-specific cog- nitive processes using graph representation. In Proceed- ings of the ACM International Conference on Multimedia, pages 357-366, 2021.
- [Song et al., 2021a] Siyang Song, Zilong Shao, Shashank Jaiswal, Linlin Shen, Michel Valstar, and Hatice Gunes. Learning graph representation of person-specific cognitive processes from audio-visual behaviours for automatic per- sonality recognition. arXiv preprint arXiv:2110.13570, 2021.
- [Song et al., 2021b] Tengfei Song, Lisha Chen, Wenming Zheng, and Qiang Ji. Uncertain graph neural networks for facial action unit detection. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), volume 1, 2021.
- [Song et al., 2021c] Tengfei Song, Zijun Cui, Wenming Zheng, and Qiang Ji. Hybrid message passing with performance-driven structures for facial action unit detec- tion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6267- 6276, 2021.
- [Yang et al., 2021] Huiyuan Yang, Lijun Yin, Yi Zhou, and Jiuxiang Gu. Exploiting semantic embedding and visual feature for facial action unit detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 10482-10491, 2021.
- [Yin and Liu, 2017] Xi Yin and Xiaoming Liu. Multi- task convolutional neural network for pose-invariant face recognition. IEEE Transactions on Image Processing, 27(2):964-975, 2017.
- [Zhang et al., 2014] Xing Zhang, Lijun Yin, Jeffrey F Cohn, Shaun Canavan, Michael Reale, Andy Horowitz, Peng Liu, and Jeffrey M Girard. Bp4d-spontaneous: a high-resolution spontaneous 3d dynamic facial expression database. Image and Vision Computing, 32(10):692-706, 2014.
- [Zhao et al., 2016] Kaili Zhao, Wen-Sheng Chu, and Hong- gang Zhang. Deep region and multi-label learning for facial action unit detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3391-3399, 2016.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Facial Action Coding System [Friesen and Ekman, 1978] represents human face by a set of facial muscle movements called Action Units (AUs). Compared with the emotionbased categorical facial expression model, AUs describe human facial expressions in a more comprehensive and objective manner [Martinez et al., 2017]. Facial AU recognition is a multi-label classification problem as multiple AUs can be activated simultaneously. While previous studies found that underlying relationships among AUs' activation [Corneanu et al., 2018; Song et al., 2021c; Shao et al., 2021a] are crucial for their recognition, how to properly model such relationships is still an open research question in the field.
∗Equal contribution.
†Corresponding author.

A popular strategy applies various traditional machine learning models (e.g., conditional models [Eleftheriadis et al., 2015]) or neural network-based operations (e.g., convolution [Zhao et al., 2016], Long-Short-Term-Memory networks [Niu et al., 2019] or attention [Shao et al., 2021a]), to encode all AU descriptors as a single representation which reflects the underlying relationship among all AUs. A key drawback of such solutions is that they fail to individually model the relationship between each pair of AUs, which may contain crucial cues for their recognition (Problem 1). Some studies represent all AUs of the target face as a graph, where each AU is represented as a node, and each pair of AUs relationship is specifically described by an edge that contains a binary value or a single weight to describe their connectivity or association [Song et al., 2021b; Song et al., 2021c]. However, a single value may not be enough to represent the complex underlying relationship between a pair of AUs (Problem 2). In particular, some studies [Li et al., 2019a; Liu et al., 2020] even manually define a single graph topology for all face images based on prior knowledge (e.g., AUs co-occurrence pattern), which fails to consider the influences of the unique facial display on AU relationships (Problem 3).
In this paper, we propose a novel AUs relationship modelling approach to address the problems described above, which can be easily incorporated with various deep learning backbones. It takes a full face representation produced by the backbone as the input, and outputs an AUs relation graph that explicitly describes the relationship between each pair of AUs (addressing problem 1). Specifically, our approach consists of two modules: (i) the AUs relationship-aware node feature learning (ANFL) module first individually learns a representation for each AU from the input full face representation (Sec. 2.1), which encodes not only the AU's activation status but also its association with other AUs; and then (ii) the multi-dimensional edge feature learning (MEFL) module learns multiple task-specific relationship cues as the edge representation for each pair of AUs (Sec. 2.2) (addressing problem 2). Since both node and edge feature learning take the full face representation as the input, the influence of the unique facial display on AUs relationship is considered when generating its AUs relation graph (addressing problem 3).
In summary, the main contributions of our AU relationship modelling approach are that it represents AU relationships as a unique graph for each facial display, which (i) encodes both the activation status of the AU and its association with other AUs into each node feature; and (ii) learns a multi-dimensional edge feature to explicitly capture the taskspecific relationship cues between each pair of AUs. Our multi-dimensional edge encodes unique and multiple relationships between each pair of AUs, rather than a single relationship (e.g., spatial adjacency, co-occurrence patterns, etc.) that the single value-edge encoded, which would theoretically generalizes better in modeling complex relationships between vertices [Gong and Cheng, 2019; Song et al., 2021a; Shao et al., 2021b]. The main novelty of the proposed approach in comparison to pre-defined AU graphs [Li et al., 2019a; Liu et al., 2020] and deep learned facial displayspecific graphs [Song et al., 2021b; Song et al., 2021c] are illustrated in Figure 1. To the best of our knowledge, this is the first CNN-GCN approach that conducts end-to-end multidimensional edge feature learning for face image processing tasks. The pipeline of the proposed approach is illustrated in Figure 2.
2 The Proposed Approach
Our AU relationship modelling approach deep learns a unique AU relation graph from the representation of the target face, which explicitly captures recognition-related relationship cues among AUs based on the end-to-end learned relationship modelling modules. The learned AU relation graph represents the ith AU as the node vi ∈ V in the graph, which contains a vector describing the activation status of the ith AU as well as its association with other AUs in the target facial display. Besides, the task-specific relationship cues between nodes (AUs) vi and vj are also explicitly described by two directed edges ei,j, ej,i ∈ E that are represented by two deep learned vectors.
2.1 AUs Relationship-aware Node Feature Learning
As illustrated in Figure 2, the ANFL module consists of two blocks: an AU-specific Feature Generator (AFG) and a Facial Graph Generator (FGG). The AFG individually generates a representation for each AU, based on which the FGG automatically designs an optimal graph for each facial display, aiming to accurately recognize all target AUs. To achieve this, the FGG would enforce the AFG to encode task-specific associations among AUs into their AU-specific representations.
AU-specific Feature Generator
The AFG is made up of N AU-specific feature extractors, each of which contains a fully connected layer (FC) and a global average pooling (GAP) layer. It takes the full face representation X ∈ RD×C (C channels with D dimensions) as the input, which can be produced by any standard machine learning backbone. The FC layer of ith AU-specific feature extractor first projects the X to an AU-specific feature map Ui ∈ RD×C , which is then fed to a GAP layer, yielding a vector containing C values as the ith AU's representation vi. Consequently, N AU representations can be learned from the full face representationX, respectively.
Facial Graph Generator
Our hypothesis is that the relationship cues among AUs are unique for each facial display. As a result, directly utilizing relationship cues defined in the training set (e.g., cooccurrence pattern) may not generalise well at the inference stage. As a result, we propose to represent AU relationships in each facial display as a unique graph which considers the influence of the target facial display on AUs relationship.
For a face image, the FGG block treats N target AUs' feature vectors V = {v1, v2, · · · , vN} as N node features and defines the connectivity (edge presence) between a pair of nodes vi and vj by their features' similarity (Sim(i, j) = vT i vj). Specifically, we choose the K nearest neighbours of each node as its neighbours, and thus the graph topology is defined by the learned node features. Then, a GCN layer is employed to jointly update all AUs activation status from the produced graph, where the ith AU's activation representation vFGG i is generated by vi and its connected nodes as:

where σ[] is the non-linear activation; g and r denote differentiable functions of the GCN layer, and ai,j ∈ {0, 1} represents the connectivity between vi and vj .
To provide a prediction for the ith AU, we propose a similarity calculating (SC) strategy which learns a trainable vector si that has the same dimension as the vFGG i , and then generates the ith AU's occurrence probability by computing the cosine similarity between vFGG i and si as:
where ReLU denotes a non-linearity activation. As a result, a pair of AUs that have a strong association (high similarity) would have connected nodes. In other words, the FGG block enforces the AFG block to encode node (AU) features that contain task-specific relationship cues among AUs of the target facial display, in order to produce an optimal graph for their recognition.
2.2 Multi-dimensional Edge Feature Learning
In addition to relationship cues encoded in node features, we also propose a Multi-dimensional Edge Feature Learning (MEFL) module to deep learn a pair of multi-dimensional edge features, aiming to explicitly describe task-specific relationship cues between each pair of AUs. Importantly, we learn edge features for both connected and un-connected node pairs defined in Sec. 2.1. Even when a pair of nodes have low similarity, their relationship may still contain crucial cues for AU recognition, which are ignored during the node feature learning. Since an AU's activation may also influence other AUs' status, the relationship between a pair of AUs can be reflected by not only their features but also AUs defined by other facial regions. Thus, the MEFL module consists of two blocks: a Facial display-specific AU representation modelling (FAM) block that first locates activation cues of each AU from the full face representation, and an AU relationship modelling (ARM) block that further extracts features from these located cues, which relate to both AUs activation. This is also illustrated in Figure 3.
FAM. As illustrated in Figure 3, for a pair of AUs, the FAM takes their AU-specific feature maps Ui, Uj , and the full face representationX as the input. It first conducts cross attention between Ui and X as well as Uj and X, respectively, where AU-specific feature maps Ui and Uj are individually used as queries, while the full face representation X is treated as the key and value. This process can be formulated as:
with the cross attention operation in FAM defined as:
where Wq, Wk and Wv are learnable weights, and dk is a scaling factor equalling to the number of the 'key's' channels.



As a result, the produced F AS i,x and F AS j,x extract and highlight the most important facial cues from all facial regions of the target facial display for AU i and AU j's recognition, respectively, which consider the influence of the unique facial display on AUs relationships.
ARM. After encoding task-specific facial cues for each AU's recognition independently, the ARM block further extracts the facial cues related to both AUs' recognition. It also conducts the cross-attention (has the same form as Eq. 4 but independent weights) between F AS i,x and F AS j,x , and produces features F AR i,j,x and F AR j,i,x , where F AR i,j,x is generated by using F AS j,x as the query and F AS i,x as the key and value, while F AR j,i,x is generated by using F AS i,x as the query and F AS j,x as the key and value. As a result, the F AR i,j,x summarizes F AS j,x -related cues in the F AS i,x , and F AR j,i,x summarizes F AS i,x -related cues in the F AS j,x . Finally, we feed F AR i,j,x and F AR j,i,x to a GAP layer to obtain multi-dimensional edge feature vectors ei,j and ej,i, respectively. Mathematically speaking, this process can be represented as
In short, the features encoded in edge features ei,j and ej,i summarize multiple facial cues that relate to both ith and jth AUs' recognition, from all facial regions of the target face.
Once the AUs relation graph G0 = (V 0 ,E0 ) that consists of N node features and N × N multi-dimensional directed edge features is learned, we feed it to a GCN model to jointly recognize all target AUs. In this paper, we use a model that only consists of L gated graph convolution layers (GatedGCN) [Bresson and Laurent, 2017], and thus the output GL = (V L,EL) is also a graph that has the same topology as G0 , where the ith node vL i represents the ith AU's activation status (L = 2 in this paper). We finally re-employ the SC module proposed in the FGG block to predict N AUs' activation from the node features of GL. During the inference stage, only the well-trained AFG and MEFL are used to process the input full face representation and generate the AU relation graph.
2.3 Training Strategy
In this paper, we propose a two-stage training method to jointly optimize the proposed ANFL and MEFL modules with the backbone and classifier in an end-to-end manner.
In the first stage, we train the backbone with the ANFL module, aiming to learn an AFG block that produces node features containing both AU activation status and their associations for each facial display. A priori, we notice that existing AU datasets usually have imbalanced labels, where some AUs occurred less frequently than others, and most AUs are inactivated for the majority of face images. To alleviate such issues, we propose a weighted asymmetric loss to compute the loss value between the ground-truth and predictions generated by the FGG block. It is inspired by the asymmetric loss [Ridnik et al., 2021], but has a unique weight for each subtask (each AU's recognition) as well as fewer hyperparameters. The proposed weighted asymmetric loss is formulated as:
where pi, yi and wi are the prediction (occurrence probability), ground truth and weight of the ith AU, respectively. Here, the wi = N(1/ri)/ΣNj=1 (1/rj) is defined by the ith AU's occurrence rate ri computed from the training set. It allows loss values to account less for AUs that have higher occurrence rates in the training set, leading loss values caused by less frequently occurring AUs to have higher weights during the training. Additionally, the term 'pi' in the center of (1 - yi)pilog(1 - pi) down weights loss values caused by inactivated AUs that are easy to be recognized, whose predicted occurrence probabilities are close to zero (pi ≪ 0.5), enforcing the training process to focus on activated AUs and inactivated AUs that are hard to be correctly recognized.
The second stage trains the MEFL module and classifier (GatedGCN) with the pre-trained backbone and AFG block. Here, we again employ the proposed weighted asymmetric loss (Eq. 6) to compute the loss value LWA between the outputs of the classifier and ground truth. Additionally, we also leverage the AUs co-occurrence patterns to supervise the training process. We feed multi-dimensional edge features eLi,j and eLj,i generated from the last GatedGCN layer to a shared FC layer, in order to predict the co-occurrence pattern of the ith and jth AUs of the target face. We define this task as a four-class classification problem, i.e., for a pair of nodes vi and vj: (1) both vi and vj are inactivated; (2) vi is inactivated and vj is activated; (3) vi is activated and vj is inactivated; or (4) both vi and vj are activated. As a result, the categorical cross-entropy loss is introduced as:
| Method | AU | Avg. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 4 | 6 | 7 | 10 | 12 | 14 | 15 | 17 | 23 | 24 | ||
| DRML [Zhao et al., 2016] | 36.4 | 41.8 | 43.0 | 55.0 | 67.0 | 66.3 | 65.8 | 54.1 | 33.2 | 48.0 | 31.7 | 30.0 | 48.3 |
| EAC-Net [Li et al., 2018] | 39.0 | 35.2 | 48.6 | 76.1 | 72.9 | 81.9 | 86.2 | 58.8 | 37.5 | 59.1 | 35.9 | 35.8 | 55.9 |
| JAA-Net [Shao et al., 2018] | 47.2 | 44.0 | 54.9 | 77.5 | 74.6 | 84.0 | 86.9 | 61.9 | 43.6 | 60.3 | 42.7 | 41.9 | 60.0 |
| LP-Net [Niu et al., 2019] | 43.4 | 38.0 | 54.2 | 77.1 | 76.7 | 83.8 | 87.2 | 63.3 | 45.3 | 60.5 | 48.1 | 54.2 | 61.0 |
| ARL [Shao et al., 2019] | 45.8 | 39.8 | 55.1 | 75.7 | 77.2 | 82.3 | 86.6 | 58.8 | 47.6 | 62.1 | 47.4 | [55.4] | 61.1 |
| SEV-Net [Yang et al., 2021] | [58.2] | [50.4] | 58.3 | [81.9] | 73.9 | [87.8] | 87.5 | 61.6 | [52.6] | 62.2 | 44.6 | 47.6 | 63.9 |
| FAUDT [Jacob and Stenger, 2021] | 51.7 | [49.3] | [61.0] | 77.8 | 79.5 | 82.9 | 86.3 | [67.6] | 51.9 | 63.0 | 43.7 | [56.3] | 64.2 |
| SRERL [Li et al., 2019a] | 46.9 | 45.3 | 55.6 | 77.1 | 78.4 | 83.5 | 87.6 | 63.9 | 52.2 | [63.9] | 47.1 | 53.3 | 62.9 |
| UGN-B [Song et al., 2021b] | [54.2] | 46.4 | 56.8 | 76.2 | 76.7 | 82.4 | 86.1 | 64.7 | 51.2 | 63.1 | 48.5 | 53.6 | 63.3 |
| HMP-PS [Song et al., 2021c] | 53.1 | 46.1 | 56.0 | 76.5 | 76.9 | 82.1 | 86.4 | 64.8 | 51.5 | 63.0 | [49.9] | 54.5 | 63.4 |
| Ours (ResNet-50) | 53.7 | 46.9 | 59.0 | 78.5 | [80.0] | 84.4 | [87.8] | 67.3 | 52.5 | 63.2 | 50.6 | 52.4 | [64.7] |
| Ours (Swin Transformer-Base) | 52.7 | 44.3 | [60.9] | [79.9] | [80.1] | [85.3] | [89.2] | [69.4] | [55.4] | [64.4] | 49.8 | 55.1 | [65.5] |
| Method | AU | Avg. | |||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 4 | 6 | 9 | 12 | 25 | 26 | ||
| DRML [Zhao et al., 2016] | 17.3 | 17.7 | 37.4 | 29.0 | 10.7 | 37.7 | 38.5 | 20.1 | 26.7 |
| EAC-Net [Li et al., 2018] | 41.5 | 26.4 | 66.4 | 50.7 | [80.5] | [89.3] | 88.9 | 15.6 | 48.5 |
| JAA-Net [Shao et al., 2018] | 43.7 | 46.2 | 56.0 | 41.4 | 44.7 | 69.6 | 88.3 | 58.4 | 56.0 |
| LP-Net [Niu et al., 2019] | 29.9 | 24.7 | 72.7 | 46.8 | 49.6 | 72.9 | 93.8 | 65.0 | 56.9 |
| ARL [Shao et al., 2019] | 43.9 | 42.1 | 63.6 | 41.8 | 40.0 | 76.2 | [95.2] | [66.8] | 58.7 |
| SEV-Net [Yang et al., 2021] | [55.3] | [53.1] | 61.5 | 53.6 | 38.2 | 71.6 | [95.7] | 41.5 | 58.8 |
| FAUDT [Jacob and Stenger, 2021] | 46.1 | [48.6] | 72.8 | [56.7] | 50.0 | 72.1 | 90.8 | 55.4 | 61.5 |
| SRERL [Li et al., 2019a] | 45.7 | 47.8 | 59.6 | 47.1 | 45.6 | 73.5 | 84.3 | 43.6 | 55.9 |
| UGN-B [Song et al., 2021b] | 43.3 | 48.1 | 63.4 | 49.5 | 48.2 | 72.9 | 90.8 | 59.0 | 60.0 |
| HMP-PS [Song et al., 2021c] | 38.0 | 45.9 | 65.2 | 50.9 | 50.8 | 76.0 | 93.3 | [67.6] | 61.0 |
| Ours (ResNet-50) | [54.6] | 47.1 | [72.9] | [54.0] | [55.7] | [76.7] | 91.1 | 53.0 | [63.1] |
| Ours (Swin Transformer-Base) | 52.5 | 45.7 | [76.1] | 51.8 | 46.5 | 76.1 | 92.9 | 57.6 | [62.4] |
where |E| denotes the number of edges in the facial graph; NE is the number of co-occurrence patterns; pei,j is the cooccurrence prediction output from the shared FC layer. Consequently, The overall training loss of the second stage is formulated as the weighted combination of the two losses:
where λ decides the relative importance of the two losses.
3 Experiments
3.1 Experimental Setup
Datasets. We evaluate the performance of our approach on two widely-used benchmark datasets: BP4D [Zhang et al., 2014] and DISFA [Mavadati et al., 2013]. BP4D recorded 328 videos (about 140,000 facial frames) from 41 young adults (23 females and 18 males) who were asked to respond to 8 emotion elicitation tasks. DISFA recorded 130, 815 frames from 27 subjects (12 females and 15 males) who were watching Youtube videos. Each frame in BP4D and DISFA is annotated with occurrence labels of multiple AUs.
Implementation Details. For both datasets, we use MTCNN [Yin and Liu, 2017] to perform face detection and alignment for each frame and crop it to 224 × 224 as the input for backbones. We then follow the same protocol as previous studies [Zhao et al., 2016; Li et al., 2018; Song et al., 2021c] to conduct subject-independent three folds cross-validation for each dataset, and report the average results over 3 folds. During the training, we employ an AdamW optimizer with β1 = 0.9, β2 = 0.999 and weight decay of 5e-4 . The number K for choosing nearest neighbors in the FGG is set to 3 and 4 for BP4D and DISFA, respectively. For the hyperparameter λ in Eq. 8, we set it to 0.05 and 0.01 for models based on ResNet and Swin Transformer, respectively. We totally train the proposed model for 40 epochs, including 20 epochs for the first stage (the initial learning rate of 1e-4 ) and 20 epochs for the second stage (the initial learning rate of 1e-6 ), with a batch size of 64. The cosine decay learning rate scheduler is also used. Both backbones are pre-trained on ImageNet [Deng et al., 2009].

Evaluation Metric. We follow previous AU occurrence recognition studies [Shao et al., 2021a; Churamani et al., 2021; Li et al., 2019b; Song et al., 2021c] using a common metric: frame-based F1 score, to evaluate the performance of our approach, which is denoted as F1 = 2 P·R P+R . It takes the recognition precision P and recall rate R into consideration.
3.2 Results and Discussion
Comparison to State-of-the-art Methods. This section compares our best systems of two backbones with several state-of-the-art methods on both datasets. Table 1 reports the occurrence recognition results of 12 AUs on BP4D. We additionally provide the AUC results in Appendix A. It can be observed that the proposed AU relationship modelling approach allows both backbones (ResNet-50 and Swin TransformerBase (Swin-B)) to achieve superior overall F1 scores than all other listed approaches, with 0.5% and 1.3% average improvements over the state-of-the-art [Jacob and Stenger, 2021]. Specifically, our approach allows both backbones to achieve the top three performances for 9 out of 12 AUs' recognition (e.g., AU 4, AU 6, AU 7, AU 10, AU 12, AU 14, AU 15, AU 17, and AU 23) among all listed approaches. Similar results were also achieved on DISFA. According to Table 2, our approach helps both backbones to achieve the state-of-the-art average F1 scores over 8 AUs, which outperform the current state-of-the-art with 1.6% and 0.9% improvements, respectively. For fair comparisons, we only compare our approach with static face-based methods that did not remove any frame from the datasets.
According to both tables, our ResNet-50-based system also clearly outperforms other graph-based AU recognition approaches which also use CNNs (ResNet (UGN-B, HMP-PS) or VGG (SRERL)) as backbones. Since SRERL only uses a pre-computed adjacent matrix to describe the relationship between AUs for all faces, our system shows a large advantage over it, with 1.8% and 7.2% F1 score improvements for the average results on BP4D and DISFA, respectively. Although UGN-B and HMP-PS assigned each facial display a unique adjacent matrix and achieved better performance than SRERL, they still use a single value to describe the relationship between each pair of AUs, without considering multiple relationship cues. Thus, our deep-learned task-specific multi-dimensional edge features lead our system to achieve more than 1.3% and 2.1% average F1 score improvements over UGN-B and HMP-PS on both datasets.
| Backbone | AFG | FGG | MEFL | LWA | LE | Res | Swin |
|---|---|---|---|---|---|---|---|
| 3 3 3 3 3 3 3 3 3 3 | 3 3 3 3 3 3 3 3 | 3 3 3 3 | 3 3 3 3 | 3 3 3 3 3 3 | 3 | 59.1 60.4 61.8 63.1 63.2 63.0 63.7 63.9 64.5 64.7 | 62.6 63.6 63.9 63.6 63.8 64.6 65.1 64.6 65.4 65.5 |
Ablation Studies. Table 3 evaluates the influence of each component of our pipeline on the average AU recognition results. It can be observed that simply using the AFG block to specifically learn a representation for each AU enhanced the performance for both backbones, indicating that the relationship between each AU's activation and the full face representation is unique. In particular, when a facial AU is activated, its movement usually affects other facial regions (i.e., the activation of other AUs) while inactivated AUs would not have such an effect. As visualized in Figure 4, our FGG simulates this phenomenon by connecting activated AUs to all other AUs (including activated and inactivated AUs). Building on the backbone-AFG system, we also found that individually adding the FGG block or MEFL module further increased the recognition performance for both backbones. These results suggest that (i) the FGG block allows the AFG block to encode additional AU recognition-related cues into node features, i.e., we hypothesize that the FGG can help the AFG to learn AUs' relationship cues for their recognition; and (ii) the multi-dimensional edge features learned by the MEFL module provide more task-specific AU relationship cues to improve the recognition performance, which further validates our hypothesis that a single value is not enough to carry all useful relationship cues between a pair of AUs.
In short, the proposed approach can provide valuable relationship cues for AU recognition during both node and edge feature learning. More importantly, jointly using FGG and MEFL with our weighted asymmetric loss largely boosted both backbones' recognition capabilities, i.e., 5.6% and 2.9% F1 score improvements over the original backbones, as well as 1.7% and 0.9% improvements over the backbone-AFG systems. Besides the proposed relationship modelling approaches, we show that the two loss functions also positively improved the recognition performance. The weighted asymmetric loss clearly enhanced the performance over the widely-used weighted binary cross-entropy loss, illustrating its superiority in alleviating data imbalance issue. Meanwhile, the proposed AU co-occurrence supervision also slightly enhanced recognition results for both backbones.
4 Conclusion
This paper proposes to deep learn a graph that explicitly represents relationship cues between each pair of AUs for each facial display. These relationship cues are encoded in both node features and multi-dimensional edge features of the graph. The results demonstrate that the proposed node and edge feature learning methods extracted reliable task-specific relationship cues for AU recognition, i.e., both CNN and transformer-based backbones have been largely enhanced, and achieved state-of-the-art results on two widely used datasets. Since our graph-based relationship modelling approach can be easily incorporated with standard CNN/transformer backbones, it can be directly applied to enhance the performance of multi-label tasks or tasks whose data contains multiple objects, by explicitly exploring the task-specific relationship cues among labels or objects.
A Additional Experimental Results
| AU | DRML | SRERL | Ours (Res) | Ours (Swin) |
|---|---|---|---|---|
| 1 | 55.7 | 67.6 | 75.0 | 77.7 |
| 2 | 54.5 | 70.0 | 78.0 | 76.5 |
| 4 | 58.8 | 73.4 | 85.4 | 86.5 |
| 6 | 56.6 | 78.4 | 88.9 | 89.2 |
| 7 | 61.0 | 76.1 | 84.0 | 83.3 |
| 10 | 53.6 | 80.0 | 87.4 | 86.5 |
| 12 | 60.8 | 85.9 | 93.2 | 94.0 |
| 14 | 57.0 | 64.4 | 69.9 | 73.1 |
| 15 | 56.2 | 75.1 | 82.7 | 84.6 |
| 17 | 50.0 | 71.7 | 79.1 | 78.7 |
| 23 | 53.9 | 71.6 | 79.5 | 80.8 |
| 24 | 53.9 | 74.6 | 87.8 | 86.3 |
| Avg. | 56.0 | 74.1 | 82.6 | 83.1 |
| AU | DRML | SRERL | Ours (Res) | Ours (Swin) |
|---|---|---|---|---|
| 1 | 53.3 | 76.2 | 90.0 | 88.6 |
| 2 | 53.2 | 80.9 | 88.5 | 89.0 |
| 4 | 60.0 | 79.1 | 94.2 | 92.3 |
| 6 | 54.9 | 80.4 | 92.5 | 91.5 |
| 9 | 51.5 | 76.5 | 91.5 | 92.7 |
| 12 | 54.6 | 87.9 | 95.9 | 95.1 |
| 25 | 45.6 | 90.9 | 99.1 | 98.5 |
| 26 | 45.3 | 73.4 | 91.2 | 89.4 |
| Avg. | 52.3 | 80.7 | 92.9 | 92.1 |
Acknowledgements
Cheng Luo, Weicheng Xie and Linlin Shen are supported by the National Natural Science Foundation of China under grants no. 61602315, 91959108, the Science and Technology Project of Guangdong Province under grant no. 2020A1515010707, the Science and Technology Innovation Commission of Shenzhen under grant no. JCYJ20190808165203670. Siyang Song is supported by the European Union's Horizon 2020 Research and Innovation programme under grant agreement No. 826232. Hatice Gunes is supported by the EPSRC under grant ref. EP/R030782/1.
@inproceedings{ijcai2022p173,
title = {Learning Multi-dimensional Edge Feature-based AU Relation Graph for Facial Action Unit Recognition},
author = {Luo, Cheng and Song, Siyang and Xie, Weicheng and Shen, Linlin and Gunes, Hatice},
booktitle = {Proceedings of the Thirty-First International Joint Conference on
Artificial Intelligence, {IJCAI-22}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Luc De Raedt},
pages = {1239--1246},
year = {2022},
month = {7},
note = {Main Track},
doi = {10.24963/ijcai.2022/173},
url = {https://doi.org/10.24963/ijcai.2022/173},
}
TY - CPAPER TI - Learning Multi-dimensional Edge Feature-based AU Relation Graph for Facial Action Unit Recognition AU - Luo, Cheng AU - Song, Siyang AU - Xie, Weicheng AU - Shen, Linlin AU - Gunes, Hatice T2 - Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence, IJCAI-22 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2022 SP - 1239 EP - 1246 DO - 10.24963/ijcai.2022/173 UR - https://doi.org/10.24963/ijcai.2022/173 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: