# mobarak93/iomt-ids-pqc-research_code architecture

> Architecture diagram of the GitHub repository mobarak93/iomt-ids-pqc-research_code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mobarak93/iomt-ids-pqc-research_code
- Repository: https://github.com/mobarak93/iomt-ids-pqc-research_code

## Overview

This repository is a research pipeline for IoT intrusion detection and adaptive post-quantum cryptography (PQC) tier selection. Its principal workflow prepares and aligns traffic datasets, trains an IDS, combines threat confidence with device trust and resource constraints, then uses fuzzy inference and policy state to select tiers. Separate drivers handle external validation and alpha studies; research experiments and diagnostics analyze pipeline behavior. The README is empty, so capability context comes from source descriptions and the file tree; unsampled relationships are omitted where the excerpts do not establish them.

Main entry points: [`research_experiments.py`](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/research_experiments.py) (Research experiments), [`pipeline_driver.py`](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/pipeline_driver.py) (Main pipeline), [`fis_module.py`](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/fis_module.py) (Fuzzy inference), [`trust_module.py`](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/trust_module.py) (Device trust)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_alignment["Dataset alignment"]
  node_resource["Resource simulation"]
end

subgraph group_decision["Risk and policy"]
  node_ids["IDS and SHAP<br/>[ids_shap_module.py]"]
  node_trust["Device trust<br/>[trust_module.py]"]
  node_fis["Fuzzy inference<br/>[fis_module.py]"]
  node_policy["PQC tier policy<br/>[pqc_policy.py]"]
end

subgraph group_analysis["Research analysis"]
  node_research["Research experiments"]
  node_transition["Alpha transitions"]
  node_verification["Alpha diagnostics"]
end

subgraph group_runners["Workflow drivers"]
  node_pipeline["Main pipeline<br/>[pipeline_driver.py]"]
  node_validation["External validation"]
  node_experiment_driver["Experiment runner"]
  node_alpha_runner["Alpha verification runner"]
end

node_user(("Researcher"))
node_traffic[("Traffic datasets")]

node_user -->|"runs"| node_pipeline
node_traffic -->|"loads and aligns"| node_alignment
node_pipeline -->|"prepares data"| node_alignment
node_pipeline -->|"trains IDS"| node_ids
node_pipeline -->|"runs trust track"| node_trust
node_pipeline -->|"uses inference"| node_fis
node_trust -->|"uses simulator"| node_resource
node_policy -->|"evaluates inputs"| node_fis
node_validation -->|"loads dataset"| node_alignment
node_validation -->|"validates model"| node_ids
node_validation -->|"checks dynamics"| node_trust
node_experiment_driver -->|"runs studies"| node_research
node_pipeline -->|"invokes analysis"| node_research
node_alpha_runner -->|"runs diagnostics"| node_verification
node_alpha_runner -->|"uses inference"| node_fis
node_transition -->|"evaluates tiers"| node_fis
node_transition -->|"runs sequences"| node_policy
node_verification -->|"audits rules"| node_fis
node_research -->|"analyzes model"| node_ids
node_research -->|"analyzes trust"| node_trust
node_research -->|"analyzes data"| node_alignment
node_research -->|"audits inference"| node_fis
node_research -->|"analyzes policy"| node_policy

click node_alignment "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/dataset_alignment.py"
click node_resource "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/resource_simulator.py"
click node_ids "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/ids_shap_module.py"
click node_trust "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/trust_module.py"
click node_fis "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/fis_module.py"
click node_policy "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/pqc_policy.py"
click node_pipeline "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/pipeline_driver.py"
click node_validation "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/validation_driver.py"
click node_experiment_driver "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/experiments_driver.py"
click node_alpha_runner "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/run_alpha_verification.py"
click node_research "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/research_experiments.py"
click node_transition "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/alpha_transition_diagnostics.py"
click node_verification "https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/alpha_verification_diagnostics.py"

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_alignment,node_resource toneBlue
class node_ids,node_trust,node_fis,node_policy,node_traffic toneAmber
class node_research,node_transition,node_verification toneMint
class node_pipeline,node_validation,node_experiment_driver,node_alpha_runner toneRose
class node_user toneIndigo
```

## Components

### Data preparation

- [Dataset alignment](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/dataset_alignment.py): `dataset_alignment.py`
- [Resource simulation](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/resource_simulator.py): `resource_simulator.py`

### Risk and policy

- [IDS and SHAP](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/ids_shap_module.py): `ids_shap_module.py`
- [Device trust](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/trust_module.py): `trust_module.py`
- [Fuzzy inference](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/fis_module.py): `fis_module.py`
- [PQC tier policy](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/pqc_policy.py): `pqc_policy.py`

### Research analysis

- [Research experiments](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/research_experiments.py): `research_experiments.py`
- [Alpha transitions](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/alpha_transition_diagnostics.py): `alpha_transition_diagnostics.py`
- [Alpha diagnostics](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/alpha_verification_diagnostics.py): `alpha_verification_diagnostics.py`

### Workflow drivers

- [Main pipeline](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/pipeline_driver.py): `pipeline_driver.py`
- [External validation](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/validation_driver.py): `validation_driver.py`
- [Experiment runner](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/experiments_driver.py): `experiments_driver.py`
- [Alpha verification runner](https://github.com/mobarak93/iomt-ids-pqc-research_code/blob/main/run_alpha_verification.py): `run_alpha_verification.py`

### Other components

- **Researcher**
- **Traffic datasets**

## Connections

- Researcher → Main pipeline: runs (evidence: `pipeline_driver.py`)
- Traffic datasets → Dataset alignment: loads and aligns (evidence: `dataset_alignment.py`)
- Main pipeline → Dataset alignment: prepares data (evidence: `pipeline_driver.py`)
- Main pipeline → IDS and SHAP: trains IDS (evidence: `pipeline_driver.py`)
- Main pipeline → Device trust: runs trust track (evidence: `pipeline_driver.py`)
- Main pipeline → Fuzzy inference: uses inference (evidence: `pipeline_driver.py`)
- Device trust → Resource simulation: uses simulator (evidence: `trust_module.py`)
- PQC tier policy → Fuzzy inference: evaluates inputs (evidence: `pqc_policy.py`)
- External validation → Dataset alignment: loads dataset (evidence: `validation_driver.py`)
- External validation → IDS and SHAP: validates model (evidence: `validation_driver.py`)
- External validation → Device trust: checks dynamics (evidence: `validation_driver.py`)
- Experiment runner → Research experiments: runs studies (evidence: `experiments_driver.py`)
- Main pipeline → Research experiments: invokes analysis (evidence: `pipeline_driver.py`)
- Alpha verification runner → Alpha diagnostics: runs diagnostics (evidence: `run_alpha_verification.py`)
- Alpha verification runner → Fuzzy inference: uses inference (evidence: `run_alpha_verification.py`)
- Alpha transitions → Fuzzy inference: evaluates tiers (evidence: `alpha_transition_diagnostics.py`)
- Alpha transitions → PQC tier policy: runs sequences (evidence: `alpha_transition_diagnostics.py`)
- Alpha diagnostics → Fuzzy inference: audits rules (evidence: `alpha_verification_diagnostics.py`)
- Research experiments → IDS and SHAP: analyzes model (evidence: `research_experiments.py`)
- Research experiments → Device trust: analyzes trust (evidence: `research_experiments.py`)
- Research experiments → Dataset alignment: analyzes data (evidence: `research_experiments.py`)
- Research experiments → Fuzzy inference: audits inference (evidence: `research_experiments.py`)
- Research experiments → PQC tier policy: analyzes policy (evidence: `research_experiments.py`)
