Skip to content
Review Open access

Explainable Age and Gender Classification Using CNN with SHAP Interpretability on Human Facial Images

Sep 2026 · Journal of Data Science and Intelligent Systems · 0 citations · 23 references

TL;DR

An end-to-end solution for online deployment that utilizes convolutional neural networks (CNNs) and explainable artificial intelligence (XAI) methods to classify age and gender in real time is given.

Abstract

Many practical applications, for example, social media analysis, targeted marketing, human–computer interactions, and security systems, become possible through the reliable and accurate identification of a person, in terms of their gender and age, based on a photo of their face. The paper involves giving an end-to-end solution for online deployment that utilizes convolutional neural networks (CNNs) and explainable artificial intelligence (XAI) methods to classify age and gender in real time. The model uses Adience data and data augmentation to learn and cope with the imbalance in classes of age and gender. The CNN design uses convolutional, pooling, and fully connected layers to identify features, compress the input, and connect to the eight-age and gender-category classification target output branches. Several metrics may be used to gauge the efficacy of a model, including recall, F1-score, accuracy, and precision. Visualizing the impact of face traits on prediction results is possible using the SHapley Additive exPlanations (SHAP) approach, which does not sacrifice model quality or user trust. The web platform is built on a Flask framework to enable users to input facial images to the system and get an immediate prediction with explanations of the prediction provided in SHAP format. The usage of XAI proves the effectiveness and explainability of artificial intelligence use in the real-life context. Through experimental results, it is found that the model is highly accurate and explainable and hence is suitable to be used in real-life applications.   Received: 31 October 2025 | Revised: 14 July 2026 | Accepted: 5 August 2026   Conflicts of Interest The authors declare that they have no conflicts of interest to this work.   Data Availability Statement The data that support the findings of this study are openly available on Kaggle at https://www.kaggle.com/datasets/ttungl/adience-benchmark-gender-and-age-classification.   Author Contribution Statement Patel Alpaben Rameshbhai: Conceptualization, Methodology, Software, Validation, Investigation, Resources, Data curation, Writing – original draft, Writing – review & editing, Visualization, Project administration. Amisha Shingala: Formal analysis, Resources, Data curation, Writing – original draft, Visualization, Supervision.

Read PDF

Similar papers

Open access Sep 2026

Explainable binary gender-aware facial emotion recognition via hybrid deep learning and customized visual dataset

Facial emotion recognition (FER) is a critical component in human-computer interaction, but existing systems often suffer from limited demographic awareness and weak interpretability, as most methods overlook the influence of gender on facial expressions and rely on image-level classification without spatial localizati...

Md Sadman Haque, Md. Shakhawat Hossain, Zobaer Ibn Razzaque et al. · 0 citations
Aug 2026

A Comparative Evaluation of CNN and Deep Learning Models for Facial Emotion Recogni-tion in Affective Healthcare

Facial expression prediction has gained considerable attention in recent years, particularly because of its healthcare related applications in human-computer interaction. This paper presents a comparative evaluation of machine learning and deep learning models for the prediction of face emotion using the CK+ dataset pr...

M. S. Asha · 0 citations
Open access Aug 2026

Leveraging Convolutional Neural Networks Preprocessing for Accurate Age and Gender Classification in Personalized Nutrition

Imagine having a personalized nutrition plan that caters to your unique dietary needs based on your age and gender. Such a system could revolutionize the way we approach health and wellness. A key component of this vision is the accurate classification of age and gender from facial images, which can be leveraged to pro...

Muhammad Aulia Nur Fadhillah, Shidiq Al Hakim, Rodiah Rodiah et al. · 0 citations
Sep 2026

Comparative Performance Analysis of a Custom CNN, VGG16, and the Proposed Emotion Net Model for Facial Emotion Recognition

Facial emotion recognition (FER) plays a pivotal role in affective computing, healthcare monitoring, adaptive education, surveillance, and human computer interaction. This study benchmarks three deep learning solutions for seven class FER on the Extended Cohn Kanade (CK+) corpus: a compact custom convolutional neural n...

Amit Rehapade · 0 citations
Conference Aug 2026

Real-Time Age and Gender Detection System Using Deep Learning

Age and gender detection in computer vision is key for real-time human analysis via video streams. This project employs Python, OpenCV, and Caffe deep learning models to create a system that captures live video through a webcam, detects faces using a Haar Cascade classifier, and predicts age group and gender using pre-...

Sujoy Das, Arka Gain, Swastika Mukherjee et al. · 0 citations
Open access Aug 2026

Real-Time Facial Emotion Recognition Using Mini-Xception and EfficientNetB4

A comparative analysis of two Convolutional Neural Network architectures for real-time facial emotion classification using the RAF-DB dataset indicates that EfficientNetB4 is more suitable for systems requiring high classification accuracy, while Mini-Xception is more appropriate for real-time applications operating un...

Gede Pradistya Evan Aryaputra, C. A. Sari, Eko Hari Rachmawanto · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.