# drhussainbinkhalid/zero-day-drl-ids architecture

> Architecture diagram of the GitHub repository drhussainbinkhalid/zero-day-drl-ids, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/drhussainbinkhalid/zero-day-drl-ids
- Repository: https://github.com/drhussainbinkhalid/zero-day-drl-ids

## Overview

This repository implements a research workflow for zero-day attack detection: prepare network-traffic datasets, train deep-reinforcement-learning and baseline models, and evaluate or reproduce reported results. The README documents attack-family-aware splits and PPO’s asymmetric reward, alongside DQN and A2C alternatives. Source excerpts were unavailable, so the graph uses README-supported paths and relationships only; unsampled implementation details and data-flow links are omitted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_datasets[("Traffic datasets")]
  node_preprocess["Preprocessing"]
  node_splits[("Attack-family splits")]
end

subgraph group_drl["Reinforcement learning"]
  node_environment["Zero-day environment"]
  node_ppo["PPO agent"]
  node_dqn["DQN agent"]
  node_a2c["A2C agent"]
  node_drltrain["DRL training"]
end

subgraph group_methods["Baseline methods"]
  node_baselines["Baseline training"]
end

subgraph group_results["Evaluation and results"]
  node_evaluation["Metrics"]
  node_reproduce["Result reproduction"]
  node_models[("Saved models")]
end

node_researcher(("Researcher"))

node_researcher -->|"runs preprocessing"| node_preprocess
node_researcher -->|"trains DRL"| node_drltrain
node_researcher -->|"trains baselines"| node_baselines
node_researcher -->|"reproduces results"| node_reproduce
node_datasets -.->|"provides data"| node_preprocess
node_preprocess -.->|"prepares splits"| node_splits
node_researcher -.->|"classifies samples"| node_environment

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_datasets,node_preprocess,node_splits toneBlue
class node_environment,node_ppo,node_dqn,node_a2c,node_drltrain toneAmber
class node_baselines toneMint
class node_evaluation,node_reproduce,node_models toneRose
class node_researcher toneIndigo
```

## Components

### Data preparation

- **Traffic datasets**
- **Preprocessing**
- **Attack-family splits**

### Reinforcement learning

- **Zero-day environment**
- **PPO agent**
- **DQN agent**
- **A2C agent**
- **DRL training**

### Baseline methods

- **Baseline training**

### Evaluation and results

- **Metrics**
- **Result reproduction**
- **Saved models**

### Other components

- **Researcher**

## Connections

- Researcher → Preprocessing: runs preprocessing (evidence: `README.md`)
- Researcher → DRL training: trains DRL (evidence: `README.md`)
- Researcher → Baseline training: trains baselines (evidence: `README.md`)
- Researcher → Result reproduction: reproduces results (evidence: `README.md`)
- Traffic datasets → Preprocessing: provides data
- Preprocessing → Attack-family splits: prepares splits
- Researcher → Zero-day environment: classifies samples
