Alejandro S. Martínez-Sala, Lucio Hernando-Cánovas, Juan C. Sánchez-Aarnoutse, Juan J. Alcaraz
{"title":"Resource-efficient fog computing vision system for occupancy monitoring: A real-world deployment in university libraries","authors":"Alejandro S. Martínez-Sala, Lucio Hernando-Cánovas, Juan C. Sánchez-Aarnoutse, Juan J. Alcaraz","doi":"10.1016/j.iot.2025.101748","DOIUrl":null,"url":null,"abstract":"<div><div>This paper presents a fog computing system for real-time occupancy monitoring across three university libraries, using ceiling-mounted, top-view cameras positioned above each entrance. Video streams from low-cost cameras are securely transmitted to a fog server deployed within the university’s intranet. Top-view person tracking ensures privacy compliance by inherently eliminating facial recognition, but introduces challenges such as non-standard human appearance, occlusions, and lighting variations. For person detection, we employ a YOLOv5 model initially trained on top-view human annotations, further refined through transfer learning using a curated dataset from the three libraries. The system features a two-stage processing pipeline. First, a lightweight background subtraction algorithm filters frames with potential motion, which are queued via RabbitMQ for sequential processing. Second, a People Flow Counting module applies the optimized YOLOv5 model to detect and count individuals in each frame, followed by a custom tracking algorithm and virtual line-crossing logic to ensure accurate flow tracking. Each library is handled independently through a batch processing approach, updating occupancy estimates with bounded delay using a single CPU-only fog server. This architecture maintains low latency while avoiding server overload and minimizing energy use. The system has been in continuous production for over twelve months, demonstrating reliable performance across all three libraries on commodity hardware. Quantitative evaluation confirms 94 % accuracy in people flow detection, validating the system’s robustness, scalability, and practical utility for long-term, privacy-preserving deployment in smart campus environments.</div></div>","PeriodicalId":29968,"journal":{"name":"Internet of Things","volume":"34 ","pages":"Article 101748"},"PeriodicalIF":7.6000,"publicationDate":"2025-08-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Internet of Things","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2542660525002598","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0
Abstract
This paper presents a fog computing system for real-time occupancy monitoring across three university libraries, using ceiling-mounted, top-view cameras positioned above each entrance. Video streams from low-cost cameras are securely transmitted to a fog server deployed within the university’s intranet. Top-view person tracking ensures privacy compliance by inherently eliminating facial recognition, but introduces challenges such as non-standard human appearance, occlusions, and lighting variations. For person detection, we employ a YOLOv5 model initially trained on top-view human annotations, further refined through transfer learning using a curated dataset from the three libraries. The system features a two-stage processing pipeline. First, a lightweight background subtraction algorithm filters frames with potential motion, which are queued via RabbitMQ for sequential processing. Second, a People Flow Counting module applies the optimized YOLOv5 model to detect and count individuals in each frame, followed by a custom tracking algorithm and virtual line-crossing logic to ensure accurate flow tracking. Each library is handled independently through a batch processing approach, updating occupancy estimates with bounded delay using a single CPU-only fog server. This architecture maintains low latency while avoiding server overload and minimizing energy use. The system has been in continuous production for over twelve months, demonstrating reliable performance across all three libraries on commodity hardware. Quantitative evaluation confirms 94 % accuracy in people flow detection, validating the system’s robustness, scalability, and practical utility for long-term, privacy-preserving deployment in smart campus environments.
期刊介绍:
Internet of Things; Engineering Cyber Physical Human Systems is a comprehensive journal encouraging cross collaboration between researchers, engineers and practitioners in the field of IoT & Cyber Physical Human Systems. The journal offers a unique platform to exchange scientific information on the entire breadth of technology, science, and societal applications of the IoT.
The journal will place a high priority on timely publication, and provide a home for high quality.
Furthermore, IOT is interested in publishing topical Special Issues on any aspect of IOT.