XAI for Facial Emotion Recognition: Quantitative Analysis via Grad-CAM and SHAP
DOI:
https://doi.org/10.19139/soic-2310-5070-4212Keywords:
Facial Emotion Recognition, Explainable AI, ResNet-50, Grad-CAM, Integrated Gradients, Deep Learning, CK+ Dataset, FACS, Attribution MethodsAbstract
Automated facial emotion recognition (FER) forms the basis of affective computing and mental healthmeasurement, as well as human-computer interaction. However, there is one critical and understudied issue: deep learningmodels are the state of the art, and they are very accurate, but do not offer any idea regarding what facial cues influence theirchoice, thus highly constraining its clinical and educational use. We close the gap by developing an integrated ExplainableFER framework that one can achieve by fine-tuning a ResNet-50 convolutional neural network using a fine-tuned ResNet-50convolutional neural network, and applies two additional complementary attribing methods to interpretability to GradientweightedClass Activation Mapping (Grad-CAM) and Integrated Gradients (IG) to provide high predictive performance andexplanations that can be easily interpreted by clinicians. The model was trained and tested on a subject-independent protocolon the Extended Cohn-Kanade (CK+) dataset [18], which consisted of 22400 images generated by 123 individuals in eightratioed emotion pluses with controlled offline augmented subject isolation. The model has been optimized using Adam andStepLR and achieved test accuracy of 99.955% (2,239/2,240 correct) and macro F1 of 0.9996- the best reported on CK+under XAI-integrated works. Grad-CAM visualization showed semantically meaningful spatial attention consistent withaction units in Facial Action Coding System (FACS) and IG made possible a new quantitative Facial Region ImportanceMatrix of seven anatomical regions in eight emotion categories. Each component contribution is proved by an ablation study.It may be deployed in a single open-source Google Colab notebook.Downloads
Published
2026-10-05
How to Cite
Mazin Alkattan, Z. (2026). XAI for Facial Emotion Recognition: Quantitative Analysis via Grad-CAM and SHAP. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-4212
License
Copyright (c) 2026 Zahraa Mazin Alkattan

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).