Skip to content
Back to skills

Ugr16 Eval

ASecurity

Evaluates how data preprocessing choices—such as observation selection, flow directionality, and feature engineering—affect the performance of unsupervised anomaly detection models on network traffic. Use when the user wants to benchmark on UGR'16, or asks about evaluating this task. Reports AUC.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythonperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill ugr16-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ugr16 Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ugr16 Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-ugr16-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-ugr16-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ugr16-eval
description: Evaluates how data preprocessing choices—such as observation selection, flow directionality, and feature engineering—affect the performance of unsupervised anomaly detection models on network traffic. Use when the user wants to benchmark on UGR'16, or asks about evaluating this task. Reports AUC.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2305.19770
  bibtex_key: [REDACTED]
  confidence: medium
---

# ugr16-eval

> Quality In / Quality Out: Data quality more relevant than model choice in anomaly detection with the UGR'16 — Camacho et al. (2023) (arXiv:2305.19770, 2023)

## What this evaluates

Evaluates how data preprocessing choices—such as observation selection, flow directionality, and feature engineering—affect the performance of unsupervised anomaly detection models on network traffic.

## Datasets

- **UGR'16** — total ?; splits: train (-1), test (-1)

## Metrics

- `AUC` **(primary)** — range: [0, 1]
  - Area Under the Receiver Operating Characteristic Curve. Measures the probability that a randomly chosen positive instance (attack) is ranked higher than a randomly chosen negative instance (normal traffic) across all classification thresholds.

## Input / output format

**Input**: Network traffic observations represented as feature vectors derived from unidirectional or bidirectional packet flows (e.g., port counts, traffic volumes).

**Output**: Binary anomaly labels or continuous anomaly scores per observation, aggregated into ROC curves and AUC scores per attack type.

## Scoring recipe

```python
def compute_auc(y_true, y_scores):
    # y_true: 1 for attack, 0 for normal
    # y_scores: model anomaly scores
    fpr, tpr, _ = roc_curve(y_true, y_scores)
    return auc(fpr, tpr)
```

## Common pitfalls

- Including anomalous background traffic (e.g., suspicious MIRC activity in June) in the training set causes unsupervised models to learn it as normal, drastically reducing detection ability for that attack type.
- Flow directionality (unidirectional vs. bidirectional) fundamentally alters feature distributions; unidirectional flows often yield higher AUC for certain attacks (e.g., DOS) while bidirectional flows may be better for others (e.g., NERISBOTNET).

## Evidence (verbatim from paper)

> Fig. 1(b) represents the AUCs per attack type. Performance differences between the two anomaly detectors are minor in all cases. However, there is a huge difference with respect to including June in the training data (UGR’16v1) or not including it (UGR’16v2).

## Citation

```bibtex
@misc{camacho2023qualityin,
  title={Quality In / Quality Out: Data quality more relevant than model choice in anomaly detection with the UGR'16},
  author={Camacho et al. (2023)},
  year={2023},
  note={arXiv:2305.19770}
}
```

- arXiv: 2305.19770

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.