[Paper Review] Online Continual Learning for Anomaly Detection in IoT under Data Distribution Shifts
OCLADS is a framework that enables on-device anomaly detection in IoT with edge-assisted online continual learning, using intelligent sample selection and distribution-shift detection to update models only when beneficial.
In this work, we present OCLADS, a novel communication framework with continual learning (CL) for Internet of Things (IoT) anomaly detection (AD) when operating in non-stationary environments. As the statistical properties of the observed data change with time, the on-device inference model becomes obsolete, which necessitates strategic model updating. OCLADS keeps track of data distribution shifts to timely update the on-device IoT AD model. To do so, OCLADS introduces two mechanisms during the interaction between the resource-constrained IoT device and an edge server (ES): i) an intelligent sample selection mechanism at the device for data transmission, and ii) a distribution-shift detection mechanism at the ES for model updating. Experimental results with TinyML demonstrate that our proposed framework achieves high inference accuracy while realizing a significantly smaller number of model updates compared to the baseline schemes.
Motivation & Objective
- Motivate anomaly detection in IoT under non-stationary data distributions where on-device models become obsolete.
- Develop a collaborative framework that updates TinyML models at the edge only when data distribution shifts occur.
- Minimize communication overhead while maintaining high inference accuracy through intelligent sample selection and CL.
- Demonstrate that the proposed method reduces model updates while preserving performance under non-stationary conditions.
Proposed method
- Introduce an intelligent sample selection mechanism at the IoT device using an anomaly-score based threshold to prioritize sending informative samples (including hard negatives).
- Employ a replay-based continual learning approach at the edge server to train and update the model using received and stored samples.
- Use a hypothesis-testing framework at the edge (OCSVM-based score and L2-norm based test statistic with permutation testing) to detect distribution shifts between consecutive batches.
- Trigger edge-to-device model updates only when a distribution shift is detected, reducing unnecessary communication.
- Utilize an initial calibration phase with all data transmission for a subset of rounds before enabling selective transmission.
- Evaluate with MCUNet on CIFAR-10 and SVHN under simulated covariate shifts (corruptions) and measure online macro F1-score over time.
Experimental results
Research questions
- RQ1How can IoT devices selectively transmit informative data to enable effective online continual learning at the edge?
- RQ2Can a distribution-shift detection mechanism at the edge efficiently trigger model updates to maintain high anomaly detection performance under non-stationary conditions?
- RQ3What is the trade-off between communication costs (model updates) and on-device inference accuracy in this online CL setting?
- RQ4How does OCLADS compare to baseline update policies in terms of update frequency and detection performance under distribution shifts?
Key findings
- OCLADS reduces the number of device-side model updates to below 10% of the All-update scheme across CIFAR-10 and SVHN while maintaining high inference performance.
- In CIFAR-10 and SVHN, shifts occur in 54 (CIFAR-10) and 73 (SVHN) out of 755 and 997 batches, respectively, with 39 (CIFAR-10) and 51 (SVHN) detected.
- The framework yields comparable online macro F1-scores to All-update with substantially fewer updates, and updates after detected shifts outperform random scheduling.
- Oracle-like shift detection would allow OCLADS to achieve near-All-update performance with updates on only about 7% of batches.,
- No-update performs worst, while Random-update confirms that timely updates after shifts are more beneficial than arbitrary timing.
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.