Next Article in Journal
Flow-like Movement and Failure Mechanism of Landslides Induced by Concentrated Rear Runoff: Insights from Physical Model Tests
Previous Article in Journal
CNN-Based 3D Characterization and Liberation Analysis of Lithium-Bearing Slag Particles Using Correlative CT and SEM Imaging
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

From Statistical Filtering to Adaptive Reinforcement Learning: A Progressive Framework for IoT Time-Series Anomaly Detection

by
Luis Miguel Pires
1,2,3,* and
Vitor Fialho
2,4,*
1
Technologies and Engineering School (EET), Instituto Politécnico da Lusofonia (IPLuso), 1700-098 Lisbon, Portugal
2
Department of Electronical Engineering, Telecommunications and Computers (DEETC), Instituto Superior de Engenharia de Lisboa (ISEL), 1959-007 Lisbon, Portugal
3
School of Communication, Arts and Information (ECATI), Lusofona University, 1749-024 Lisbon, Portugal
4
UNINOVA-CTS, NOVA University of Lisbon, Campus de Caparica, 2829-516 Monte de Caparica, Portugal
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2026, 16(11), 5608; https://doi.org/10.3390/app16115608
Submission received: 7 May 2026 / Revised: 26 May 2026 / Accepted: 1 June 2026 / Published: 3 June 2026
(This article belongs to the Special Issue Software Engineering: Computer Science and System 2026)

Abstract

This paper proposes a lightweight and adaptive anomaly detection framework for Internet of Things (IoT) time-series data that progressively combines statistical filtering with reinforcement learning (RL)-based decision mechanisms. Three classical statistical filters, Hampel, interquartile range (IQR), and Z-score, are initially evaluated under controlled IoT anomaly scenarios. While fixed-parameter configurations perform well under specific conditions, their performance degrades in non-stationary and heterogeneous environments. To address this limitation, a tabular Q-learning agent is introduced to dynamically select both filtering methods and their associated parameters according to scenario-specific signal characteristics. By extending the action space to include joint filter and parameter selection, the framework improves adaptability while reducing the need for manual tuning. A multi-agent reinforcement learning (MARL) formulation is further introduced to support distributed learning across heterogeneous IoT environments. The framework is additionally evaluated using real-world IoT temperature data augmented with controlled anomaly injection, enabling reproducible benchmarking under partially realistic sensing conditions. Experimental results show that both RL and MARL maintain stable detection performance across heterogeneous sensor streams. While MARL does not systematically outperform the single-agent approach in detection accuracy, it improves scalability and supports scenario-specific policy specialization, which is particularly relevant for distributed IoT deployments. Overall, the proposed approach provides a lightweight, interpretable, and computationally efficient solution for adaptive anomaly detection in resource-constrained IoT systems.
Keywords: IoT anomaly detection; time-series anomaly detection; statistical filtering; Hampel filter; interquartile range (IQR); Z-score; reinforcement learning; Q-learning; multi-agent systems; adaptive filtering; low-power IoT IoT anomaly detection; time-series anomaly detection; statistical filtering; Hampel filter; interquartile range (IQR); Z-score; reinforcement learning; Q-learning; multi-agent systems; adaptive filtering; low-power IoT

Share and Cite

MDPI and ACS Style

Pires, L.M.; Fialho, V. From Statistical Filtering to Adaptive Reinforcement Learning: A Progressive Framework for IoT Time-Series Anomaly Detection. Appl. Sci. 2026, 16, 5608. https://doi.org/10.3390/app16115608

AMA Style

Pires LM, Fialho V. From Statistical Filtering to Adaptive Reinforcement Learning: A Progressive Framework for IoT Time-Series Anomaly Detection. Applied Sciences. 2026; 16(11):5608. https://doi.org/10.3390/app16115608

Chicago/Turabian Style

Pires, Luis Miguel, and Vitor Fialho. 2026. "From Statistical Filtering to Adaptive Reinforcement Learning: A Progressive Framework for IoT Time-Series Anomaly Detection" Applied Sciences 16, no. 11: 5608. https://doi.org/10.3390/app16115608

APA Style

Pires, L. M., & Fialho, V. (2026). From Statistical Filtering to Adaptive Reinforcement Learning: A Progressive Framework for IoT Time-Series Anomaly Detection. Applied Sciences, 16(11), 5608. https://doi.org/10.3390/app16115608

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop