Comparación del rendimiento de algoritmos para la detección de rostros sobre imágenes naturales
Main Article Content
Abstract
Face detection is one of the most studied areas of research in Computer vision. The algorithms used for face detection play a crucial role in facial recognition, expression recognition, sentiment analysis, and other applications. This study compares the performance of two of the most widely used face detection algorithms in the literature: Haar Cascade and HOG. Both algorithms were tested on three datasets derived from the public Flickr8k dataset (one face, multiple faces and no faces at all). The objective was to determine which of the two offers the best performance in terms of accuracy when detecting faces in scenes. The results show that HOG achieved a higher F1-score in both experiments with faces present (0.95 vs. 0.84 in images with one face; 0.87 vs. 0.85 in images with multiple faces) and a lower number of false positives across all 3 evaluated sets. However, Haar Cascades detected a greater total number of faces in scenes with multiple faces, at the cost of a higher false positive rate. Both algorithms had equivalent run times, so the choice between them will depend on the desired trade-off between sensitivity and precision, subject to the application context.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
Bek, J., Poliakoff, E., & Lander, K. (2020). Measuring emotion recognition by people with Parkinson's disease using eye-tracking with dynamic facial expressions. Journal of Neuroscience Methods, 331, 108524. https://doi.org/10.1016/j.jneumeth.2019.108524
Boyko, N., Basystiuk, O., & Shakhovska, N. (2018). Performance evaluation and comparison of software for face recognition, based on Dlib and OpenCV library. 2018 IEEE Second International Conference on Data Stream Mining & Processing (DSMP). https://doi.org/10.1109/DSMP.2018.8478556
Bradski, G., & Kaehler, A. (2008). Learning OpenCV: Computer vision with the OpenCV library. O'Reilly Media.
Carrera, H. A., Maita, S. S., & Lascano, P. H. (2021). Modelo para detectar el uso correcto de mascarillas en tiempo real utilizando redes neuronales convolucionales. Revista de Investigación en Tecnologías de la Información, 9(17), 111–120. https://doi.org/10.36825/RITI.09.17.011
Chen, Y., Tai, Y., Liu, X., Shen, C., & Yang, J. (2018). FSRNet: End-to-end learning face super-resolution with facial priors. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). https://doi.org/10.1109/CVPR.2018.00264
Dalal, N., & Triggs, B. (2005). Histograms of oriented gradients for human detection. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR). https://doi.org/10.1109/CVPR.2005.177
Deng, J., Guo, J., Yang, J., Xue, N., Kotsia, I., & Zafeiriou, S. (2022). ArcFace: Additive angular margin loss for deep face recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(10), 5962–5979. https://doi.org/10.1109/TPAMI.2021.3087709
Dino, H., Abdulrazzaq, M. B., Zeebaree, S. R. M., Sallow, A. B., Zebari, R. R., Shukur, H. M., & Haji, L. M. (2020). Facial expression recognition based on hybrid feature extraction techniques with different classifiers. TEST Engineering & Management, 83, 22319–22329. http://www.testmagzine.biz/index.php/testmagzine/article/view/11288
Gollapudi, S. (2019). Learn computer vision using OpenCV: With deep learning CNNs and RNNs. Apress. https://doi.org/10.1007/978-1-4842-4261-2
Harris, C. R., Millman, K. J., & van der Walt, S. J. (2020). Array programming with NumPy. Nature, 585, 357–362. https://doi.org/10.1038/s41586-020-2649-2
Hodosh, M., Young, P., & Hockenmaier, J. (2013). Framing image description as a ranking task: Data, models and evaluation metrics. Journal of Artificial Intelligence Research, 47, 853–899. https://doi.org/10.1613/jair.3994
Howse, J., & Minichino, J. (2020). Learning OpenCV 4 computer vision with Python 3: Get to grips with tools, techniques, and algorithms for computer vision and machine learning (3rd ed.). Packt Publishing. https://github.com/PacktPublishing/Learning-OpenCV-4-Computer-Vision-with-Python-Third-Edition
Jagtap, A. M., Kangale, V., Unune, K., & Gosavi, P. (2019). A study of LBPH, Eigenface, Fisherface and Haar-like features for face recognition using OpenCV. 2019 IEEE International Conference on Intelligent Sustainable Systems (ICISS). https://doi.org/10.1109/ISS1.2019.8907965
Lal, M., Kumar, K., Arain, R. H., Maitlo, A., Ruk, S. A., & Shaikh, H. (2018). Study of face recognition techniques: A survey. International Journal of Advanced Computer Science and Applications, 9(6), 42–49. https://doi.org/10.14569/IJACSA.2018.090606
Minaee, S., Abdolrashidi, A., Su, H., Bennamoun, M., & Zhang, D. (2023). Biometrics recognition using deep learning: A survey. Artificial Intelligence Review, 56, 8647–8695. https://doi.org/10.1007/s10462-022-10237-x
Okada, A., Torres Rocha, A. K. L., Fuchter, S. K., Zucchi, S., & Wortley, D. (2019). Formative assessment of inquiry skills for responsible research and innovation using 3D virtual reality glasses and face recognition. In Technology Enhanced International Conference. https://doi.org/10.1007/978-3-030-25264-9_7
Parekh, H. S., Takore, D. G., & Jaliya, U. K. (2014). A survey on object detection and tracking methods. International Journal of Innovative Research in Computer and Communication Engineering, 2, 2970–2978.
Powers, D. M. W. (2020). Evaluation: From precision, recall and F-measure to ROC, informedness, markedness and correlation. arXiv. https://doi.org/10.48550/arXiv.2010.16061
Rahman, M. M., Manik, M. M., Islam, M. M., Mahmud, S., & Kim, J. H. (2020). An automated system to limit COVID-19 using facial mask detection in smart city network. 2020 IEEE International IOT, Electronics and Mechatronics Conference (IEMTRONICS). https://doi.org/10.1109/IEMTRONICS51293.2020.9216386
Ranjan, R., Sankaranarayanan, S., Bansal, A., Bodla, N., Chen, J. C., Patel, V. M., Castillo, C. D., & Chellappa, R. (2018). Deep learning for understanding faces: Machines may be just as good, or better, than humans. IEEE Signal Processing Magazine, 35(1), 66–83. https://doi.org/10.1109/MSP.2017.2764116
Savchenko, A. V., Demochkin, K. V., & Grechikhin, I. S. (2022). Preference prediction based on a photo gallery analysis with scene recognition and object detection. Pattern Recognition, 121, 108248. https://doi.org/10.1016/j.patcog.2021.108248
Simpson, E. A., Maylott, S. E., Leonard, K., Lazo, R. J., & Jakobsen, K. V. (2019). Face detection in infants and adults: Effects of orientation and color. Journal of Experimental Child Psychology, 186, 17–32. https://doi.org/10.1016/j.jecp.2019.05.001
Solorzano Alcivar, N. I., Herrera Paltan, L. C., Lima Palacios, L. R., Paillacho Chiluiza, D. F., & Paillacho Corredores, J. S. (2022). Visual metrics for educational videogames linked to socially assistive robots in an inclusive education framework. In A. Mesquita, A. Abreu, & J. V. Carvalho (Eds.), Perspectives and trends in education and technology (Smart Innovation, Systems and Technologies, Vol. 256). Springer. https://doi.org/10.1007/978-981-16-5063-5_10
Suresh, K., Palangappa, M., & Bhuvan, S. (2021). Face mask detection by using optimistic convolutional neural network. 2021 6th International Conference on Inventive Computation Technologies (ICICT). https://doi.org/10.1109/ICICT50816.2021.9358653
Szeliski, R. (2022). Computer vision: Algorithms and applications. Springer. https://doi.org/10.1007/978-3-030-34372-9
Tai, Y., Liang, Y., Liu, X., Duan, L., Li, J., Wang, F., Huang, C., & Chen, Y. (2019). Towards highly accurate and stable face alignment for high-resolution videos. Proceedings of the AAAI Conference on Artificial Intelligence.
Viola, P., & Jones, M. (2001). Rapid object detection using a boosted cascade of simple features. Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), 1, 511–518. https://doi.org/10.1109/CVPR.2001.990517
Wang, B., Zhao, Y., & Chen, C. L. (2021). Hybrid transfer learning and broad learning system for wearing mask detection in the COVID-19 era. IEEE Transactions on Instrumentation and Measurement, 70, 1–12. https://doi.org/10.1109/TIM.2021.3069844
Wang, M., & Deng, W. (2021). Deep face recognition: A survey. Neurocomputing, 429, 215–244. https://doi.org/10.1016/j.neucom.2020.10.081
Yang, J., Luo, L., Qian, J., Tai, Y., Zhang, F., & Xu, Y. (2017). Nuclear norm based matrix regression with applications to face recognition with occlusion and illumination changes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(1), 156–171. https://doi.org/10.1109/TPAMI.2016.2535218
Zereen, A. N., Corraya, S., Dailey, M. N., & Ekpanyapong, M. (2021). Two-stage facial mask detection model for indoor environments. In M. S. Kaiser, A. Bandyopadhyay, M. Mahmud, & K. Ray (Eds.), Proceedings of International Conference on Trends in Computational and Cognitive Engineering (Advances in Intelligent Systems and Computing, Vol. 1309). Springer. https://doi.org/10.1007/978-981-33-4673-4_48