Document Type : Original/Review Paper

Authors

Electrical and Computer Engineering Department, Semnan University, Semnan, Iran.

Abstract

Gender recognition is an attractive research area in recent years. To make a user-friendly application for gender recognition, having an accurate, fast, and lightweight model applicable in a mobile device is necessary. Although successful results have been obtained using the Convolutional Neural Network (CNN), this model needs high computational resources that are not appropriate for mobile and embedded applications. To overcome this challenge and considering the recent advances in Deep Learning, in this paper, we propose a deep learning-based model for gender recognition in mobile devices using the lightweight CNN models. In this way, a pretrained CNN model, entitled Multi-Task Convolutional Neural Network (MTCNN), is used for face detection. Furthermore, the MobileFaceNet model is modified and trained using the Margin Distillation cost function. To boost the model performance, the Dense Block and Depthwise separable convolutions are used in the model. Results on six datasets confirm that the proposed model outperforms the MobileFaceNet model on six datasets with the relative accuracy improvements of 0.02%, 1.39%, 2.18%, 1.34%, 7.51%, 7.93% on the LFW, CPLFW, CFP-FP, VGG2-FP, UTKFace, and own data, respectively. In addition, we collected a dataset, including a total of 100’000 face images from both male and female in different age categories. Images of the women are with and without headgear.

Keywords

[1] B. Patel and Sh. Degadawala, “A Survey Paper on Gender Classification using Deep Learning”, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 6, 2020. DOI: https://doi.org/10.32628/CSEIT20613.
 
[2] A.G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand et al. “Mobilenets: Efficient convolutional neural networks for mobile vision applications”. arxiv:1704.04861, 2017.
 
[3] R. Rastgoo and V. Sattari Naeini, “A neuro-fuzzy QoS-aware routing protocol for smart grids”, in 2014 22nd Iranian Conference on Electrical Engineering (ICEE), Tehran, Iran, pp. 1080-1084, 2014.
 
[4] R. Rastgoo and V. Sattari Naeini, “Tuning parameters of the QoS-aware routing protocol for smart grids using genetic algorithm”, Applied Artificial Intelligence, vol. 30, no. 1, pp. 52-76, 216.
 
[5] R. Rastgoo, K. Kiani, and S. Escalera, “Sign language recognition: A deep survey”, Expert Systems with Applications, vol. 164, p. 113794, 2021.
 
[6] B. Patel and Sh. Degadawala, “A Survey Paper on Gender Classification using Deep Learning”, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 6, 2020. DOI: https://doi.org/10.32628/CSEIT20613.
 
[7] R. Rastgoo and V. Sattari Naeini, “Gsomcr: Multi-constraint genetic-optimized QoS-aware routing protocol for smart grids”, in Iranian Journal of Science and Technology, Transactions of Electrical Engineering, Tehran, Iran, vol. 42, pp. 185-194, 2018.
 
[8] N. Majidi, K. Kiani, and R. Rastgoo, “A deep model for super-resolution enhancement from a single image”, Journal of AI and Data Mining, vol. 8, no. 4, pp. 451-460, 2020.
 
[9] K. Kiani, R. Hematpour, and R. Rastgoo, “Automatic Grayscale Image Colorization using a Deep Hybrid Model”, Journal of AI and Data Mining, vol. 9, no. 3, pp. 321-328, 2021.
 
[10] X. Zhang, X. Zhou, M. Lin, and J. Sun, “Shufflenet: An extremely efficient convolutional neural network for mobile devices”. arXiv:1707.01083, 2017.
 
[11] M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, L.C. Chen, “MobileNetV2: Inverted Residuals and Linear Bottlenecks”, in Conference on Computer Vision and Pattern Recognition, Salt Lake City,, USA, 2018.
 
 
 
[14] J. Lizé, V. Débordès, H. Lu, K. Kpalma, and J. Ronsin, “Local binary pattern and its variants: application to face analysis”, in First International Conference on Smart Information and Communication Technologies, Saidia, Morocco, pp.94-102, 2020.
 
[15] P. Gnanasivam and S. Muttan, “Fingerprint Gender Classification using Wavelet Transform and Singular Value Decomposition”, International Journal of Computer Science, vol. 9, no. 2, 2012.
 
[16] S.S. Gornale, M. Basavanna, and R. Kruthi, “Fingerprint Based Gender Classification Using Local Binary Pattern”, International Journal of Computational Intelligence Research, vol. 13, no. 2, pp. 261-271, 2017.
 
[17] R. Kruti, A. Patil, and Sh. Gornale, “Fusion of Features and Synthesis Classifiers for Gender Classification using Fingerprints”, International Journal of Computer Sciences and Engineering, vol. 7, no. 5, 2019.
 
[18] T.R. Undru and C. Anuradha, “A Real Time Gender Recognition System Using Facial Images and CNN”, International Journal of Computer Sciences and Engineering, vol. 7, no. 9, 2019.
 
[19] L.F. Zeni and C. Jung, “Real-Time Gender Detection in the Wild Using Deep Neural Networks”, in 31st SIBGRAPI Conference on Graphics, Patterns and Images (SIBGRAPI), Brazil, 2018.
 
[20] O. Arriaga, P.G. Pl¨oger, and M. Valdenegro, “Real-time Convolutional Neural Networks for Emotion and Gender Classification”, arXiv:1710.07557, 2017.
 
[21] Ph. Smith and C. Chen, “Transfer Learning with Deep CNNs for Gender Recognition and Age Estimation”, in IEEE International Conference on Big Data (Big Data), Seattle, WA, USA, 2018.
 
[22] S. Choudhary, M. Agarwal, and M. Jailia, “Design Framework for Facial Gender Recognition Using MCNN”, International Journal of Engineering and Advanced Technology (IJEAT), vol. 8, no. 3, 2019.
 
[23] S.W.P. Listio, “Performance of Deep Learning Inception Model and MobileNet Model on Gender Prediction Through Eye Image”, Sinkron: Jurnal dan Penelitian Teknik Informatika, vol. 7, no. 4, 2022.
 
[24] T.V. Janahiraman and P. Subramaniam, “Gender Classification Based on Asian Faces using Deep Learning”, in IEEE 9th International Conference on System Engineering and Technology (ICSET), Shah Alam, Malaysia, 2019.
 
[25] N. M. Khalifa, M.H. N. Taha, A.E. Hassanien, and H. N. E. T. Mohamed, “Deep Iris: Deep Learning for Gender Classification Through Iris Patterns”, ACTA INFORM MED, vol. 27, Issue 2, pp. 96-102, 2019. doi: 10.5455/aim.2019.27.96-102.
 
[26] A. V. Savchenko, “Efficient facial representations for age, gender and identity recognition in organizing photo albums using multi-output ConvNet”, PeerJ Comput. Sci, pp. 1-26, 2019. doi:10.7717/peerj-cs.197.
 
[27] K. Zhang, Z. Zhang, Z. Li, Y. Qiao, “Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks”, IEEE Signal Proc. Let., vol. 23, no. 10, pp. 1499–1503, 2016.
 
[28] Y. Guo, L. Zhang, Y. Hu, X. He, and J. Gao, “Ms-celeb-1m: A dataset and benchmark for large-scale face recognition”, arXiv: 1607.08221, 2016.
 
[29] K. He, X. Zhang, Sh. Ren, and J. Sun, “Deep Residual Learning for Image Recognition”, in IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 2016.
 
[30] J. Deng, J. Guo, N. Xue, and S. Zafeiriou, “ArcFace: Additive Angular Margin Loss for Deep Face Recognition”, in IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 2019.
 
 
[32] https://github.com/Tencent/ncnn, Access date: Feb 3, 2023.
 
[33] http://vis-www.cs.umass.edu/lfw/, Access date: Feb 3, 2023.
 
[34] T. Zheng and W. Deng, “Cross-Pose LFW: A Database for Studying Cross-Pose Face Recognition in Unconstrained Environments”, Beijing University of Posts and Telecommunications, Technical Report, 2018.
 
[35] S. Sengupta, J.Ch. Chen, C. Domingo, V.M. Patel, R. Chellapp, and D.W. Jacobs, “Frontal to profile face verification in the wild”, in IEEE Winter Conference on Applications of Computer Vision, WACV 2016, Lake Placid, NY, USA, 2016.
 
[36] Q. Cao, L. Shen, W. Xie, O.M. Parkhi, and A. Zisserman, “VGGFace2: A dataset for recognizing faces across pose and age”, arXiv:1710.08092, 2018.