Deep Learning for Age and Gender Recognition from Facial Images: A Comparative Study of EfficientNet Variants with Explainability †
Abstract
1. Introduction
2. Related Work
2.1. Traditional Approaches
2.2. Deep Learning and CNNs
2.3. Efficient Architectures and Hybrid Models
2.4. The Interpretability Gap
3. Materials and Methods
3.1. The EfficientNet Architecture Family
3.1.1. EfficientNet V1
3.1.2. EfficientNetV2-S
3.2. Datasets
- Adience Benchmark: This dataset is specifically designed for age and gender classification under real-world conditions. It comprises over 26,000 images of approximately 2200 subjects. The images are characterized by significant variations in pose, lighting, noise, and resolution, making it a challenging benchmark. Unlike constrained datasets, Adience images are not pre-aligned, requiring preprocessing [35].
- UTKFace Dataset: A large-scale face dataset consisting of over 20,000 images with annotations for age, gender, and ethnicity. The images cover a wide range of ages (from 0 to 116 years) and variations in facial expression and illumination. This diversity is critical for preventing bias and ensuring the model learns broadly applicable features [36]. We chose to formulate age estimation on UTKFace as an 8-class classification problem rather than as integer-valued regression in order to maintain consistency with the Adience benchmark, in which age labels are not integers but discrete groups 0–2, 4–6, 8–13, 15–20, 25–32, 38–43, 48–53, and 60+. By binning the UTKFace ages similarly into groups, we are able to use a single architecture, a single classification head, a single loss function (categorical cross-entropy), and a single primary evaluation metric (accuracy/F1) across both datasets, which is essential for the cross-dataset comparison that is the main contribution of the paper.
3.3. Data Preprocessing
- Face Detection and Alignment: For the Adience dataset, which contains uncropped images, we employed the Dlib library utilizing its CNN-based face detector to isolate facial regions. Images containing multiple faces or no detectable faces were filtered out to maintain label consistency. The UTKFace dataset was used in its aligned version.
- Data Splitting: The datasets were split into 80% for training and 20% for validation. This strict separation ensures that the model’s hyperparameters are tuned on unseen data.
- Normalization: Pixel intensity values were normalized from the standard range to using min-max normalization. This prevents large gradients that can destabilize training.
- Class Balancing (Oversampling): Age datasets often suffer from class imbalance, with the majority of subjects falling between 25 and 40 years. To mitigate bias toward these dominant classes, we applied random oversampling to the minority age groups in the training set, duplicating samples until a balanced distribution was achieved.
- Augmentation: To further prevent overfitting, we applied real-time data augmentation including horizontal flipping and random rotations (up to ). We avoided extreme distortions to preserve the semantic integrity of age-related features like wrinkles and skin texture.
3.4. Explainability via Grad-CAM
4. Experimental Setup
4.1. Experimental Tools and Environment
4.2. Network Training Strategies
- Data Augmentation: Dynamic augmentation was applied during training. In Phase 1, this included horizontal flipping and random rotation up to . In Phase 2, additional augmentation was employed including zoom (), width/height shifts (), brightness adjustment (–).
- Regularization: Both phases used L2 regularization and dropout to prevent overfitting. Phase 1 additionally employed DropConnect. Phase 2 used a Dropout layer with rate 0.3 and L2 regularization with coefficient .
- Optimization and Callbacks: Phase 1 used early stopping with a patience of 10 epochs and gradual learning rate reduction with a decay rate of 0.9. Phase 2 used the Adam optimizer with an initial learning rate of , a ReduceLROnPlateau callback to reduce the learning rate by a factor of 0.5 if validation loss stagnated for 6 epochs, and EarlyStopping with a patience of 20 epochs.
4.3. Phase 1: EfficientNet B4 Models
4.4. Phase 2: EfficientNetV2-S Models
4.5. Explainability Setup
5. Results
5.1. Phase 1: EfficientNet B4 Classification Performance
5.2. Phase 2: EfficientNetV2-S Classification Performance
5.3. Cross-Phase Comparison
5.4. Comparison with State of the Art
5.5. Visual Explainability Analysis (Phase 2)
5.5.1. Pretraining Focus
- UTKFace Age (Before): Average Grad-CAM accuracy of 15%.
- UTKFace Gender (Before): Average Grad-CAM accuracy of 80%.
- Adience Age (Before): Average Grad-CAM accuracy of 5%.
- Adience Gender (Before): Average Grad-CAM accuracy of 5%.
5.5.2. Post-Training Focus
- UTKFace Age (After): Average Grad-CAM accuracy of 100%.
- UTKFace Gender (After): Average Grad-CAM accuracy of 100%.
- Adience Gender (After): Average Grad-CAM accuracy of 100%.
- Adience Age (After): Average Grad-CAM accuracy of 75%.
6. Conclusions and Future Work
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Punyani, P.; Gupta, R.; Kumar, A. Neural networks for facial age estimation: A survey on recent advances. Artif. Intell. Rev. 2020, 53, 3299–3347. [Google Scholar] [CrossRef]
- Agbo-Ajala, O.; Viriri, S. Deep learning approach for facial age classification: A survey of the state-of-the-art. Artif. Intell. Rev. 2021, 54, 179–213. [Google Scholar] [CrossRef]
- Chen, L.; Li, S.; Bai, Q.; Yang, J.; Jiang, S.; Miao, Y. Review of Image Classification Algorithms Based on Convolutional Neural Networks. Remote Sens. 2021, 13, 4712. [Google Scholar] [CrossRef]
- Tan, M.; Le, Q.V. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. In Proceedings of the 36th International Conference on Machine Learning (ICML), Long Beach, CA, USA, 9–15 June 2019; Volume 97, pp. 6105–6114. [Google Scholar]
- Tan, M.; Le, Q.V. EfficientNetV2: Smaller Models and Faster Training. In Proceedings of the International Conference on Machine Learning (ICML), Virtual Event, 18–24 July 2021; pp. 10096–10106. [Google Scholar]
- Aruleba, I.; Viriri, S. Deep Learning for Age Estimation Using EfficientNet. In Distributed Computing and Artificial Intelligence, Special Sessions, 17th International Conference; Rojas, I., Joya, G., Català, A., Eds.; LNCS 12861; Springer: Cham, Switzerland, 2021; pp. 407–419. [Google Scholar]
- Mosayyebi, F.; Seyedarabi, H.; Afrouzian, R. Gender recognition in masked facial images using EfficientNet and Transfer Learning Approach. Int. J. Inf. Technol. 2024, 16, 2693–2703. [Google Scholar] [CrossRef]
- Sigalos, G.; Hatzilygeroudis, I.; Perikos, I. Age and Gender Recognition from Images Using EfficientNet Models. In 2025 16th International Conference on Information, Intelligence, Systems & Applications (IISA); IEEE: Mytilene, Island of Lesvos, Greece, 2025; pp. 1–5. [Google Scholar] [CrossRef]
- Wang, J.G.; Yau, W.Y.; Wang, H.L. Age categorization via ECOC with fused Gabor and LBP Features. In Proceedings of the 2009 Workshop on Applications of Computer Vision (WACV), Snowbird, UT, USA, 7–8 December 2009; pp. 1–6. [Google Scholar]
- Selim, M.; Stricker, D. Real-time human age estimation based on Facial images using uniform Local Binary Patterns. In Proceedings of the International Conference on Computer Vision Theory and Applications (VISAPP), Berlin, Germany, 11–14 March 2015; pp. 233–426. [Google Scholar]
- Choi, S.E.; Lee, Y.J.; Lee, S.J.; Park, K.R.; Kim, J. Age estimation using a hierarchical classifier based on global and local facial features. Pattern Recognit. 2011, 44, 1262–1281. [Google Scholar] [CrossRef]
- Fu, Y.; Huang, T. Human Age Estimation with Regression on Discriminative Aging Manifold. IEEE Trans. Multimed. 2008, 10, 578–584. [Google Scholar] [CrossRef]
- Gao, F.; Ai, H. Face age classification on consumer images with gabor feature and fuzzy LDA method. In Advances in Biometrics; Springer: Berlin/Heidelberg, Germany, 2009; pp. 132–141. [Google Scholar]
- Ullah, I.; Hussain, M.; Al-Haidari, F.; Mirza, A.M. Gender recognition from face images with local WLD descriptor. In Proceedings of the 19th International Conference on Systems, Signals and Image Processing (IWSSIP), Vienna, Austria, 11–13 April 2012; pp. 417–420. [Google Scholar]
- Shan, C. Learning local binary patterns for gender classification on real-world face images. Pattern Recognit. Lett. 2012, 33, 431–437. [Google Scholar] [CrossRef]
- Kawai, H.; Ito, K.; Aoki, T. Face Attribute Estimation Using Multi-Task Convolutional Neural Network. J. Imaging 2022, 8, 105. [Google Scholar] [CrossRef] [PubMed]
- Liu, X.; Li, J.; Hu, C.; Pan, J.S. Deep Convolutional Neural Networks-Based Age and Gender Classification with Facial Images. In Proceedings of the First International Conference on Electronics Instrumentation Information Systems (EIIS), Harbin, China, 3–5 June 2017; pp. 1–4. [Google Scholar]
- Uddin, S.M.S.; Morshed, M.S.; Rahman, M.I. Age Estimation from Facial Images using Transfer Learning and k-fold Cross-Validation. In Proceedings of the 2021 International Conference on Pattern Recognition and Intelligent Systems (PRI), Bangkok, Thailand, 23–25 July 2021; pp. 33–36. [Google Scholar]
- Rafique, I.; Hamid, A.; Al-Mogren, A.S.; Yasir, T. Age and Gender Prediction using Deep Convolutional Neural Networks. In Proceedings of the International Conference on Innovative Computing (ICIC), Lahore, Pakistan, 1–2 November 2019. [Google Scholar]
- Kjærran, A.; Barbakadze, E.S.; Vennerød, C.B. Facial Age Estimation Using Convolutional Neural Networks. arXiv 2021, arXiv:2105.06746. [Google Scholar] [CrossRef]
- Sharma, N.; Singh, R.; Jindal, N. Face-Based Age and Gender Estimation Using Improved Convolutional Neural Network Approach. Wirel. Pers. Commun. 2022, 124, 3035–3054. [Google Scholar] [CrossRef]
- Nyaupane, B.K.; Shakya, S. Age, Gender, and Ethnicity Prediction using Deep Separable Convolutional Neural Networks. In Proceedings of the International Multidisciplinary Conference, Dubai, United Arab Emirates, 3–4 March 2022. [Google Scholar]
- Levi, G.; Hassner, T. Age and Gender Classification using Convolutional Neural Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, Boston, MA, USA, 7–12 June 2015; pp. 34–42. [Google Scholar]
- Liu, W.; Chen, L.; Chen, Y. Age Classification Using Convolutional Neural Networks with the Multi-class Focal Loss. IOP Conf. Ser. Mater. Sci. Eng. 2018, 428, 012043. [Google Scholar] [CrossRef]
- Agbo-Ajala, O.; Viriri, S. Deeply Learned Classifiers for Age and Gender Predictions of Unfiltered Faces. Sci. World J. 2020, 2020, 1289408. [Google Scholar] [CrossRef]
- Saggu, G.S.; Gupta, K.; Mann, P.S. Efficient Classification for Age and Gender of Unconstrained Face Images. In Algorithms for Intelligent Systems; Springer: Singapore, 2022; pp. 13–24. [Google Scholar]
- Dey, P.; Mahmud, T.; Hossain, M.S.; Andersson, K. Human Age and Gender Prediction from Facial Images Using Deep Learning Methods. Procedia Comput. Sci. 2024, 238, 314–321. [Google Scholar] [CrossRef]
- Kocoń, M.; Pawlukiewicz, S. Age estimation and gender classification from facial images. Appl. Sci. 2025, 15, 10212. [Google Scholar] [CrossRef]
- Jayamanne, D.J. Classification of Age Group, Gender, and Race from Facial Images Using Multi-Task Based Deep CNNs with Transfer Learning. In Proceedings of the 2025 International Conference on Artificial Intelligence, Computer, Data Sciences and Applications (ACDSA), Antalya, Turkiye, 7–9 August 2025; pp. 1–8. [Google Scholar]
- Meenakshi, J.; Thailambal, G. Gender and age classification using ASMNet based facial fiducial detection and Jordan neural network. Prog. Artif. Intell. 2024, 13, 293–306. [Google Scholar] [CrossRef]
- Duan, M.; Li, K.; Yang, C.; Li, K. A hybrid deep learning CNN–ELM for age and gender classification. Neurocomputing 2018, 275, 448–461. [Google Scholar] [CrossRef]
- Khan, K.; Attique, M.; Khan, R.U.; Syed, I. Multi-Task Framework for Facial Attributes Classification through End-to-End Face Parsing and Deep Convolutional Neural Networks. Sensors 2020, 20, 328. [Google Scholar] [CrossRef]
- Khan, K.; Attique, M.; Khan, R.U.; Syed, I. Age Estimation from Facial Photos: A CNN-Based Approach with Multi-Model Feature Fusion. Highlights Sci. Eng. Technol. 2024, 85, 363–375. [Google Scholar]
- Alhichri, H.; Alswayed, A.S.; Bazi, Y.; Ammour, N.; Alajlan, N.A. Classification of Remote Sensing Images Using EfficientNet-B3 CNN Model with Attention. IEEE Access 2020, 9, 14090–14112. [Google Scholar] [CrossRef]
- Eidinger, E.; Enbar, R.; Hassner, T. Age and gender estimation of unfiltered faces. IEEE Trans. Inf. Forensics Secur. 2014, 9, 2170–2179. [Google Scholar] [CrossRef]
- UTKFace Dataset. Available online: https://susanqq.github.io/UTKFace/ (accessed on 1 December 2024).
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. Int. J. Comput. Vis. 2020, 128, 336–359. [Google Scholar] [CrossRef]
- de Zarzà, I.; de Curtò, J.; Hernández-Orallo, E.; Calafate, C.T. Cascading and Ensemble Techniques in Deep Learning. Electronics 2023, 12, 3354. [Google Scholar] [CrossRef]













| Parameter | UTKF-G-B4 | UTKF-A-B4 |
|---|---|---|
| Classes | 2 | 8 |
| Batch Size | 16 | 18 |
| Max Epochs | 35 | 35 |
| Epoch Completion | 18 | 18 |
| Input Resolution | 224 × 224 | 220 × 220 |
| Initial Learning Rate | ||
| Final Learning Rate | ||
| Dropout Rate | N/A | 0.45 |
| DropConnect Rate | 0.45 | 0.45 |
| L2 () | N/A | 0.03 |
| LR Decay Rate | 0.9 | 0.9 |
| Early Stopping Patience | 10 epochs | 10 epochs |
| Parameter | ADI-G-B4 | ADI-A-B4 |
|---|---|---|
| Classes | 2 | 8 |
| Batch Size | 16 | 16 |
| Max Epochs | 35 | 35 |
| Epoch Completion | 28 | 28 |
| Input Resolution | 200 × 200 | 200 × 200 |
| Initial Learning Rate | ||
| Final Learning Rate | ||
| Dropout Rate | 0.5 | 0.5 |
| DropConnect Rate | 0.5 | 0.5 |
| L2 () | 0.03 | 0.03 |
| LR Decay Rate | 0.9 | 0.9 |
| Early Stopping Patience | 10 epochs | 10 epochs |
| Parameter | UTK-Gender | UTK-Age | Adience-Gender | Adience-Age |
|---|---|---|---|---|
| Classes | 2 | 8 | 2 | 8 |
| Batch Size | 16 | 16 | 16 | 16 |
| Max Epochs | 60 | 60 | 60 | 60 |
| Input Resolution | 384 × 384 | 384 × 384 | 384 × 384 | 384 × 384 |
| Initial Learning Rate | ||||
| Optimizer | Adam | Adam | Adam | Adam |
| Dropout Rate | 0.3 | 0.3 | 0.3 | 0.3 |
| L2 () | ||||
| LR Reduction Patience | 6 epochs | 6 epochs | 6 epochs | 6 epochs |
| Early Stopping Patience | 20 epochs | 20 epochs | 20 epochs | 20 epochs |
| Task | Model—Dataset | F1 (%) | Accuracy (%) |
|---|---|---|---|
| Age | EfficientNet B4—UTKFace | 95.08 | 95.11 |
| Gender | EfficientNet B4—UTKFace | 80.82 | 81.45 |
| Gender | EfficientNet B5—UTKFace | 81.00 | 83.00 |
| Age | EfficientNet B1—Adience | 77.81 | 77.69 |
| Age | EfficientNet B4—Adience | 79.00 | 80.00 |
| Gender | EfficientNet B4—Adience | 94.18 | 94.55 |
| Task | Dataset | Acc. (%) | Prec. | Rec. | F1 | MCC | Kappa |
|---|---|---|---|---|---|---|---|
| Gender | Adience | 95.68% | 0.9568 | 0.9568 | 0.9568 | 0.9132 | 0.9132 |
| UTKFace | 85.16% | 0.8520 | 0.8516 | 0.8517 | 0.7027 | 0.7025 | |
| Age | Adience | 76.21% | 0.7633 | 0.7621 | 0.7614 | — | 0.7281 |
| UTKFace | 77% | 0.79 | 0.78 | 0.78 | — | 0.7026 |
| Paper/Model | Dataset (Task) | Accuracy (%) |
|---|---|---|
| [32] Hybrid (RAG-MCFP-DCNN) | Adience (Age) | 69.4 |
| [25] Pretrained CNN (IMDb-WIKI) | 83.1 | |
| [6] EfficientNetB4 | 81.1 | |
| [26] Pretrained EfficientNetB0 (VGGFace2) | 89.5 | |
| [27] CNN (5Conv) | 86.42 | |
| ADI-A-B4 (Ours, Phase 1) | 80.0 | |
| V2-S (Ours, Phase 2) | 76.21 | |
| [32] Hybrid (RAG-MCFP-DCNN) | Adience (Gender) | 93.6 |
| [25] Pretrained CNN (IMDb-WIKI) | 96.2 | |
| [26] Pretrained EfficientNetB0 (VGGFace2) | 94.2 | |
| [27] CNN (5Conv) | 97.65 | |
| ADI-G-B4 (Ours, Phase 1) | 94.55 | |
| V2-S (Ours, Phase 2) | 95.68 | |
| [6] EfficientNetB4 | UTKFace (Age) | 73.5 |
| [18] ResNet50 (5 extra layers) | 88.03 | |
| [33] Hybrid (EfficientNetB0+DenseNet121+InceptionV3) | 65.0 | |
| [27] CNN (5Conv) | 81.96 | |
| UTKF-A-B4 (Ours, Phase 1) | 95.11 | |
| V2-S (Ours, Phase 2) | 77.0 | |
| [27] CNN (5Conv) | UTKFace (Gender) | 96.32 |
| UTKF-G-B5 (Ours, Phase 1) | 83.0 | |
| V2-S (Ours, Phase 2) | 85.16 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Sigalos, G.; Hatzilygeroudis, I.; Perikos, I. Deep Learning for Age and Gender Recognition from Facial Images: A Comparative Study of EfficientNet Variants with Explainability. Information 2026, 17, 567. https://doi.org/10.3390/info17060567
Sigalos G, Hatzilygeroudis I, Perikos I. Deep Learning for Age and Gender Recognition from Facial Images: A Comparative Study of EfficientNet Variants with Explainability. Information. 2026; 17(6):567. https://doi.org/10.3390/info17060567
Chicago/Turabian StyleSigalos, George, Ioannis Hatzilygeroudis, and Isidoros Perikos. 2026. "Deep Learning for Age and Gender Recognition from Facial Images: A Comparative Study of EfficientNet Variants with Explainability" Information 17, no. 6: 567. https://doi.org/10.3390/info17060567
APA StyleSigalos, G., Hatzilygeroudis, I., & Perikos, I. (2026). Deep Learning for Age and Gender Recognition from Facial Images: A Comparative Study of EfficientNet Variants with Explainability. Information, 17(6), 567. https://doi.org/10.3390/info17060567

