Real-Time Face Recognition for Smart Door Lock Systems: A Comparative Study of FaceNet, FaceNet512, and InsightFace on Raspberry Pi

Authors

  • Muhammad Iqbal Halid Krida Wacana Christian University, Indonesia
  • Ivan Tanra Krida Wacana Christian University, Indonesia
  • Marvin Yonathan Hadiyanto Krida Wacana Christian University, Indonesia

DOI:

https://doi.org/10.25077/aijaset.v6i3.384

Abstract

Face recognition has emerged as an effective biometric authentication technology for intelligent access control systems because of its contactless operation, convenience, and security advantages. Although deep learning has substantially improved recognition performance, the suitability of different models for real-time deployment on embedded platforms remains insufficiently explored. This study presents a real-time, face recognition-based smart door lock system implemented on a Raspberry Pi 5 and compares three face recognition models: FaceNet, FaceNet512, and InsightFace. The system integrates a webcam, a relay module, and an electromagnetic door lock to provide automated access control for authorized users. Facial images were collected from 20 individuals, yielding 400 training images and 200 authorized-user testing images. Model performance was evaluated using accuracy, precision, sensitivity, specificity, F1-score, latency, frames per second (FPS), and recognition robustness at different distances. InsightFace achieved the highest performance, with 100% accuracy, precision, sensitivity, specificity, and F1-score on the testing dataset. During real-time testing, InsightFace maintained authorized-user recognition rates above 97% at all tested distances and achieved a 100% unauthorized-user rejection rate. It also recorded the lowest average latency (0.243 s) and the highest average processing speed (4.153 FPS), demonstrating its suitability for embedded smart door lock applications.

Author Biographies

Muhammad Iqbal Halid, Krida Wacana Christian University, Indonesia

Department of Electrical Engineering, Faculty of Smart Technology, Krida Wacana Christian University, Jakarta, Indonesia

Ivan Tanra, Krida Wacana Christian University, Indonesia

Department of Electrical Engineering, Faculty of Smart Technology, Krida Wacana Christian University, Jakarta, Indonesia

Marvin Yonathan Hadiyanto, Krida Wacana Christian University, Indonesia

Department of Electrical Engineering, Faculty of Smart Technology, Krida Wacana Christian University, Jakarta, Indonesia

References

[1] Y. Kortli, M. Jridi, A. Al Falou, and M. Atri, “Face Recognition Systems: A Survey,” Sensors, vol. 20, no. 2, p. 342, Jan. 2020, doi: 10.3390/s20020342.

[2] A. K. Jain, A. Ross, and S. Prabhakar, “An Introduction to Biometric Recognition,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 14, no. 1, pp. 4–20, Jan. 2004, doi: 10.1109/TCSVT.2003.818349.

[3] T. Nguyen, B. Lakshmanan, and W. Sheng, “A Smart Security System with Face Recognition,” arXiv preprint arXiv:1812.09127, Dec. 2018, doi: https://doi.org/10.48550/arXiv.1812.09127.

[4] M. R., R. Y., R. R., and S. A., “Smart Home Security System using Iot, Face Recognition and Raspberry Pi,” Int. J. Comput. Appl., vol. 176, no. 13, pp. 45–47, Apr. 2020, doi: 10.5120/ijca2020920105.

[5] Mehrunnisa, J. S. Priyanka, and B. Sharath Chandra, “Automatic Door Un-locking and Security System Using Raspberry Pi,” in 2022 IEEE International Conference on Distributed Computing and Electrical Circuits and Electronics (ICDCECE), IEEE, Apr. 2022, pp. 1–5. doi: 10.1109/ICDCECE53908.2022.9793143.

[6] S. I. Serengil and A. Ozpinar, “Boosted LightFace: A Hybrid DNN and GBM Model for Boosted Facial Recognition,” Gazi University Journal of Science, vol. 39, no. 1, pp. 452–466, Mar. 2026, doi: 10.35378/gujs.1794891.

[7] Wirianto and T. Mauritsius, “The development of face recognition model in indonesia pandemic context based on dcnn and arcface loss function,” International Journal of Innovative Computing, Information and Control, vol. 17, no. 5, pp. 1513–1530, Oct. 2021, doi: 10.24507/ijicic.17.05.1513.

[8] D. Y. Liliana, T. Basaruddin, and I. I. D. Oriza, “The Indonesian Mixed Emotion Dataset (IMED),” in Proceedings of the 2018 International Conference on Artificial Intelligence and Virtual Reality, New York, NY, USA: ACM, Nov. 2018, pp. 56–60. doi: 10.1145/3293663.3293671.

[9] A. Firmansyah, T. F. Kusumasari, and E. N. Alam, “Comparison of Face Recognition Accuracy of ArcFace, Facenet and Facenet512 Models on Deepface Framework,” in 2023 International Conference on Computer Science, Information Technology and Engineering (ICCoSITE), IEEE, Feb. 2023, pp. 535–539. doi: 10.1109/ICCoSITE57641.2023.10127799.

[10] F. Schroff, D. Kalenichenko, and J. Philbin, “FaceNet: A unified embedding for face recognition and clustering,” in 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, Jun. 2015, pp. 815–823. doi: 10.1109/CVPR.2015.7298682.

[11] I. William, D. R. Ignatius Moses Setiadi, E. H. Rachmawanto, H. A. Santoso, and C. A. Sari, “Face Recognition using FaceNet (Survey, Performance Test, and Comparison),” in 2019 Fourth International Conference on Informatics and Computing (ICIC), IEEE, Oct. 2019, pp. 1–6. doi: 10.1109/ICIC47613.2019.8985786.

[12] J. Deng, J. Guo, J. Yang, N. Xue, I. Kotsia, and S. Zafeiriou, “ArcFace: Additive Angular Margin Loss for Deep Face Recognition,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 44, no. 10, pp. 5962–5979, Oct. 2022, doi: 10.1109/TPAMI.2021.3087709.

[13] D. Zeng, R. Veldhuis, and L. Spreeuwers, “A survey of face recognition techniques under occlusion,” IET Biom., vol. 10, no. 6, pp. 581–606, Nov. 2021, doi: 10.1049/bme2.12029.

[14] Karahan, S., Kilinc Yildirum, M., Kirtac, K., Rende, F. S., Butun, G., & Ekenel, H. K. (2016). How Image Degradations Affect Deep CNN-Based Face Recognition? 2016 International Conference of the Biometrics Special Interest Group (BIOSIG), 1–5. https://doi.org/10.1109/BIOSIG.2016.7736924.

[15] S. Yedulapuram, R. Arabelli, K. Mahender, and C. Sidhardha, “Automatic Door Lock System by Face Recognition,” IOP Conf. Ser. Mater. Sci. Eng., vol. 981, no. 3, p. 032036, Dec. 2020, doi: 10.1088/1757-899X/981/3/032036.

[16] R. Saputra and N. Surantha, “Smart and real-time door lock system for an elderly user based on face recognition,” Bulletin of Electrical Engineering and Informatics, vol. 10, no. 3, pp. 1345–1355, Jun. 2021, doi: 10.11591/eei.v10i3.2955.

[17] S. A. Radzi, M. K. M. F. Alif, Y. N. Athirah, A. S. Jaafar, A. H. Norihan, and M. S. Saleha, “IoT based facial recognition door access control home security system using raspberry pi,” International Journal of Power Electronics and Drive Systems (IJPEDS), vol. 11, no. 1, p. 417, Mar. 2020, doi: 10.11591/ijpeds.v11.i1.pp417-424.

[18] Irjanto, N. S., & Surantha, N. (2020). Home Security System with Face Recognition based on Convolutional Neural Network. International Journal of Advanced Computer Science and Applications, 11(11). https://doi.org/10.14569/IJACSA.2020.0111152.

[19] R. Cordova-Cardenas, D. Amor, and Á. Gutiérrez, “Edge AI in Practice: A Survey and Deployment Framework for Neural Networks on Embedded Systems,” Electronics (Basel)., vol. 14, no. 24, p. 4877, Dec. 2025, doi: 10.3390/electronics14244877.

[20] A. R. Chaidir, D. W. Herdiyanto, and K. Anam, “Integrasi Robot Lengan Beroda Holonomic dan Pengindraan Visual Menggunakan Yolov5 untuk Pemilah Sampah,” IJEIS (Indonesian Journal of Electronics and Instrumentation Systems), vol. 15, no. 1, p. 13, Apr. 2025, doi: 10.22146/ijeis.103301.

Downloads

Published

2026-11-17

How to Cite

Halid, M. I., Tanra, I., & Hadiyanto, M. Y. (2026). Real-Time Face Recognition for Smart Door Lock Systems: A Comparative Study of FaceNet, FaceNet512, and InsightFace on Raspberry Pi. Andalasian International Journal of Applied Science, Engineering and Technology, 6(3), 387–396. https://doi.org/10.25077/aijaset.v6i3.384