# imm-hub/acoustic-drone-dcl architecture

> Architecture diagram of the GitHub repository imm-hub/acoustic-drone-dcl, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/imm-hub/acoustic-drone-dcl
- Repository: https://github.com/imm-hub/acoustic-drone-dcl

## Overview

This is a research codebase for acoustic drone detection, with documented goals of localization and drone-type classification as well. The principal implemented workflow is dataset loading, audio-to-feature transformation, optional augmentation, model training, and evaluation. The README documents localization and classification, but the tree contains only package initializers for those areas, so their internals and links to the training workflow are not shown. Edges reflect the excerpts, SOURCE INDEX references, and README; unsampled subsystem details are not inferred.

Main entry points: [`train.py`](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/train.py) (Training workflow), [`evaluate.py`](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/evaluate.py) (Model evaluation), [`src/data/dataset.py`](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/data/dataset.py) (Dataset loaders), [`scripts/download_datasets.py`](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/scripts/download_datasets.py) (Dataset download)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Audio data"]
  node_download["Dataset download"]
  node_datasets["Dataset loaders<br/>[dataset.py]"]
  node_audio_store[("Audio datasets")]
end

subgraph group_detection["Detection workflow"]
  node_features["Audio features<br/>[extractor.py]"]
  node_augmentation["Audio augmentation<br/>[augmentation.py]"]
  node_training_entry["Training workflow<br/>[train.py]"]
  node_models["Detection models<br/>[models.py]"]
  node_trainer["Training engine<br/>[trainer.py]"]
  node_evaluation["Model evaluation<br/>[evaluate.py]"]
end

subgraph group_research["Research capabilities"]
  node_localization["Sound localization"]
  node_classification["Drone classification"]
end

node_researcher(("Researcher"))

node_researcher -->|"requests data"| node_download
node_download -->|"downloads datasets"| node_audio_store
node_audio_store -->|"loads audio"| node_datasets
node_researcher -->|"starts training"| node_training_entry
node_training_entry -->|"creates loaders"| node_datasets
node_training_entry -->|"builds transforms"| node_features
node_training_entry -->|"configures augmentation"| node_augmentation
node_training_entry -->|"creates model"| node_models
node_training_entry -->|"configures trainer"| node_trainer
node_researcher -->|"runs evaluation"| node_evaluation
node_evaluation -->|"loads model"| node_models
node_evaluation -->|"creates test loader"| node_datasets

click node_download "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/scripts/download_datasets.py"
click node_datasets "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/data/dataset.py"
click node_audio_store "https://github.com/imm-hub/acoustic-drone-dcl/tree/main/data/external"
click node_features "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/features/extractor.py"
click node_augmentation "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/features/augmentation.py"
click node_training_entry "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/train.py"
click node_models "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/detection/models.py"
click node_trainer "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/detection/trainer.py"
click node_evaluation "https://github.com/imm-hub/acoustic-drone-dcl/blob/main/evaluate.py"
click node_localization "https://github.com/imm-hub/acoustic-drone-dcl/tree/main/src/localization"
click node_classification "https://github.com/imm-hub/acoustic-drone-dcl/tree/main/src/classification"

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_download,node_datasets,node_audio_store toneBlue
class node_features,node_augmentation,node_training_entry,node_models,node_trainer,node_evaluation toneAmber
class node_localization,node_classification toneMint
class node_researcher toneIndigo
```

## Components

### Audio data

- [Dataset download](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/scripts/download_datasets.py): `scripts/download_datasets.py`
- [Dataset loaders](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/data/dataset.py): `src/data/dataset.py`
- [Audio datasets](https://github.com/imm-hub/acoustic-drone-dcl/tree/main/data/external): `data/external`

### Detection workflow

- [Audio features](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/features/extractor.py): `src/features/extractor.py`
- [Audio augmentation](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/features/augmentation.py): `src/features/augmentation.py`
- [Training workflow](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/train.py): `train.py`
- [Detection models](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/detection/models.py): `src/detection/models.py`
- [Training engine](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/src/detection/trainer.py): `src/detection/trainer.py`
- [Model evaluation](https://github.com/imm-hub/acoustic-drone-dcl/blob/main/evaluate.py): `evaluate.py`

### Research capabilities

- [Sound localization](https://github.com/imm-hub/acoustic-drone-dcl/tree/main/src/localization): `src/localization`
- [Drone classification](https://github.com/imm-hub/acoustic-drone-dcl/tree/main/src/classification): `src/classification`

### Other components

- **Researcher**

## Connections

- Researcher → Dataset download: requests data (evidence: `scripts/download_datasets.py`)
- Dataset download → Audio datasets: downloads datasets (evidence: `scripts/download_datasets.py`)
- Audio datasets → Dataset loaders: loads audio (evidence: `src/data/dataset.py`)
- Researcher → Training workflow: starts training (evidence: `train.py`)
- Training workflow → Dataset loaders: creates loaders (evidence: `train.py`)
- Training workflow → Audio features: builds transforms (evidence: `train.py`)
- Training workflow → Audio augmentation: configures augmentation (evidence: `train.py`)
- Training workflow → Detection models: creates model (evidence: `train.py`)
- Training workflow → Training engine: configures trainer (evidence: `train.py`)
- Researcher → Model evaluation: runs evaluation (evidence: `evaluate.py`)
- Model evaluation → Detection models: loads model (evidence: `evaluate.py`)
- Model evaluation → Dataset loaders: creates test loader (evidence: `evaluate.py`)
