Skip to main content

Multitask Learning-Based Simultaneous Facial Gender and Age Recognition with a Weighted Loss Function

  • Conference paper
  • First Online:
Big Data, Machine Learning, and Applications (BigDML 2021)

Abstract

Traditionally, researchers train facial gender and age recognition models separately using deep convolutional networks. However, in the real world, it is crucial to build a low-cost and time-efficient multitask learning system that can simultaneously recognize both these tasks. In multitask learning, the synergy among the tasks creates imbalance in the loss functions and influences their individual performances. This imbalance among the task-specific loss functions leads to a drop in accuracy. To overcome this challenge and achieve better performance, we propose a novel weighted sum of loss functions that balances the loss of each task. We train our method for the recognition of gender and age on the publicly available Adience benchmark dataset. Finally, we experiment our method on VGGFace and FaceNet architectures and evaluate on the Adience test set to achieve better performance than previous architectures.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Mollahosseini A, Chan D, Mahoor MH (2016) Going deeper in facial expression recogni- tion using deep neural networks. In: 2016 IEEE Winter conference on applications of computer vision (WACV). IEEE, pp 1–10

    Google Scholar 

  2. Liu Z, Luo P, Wang X, Tang X (2015) Deep learning face attributes in the wild. In: Proceedings of the IEEE international conference on computer vision, pp 3730–3738

    Google Scholar 

  3. Bekhouche SE, Dornaika F, Benlamoudi A, Ouafi A, Taleb-Ahmed A (2020) A comparative study of human facial age estimation: handcrafted features vs. deep features. Multimed Tools Appl 79(35)26605–26622

    Google Scholar 

  4. Ranjan R, Patel VM, Chellappa R (2017) Hyperface: a deep multi-task learning framework for face detection, landmark localization, pose estimation, and gender recognition. IEEE Trans Pattern Anal Mach Intell 41(1):121–135

    Google Scholar 

  5. Eidinger E, Enbar R, Hassner T (2014) Age and gender estimation of unfiltered faces. IEEE Trans Inf Forensics Secur 9(12):2170–2179

    Google Scholar 

  6. Zhang C, Zhao P, Hao S, Soh YC, Lee BS (2016) Rom: a robust online multi-task learning approach. In: 2016 IEEE 16th international conference on data mining (ICDM). IEEE, pp 1341–1346

    Google Scholar 

  7. Kendall A, Gal Y, Cipolla R (2018) Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 7482–7491

    Google Scholar 

  8. Thung KH, Wee CY (2018) A brief review on multi-task learning. Multimed Tools Appl 77(22):29705–29725

    Google Scholar 

  9. Parkhi OM, Vedaldi A, Zisserman A (2015) Deep face recognition

    Google Scholar 

  10. Schroff F, Kalenichenko D, Philbin J (2015) Facenet: a unified embedding for face recognition and clustering. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 815–823

    Google Scholar 

  11. Zhu X, Ramanan D (2012) Face detection, pose estimation, and landmark lo- calization in the wild. In: 2012 IEEE conference on computer vision and pattern recognition. IEEE, pp 2879–2886

    Google Scholar 

  12. Strezoski G, van Noord N, Worring M (2019) Learning task relatedness in multi- task learning for images in context. In: Proceedings of the 2019 on international conference on multimedia retrieval, pp 78–86

    Google Scholar 

  13. Hu G, Liu L, Yuan Y, Yu Z, Hua Y, Zhang Z, Shen F, Yang Y (2018) Deep multi- task learning to recognise subtle facial expressions of mental states. In: Proceedings of the European conference on computer vision (ECCV), pp 103–119

    Google Scholar 

  14. Swersky K, Snoek J, Adams RP (2013) Multi-task bayesian optimization

    Google Scholar 

  15. Ruder S, Bingel J, Augenstein I, Søgaard A (2019) Latent multi-task architecture learning. Proc AAAI Conf Artif Intell 33(01):4822–4829

    Google Scholar 

  16. Ruder S (2017) An overview of multi-task learning in deep neural networks. arXiv:1706.05098

  17. Kang Z, Grauman K, Sha F (2011) Learning with whom to share in multi-task feature learning. In: ICML

    Google Scholar 

  18. Liu S, Johns E, Davison AJ (2019) End-to-end multi-task learning with attention. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp 1871–1880

    Google Scholar 

  19. Yosinski J, Clune J, Bengio Y, Lipson H (2014) How transferable are features in deep neural networks? arXiv:1411.1792

  20. Bekhouche SE, Ouafi A., Benlamoudi A, Taleb-Ahmed A, Hadid A (2015) Automatic age estimation and gender classification in the wild

    Google Scholar 

  21. Wen Y, Zhang K, Li Z, Qiao Y (2016) A discriminative feature learning ap proach for deep face recognition. In: European conference on computer vision. Springer, Cham, pp 499–515

    Google Scholar 

  22. Liu W, Wen Y, Yu Z, Yang M (2016) Large-margin softmax loss for convolutional neural networks. In: ICML 2(3):7

    Google Scholar 

  23. Pan H, Han H, Shan S, Chen X (2018) Revised contrastive loss for robust age estimation from face. In: 2018 24th international conference on pattern recognition (ICPR). IEEE, pp 3586–3591

    Google Scholar 

  24. Lee JH, Chan YM, Chen TY, Chen CS (2018) Joint estimation of age and gender from unconstrained face images using lightweight multi-task cnn for mobile applications. In: 2018 IEEE conference on multimedia information processing and retrieval (MIPR). IEEE, pp 162–165

    Google Scholar 

  25. Levi G, Hassner Y (2015) Age and gender classification using convolutional neural networks. In: Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pp 34–42

    Google Scholar 

Download references

Acknowledgements

We thank Korea Research Institute of Ships and Ocean Engineering as well as Korea Advanced Institute of Science and Technology for the infrastructure and resources provided to us to complete this paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Abhilasha Nanda .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nanda, A., Yang, HS. (2024). Multitask Learning-Based Simultaneous Facial Gender and Age Recognition with a Weighted Loss Function. In: Borah, M.D., Laiphrakpam, D.S., Auluck, N., Balas, V.E. (eds) Big Data, Machine Learning, and Applications. BigDML 2021. Lecture Notes in Electrical Engineering, vol 1053. Springer, Singapore. https://doi.org/10.1007/978-981-99-3481-2_7

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-3481-2_7

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-3480-5

  • Online ISBN: 978-981-99-3481-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics