[Paper Review] Adaptive Anomaly Detection for IoT Data in Hierarchical Edge Computing
This paper proposes an adaptive anomaly detection framework for IoT data in hierarchical edge computing (HEC) that dynamically selects among three DNN models—lightweight at IoT devices, medium at edge servers, and complex at the cloud—based on input data context. Formulated as a contextual bandit problem, the scheme reduces detection delay by 84% while maintaining near-cloud accuracy, achieving the best trade-off between performance and latency in real-world evaluation.
Advances in deep neural networks (DNN) greatly bolster real-time detection of anomalous IoT data. However, IoT devices can barely afford complex DNN models due to limited computational power and energy supply. While one can offload anomaly detection tasks to the cloud, it incurs long delay and requires large bandwidth when thousands of IoT devices stream data to the cloud concurrently. In this paper, we propose an adaptive anomaly detection approach for hierarchical edge computing (HEC) systems to solve this problem. Specifically, we first construct three anomaly detection DNN models of increasing complexity, and associate them with the three layers of HEC from bottom to top, i.e., IoT devices, edge servers, and cloud. Then, we design an adaptive scheme to select one of the models based on the contextual information extracted from input data, to perform anomaly detection. The selection is formulated as a contextual bandit problem and is characterized by a single-step Markov decision process, with an objective of achieving high detection accuracy and low detection delay simultaneously. We evaluate our proposed approach using a real IoT dataset, and demonstrate that it reduces detection delay by 84% while maintaining almost the same accuracy as compared to offloading detection tasks to the cloud. In addition, our evaluation also shows that it outperforms other baseline schemes.
Motivation & Objective
- To address the limitations of existing IoT anomaly detection methods that use a single universal model regardless of data complexity.
- To resolve the imbalance in focus on accuracy at the expense of detection delay and resource efficiency in edge-IoT systems.
- To minimize unnecessary data transmission between IoT devices and cloud by enabling local decision-making based on contextual data features.
- To achieve an optimal trade-off between detection accuracy and low-latency response in real-time IoT applications.
Proposed method
- Three progressively complex DNN models—AE-IoT, AE-Edge, and AE-Cloud—are constructed based on autoencoder architectures, with increasing parameters and FLOPs to match computational capabilities of IoT, edge, and cloud layers.
- The model selection process is modeled as a contextual bandit problem within a single-step Markov decision process (MDP), where the policy network selects the optimal model based on real-time input context.
- A cost function with tunable hyperparameter α balances accuracy and delay, enabling trade-off optimization through reinforcement learning training.
- Contextual features extracted from input data (e.g., reconstruction error logPD) are used as input to the policy network to guide model selection.
- The policy network is trained using a reward function that combines F1-score and detection delay, with total reward maximized during training.
- The system avoids offloading all data to the cloud by selecting the lightest viable model per input, reducing bandwidth and latency.
Experimental results
Research questions
- RQ1Can a dynamic model selection strategy based on input data context improve the accuracy-latency trade-off in IoT anomaly detection?
- RQ2How does adaptive model selection across hierarchical edge layers compare to fixed offloading or sequential processing in terms of detection delay and accuracy?
- RQ3To what extent can a policy network trained via contextual bandits reduce unnecessary data transmission and computation overhead in edge-IoT systems?
- RQ4What is the optimal balance between model complexity and detection performance when using a multi-layer HEC architecture?
Key findings
- The proposed adaptive scheme reduces average detection delay by 84% compared to full cloud offloading (16.28ms vs. 100.00ms), while maintaining 98.90% accuracy.
- The scheme achieves an F1-score of 0.833, outperforming AE-IoT (0.465), AE-Edge (0.741), and Successive-4 (0.714), and is only 0.037 lower than AE-Cloud (0.870).
- With α = 0.0025, the method achieves the highest total reward (49.52), indicating superior overall performance balancing accuracy and delay.
- When α ≤ 0.0015, the scheme achieves near-cloud accuracy (99.18%) while reducing delay by 40–60% compared to cloud-only detection.
- The adaptive scheme consistently outperforms all baselines in both F1-score and delay, demonstrating robustness across varying data hardness levels.
- The policy network effectively learns to route simpler anomalies to edge devices and complex ones to the cloud, minimizing redundant communication and computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.