Resource-efficient fog computing vision system for occupancy monitoring: A real-world deployment in university libraries

IF 7.6 3区 计算机科学 Q1 COMPUTER SCIENCE, INFORMATION SYSTEMS
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,&nbsp;Lucio Hernando-Cánovas,&nbsp;Juan C. Sánchez-Aarnoutse,&nbsp;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.
用于占用监控的资源高效雾计算视觉系统:在大学图书馆的实际部署
本文介绍了一种雾计算系统,用于实时监控三所大学图书馆的占用情况,该系统使用安装在天花板上的顶景摄像头,位于每个入口上方。来自低成本摄像机的视频流被安全地传输到部署在大学内部网内的雾服务器。俯视图人员跟踪通过消除面部识别来确保隐私合规性,但引入了诸如非标准人的外观,遮挡和照明变化等挑战。对于人的检测,我们使用了一个最初在顶视图人类注释上训练的YOLOv5模型,通过使用来自三个库的精选数据集的迁移学习进一步改进。该系统具有两阶段处理管道。首先,一个轻量级的背景减法算法过滤具有潜在运动的帧,这些帧通过RabbitMQ排队进行顺序处理。其次,人流计数模块采用优化后的YOLOv5模型,对每一帧中的个体进行检测和计数,并采用自定义跟踪算法和虚拟过线逻辑,确保准确的人流跟踪。每个库通过批处理方法独立处理,使用单个仅cpu的雾服务器以有限的延迟更新占用估计。这种架构保持了低延迟,同时避免了服务器过载并最大限度地减少了能源使用。该系统已经连续生产超过12个月,在商用硬件上展示了跨所有三个库的可靠性能。定量评估证实了94%的人流检测准确率,验证了系统的稳健性、可扩展性和在智能校园环境中长期、保护隐私部署的实用性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Internet of Things
Internet of Things Multiple-
CiteScore
3.60
自引率
5.10%
发文量
115
审稿时长
37 days
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信