[Paper Review] Feature Extraction for Novelty Detection in Network Traffic
This paper proposes a systematic framework and open-source toolkit (NetML) for feature extraction and end-to-end evaluation of network traffic representations in novelty detection. It demonstrates that raw time-series features like IAT and SAMP-NUM outperform Fourier-domain transforms and that feature choice significantly impacts detection accuracy across diverse anomaly types and machine learning models.
Data representation plays a critical role in the performance of novelty detection (or ``anomaly detection'') methods in machine learning. The data representation of network traffic often determines the effectiveness of these models as much as the model itself. The wide range of novel events that network operators need to detect (e.g., attacks, malware, new applications, changes in traffic demands) introduces the possibility for a broad range of possible models and data representations. In each scenario, practitioners must spend significant effort extracting and engineering features that are most predictive for that situation or application. While anomaly detection is well-studied in computer networking, much existing work develops specific models that presume a particular representation -- often IPFIX/NetFlow. Yet, other representations may result in higher model accuracy, and the rise of programmable networks now makes it more practical to explore a broader range of representations. To facilitate such exploration, we develop a systematic framework, open-source toolkit, and public Python library that makes it both possible and easy to extract and generate features from network traffic and perform and end-to-end evaluation of these representations across most prevalent modern novelty detection models. We first develop and publicly release an open-source tool, an accompanying Python library (NetML), and end-to-end pipeline for novelty detection in network traffic. Second, we apply this tool to five different novelty detection problems in networking, across a range of scenarios from attack detection to novel device detection. Our findings general insights and guidelines concerning which features appear to be more appropriate for particular situations.
Motivation & Objective
- To address the lack of generalizable, reproducible guidelines for selecting effective data representations in network traffic novelty detection.
- To reduce the need for custom, ad-hoc feature engineering by providing a unified, open-source framework for feature extraction and model evaluation.
- To evaluate the impact of various feature representations—time-domain, statistical, and Fourier-domain—across multiple anomaly detection problems and machine learning models.
- To identify which features and representations are most effective for detecting different types of novel network behaviors, such as attacks, new devices, or application changes.
- To promote reproducibility and accelerate research by releasing a public Python library (NetML) and end-to-end pipeline for network anomaly detection.
Proposed method
- Developed an open-source Python library (NetML) that extracts common features from raw packet captures, including inter-arrival times (IAT), sample counts (SAMP-NUM), and sample sizes (SAMP-SIZE).
- Designed a configurable, modular pipeline to generate diverse feature representations, including time-series, statistical summaries, and Fourier-transformed features.
- Evaluated feature representations across five real-world datasets representing different anomaly types: attacks, IoT device behavior, and application-level traffic changes.
- Applied a range of unsupervised novelty detection models (e.g., OCSVM, GMM, KDE, AE, PCA) to compare performance using area under the ROC curve (AUC) as the primary metric.
- Used consistent hyperparameter tuning and cross-validation to ensure fair comparisons across models and feature sets.
- Focused on representation-agnostic features—avoiding specific header values like IP addresses or port numbers—to ensure models detect novelty based on behavioral patterns, not identities.
Experimental results
Research questions
- RQ1Which feature representations (e.g., time-series, statistical, Fourier) yield the highest detection accuracy for different types of network anomalies?
- RQ2How does the choice of aggregation window or sampling rate affect the performance of novelty detection models?
- RQ3To what extent do Fourier-domain representations improve detection over raw time-series features in network traffic?
- RQ4How do different machine learning models (e.g., OCSVM, GMM, AE) perform across the same feature representations and anomaly types?
- RQ5Are there generalizable patterns in feature effectiveness across diverse network devices and traffic scenarios (e.g., IoT, PCs, servers)?
Key findings
- Raw time-series features such as inter-arrival times (IAT) and sample counts (SAMP-NUM) consistently outperformed Fourier-domain representations, with FFT providing no significant improvement in AUC across most models and datasets.
- Statistical features (STATS) and sample size (SAMP-SIZE) achieved high detection performance on some datasets—particularly BSTch and SFrig—where novelty detection was nearly solved under these representations.
- The ACK flag in TCP headers showed high correlation with ground truth in SFrig, indicating that protocol-level behavior (e.g., delayed ACK) can serve as a strong indicator of novel user or application behavior.
- SYN and FIN packet distributions were effective indicators of changes in flow volume or flow creation patterns, suggesting their utility in detecting new or anomalous flows.
- The performance gap between feature representations was most pronounced in complex, dynamic environments (e.g., IoT traffic), where subtle behavioral shifts were better captured by time-series and statistical features.
- The study found that model performance was more sensitive to feature representation than to model choice, underscoring the critical role of feature engineering in anomaly detection.
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.