Enhancing Real Time Crowd Counting Using YOLOv8 Integrated with Microservices Architecture for Dynamic Object Detection in High Density Environments

P Prihandoko(1*), Faisal Zufari(2), Y Yuhandri(3), Yuda Irawan(4),

(1) Universitas Gunadarma, Depok, Indonesia
(2) Universitas Gunadarma, Depok, Indonesia
(3) Universitas Putra Indonesia “YPTK” Padang, Indonesia
(4) Universitas Hang Tuah Pekanbaru, Pekanbaru, Indonesia
(*) Corresponding Author

Abstract


This study presents the implementation of the YOLOv8 algorithm to enhance real-time crowd counting on the ngedatedotid application, which aims to provide accurate crowd density information at various locations. The proposed model leverages the advanced capabilities of YOLOv8 in detecting and localizing head-people objects within crowded environments, even in complex visual conditions. The model achieved a mAP of 85%, outperforming previous models such as YOLO V8'S (78.3%) and YOLO V7 (81.9%), demonstrating significant improvements in detection accuracy and localization capabilities. The custom-trained model further exhibited a detection accuracy of up to 95% in specific scenarios, ensuring reliable and real-time feedback to users regarding crowd conditions at various locations. By implementing a microservices architecture integrated with RESTful API communication, the system facilitates efficient data processing and supports a modular approach in system development, enabling seamless updates and scalability. This architecture allows for independent deployment of services, thereby minimizing system downtime and optimizing performance. The integration of YOLOv8 and the custom-trained model has proven to be effective in enhancing real-time monitoring and detection of crowd density, making it a suitable solution for diverse applications that require dynamic and accurate crowd information. The results indicate that the proposed model and system architecture can provide a robust framework for real-time crowd management, which is crucial for business owners, event organizers, and public safety monitoring. Future research should consider exploring newer versions of YOLO, such as YOLO V9-S, and expanding the dataset to address challenges related to varying lighting conditions, occlusions, and object orientations. Optimizing these factors will further improve the model’s accuracy and reliability, setting a new standard for crowd detection systems in public spaces and enhancing the overall user experience.

Full Text:

PDF

References


K. Gos and W. Zabierowski, “The Comparison of Microservice and Monolithic Architecture,” IEEE Access, vol. 1109, no. June, pp. 150–153, 2020, doi: 10.1109/MEMSTECH49584.2020.9109514.

Y. Abgaz et al., “Decomposition of Monolith Applications Into Microservices Architectures : A Systematic Review,” IEEE Trans. Softw. Eng., vol. 49, no. 8, pp. 4213–4242, 2023.

F. Tapia, M. Á. Mora, W. Fuertes, H. Aules, E. Flores, and T. Toulkeridis, “From Monolithic Systems to Microservices: A Comparative Study of Performance,” Appl. Sci., vol. 10, no. 17, pp. 1–35, 2020, doi: 10.3390/app10175797.

G. Liu, B. Huang, and Z. Liang, “Microservices : architecture , container , and challenges,” IEEE Access, vol. 1109, no. December, pp. 629–635, 2020, doi: 10.1109/QRS-C51114.2020.00107.

N. Singh et al., “Load balancing and service discovery using Docker Swarm for microservice based big data applications,” J. Cloud Comput., vol. 12, no. 1, p. 4, 2023, doi: 10.1186/s13677-022-00358-7.

S. Li et al., “Understanding and Addressing Quality Attributes of Microservices Architecture : A Systematic Literature Review,” Inf. Softw. Technol., vol. 131, no. March, pp. 1–30, 2020, doi: 10.1016/j.infsof.2020.106449.

S. Ben Atitallah, M. Driss, and H. Ben Ghzela, “Microservices for Data Analytics in IoT Applications: Current Solutions, Open Challenges, and Future Research Directions,” Procedia Comput. Sci., vol. 207, no. June, pp. 3938–3947, 2022, doi: https://doi.org/10.1016/j.procs.2022.09.456.

Z. Khan, H. Liu, Y. Shen, and X. Zeng, “Deep learning improved YOLOv8 algorithm: Real-time precise instance segmentation of crown region orchard canopies in natural environment,” Comput. Electron. Agric., vol. 224, no. September, p. 109168, 2024, doi: https://doi.org/10.1016/j.compag.2024.109168.

B. Lin, “Safety Helmet Detection Based on Improved YOLOv8,” IEEE Access, vol. 12, no. February, pp. 28260–28272, 2024, doi: 10.1109/ACCESS.2024.3368161.

M. Safran, A. Alajmi, and S. Alfarhood, “Efficient Multistage License Plate Detection and Recognition Using YOLOv8 and CNN for Smart Parking Systems,” J. Sensors, vol. 2024, no. 1, p. 4917097, 2024, doi: https://doi.org/10.1155/2024/4917097.

J. Farooq, M. Muaz, K. Khan Jadoon, N. Aafaq, and M. K. A. Khan, “An improved YOLOv8 for foreign object debris detection with optimized architecture for small objects,” Multimed. Tools Appl., vol. 83, no. 21, pp. 60921–60947, 2024, doi: 10.1007/s11042-023-17838-w.

R. Sapkota, D. Ahmed, and M. Karkee, “Comparing YOLOv8 and Mask R-CNN for instance segmentation in complex orchard environments,” Artif. Intell. Agric., vol. 13, no. September, pp. 84–99, 2024, doi: https://doi.org/10.1016/j.aiia.2024.07.001.

G. Yang, J. Wang, Z. Nie, H. Yang, and S. Yu, “A Lightweight YOLOv8 Tomato Detection Algorithm Combining Feature Enhancement and Attention,” Agronomy, vol. 13, no. 7, pp. 1–14, 2023, doi: 10.3390/agronomy13071824.

M. Talib, A. H. Y. Al-Noori, and J. Suad, “YOLOv8-CAB: Improved YOLOv8 for Real-time Object Detection,” Karbala Int. J. Mod. Sci., vol. 10, no. 1, pp. 56–68, 2024, doi: 10.33640/2405-609X.3339.

G. Oh and S. Lim, “One-Stage Brake Light Status Detection Based on YOLOv8,” Sensors, vol. 23, no. 17, pp. 1–18, 2023, doi: 10.3390/s23177436.

Y. Irawan, “Decision Support System For Employee Bonus Determination With Web-Based Simple Additive Weighting (SAW) Method In PT. Mayatama Solusindo,” J. Appl. Eng. Technol. Sci., vol. 2, no. 1, pp. 7–13, 2020, doi: https://doi.org/10.37385/jaets.v2i1.162.

M. Muthumari, V. Akash, K. P. Charan, P. Akhil, V. Deepak, and S. P. Praveen, “Smart and Multi-Way Attendance Tracking System Using an Image-Processing Technique,” in 2022 4th International Conference on Smart Systems and Inventive Technology (ICSSIT), 2022, pp. 1805–1812. doi: 10.1109/ICSSIT53264.2022.9716349.

R. Shi, T. Li, and Y. Yamaguchi, “An attribution-based pruning method for real-time mango detection with YOLO network,” Comput. Electron. Agric., vol. 169, no. February, p. 105214, 2020, doi: https://doi.org/10.1016/j.compag.2020.105214.

A. Bochkovskiy, C.-Y. Wang, and H.-Y. M. Liao, “YOLOv4: Optimal Speed and Accuracy of Object Detection,” arXiv, vol. 2004, no. Apr, pp. 1–17, 2020, doi: https://doi.org/10.48550/arXiv.2004.10934.

X. Zhang et al., “Inspection and Classification System of Photovoltaic Module Defects Based on UAV and Thermal Imaging,” in 2022 7th International Conference on Power and Renewable Energy (ICPRE), 2022, pp. 905–909. doi: 10.1109/ICPRE55555.2022.9960506.

H. T. Ngoc, K. H. Nguyen, H. K. Hua, H. V. N. Nguyen, and L. Da Quach, “Optimizing YOLO Performance for Traffic Light Detection and End-to-End Steering Control for Autonomous Vehicles in Gazebo-ROS2,” Int. J. Adv. Comput. Sci. Appl., vol. 14, no. 7, pp. 475–484, 2023, doi: 10.14569/IJACSA.2023.0140752.

T. H. Wu, T. W. Wang, and Y. Q. Liu, “Real-Time Vehicle and Distance Detection Based on Improved Yolo v5 Network,” 2021 3rd World Symp. Artif. Intell. WSAI 2021, vol. 978, no. June, pp. 24–28, 2021, doi: 10.1109/WSAI51899.2021.9486316.

Y. Wang, H. Wang, and Z. Xin, “Efficient Detection Model of Steel Strip Surface Defects Based on YOLO-V7,” IEEE Access, vol. 10, no. November, pp. 133936–133944, 2022, doi: 10.1109/ACCESS.2022.3230894.

A. Syahputra, Yaddarabullah, M. F. Azhary, A. B. A. Rahman, and A. Saad, “Occupancy Measurement in Under-Actuated Zones: YOLO-based Deep Learning Approach,” Int. J. Adv. Comput. Sci. Appl., vol. 15, no. 2, pp. 757–769, 2024, doi: 10.14569/IJACSA.2024.0150277.

A. Febriani, R. Wahyuni, Y. Irawan, and R. Melyanti, “Improved Hybrid Machine and Deep Learning Model for Optimization of Smart Egg Incubator,” J. Appl. Data Sci., vol. 5, no. 3, pp. 1052–1068, 2024.




DOI: https://doi.org/10.30645/kesatria.v6i1.575

DOI (PDF): https://doi.org/10.30645/kesatria.v6i1.575.g570

Refbacks

  • There are currently no refbacks.


Published Papers Indexed/Abstracted By: