International Journal of Applied Science and Engineering
Published by Chaoyang University of Technology

Wen-Chang Cheng1, Hung-Chou Hsiao2*, You-Quan Hong1, De-Yu Wang1

1 Department of Computer Science & Information Engineering, Chaoyang University of Technology, Taichung City, Taiwan

Department of Information Management, Chaoyang University of Technology,Taichung City, Taiwan


Download Citation: |
Download PDF


This study proposes a face recognition method based on FaceNet for face masks. FaceNet converts faces into 128-dimensional feature vectors using a network of deep learning models. The smaller the Euclidean distance between different face images, the closer the person is to the same person; conversely, the larger the Euclidean distance, the more different the person is. Wearing a mask affects some feature vector dimensions of FaceNet conversion, resulting in reduced recognition ability. This study uses a Genetic Algorithm (GA) to select and remove the feature vectors affected by mask wearing. The experimental results show that the validation rate value of 55 features removed by the GA is increased from 0.550 to 0.650 for the original unremoved features.

Keywords: Deep learning, Genetic algorithm, Optimization algorithm, Face recognition, Euclidean distance.

Share this article with your colleagues



  1. Anwar, A., Raychowdhury, A. 2020. Masked face recognition for secure authentication. arXiv, arXiv: 2008. 11104.

  2. Bain, X., Li, J. 2021. Conditional adversarial consistent identity autoencoder for cross-age face synthesis. Multimedia Tools and Applications, 80, 14231–14253.

  3. Cao, Q., Shen, L., Xie, W., Parkhi, O.M., Zisserman, A. 2018. VGGFace2: A dataset for recognizing faces across pose and age. 13th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2018), 67–74.

  4. CDC. 2023. COVID-19 prevention actions. Retrieved 2023-06-06 from

  5. Cheng, W.C., Hong, Y.Q. 2022. FaceNet-based feature vector statistics for masked face recognition. Workshop on Consumer Electronics (WCE2022).

  6. Cheng, W.C., Hsiao, H.C., Lee, D.W. 2021. Face recognition system with feature normalization. International Journal of Applied Science and Engineering, 18, 1–9.

  7. Cheng, W.C., Hsiao, H.C. Li, L.H. 2023. Deep learning mask face recognition with annealing mechanism. Applied Sciences, 13, 732.

  8. Chen, Y., Lin, G., Li, S., Omar, B., Wu, Y., Wang, F., Feng, J., Xu, M., Li, X. 2020. Bidirectional aggregation network with occlusion handling for panoptic segmentation. IEEE/CVF Conference on Computer Vision and Pattern Recognition, 3793–3802.

  9. Chong, W.-J.L., Chong, S.-C., Ong, T.-S. 2023. Masked face recognition using histogram-based recurrent neural network. Journal of Imaging, 9, 38.

  10. Darwin, C., Wallace, A.R. 1858. On the tendency of species to form varieties; and on the perpetuation of varieties and species by natural means of selection. Zoological Journal of the Linnean Society, 3, 45–62.

  11. Dewi, C., Chen, R.-C. 2022. Automatic medical face mask detection based on cross-stage partial network to combat COVID-19. Big Data and Cognitive Computing. 6, 106.

  12. Dewi, C., Chen, A.P.S., Christanto, H.J. 2023. YOLOv7 for face mask identification based on deep learning. 15th International Conference on Computer and Automation Engineering (ICCAE), 193–197.

  13. Dewi, C., Chen, A.P.S., Christanto, H.J. 2023. Recognizing similar musical instruments with YOLO models. Big Data and Cognitive Computing. 7, 94.

  14. Dewi, C., Chen, R.-C., Yu, H., Jiang, X. 2023. XAI for image captioning using SHAP. Journal of Information Science and Engineering. 39, 711–724.

  15. Dorigo, M., Maniezzo, V., Colorni, A. 1996. Ant system: Optimization by a colony of cooperating agents. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 26, 29–41.

  16. Eberhart, R., Kennedy, J. 1995. A new optimizer using particle swarm theory. Proceedings of the Sixth International Symposium on Micro Machine and Human Science, 39–43.

  17. Ge, Y., Liu, H., Du, J., Li, Z., Wei, Y. 2023. Masked face recognition with convolutional visual self-attention network. Neurocomputing. 518, 496–506.

  18. Holland, J.H. 1992. Adaptation in natural and artificial systems. Ann Arbor, MI: University of Michigan Press.

  19. Huang, G.B., Ramesh, M., Berg, T., Learned-Miller, E. 2007. Labeled faces in the wild: A database for studying face recognition in unconstrained environments. University of Massachusetts, Amherst, Technical Report, 7-49.

  20. Huang, B., Wang, Z., Wang, G., Jiang, K., He, Z., Zou, H., Zou, Q. 2021. Masked face recognition datasets and validation. IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), 1487–1491.

  21. Kai, W., Shuo, W., Jianfei, Y., Xiaobo, W., Baigui, S., Hao L., Yang, Y. 2021. Mask aware network for masked face recognition in the wild. IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), 1456–1461.

  22. Kelly, M.D. 1970. Visual identification of people by computer. Techical Report AI-130.

  23. Liu, C., Wechsler, H. 2002. Gabor feature based classification using the enhanced fisher linear discriminant model for face recognition. IEEE Transactions on Image processing, 11, 467–476.

  24. Liu N., VGGFace2-HQ, 2021. Retrieved 2023-06-06 from

  25. NEC. Face recognition: Biometric authentication. Retrieved 2023-06-06 from

  26. Negnevitsky, M., Translated by Hsieh, C.H., Liao, H.C., Lee, L.W. 2019. Artificial intelligence: A guide to intelligent systems, 3/e. Pearson Education Taiwan Ltd. 7-1, 7–44.

  27. Ngan, M.L., Grother, P.J., Hanaoka, K.K. 2020. Ongoing face recognition vendor test (FRVT) Part 6B: Face recognition accuracy with face masks using post-Covid-19 algorithms. NIST Interagency/Internal Report (NISTIR).

  28. Schroff, F., Kalenichenko, D., Philbin, J. 2015. FaceNet: A unified embedding for face recognition and clustering. IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), 815–823.

  29. Shukla, R.K., Tiwari, A.K. 2023. Masked face recognition using mobilenet v2 with transfer learning. Computer Systems Science and Engineering, 45, 293–309.

  30. Sirovich, L., Kirby, M. 1987. Low-dimensional procedure for the characterization of human faces. Journal of the Optical Society of America A Optics and image science, 4, 519–524.

  31. Song, L., Gong, D., Li, Z., Liu C., Liu, W. 2019. Occlusion robust face recognition based on mask learning with pairwise differential siamese network. arXiv, arXiv: 1908. 06290.

  32. Takacs, B. 1998. Comparing face images using the modified Hausdorff distance. Pattern Recognition, 31, 1873–1881.

  33. Thales Group. 2020. Biometric technology to control COVID-19. Retrieved 2023-06-06 from https://www.

  34. Wang, Z., Huang, B., Wang, G., Yi, P., Jiang, K. 2023. Masked face recognition dataset and application. IEEE Transactions on Biometrics, Behavior, and Identity Science. 5, 298–304.

  35. WHO 2023. Coronavirus disease (COVID-19): Masks. Retrieved 2023-06-06 from

  36. William, I., Ignatius Moses Setiadi, D.R., Rachmawanto, E.H., Santoso, H.A., Sari, C.A. 2019. Face recognition using facenet (survey, performance test, and comparison). In 2019 Fourth International Conference on Informatics and Computing (ICIC), 1-6.

  37. Wu, C., Fu, X., Pei, J., Dong, Z. 2021. A novel sparrow search algorithm for the traveling salesman problem. IEEE Access, 9, 153456–153471.

  38. Xue, J., Shen, B., 2020. A novel swarm intelligence optimization approach: Sparrow search algorithm. Systems Science & Control Engineering, 8, 22–34.

  39. X-zhangyang, Real-world-masked-face-dataset, 2020. Retrieved 2023-06-06 from

  40. Yang, X.S., 2009. Firefly algorithms for multimodal optimization. SAGA 2009, Lecture Notes in Computer Science, 5792.

  41. ZENBOT99, VGGface2_HQ_cropped, 2022. Retrieved 2023-06-06 from

  42. Zeng, S., Gou, J., Deng, L. 2017. An antinoise sparse representation method for robust face recognition. Expert Systems with Applications: An International Journal, 82, 1–9.


Received: 2023-03-24
Revised: 2023-05-08
Accepted: 2023-05-22
Available Online: 2023-06-06

Cite this article:

Cheng, W.-C., Hsiao, H.-C., Hong, Y.-Q., Wang, D.-Y. Masked face recognition based on facenet and genetic algorithm. International Journal of Applied Science and Engineering, 20, 2023078.

  Copyright The Author(s). This is an open access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are cited.