← Lab /Security & privacy

Ensemble methods achieve 90% accuracy for traffic anomaly detection, SHAP identifies key features

Ensemble learning, especially Random Forest, attains 90% accuracy and 0.617 AUC on validation data for network anomaly detection

Security & privacy arXiv 30 Mar 2026 Method Prototype evidence

Published as “Interpretable Ensemble Learning for Network Traffic Anomaly Detection: A SHAP-based Explainable AI Framework for Embedded Systems Security”

Why it matters

The framework offers interpretable, reasonably accurate anomaly detection that can be deployed on embedded devices, giving operators concrete feature thresholds to act upon.

Summary

Random Forest attains the best detection results, reaching 90% accuracy and a validation AUC of 0.618 (95% CI 0.540-0.695). The study also shows that SHAP can pinpoint the most influential traffic features, and that adding wavelet-derived frequency-domain features improves detection of attacks invisible to time-domain analysis. Evidence is based on a single embedded-system traffic dataset and confidence intervals are provided, but the absolute AUC values remain modest (0.50-0.62), indicating limited discrimination power.

What they found 3

  1. Random Forest achieves the highest detection performance with 90% accuracy and validation AUC 0.618.

    “Random Forest achieves optimal performance with 90% accuracy and validation AUC of 0.618 [0.540-0.695 CI], outperforming Gradient Boosting (AUC = 0.537), SVM (AUC = 0.436), and other baseline models.”

  2. SHAP identifies packet_count_5s, inter_arrival_time, and spectral_entropy as the top predictive features.

    “SHAP analysis revealed that packet_count_5s (|φ| = 0.025), inter_arrival_time (|φ| = 0.018), and spectral_entropy (|φ| = 0.015) constitute the most influential predictors, with non-linear threshold effects governing anomaly classifications.”

  3. Wavelet-derived frequency-domain features improve detection of spectral attack signatures.

    “The integration of frequency-domain features derived through Wavelet Transform enhances detection of spectral attack signatures invisible to time-domain analysis alone.”

Caveats 1

  • Statistical validation through confidence intervals confirms model robustness, though moderate absolute AUC values (0.50-0.62 range) highlight persistent challenges in achieving perfect discrimination between evolving attack patterns and legitimate traffic.

What’s new here 4

  • Combines ensemble learning with SHAP-based XAI specifically for resource-constrained embedded systems.
  • Introduces wavelet transform-derived frequency-domain features into network traffic anomaly detection.
  • Performs multi-dimensional SHAP dependence analysis to reveal non-linear feature interactions.
  • Evaluates trade-offs between model complexity and detection accuracy for embedded deployment.