Implementation of YOLO-v5 for a Real Time Social Distancing Detection

  • Imam Husni Al Amin universitas Stikubank Semarang
  • Falah Hikamudin Arby Universitas Stikubank Semarang
Keywords: Computer Vision, Covid-19, Deep Learning, Social Distancing, YOLO


The world is in an uproar with the Covid-19 pandemic, which has had an impact on society. Various efforts have been made by governments around the world to suppress the spread of the Covid-19 virus. One of the health protocols that have been appealed by the government is social distancing or social restrictions, namely limiting interactions between human beings as long as 1-2 meters. But in reality, there are still many people who ignore social distancing policies. The application of a social distancing detection system can be a solution to this problem. This system aims to detect people who are violating health protocols in the form of social distancing and then issue a voice warning to keep their distance from others to avoid the spread of the Covid-19 virus by using the YOLO-v5 method which is the latest version of YOLO (You Only Look Once). . Processing speed of YOLO-v5 has increased drastically with the fastest speed reaching 140 Frames Per Second (FPS) and has a small size, even having a size of 90% compared to the previous version. The accuracy of human detection using YOLO-v5 from this system reaches 83.28% and the accuracy of social distancing detection reaches 90.8%. From the results of the percentage analysis that has been carried out, it can be concluded that the system that has been created can function well for social distancing detection, but it is difficult to detect if humans are too far from the camera.


Download data is not yet available.


A. R. Fahindra and I. H. Al Amin, “Sistem Pakar Deteksi Awal Covid-19 Menggunakan Metode Certainty Factor,” J. Tekno Kompak, vol. 15, no. 1, pp. 92–103, 2019, doi: 10.33365/jtk.v15i1.914.

Ministry of Health of Rwanada, “COVID-19 Weekly Epidemiological Update,” World Heal. Organ., no. February, pp. 1–33, 2021, [Online]. Available:

Q. Han, Q. Lin, Z. Ni, and L. You, “Uncertainties about the transmission routes of 2019 novel coronavirus,” Influenza Other Respi. Viruses, vol. 14, no. 4, pp. 470–471, 2020, doi: 10.1111/irv.12735.

A. Kresna and J. Ahyar, “Efektivitas Physical Distancing dan Social Distancing Terhadap Kesehatan Dalam Pendekatan Linguistik,” J. Syntax Transform., vol. 1, no. 4, pp. 14–19, Jun. 2020, doi: 10.46799/%j.vol1.iss4.42.

L. I. N. Wang, “Tinier-YOLO : A Real-Time Object Detection Method for Constrained Environments,” IEEE Access, vol. 8, pp. 1935–1944, 2020, doi: 10.1109/ACCESS.2019.2961959.

M. H. Putra, Z. M. Yussof, S. I. Salim, and K. C. Lim, “Convolutional neural network for person detection using YOLO framework,” J. Telecommun. Electron. Comput. Eng., vol. 9, no. 2–13, pp. 1–5, 2017.

J. Yu and W. Zhang, “Face Mask Wearing Detection Algorithm Based on Improved YOLO-v4,” Sensors 2021, Vol. 21, Page 3263, vol. 21, no. 9, p. 3263, May 2021, doi: 10.3390/S21093263.

J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You only look once: Unified, real-time object detection,” Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit., vol. 2016-Decem, pp. 779–788, 2016, doi: 10.1109/CVPR.2016.91.

Y. Liu, B. Lu, J. Peng, and Z. Zhang, “Research on the Use of YOLOv5 Object Detection Algorithm in Mask Wearing Recognition,” vol. 6, no. 11, pp. 276–284, 2020, doi: 10.6911/WSRJ.202011.

M. Kasper-eulaers, N. Hahn, S. Berger, T. Sebulonsen, and Ø. Myrland, “Short Communication : Detecting Heavy Goods Vehicles in Rest Areas in Winter Conditions Using YOLOv5,” 2021.

N. N. Nurliza, “Penerapan Euclidean Distance Pada Pengenalan Pola Citra Sidik Jari,” pp. 1–67, 2018.

How to Cite
I. Al Amin and F. Arby, “Implementation of YOLO-v5 for a Real Time Social Distancing Detection”, JAIC, vol. 6, no. 1, pp. 01-06, Jul. 2022.