Abstract
Advances in technology, particularly the tracking and analyzing of customer movements and behavior within retail stores, are leading to a massive revolution within the retail industry. This paper suggests a model that combines object detection, pattern mining, improved preprocessing techniques, and analysis of user motion to boost the retailing process and improve the customer experience. In the proposed method, video data preprocessing is accomplished using the Lucas-Kanade approach. The success of this technique is attributed to its ability to create a solid base for future study by successfully tracking and recording movements made by users. For object detection, the most suitable algorithm is YOLOv4, known for its high accuracy in detecting objects in real time. The motion data acquired through this approach will be utilized for pattern mining. This proposed approach enables extensive analysis of consumer behavior in retail stores. In this study, DBSCAN and K-means clustering methods are used to analyze the clusters. While K-means creates clusters from the dataset based on consumer behavior, DBSCAN is used because of its flexibility in handling different densities, including the presence of noise in the cluster. The accuracy of the proposed system is 98%, while the recall score is 99.02%, and the F1 score is 96.7%.
References
- Bochkovskiy, Alexey, Chien-Yao Wang, and Hong-Yuan Mark Liao. "Yolov4: Optimal Speed and Accuracy of Object Detection." arXiv preprint arXiv:2004.10934 (2020).
- Celestin, Mbonigaba, M. Vasuki, S. Sujatha, and A. Dinesh Kumar. "How Businesses Create Personalized Experiences to Boost Customer Retention: The Role of Technology and Human Interactions in Customer Satisfaction." International Journal of Applied and Advanced Scientific Research 9, no. 2 (2024): 75-80.
- Dhanushkodi, Kavitha, Akila Bala, Nithin Kodipyaka, and V. Shreyas. "Customer Behavior Analysis and Predictive Modeling in Supermarket Retail: A Comprehensive Data Mining Approach." Ieee Access 13 (2024): 2945-2957.
- Sharma, Dheeraj. "A Study of Generative AI-Driven Innovation in Retail: Enhancing Customer Experience and Market Competitiveness." European Economics Letters 15, no. 3 (2025).
- Haque, Ahasanul, Naznin Akther, Irfanuzzaman Khan, Khushbu Agarwal, and Nazim Uddin. "Artificial Intelligence in Retail Marketing: Research Agenda Based on Bibliometric Reflection and Content Analysis (2000–2023)." In Informatics, vol. 11, no. 4, MDPI, 2024, 74.
- C. Zhu, J. Jia and T. Arslan, "FVOR-YOLO: A Real-Time Model for Fruits and Vegetables Detection in Complex Supermarket Self-Checkout Environments," in IEEE Internet of Things Journal, vol. 13, no. 7, 1 April1, 2026, 13872-13887.
- Kimwaki, Benedict Mutnda. "The Efficacy of the Office of the Data Protection Commissioner in Safeguarding the Right to Privacy in Kenya: An Empirical Review." The Easta Journal Law and Human Rights 4, no. 01 (2025): 85-94.
- Sharma, Alka, Vibhu Johar, and Ketan Bhatt. "Technology in Fashion Retail: Exploring the Nexus of In-Store Technology, Customer Experience, and Store Image." The International Review of Retail, Distribution and Consumer Research 35, no. 3 (2025): 313-333.
- Mattegunta, Venkata Krishna Pradeep. "Retail-Time Inventory Visibility: Transforming Retail Operations Through Real-Time Data Integration." Journal of Computer Science and Technology Studies 7, no. 3 (2025): 58-64.
- F. Li and J. Xu, "Revolutionizing AI-Enabled Information Systems Using Integrated Big Data Analytics and Multi-Modal Data Fusion," in IEEE Access, vol. 13, 2025, 212316-212340.
- Kusumawati, Ratna. "Integrating Big Data Analytics into Supply Chain Management: Overcoming Data Silos to Improve Real-Time Decision-Making." International Journal of Advanced Computational Methodologies and Emerging Technologies 15, no. 2 (2025): 17-26.
- Patel, Saumil, and Rohith Naini. "Advanced Computer Vision-Based Retail Analytics: A Novel Approach to Customer Behavior and Product Movement Tracking." In IISE Annual Conference. Proceedings, Institute of Industrial and Systems Engineers (IISE), 2025, 1-6.
- Sapkota, Ranjan, Rahul Harsha Cheppally, Ajay Sharda, and Manoj Karkee. "YOLO26: Key Architectural Enhancements and Performance Benchmarking for Real-Time Object Detection." arXiv preprint arXiv:2509.25164 (2025).
- Velasquez, Juan D. "An Analysis of Trends, Challenges, and Opportunities in Retail Analytics." International Journal of Market Research 67, no. 4 (2025): 394-422.
- Muniasamy, Anandhavalli, Arshi Naim, and Sayeda Meeraj. "Leveraging Queuing Theory for Efficient Electronic Business Management in Supermarkets: A Case Study of Giant Stores in the Gulf Region." Trends in Business Process Modeling and Digital Marketing: Case Studies and Emerging Technologies (2024): 136-147.
- Ibitoye, Ayodeji OJ, Oluwaseun Kolade, and Olufade FW Onifade. "Customer Retention Model Using Machine Learning for Improved User-Centric Quality of Experience Through Personalised Quality of Service." Journal of Business Analytics (2025): 1-19.
- Stylianou, Tasos, and Aikaterina Pantelidou. "A Machine Learning Approach to Consumer Behavior in Supermarket Analytics." Decision Analytics Journal 16 (2025): 100600.
- Vaneeta, M., Swathi Mugada, Prachi Bhausaheb Patil, V. J. Preethi, and K. Deeksha. "Real-Time Object Detection for an Intelligent Retail Checkout System." In 2025 International Conference on Intelligent and Innovative Technologies in Computing, Electrical and Electronics (IITCEE), IEEE, 2025, 1-6.
- Redmon, Joseph, and Ali Farhadi. "Yolov3: An Incremental Improvement." arXiv preprint arXiv:1804.02767 (2018).
- Ren, Shaoqing, Kaiming He, Ross Girshick, and Jian Sun. "Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks." Advances in neural information processing systems 28 (2015). 1137-1149.
- Liu, Wei, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C. Berg. "Ssd: Single Shot Multibox Detector." In European conference on computer vision, Cham: Springer International Publishing, 2016, 21-37.
- Lin, Tsung-Yi, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. "Focal Loss for Dense Object Detection." In Proceedings of the IEEE international conference on computer vision, 2017, 2980-2988.
- Surveillance for Retail Stores, https://www.kaggle.com/competitions/surveillance-for-retail-stores/data, last accessed on 12th April 2026.
- COCO Dataset 2017, https://www.kaggle.com/datasets/sabahesaraki/2017-2017, last accessed on 12th April 2026.
- UCF101 Videos, https://www.kaggle.com/datasets/pevogam/ucf101/data, last accessed on 12th April 2026.
- KITTI Object Detection, https://datasetninja.com/kitti-object-detection, Last accessed on 12th April 2026.
- Cityscapes Image Pairs, https://www.kaggle.com/datasets/dansbecker/cityscapes-image-pairs/data, last accessed on 12th April 2026.
- Mall Dataset, https://personal.ie.cuhk.edu.hk/~ccloy/downloads_mall_dataset.html, last accessed on 12th April 2026.

Journal of Trends in Computer Science and Smart Technology