detectonic-2 / README.md
Tonic's picture
model card refresh (base_model, artifact list)
8fd5561 verified
|
Raw History Blame Contribute Delete
4.39 kB
metadata
license: apache-2.0
library_name: onnxruntime
pipeline_tag: audio-classification
base_model: Tonic/detectonic-0.2.0-KTA-w8-multih-i224
datasets:
  - Tonic/unified-drone-acoustic-cuas-v2
  - Tonic/unified-drone-acoustic-cuas-v2p1
tags:
  - drone-detection
  - acoustic-wake
  - c-uas
  - detectonic
  - kta
  - w9
  - gated
  - edge-ai
  - esp32
model-index:
  - name: detectonic-2
    results:
      - task:
          type: audio-classification
          name: Drone wake detection + sound classification
        dataset:
          type: Tonic/unified-drone-acoustic-cuas-v2p1
          name: windows_5s validation
        metrics:
          - type: f1
            name: unified_val_F1
            value: 0.9957
          - type: custom
            name: wake_duty_cycle
            value: 0.698
          - type: f1
            name: heldout_wake_F1
            value: 0.5

detectonic-2

Drone wake-word + sound-class detector (two-head: wake logit + 4-class sound) built on a SqueezeNet1.1-style backbone with fire modules, trained on log-mel spectrogram windows (5-s clips rendered as RGB images). KTA quantization — structured channel pruning followed by full int8 per-channel post-training quantization with a fused input-normalization graph (single input scale/zero-point), executed with vendor ESP-NN kernels on ESP32 (RISC-V PIE / S3) and XNNPACK on host.

Performance in context

Full results on the public leaderboard: https://huggingface.co/spaces/Tonic/audio-drone-detection-leaderboard · machine-readable rows in the Tonic/drone-detectonic-0.1-benchmark-results dataset.

hardware benchmark wake F1 unified F1 duty latency ms parity
esp32-s3-n8r8 c5-valid 0.5 0.9957 0.698 2098.8 drone c5_0002 wake=1 logit 18.79, ambient c5_0001 wake=0 log

Model size: params 362821 · ONNX 1.47 MB · train rows 209648 · epochs 8 · input 224px.

Architecture (3D wireframe + measured forward pass)

architecture + forward pass

Interactive explorer: docker image detectonic-explorer (demo/model_explorer, port 8080).

On-device forward inference (real capture)

ESP32-S31 serial forward pass

Demos (interactive explorer + forward pass)

Intended use

On-device acoustic drone detection on ESP32-class MCUs (ESP32-S31 PIE, ESP32-S3) and host CPUs: wake decision + sound classification per 5-s spectrogram window. Not for weapon/vehicle identification beyond the 4-class sound taxonomy.

Training data

Cited datasets (see frontmatter): Tonic/unified-drone-acoustic-cuas-v2, Tonic/unified-drone-acoustic-cuas-v2p1 — 209648 training windows with gain jitter and spectrogram masking augmentation; evaluation on clean rendered windows.

Evaluation

metrics.json (unified validation F1 0.9957, duty 0.698, held-out wake F1 0.5); per-clip predictions in preds_valid.jsonl / preds_test.jsonl; training log train_log.txt.

Artifacts

  • .gitattributes
  • SHA256SUMS.json
  • audio_wake_cnn.onnx
  • bench_s31_deploy.json
  • bench_s31_deploy.log
  • bench_s31_w9prune.json
  • bench_s31_w9prune.log
  • bench_xiao_w9prune.json
  • bench_xiao_w9prune.log
  • best.pt
  • int8/host_eval_w9prune.json
  • int8/model_w9prune_224_int8_fused.tflite
  • int8/model_w9prune_224_int8_pc.tflite
  • metrics.json
  • preds_test.jsonl
  • preds_valid.jsonl
  • train_log.txt

Integrity: SHA256SUMS.json where present.

Lineage

Derived from Tonic/detectonic-0.2.0-KTA-w8-multih-i224. Wave w9; quantization line KTA.