Leave No Stone Unturned: Mine Extra Knowledge for Imbalanced Facial Expression Recognition

Facial expression data is characterized by a significant imbalance, with most collected data showing happy or neutral expressions and fewer instances of fear or disgust. This imbalance poses challenges to facial expression recognition (FER) models, hindering their ability to fully understand various human emotional states. Existing FER methods typically report overall accuracy on highly imbalanced test sets but exhibit low performance in terms of the mean accuracy across all expression classes. In this paper, our aim is to address the imbalanced FER problem. Existing methods primarily focus on learning knowledge of minor classes solely from minor-class samples. However, we propose a novel approach to extract extra knowledge related to the minor classes from both major and minor class samples. Our motivation stems from the belief that FER resembles a distribution learning task, wherein a sample may contain information about multiple classes. For instance, a sample from the major class surprise might also contain useful features of the minor class fear. Inspired by that, we propose a novel method that leverages re-balanced attention maps to regularize the model, enabling it to extract transformation invariant information about the minor classes from all training samples. Additionally, we introduce re-balanced smooth labels to regulate the cross-entropy loss, guiding the model to pay more attention to the minor classes by utilizing the extra information regarding the label distribution of the imbalanced training data. Extensive experiments on different datasets and backbones show that the two proposed modules work together to regularize the model and achieve state-of-the-art performance under the imbalanced FER task. Code is available at https://github.com/zyh-uaiaaaa.

Paper

References (52)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer ss3S7/10 · confidence 4/52023-06-20

Summary

This paper deals with the topic of facial expression recognition (FER). In particular, authors point out the problem of imbalanced class data since most FER data sets will have many more neutral or happy face images than images with other facial expressions. Authors propose an approach to address this problem building on two ideas. First is that there may be information to be learnt about the minor classes even from the samples from the major classes. Based on this observation, authors propose a novel attention map rebalancing to regularize the model. As the second idea, they introduce a label smoothing approach that weights the minor classes more than the major classes. Results on RAF-DB and FERPlus facial expression image data sets show that the proposed approach is able to outperform state of the art FER approaches.

Strengths

The main idea of learning about the minor classes from training samples in both major and minor classes appears to be novel and is one of the strengths of this paper. The idea of weighting the minor classes more heavily or using smoothed labels have been used in other applications before, but perhaps not in FER. Another strength of this paper is the set of numerical results provided. Both data sets being used are state of the art data sets and results clearly indicate that the proposed method outperforms competing methods for FER. Another strength of the paper is that it is relatively well-written although authors should have more clearly explained the difference between "overall accuracy" and "mean accuracy".

Weaknesses

In Fig. 1, flipping of the images is shown to introduce the notion of re-balanced attention consistency. It is not clear if flipping is the only transformation that makes sense for the FER or if some other transformations (e.g., scaling, intensity attenuation or gain) make sense. That needs to be discussed in more detail. Another weakness is that the proposed method is somewhat similar to the EAC approach although authors do a good job of clarifying the similarities and differences between their approach and EAC. The main assertion that there is information to be gained about minor classes from samples in major classes seems to mainly backed up by pointing to the similarities in corresponding attention maps (e.g., open mouth regions for fear and surprise categories). This evidence is subjective and not entirely convincing.

Questions

1. What is the difference between mean accuracy and overall accuracy? 2. Line 106: How do we know that the two types of information are "orthogonal"? Perhaps, characterizing them as "complementary" might be more appropriate. 3. Fig. 1 caption: "--- while do not degrade the high accuracy on major classes" should be "--- while not degrading the high accuracy on major classes" 4. Fig. 2: I assume that the bar corresponding to 0.6 probability is for neutral images --- that needs to be clearly indicated in the figure. 5. Eq. (7): Is the tilde on y() here being used to denote the flipped samples or something else? 6. Shouldn't there be bold-face numbers in every column of Table 1 and other tables?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

There is no discussion of limitations in this submission. Authors may want to add some discussion of the performances of the proposed approaches based on gender, race and/or age considerations.

Reviewer N9Q56/10 · confidence 5/52023-06-25

Summary

This paper mainly focuses on solving the imbalanced problem in Facial Expression Recognition (FER). The goal of this paper is to enhance the performance on minor classes without compromising the performance on major classes. The contribution is two fold. Re-balanced attention consistency (RAC) module is proposed to mines extra knowledge pertaining to minor classes from both major and minor samples. Re-balanced smooth labels (RSL) module is proposed to regulate the classification loss and promote balanced learning. Extensive experiments on different datasets and backbones validate the effectiveness of the proposed method.

Strengths

(1) This paper adapts attention map consistency to solve the imbalanced learning problem of FER for the first time, which proves that solving imbalanced FER through re-balanced strategy is promising. (2) The experiment including various backbones, imbalance and attention visualization is sufficient.

Weaknesses

(1) The purpose of re-balanced attention consistency (RAC) is to extract balanced and transformation invariant knowledge of minor classes from all training samples. The word "knowledge" is unclear and should be more specific. Does it refer to high response values for specific regions on the facial feature map or something else? (2) The authors' explanation about the role of re-balanced smooth labels (RSL) is to improve performance to regulate the classification loss and promote balanced learning. This explanation is too abstract and difficult for readers to understand. Why is it designed as Eq.(8)? What do the two terms of Eq.(8) represent and why fusing these two terms works? I think the author should provide a more detailed explanation. (3) The proposed re-balanced attention consistency (RAC) is very similar to the attention consistency used in EAC. The difference is that an additional balance weight is used to re-weight the attention maps. I would like to know how much performance has been improved due to the addition of balance weight. I have looked at the ablation study in Table 5 and can only know the performance improvement of the entire RAC module. (4) The comparison in Table 1 is questionable. The overall accuracy of EAC is 88.01%, which does not match the number of 89.99% in the original EAC paper (See Table 6 in [46]). (5) In line 283, the authors think non-overlapping attention maps is better than overlapping ones. Are there any references supporting this viewpoint? Overall I think the paper is tackling the right problem. However, the unclear description of the proposed modules weakens the contribution of the paper.

Questions

Same as the weakness section.

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

The authors did not discuss the limitation in this paper. I suggest that the authors provide the "maximum capability" of the proposed method. In other words, what degree of imbalance will cause the proposed method to fail.

Reviewer Ux1i7/10 · confidence 5/52023-07-05

Summary

This paper focuses on the imbalanced learning problem in facial expression recognition (FER). Unlike existing works in imbalanced learning for image classification, the proposed method addresses imbalanced FER from a novel perspective of label distribution learning. Specifically, the proposed method is motivated by the observation that certain major classes in FER may contain valuable features for the minor classes. Building upon this observation, a re-balanced attention map consistency module is introduced, which encourages the model to extract useful information about the minor classes from both minor and major-class samples through attention map consistency. Additionally, a re-balanced label smooth module is incorporated to leverage prior knowledge of the training data distribution and regularize the classification loss. Experimental results on FER datasets with varying levels of imbalance and different backbone architectures demonstrate the effectiveness of the proposed method, particularly in improving the performance of the minor classes.

Strengths

1. This paper provides an interesting label distribution learning perspective to deal with the imbalanced FER, which is novel to me. It proposes two modules to mine extra information of minor-class samples from both major and minor-class samples. From my understanding, this method is specifically designed for FER and technical novelties are sound. 2. The experimental demonstration well supports the claims. The authors have curated different FER datasets with various imbalance factors and the performance improvement on these imbalanced FER datasets is non-trivial compared with other SOTA methods, especially on the minor classes like fear and disgust. Ablation studies presented in Table 5 indicate that each of the proposed modules contributes to the overall performance. I also noticed that in Table 4, combined with Swin-T, the proposed method achieves remarkable results of 92.31% overall accuracy and 87.71% mean accuracy on the widely used RAF-DB dataset. 3. The proposed method is easy to implement and the paper is written in an easy-to-understand manner.

Weaknesses

1. Lack of experiments. As illustrated by the authors, they utilize the weight (i.e., a hyper-parameter of 0.9999) introduced by Ref. [5] as the re-balanced weight for both the re-balanced attention maps and re-balanced smooth label. However, I think there should be some studies regards of this hyperparameter, and what if we utilize different values for the two proposed modules? 2. Some claims were not supported by experiments. The authors claimed that "EAC employs attention maps from all expression classes, rather than just the labeled class, which is similar to label distribution learning". However, there is a lack of experiments to validate this claim. I believe the authors should include experiments to validate their point of label distribution learning, i.e., what is the performance if we only utilize the attention map of the labeled class instead of all classes? 3. Comparative techniques were not sufficiently performed. For example, what if we use GradCAM instead of CAM to implement attention consistency? What if we utilize the basic label smooth instead of the proposed re-balanced label smooth?

Questions

I have some questions regarding the weight design of the proposed method. Since the weight is utilized by both of the proposed modules simultaneously, I think it is very important for the performance of the proposed method. Therefore, I am curious what the performance would be if we simply set the weight as the inverse of the sample numbers of each class? There should be more discussions regarding the weight design of this method.

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

4 excellent

Presentation

4 excellent

Contribution

4 excellent

Limitations

The limitations of this paper should be discussed. This method is designed specifically for imbalanced learning in FER as FER has the label distribution learning characteristic. However, things might be different in other imbalanced image classification tasks. For example, minor classes in imbalanced CIFAR-100 might contain little common feature with major classes in imbalanced CIFAR-100.

Reviewer 31BV7/10 · confidence 4/52023-07-05

Summary

In the paper, the authors tackle the issue of imbalanced learning in the facial expression recognition task by introducing a fresh approach. Their proposed method revolves around the concept of attention consistency under spatial transforms, aiming to extract information about multiple classes from each sample. This approach effectively enhances the performance of under-represented classes. The authors evaluate their approach on two datasets and successfully achieve state-of-the-art performance with a transformer backbone.

Strengths

(+) They achieve state-of-the-art (SOTA) performance on the RAF-DB dataset with the Swin backbone. (+) Table 4 clearly demonstrates the performance improvement brought by the proposed approach. It highlights the significant increase in performance for both minor classes and the overall score. (+) Despite attention consistency being proposed in previous work, the authors cleverly and novelly employ a modified version of it incorporating rebalanced smooth labeling. They provide a reasonable hypothesis, stating that information for minor classes can be captured from all training samples. (+) The visualization results presented in both section 4.7 and the appendix provide further evidence that the proposed approach functions effectively.

Weaknesses

(-) To further support the idea, I suggest conducting evaluations on multi-label classification using other facial expression recognition (FER) datasets, such as BP4D. If the hypothesis is correct, the proposed approach should also work effectively in a different type of FER task. Testing it in this manner would provide a good opportunity for validation. (-) The two methods proposed in the paper, in terms of their structure, are not entirely novel. However, there is potential for further refinement and innovation in their design.

Questions

- What is the purpose of utilizing Global Average Pooling to extract features? Doesn't it result in a loss of information? - Based on the findings presented in Table 4, it appears that the performance improvement for minor classes surpasses that of other classes. Regarding the fairness aspect (although it may not be the primary focus of the paper), what can be said about the trained models? Do you believe that your method also facilitates the development of fairer models?

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

4 excellent

Presentation

4 excellent

Contribution

3 good

Limitations

Given that it is a facial expression recognition task, privacy could potentially be a concern.

Reviewer Ey1e6/10 · confidence 5/52023-07-05

Summary

The paper presents an approach to tackle the imbalance problem in facial expression recognition. The approach makes use of information from the majority class to help improve performance of the minority classes. The proposed approach is evaluated on two public FER datasets. Different backbone networks are evaluated, along with comparisons to state of the art and ablation studies.

Strengths

The paper investigates a challenging problem. and the proposed approach using attention map consistency is interesting. Encouraging results are shown on two public datasets. Ablation study is generally well conducted.

Weaknesses

Experimental design is lacking. FER2013 is an old dataset; newer FER datasets should be evalauted (e.g., AffectNet - Mollahosseini, Ali, Behzad Hasani, and Mohammad H. Mahoor. "Affectnet: A database for facial expression, valence, and arousal computing in the wild." IEEE Transactions on Affective Computing 10.1 (2017): 18-31.). Along with being newer, AffectNet needs to be evaluated as the approach is on imbalanced FER datasets. The paper conducts experiments under different imbalance factors, however, AffectNet is one of the largest and most imbalanced datasets available for FER. For example, in AffectNet, Happy is ~46% of the data and contempt is ~1% of the data. How does the proposed approach handle these extreme imbalance issues? The comparison to CB [5] in Table 1 is not clear. This paper is not on FER and does not evaluate RAF-DB. What is this? Paper states the accuracy of each class is not commonly shown in FER papers. This is not accurate. If it is not in a table, this is often shown through confusion matrices (e.g., Farzaneh, Amir Hossein, and Xiaojun Qi. "Facial expression recognition in the wild via deep attentive center loss." Proceedings of the IEEE/CVF winter conference on applications of computer vision. 2021.)

Questions

How does the proposed approach handle extreme imbalance such as in AffectNet (e.g., Happy vs. Contempt)? What is reference [5] in Table 1? This is not a FER paper that is being compared to.

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

2 fair

Presentation

3 good

Contribution

3 good

Limitations

The limitations of the proposed work are not addressed. How does the approach work on extremely imbalanced data? What kind of societal impact can this have? There are always ethical concerns with FER systems.

Reviewer Ey1e2023-08-11

Thank you for the response to my concerns. I have changed my rating to weak accept based on these new experiments.

Authorsrebuttal2023-08-11

Response to Reviewer Ey1e

Thank you very much for providing a prompt response. Your review has been immensely helpful in improving the quality of our paper. We are truly appreciative of the increased score.

Authorsrebuttal2023-08-13

Author follow-up

Dear Reviewer N9Q5, We sincerely appreciate the time and effort you dedicated to reviewing our paper. We hope that our responses have effectively addressed your concerns. If you have any additional points of concern, please do not hesitate to bring them to our attention—we would be more than willing to address them. We eagerly await your feedback. Thank you very much!

Reviewer N9Q52023-08-14

I am very grateful for the authors' detailed rebuttal and it does address my concern. After improving the paper according to all reviewers, I believe it is a work that has made a good contribution to NeurIPS, so I have changed my rating to "Weak Accept".

Authorsrebuttal2023-08-14

Thanks for your time and effort.

We sincerely appreciate your prompt feedback, as well as the time and effort you invested in reviewing our paper. Your thoughtful and thorough review has significantly contributed to the improvement of our paper's quality. We wholeheartedly value the increased score, and we're thrilled that you have decided to support the acceptance of our paper. It's an honor to have received your responsible and insightful review. Thank you again for your immense contributions to our paper.

Reviewer ss3S2023-08-13

Thanks for your rebuttal comments to my review.

Thank you for carefully responding to my comments and feedback. I have also read the other reviews and your rebuttal comments to those reviews. Overall, I am convinced that this will be a valuable contribution to NeurIPS 2023 and I will stay with my original rating of Accept.

Authorsrebuttal2023-08-13

Thanks for your time and effort.

We sincerely thank you for both your prompt review and feedback. Your professional and thoughtful review provides us with many instructions for improving the quality of our paper. We'd also like to express our gratitude for your dedication in thoroughly reading all other reviews and comments. Your responsible and diligent reviewing is an honor for us. We're delighted to learn that you continue to support our paper and recommend its acceptance. Thank you once again for your valuable contributions.

Reviewer Ux1i2023-08-14

Thanks for your detailed response.

I've thoroughly reviewed the authors' rebuttal and am generally satisfied with their responses, both to my review and to the other reviews. They have effectively addressed my concerns regarding the re-balanced weight study. The authors provided comprehensive experiments and analyses on the re-balanced weight distribution and the corresponding performance with different hyper-parameters. The comparison with the one-class attention map reveals that there is indeed extra information from attention maps besides the target class. Overall, I recognize several merits of this paper: 1. The idea of extracting additional knowledge regarding minor classes from both major and minor class samples is novel. 2. The experimental results on RAF-DB using Swin-T as the backbone are highly promising. 3. In the rebuttal, the authors presented results on AffectNet and the extremely imbalanced RAF-DB. Considering the accuracy of minor classes, it's clear that the method is well-suited for the imbalanced FER task. To the best of my knowledge, there is no similar method that extracts minor-class information from both the major and minor-class samples to effectively address the imbalanced FER task. The motivation and idea are novel and interesting to me. Given the method's strong performance, achieving state-of-the-art results in the imbalanced FER task, I believe this paper deserves acceptance. Therefore, I recommend accepting this paper.

Authorsrebuttal2023-08-14

Thanks for your feedback.

We wholeheartedly thank you for dedicating time to thoroughly read all the reviews and responses. The merits you highlighted align seamlessly with the strengths of our paper. Your recognition of the novelty in our motivation and method is greatly appreciated. We're thrilled to hear that you believe our paper deserves acceptance. Thank you very much for your support.

Reviewer 31BV2023-08-14

Response to the rebuttal

I appreciate your comprehensive feedback. As I comprehend your comments, it appears that you utilized the EmotioNet dataset. However, it seems that the outcomes are coming from a 'classification' problem, rather than a multi-label classification task where each instance could be linked to multiple labels concurrently. To illustrate, if the AU units are accessible within that dataset, could you kindly share the results involving a multi-label classification task? I am inclined to support the acceptance of this paper, as the authors have adeptly addressed both my concerns and those of fellow reviewers. Through their thorough experiments, as presented in both their response and the manuscript itself, they have convincingly demonstrated their model's advancement to state-of-the-art status.

Authorsrebuttal2023-08-16

Thanks for your time and effort.

We extend our heartfelt gratitude for your valuable time and dedication to reviewing our paper. We are truly delighted by your endorsement of our paper's acceptance and your commitment to thoroughly peruse both the reviews from other reviewers and all of our comments. Your professional and insightful review is a significant honor for us, and we deeply appreciate it. In response to your suggestion, we have incorporated the AU recognition results into the tables provided below. In our experiments, we changed the loss to binary cross-entropy loss and added a sigmoid layer after the FC layer. During the test phase, logits larger than 0.5 are classified as 1, while logits smaller than 0.5 are classified as 0. Following the tradition of AU recognition, we report the F1 score for each action unit and calculate the average F1 score across all classes. As the AU labels are also imbalanced, we have organized the AUs in descending order based on the number of labels in each class. |Method|AU 25|AU 12|AU 10|AU 4|AU 1|AU 2|AU 15| |------|:-: |:-: | :-: | :-: | :-: | :-:| :-: | |Baseline|**0.9799**|0.9935|0.7251|**0.9291**|0.8522|0.7391|0.6885| |SCN|0.9759|**0.9951**|0.7225|0.9258|0.8364|0.7692|**0.7164**| |RUL|0.9564|0.9754|0.6633|0.8767|0.7302|0.6549|0.3714| |EAC|0.9757| 0.9903|0.7188|**0.9291**|0.8689|0.8317|0.7013| |Ours|0.9733|0.9919|**0.7353**|0.9214|**0.8926**|**0.8515**|0.7042| |Method|AU 20 |AU 26|AU 7|AU 17|AU 5|AU 9|AU 24|Avg.| |------|:-: |:-: | :-: | :-: | :-: | :-:| :-: | :-:| |Baseline|0.5306|0.4615|0.2353|0.3636|0.5405|0.4516|0.3810|0.6337| |SCN|**0.5714**|0.3784|0.2941|0.4118|0.5556|0.3871|0.3158|0.6325| |RUL|0.2373|0.1333|0.0513|0.2326|0.3448|0.1463|0.0000|0.4553| |EAC|0.5652|0.4878|0.3684|**0.4444**|**0.5854**|0.4516|0.4167|0.6668| |Ours|**0.5714**|**0.5581**|**0.4324**|0.3889|0.5500|**0.5294**|**0.4545**|**0.6825**| From the results, we can observe that our method achieves the best average F1 score compared to other FER methods. Furthermore, our method attains the highest F1 score on AU 9 and AU 24 with the least training labels, which is consistent with our experimental results in expression recognition. We recognize that RUL is not well-suited for multi-label classification and results in low performance. The reason behind this lies in the fact that RUL compares two samples from different expression classes to learn uncertainty. However, when a sample possesses multiple labels concurrently, such a comparison becomes less meaningful. EAC and our method perform well since the main component of these two methods is attention map consistency [1], which was originally proposed for multi-label classification. Notably, our method outperforms EAC as we re-weight the attention map and integrate the information of the label distribution, making it more suitable for handling imbalanced tasks. We have included this experiment along with its corresponding discussion in our revised manuscript, and we firmly believe that this addition will enhance the credibility of our method. We sincerely appreciate your valuable suggestion. If we have addressed your concerns, please kindly let us know. If you have any other additional concerns, please do not hesitate to bring them up. We would try our best to address them. Thank you very much for your immense contribution for reviewing our paper! [1] Visual Attention Consistency under Image Transforms for Multi-Label Image Classification. In CVPR 2019.

Reviewer 31BV2023-08-21

I appreciate your response, and given the results of these experiments (which they also have shown the results for multi-label classification in the rebuttal) and novelties described by the authors, that have shown to reach the state-of-the-art approach to the problem, I recommend acceptance of this paper to the conference.

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC