Anomaly Detection via Learning-Based Sequential Controlled Sensing

Geethu Joseph, Chen Zhong, M. Cenk Gursoy, Senem Velipasalar, Pramod K. VarshneyarXiv 2023

TL;DR

This paper introduces a learning-based framework for "sequential controlled sensing" to detect anomalies in multi-process systems efficiently. By leveraging deep reinforcement learning and active inference, the proposed algorithms dynamically decide which sensors to probe, successfully balancing the trade-off between sensing costs and decision speed while adapting to hidden statistical dependencies between processes.

What Problem Does This Paper Address?

In complex systems like IoT networks or structural health monitors, identifying malfunctions (anomalies) is critical. However, monitoring every component constantly is often impossible or prohibitively expensive due to energy constraints and sensing costs. Furthermore, sensors are rarely perfect; their readings are noisy and can be misleading.

The authors tackle the challenge of sequential controlled sensing: at each time step, an agent must decide which subset of sensors to probe to identify anomalies as quickly and accurately as possible while minimizing total cost. Unlike traditional methods that often assume sensors are independent or use fixed sensing patterns, this work accounts for the fact that different components might be statistically correlated—meaning information from one sensor could tell you something about another.

Methods

The authors frame anomaly detection as a Markov Decision Process (MDP) and a sequential hypothesis testing problem. The "state" is the agent's current posterior belief about which processes are anomalous, and the "action" is the choice of which sensors to probe next.

They propose three distinct learning-based approaches:

  1. Dueling Deep Q-Learning (DQN): A reinforcement learning (RL) method that estimates the value of different sensing actions to find an optimal policy.
  2. Deep Actor-Critic (AC): An RL framework where one network (the actor) learns the sensing policy directly, while another (the critic) evaluates its performance.
  3. Deep Active Inference (AI): An alternative inspired by neuroscience. Instead of just maximizing rewards, the agent minimizes "variational free energy," a process that naturally balances exploration (probing to reduce uncertainty) and exploitation (probing to confirm a suspected anomaly).

A key innovation is the use of two specific reward functions: one based on the Bayesian Log-Likelihood Ratio (LLR) and another on Entropy. These functions are mathematically designed to push the agent toward high-confidence decisions quickly.

The high-level system architecture showing the interaction between the environment and the learning agent.

Datasets

The study relies on numerical simulations rather than pre-existing datasets. This allows the authors to precisely control variables like the number of processes ($N=3$), the "flipping probability" (sensor noise), and the correlation parameter ($\rho$) between processes. This synthetic setup is crucial for demonstrating how the algorithms learn to exploit statistical dependencies that would be fixed or unknown in a real-world dataset.

Key Insights and Ideas

  • Exploiting Correlations: The most significant "aha" moment is that these algorithms can learn to "cheat" by using correlations. If two processes are highly correlated, the agent learns it only needs to probe one of them frequently to understand the state of both, significantly reducing sensing costs.
  • Active Inference vs. RL: While both work well, Active Inference proves to be more robust. Because it explicitly seeks to reduce "surprise" about the future, it often adapts better to complex statistical patterns than standard model-free RL.
  • Reward Sensitivity: The LLR-based reward function is more aggressive about accuracy than the entropy-based one. This gives engineers a "tuning knob": use LLR when accuracy is paramount, and entropy when you need a more balanced approach to cost.
  • Beyond Chernoff: The classical Chernoff test for hypothesis testing is a common benchmark, but it typically probes all sensors at once. The authors show their learning-based approach achieves similar accuracy with much lower sensing overhead.
Fig. 1: Graphical model with posteriors (MDP states), actions and observations

Key Results

  • Adaptability: As the correlation between processes increases, both the stopping time (delay) and total sensing cost decrease, proving the algorithms successfully exploit environmental structure.
  • Efficiency: The Deep Actor-Critic and Active Inference models converged relatively quickly (around 1,000 episodes), whereas Dueling DQN required double the training time to reach a stable policy.
  • Cost-Accuracy Trade-off: The algorithms successfully maintained a target detection accuracy (e.g., 94%) while dynamically adjusting sensing patterns based on the assigned cost per probe.
  • Robustness: Active Inference was found to be particularly robust to variations in system parameters compared to the RL-based methods.

Limitations and Future Work

The primary limitation is scalability. The state space of the MDP grows exponentially with the number of processes ($2^N$). While the authors tested with $N=3$, real-world systems might have hundreds of components, necessitating more hierarchical or decentralized architectures.

Additionally, the current models assume a stationary environment—the statistical properties don't change over time. The authors suggest that extending these algorithms to track non-stationary processes (where anomalies might appear and disappear) is a promising next step for research.

Summary updated

BibTeX
@misc{joseph2023anomaly,
  author = {Geethu Joseph and Chen Zhong and M. Cenk Gursoy and Senem Velipasalar and Pramod K. Varshney},
  title = {{Anomaly Detection via Learning-Based Sequential Controlled Sensing}},
  year = {2023},
  eprint = {2312.00088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.00088},
}
Figure