Application of the Savitzky-Golay Filter to Smooth Data from the SAFE/UFRJ People Counting Module
DOI:
https://doi.org/10.5753/reic.2026.8440Keywords:
Internet of Things, Exploratory Data Analysis, Noise FilteringAbstract
This paper describes the evolution of the people-counting module of the SAFE/UFRJ IoT system. Upon identifying that crosstalk between the ultrasonic sensors reduced the precision of the original approach, a new solution based on data smoothing via the Savitzky-Golay filter and dynamic mean binarization was proposed. This update increased the system's accuracy in in vitro tests from 56.25% to 100% for the same set of working scenarios, consolidating the tool as a viable solution for decision-making support and runtime occupancy management.
Downloads
References
Cytron Technologies Sdn. Bhd. (2013). HC-SR04 Ultrasonic Sensor User’s Manual, 1st edition. Disponível em: [link]. Acesso em: 15/01/25.
García, M. R., Spinazzé, A., Branco, et al. (2022). Review of low-cost sensors for indoor air quality: Features and applications. 57(9):747–779. DOI: 10.1080/05704928.2022.2085734.
Genésio, V., Rodriguez, L., e Braga, R. (2024). Monipaep: Um sistema para monitoramento de sintomas de doenças endêmicas. In Anais Estendidos do XXIV SBCAS, pages 127–132, Porto Alegre, RS, Brasil. SBC. DOI: 10.5753/sbcas_estendido.2024.2236.
Giron, A., Marinho, K., Drummond, L., et al. (2025). Sistema de software iot para monitoramento de biossegurança de instalações. In Anais Estendidos do XXV SBCAS, pages 229–234, Porto Alegre, RS, Brasil. SBC. DOI: 10.5753/sbcas_estendido.2025.7228.
He, Y. (2025). Research for robot detection system based on low-cost distance sensor HC-SR04. In 2025 IEEE 3rd ICSECE, pages 745–749. DOI: 10.1109/ICSECE65727.2025.11256852.
Kelly, J., Campbell, K., Gong, E., e Scuffham, P. (2020). The internet of things: Impact and implications for health care delivery. J Med Internet Res, 22(11). DOI: 10.2196/20135.
Komorowski, M., Marshall, D. C., Salciccioli, J. D., et al. (2016). Exploratory Data Analysis, pages 185–203. Springer International Publishing, Cham. DOI: 10.1007/978-3-319-43742-2_15.
Oliveira, A. B. d. et al. (2024). Hospitais seguros e resilientes: Desafios e Estratégias de Preparação e Resposta a Emergências e Desastres. Editora CRV, Curitiba, PR, Brazil, 1 edition.
Osa-Sanchez, A. e Garcia-Zapirain, B. (2025). Real-time air quality monitoring: A smart IoT system using low-cost sensors and 3-d printing. 9:65–79. DOI: 10.1109/JRFID.2025.3541816.
Peixe, J. e Marques, G. (2024). Low-cost IoT-enabled indoor air quality monitoring systems: A systematic review. JAISE, 16(2):167–180. DOI: 10.3233/AIS-220577.
Rios, N., Spínola, R., e Travassos, G. (2023). Exploring technical debt on iot software projects. In Proceedings of the SBQS XXI, New York, NY, USA. Association for Computing Machinery. DOI: 10.1145/3571473.3571495.
Schafer, R. W. (2011). What Is a Savitzky-Golay Filter? [Lecture Notes]. IEEE Signal Processing Magazine, 28(4):111–117. DOI: 10.1109/MSP.2011.941097.
UFRJ (2020). Guia de ações de biossegurança para resposta à pandemia pela covid-19 no Âmbito da ufrj. Relatório técnico, Universidade Federal do Rio de Janeiro, Rio de Janeiro. Disponível em: [link]. Acesso em: 10/01/25.
Wang, X. e Wang, C. (2020). Time Series Data Cleaning: A Survey. IEEE Access, 8:1866–1881. DOI: 10.1109/ACCESS.2019.2962152.
WHO (2014). Combined or multiple exposure to health stressors in indoor built environments: An evidence-based review prepared for the who training workshop “multiple environmental exposures and risks”. Technical report, World Health Organization, Bonn, Germany. Disponível em: [link]. Acesso em: 10/01/25.
Wohlin, C., Runeson, P., Höst, M., et al. (2012). Experimentation in software engineering, volume 236. Springer.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 The authors

This work is licensed under a Creative Commons Attribution 4.0 International License.
