Abstract
One-Class Support Vector Machines (OCSVMs) are a standard for anomaly detection in the Internet of Things (IoT) due to their ability to learn complex boundaries without labeled attack data. However, their computational intensity limits deployment on resource-constrained edge devices. This paper proposes an efficient variant using "sketching" techniques and Gaussian Mixture Models (GMMs) to reduce memory and computation costs by up to 20x. By projecting high-dimensional network traffic into a low-dimensional space that preserves cluster structures, the proposed methods enable high-accuracy real-time detection on hardware like Raspberry Pis.
Introduction
In the IoT ecosystem, security is often a trade-off between accuracy and hardware constraints. OCSVMs are highly effective at identifying non-linear "normal" behavior, but as training data grows, the number of support vectors increases, creating a "prediction bottleneck." This makes standard OCSVMs impractical for home routers or sensors. This research introduces a streamlined approach that strips down the OCSVM for high-speed performance without sacrificing its core detection capabilities.
The Scalability Challenge
The primary hurdle for kernel-based methods like OCSVM is that model complexity is tied directly to the size of the training set. In high-traffic environments, the time and memory required to evaluate a single packet can exceed the capabilities of a smart device's CPU and RAM. Previous attempts to optimize these models often resulted in a loss of the non-linear modeling that allows OCSVMs to distinguish subtle malicious activity from benign variations.
Methodology: Sketching and Density Estimation
The researchers developed a three-step pipeline, referred to as OC-Nyström and OC-KJL:
- Dimensionality Reduction (Sketching): Using Nyström and Kernel Johnson-Linderstrauss (KJL) sketching, data is projected from an infinite-dimensional kernel space into a fixed, low-dimensional space (often as low as 5 dimensions).
- Preserving Cluster Structures: A key observation was that while these projections disrupt linear separability, they preserve the underlying cluster structures of the data.
- Density Estimation via GMM: Instead of a linear hyperplane, the model fits a Gaussian Mixture Model (GMM) to these clusters. The number of clusters is automatically determined using the QuickShift++ algorithm, allowing the model to adapt to specific device behaviors without manual tuning.
Experimental Results
The methods were evaluated across seven datasets, including lab-generated IoT traffic (from Samsung Fridges and Amazon Echoes) and public benchmarks for botnets and DDoS attacks.
Performance and Accuracy
- Speed and Memory: The proposed methods achieved speedups of 14x to 20x and reduced memory requirements by a factor of 20 or more compared to baseline OCSVMs.
- Detection Quality: Despite the massive compression, the models maintained nearly 100% of the baseline AUC. In several datasets, the dimensionality reduction acted as a form of regularization, actually improving performance by filtering out high-frequency noise.
Conclusion and Future Work
By moving away from hyperplane-based logic toward density-based clustering in a sketched space, this approach enables robust anomaly detection on "nanodevices" like the Raspberry Pi and Nvidia Nano. While highly effective, future work is needed to address model drift—where a device's normal behavior changes over time due to software updates—and to provide more actionable insights into the specific nature of detected anomalies.
Summary updated