# noosdoo/outdoor-seld-sim architecture

> Architecture diagram of the GitHub repository noosdoo/outdoor-seld-sim, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/noosdoo/outdoor-seld-sim
- Repository: https://github.com/noosdoo/outdoor-seld-sim

## Overview

outdoor-seld-sim is a physics-based outdoor sound-event localization and detection (SELD) data and evaluation pipeline. Its principal workflow plans scenes, synthesizes moving-source audio and matching direction labels, trains or runs SELD models, evaluates predictions, then scores notifications for pedestrian safety. The implementation spans acoustic sources, propagation and rendering, model inference, and real-world evaluation. Relationship evidence is strongest for the README-documented workflow and the sampled v9 renderer; several later model, notification, and field subsystems are represented at directory level because their source was not sampled.

Main entry points: [`scripts/step11_v9_render.py`](https://github.com/noosdoo/outdoor-seld-sim/blob/main/scripts/step11_v9_render.py) (Clip renderer), [`scripts`](https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts) (Prediction scoring), [`src/outdoor_seld/engine.py`](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/engine.py) (Vehicle sounds), [`server_sde`](https://github.com/noosdoo/outdoor-seld-sim/tree/main/server_sde) (SELD training)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_acoustics["Acoustic simulation"]
  node_geometry["Moving-source geometry<br/>[geometry.py]"]
  node_fastsim["Fast renderer<br/>[fastsim.py]"]
  node_foa["FOA encoding and DOA<br/>[foa.py]"]
  node_warnings["Warning sounds<br/>[alert_sounds.py]"]
  node_vehicles["Vehicle sounds<br/>[engine.py]"]
  node_ev["EV sounds<br/>[engine_ev.py]"]
  node_heavy["Heavy vehicles"]
  node_noise["Background noise<br/>[noise.py]"]
  node_calibration["Level calibration<br/>[calibration.py]"]
end

subgraph group_dataset["Dataset generation"]
  node_planner["Scene planning"]
  node_render["Clip renderer"]
  node_labels["DCASE labels<br/>[labels.py]"]
  node_scene["Scene wrapper<br/>[scene.py]"]
end

subgraph group_models["Models and evaluation"]
  node_training["SELD training"]
  node_baseline["Baseline inference"]
  node_causal["Causal inference"]
  node_integrity["Prediction provenance"]
  node_evaluation["Prediction scoring"]
end

subgraph group_application["Field and notifications"]
  node_field["Field recordings"]
  node_notify["Safety notifications"]
end

node_pedestrian(("Pedestrian user"))

node_planner -->|"plans scenes"| node_render
node_render -->|"uses propagation"| node_geometry
node_render -->|"renders audio"| node_fastsim
node_render -->|"encodes audio"| node_foa
node_render -->|"writes labels"| node_labels
node_render -->|"uses scenes"| node_scene
node_render -->|"synthesizes alerts"| node_warnings
node_render -->|"synthesizes vehicles"| node_vehicles
node_render -->|"adds backgrounds"| node_noise
node_render -->|"calibrates levels"| node_calibration
node_vehicles -->|"supports EV source"| node_ev
node_vehicles -->|"supports heavy source"| node_heavy
node_render -->|"provides training data"| node_training
node_training -->|"produces checkpoints"| node_causal
node_training -->|"provides baseline"| node_baseline
node_causal -->|"records provenance"| node_integrity
node_baseline -->|"checks provenance"| node_integrity
node_causal -.->|"produces predictions"| node_evaluation
node_baseline -.->|"produces predictions"| node_evaluation
node_field -->|"supports real-world evaluation"| node_evaluation
node_evaluation -->|"scores notification layer"| node_notify
node_notify -->|"reports hazards"| node_pedestrian

click node_planner "https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts"
click node_render "https://github.com/noosdoo/outdoor-seld-sim/blob/main/scripts/step11_v9_render.py"
click node_geometry "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/geometry.py"
click node_fastsim "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/fastsim.py"
click node_foa "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/foa.py"
click node_labels "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/labels.py"
click node_scene "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/scene.py"
click node_warnings "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/alert_sounds.py"
click node_vehicles "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/engine.py"
click node_ev "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/engine_ev.py"
click node_heavy "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/engine_heavy_v25.py"
click node_noise "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/noise.py"
click node_calibration "https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/calibration.py"
click node_training "https://github.com/noosdoo/outdoor-seld-sim/tree/main/server_sde"
click node_baseline "https://github.com/noosdoo/outdoor-seld-sim/blob/main/server_sde/_baseline_B_infer.py"
click node_causal "https://github.com/noosdoo/outdoor-seld-sim/blob/main/server_sde/_causal_infer_v17.py"
click node_integrity "https://github.com/noosdoo/outdoor-seld-sim/blob/main/server_sde/_prediction_integrity.py"
click node_evaluation "https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts"
click node_field "https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts"
click node_notify "https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts"

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_geometry,node_fastsim,node_foa,node_warnings,node_vehicles,node_ev,node_heavy,node_noise,node_calibration,node_pedestrian toneBlue
class node_planner,node_render,node_labels,node_scene toneAmber
class node_training,node_baseline,node_causal,node_integrity,node_evaluation toneMint
class node_field,node_notify toneRose
```

## Components

### Acoustic simulation

- [Moving-source geometry](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/geometry.py): `src/outdoor_seld/geometry.py`
- [Fast renderer](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/fastsim.py): `src/outdoor_seld/fastsim.py`
- [FOA encoding and DOA](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/foa.py): `src/outdoor_seld/foa.py`
- [Warning sounds](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/alert_sounds.py): `src/outdoor_seld/alert_sounds.py`
- [Vehicle sounds](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/engine.py): `src/outdoor_seld/engine.py`
- [EV sounds](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/engine_ev.py): `src/outdoor_seld/engine_ev.py`
- [Heavy vehicles](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/engine_heavy_v25.py): `src/outdoor_seld/engine_heavy_v25.py`
- [Background noise](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/noise.py): `src/outdoor_seld/noise.py`
- [Level calibration](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/calibration.py): `src/outdoor_seld/calibration.py`

### Dataset generation

- [Scene planning](https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts): `scripts`
- [Clip renderer](https://github.com/noosdoo/outdoor-seld-sim/blob/main/scripts/step11_v9_render.py): `scripts/step11_v9_render.py`
- [DCASE labels](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/labels.py): `src/outdoor_seld/labels.py`
- [Scene wrapper](https://github.com/noosdoo/outdoor-seld-sim/blob/main/src/outdoor_seld/scene.py): `src/outdoor_seld/scene.py`

### Models and evaluation

- [SELD training](https://github.com/noosdoo/outdoor-seld-sim/tree/main/server_sde): `server_sde`
- [Baseline inference](https://github.com/noosdoo/outdoor-seld-sim/blob/main/server_sde/_baseline_B_infer.py): `server_sde/_baseline_B_infer.py`
- [Causal inference](https://github.com/noosdoo/outdoor-seld-sim/blob/main/server_sde/_causal_infer_v17.py): `server_sde/_causal_infer_v17.py`
- [Prediction provenance](https://github.com/noosdoo/outdoor-seld-sim/blob/main/server_sde/_prediction_integrity.py): `server_sde/_prediction_integrity.py`
- [Prediction scoring](https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts): `scripts`

### Field and notifications

- [Field recordings](https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts): `scripts`
- [Safety notifications](https://github.com/noosdoo/outdoor-seld-sim/tree/main/scripts): `scripts`

### Other components

- **Pedestrian user**

## Connections

- Scene planning → Clip renderer: plans scenes
- Clip renderer → Moving-source geometry: uses propagation (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → Fast renderer: renders audio (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → FOA encoding and DOA: encodes audio (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → DCASE labels: writes labels (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → Scene wrapper: uses scenes (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → Warning sounds: synthesizes alerts (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → Vehicle sounds: synthesizes vehicles (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → Background noise: adds backgrounds (evidence: `scripts/step11_v9_render.py`)
- Clip renderer → Level calibration: calibrates levels (evidence: `scripts/step11_v9_render.py`)
- Vehicle sounds → EV sounds: supports EV source (evidence: `src/outdoor_seld/engine_ev.py`)
- Vehicle sounds → Heavy vehicles: supports heavy source (evidence: `src/outdoor_seld/engine_heavy_v25.py`)
- Clip renderer → SELD training: provides training data
- SELD training → Causal inference: produces checkpoints (evidence: `server_sde/_causal_infer_v17.py`)
- SELD training → Baseline inference: provides baseline (evidence: `server_sde/_baseline_B_infer.py`)
- Causal inference → Prediction provenance: records provenance (evidence: `server_sde/_causal_infer_v17.py`)
- Baseline inference → Prediction provenance: checks provenance (evidence: `server_sde/_baseline_B_infer.py`)
- Causal inference → Prediction scoring: produces predictions
- Baseline inference → Prediction scoring: produces predictions
- Field recordings → Prediction scoring: supports real-world evaluation
- Prediction scoring → Safety notifications: scores notification layer
- Safety notifications → Pedestrian user: reports hazards
