detectonic-1-KTA
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 |
|---|---|---|---|---|---|---|
| host-cpu | wave5-bench | 0.0 | 0.996 | 0.6502 | 2.94 | |
| esp32-s31 | c5-valid | 0.0 | 0.996 | 0.6502 | 910.8 | 55/55 decisions vs own float32 ONNX (host int8 fused 56/56) |
| esp32-s3-n8r8 | c5-valid | 0.0 | 0.996 | 0.6502 | 2666.0 | spot 2/2 on c5_0001/c5_0002 vs float32 ONNX (logits match S3 |
| host-cpu | wave5-bench | 0.0 | 0.9958 | 0.65 | 1.69 | |
| esp32-s3-n8r8 | c5-valid | 0.0 | 0.9958 | 0.65 | 2095.3 | spot 2/2 on c5_0001/c5_0002 (drone wake=1, ambient wake=0) v |
| esp32-s31 | c5-valid | 0.0 | 0.9958 | 0.65 | 1793.7 | 55/56 decisions vs own float32 ONNX (1 boundary clip c5_0014 |
| host-cpu | wave5-bench | 0.0 | 0.9967 | 0.6468 | 1.51 | |
| esp32-s31 | c5-valid | 0.0 | 0.9967 | 0.6468 | 725.7 | 56/56 decisions vs own float32 ONNX @thr logit 0.0 (prob 0.5 |
| esp32-s3-n8r8 | c5-valid | 0.0 | 0.9967 | 0.6468 | 828.2 | spot 2/2 on c5_0001/c5_0002 (drone wake=1 logit 10.76 vs ref |
| esp32-s31 | c5-valid | 0.0 | 0.0 | 0.0 | 609.7 | 56/56 wake decisions vs host ref (run_w5prune_masterpie.log) |
Model size: params 506339 Β· ONNX 2.04 MB Β· train rows 168016 Β· epochs 4 Β· input 224px.
Architecture (3D wireframe + measured forward pass)
Interactive explorer: docker image detectonic-explorer (demo/model_explorer, port 8080).
On-device forward inference (real capture)
Demos (interactive explorer + forward pass)
- Live demos (protected Space, source private, app public via embed):
Tonic/detectonic-explorer Β·
embed: https://tonic-detectonic-explorer.hf.space Β·
/interactive 3D architecture explorer Β·/demo.htmlsplit-screen tour of all models Β·/anim/forward_pass.htmlself-contained forward-pass animation - Protected artifact copy (gated): Tonic/detectonic-demos
(
explorer/static source,captures/GIFs) - Family grouping: HF collection Detectonic KTA model family
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 β 168016 training windows with gain jitter and spectrogram masking augmentation; evaluation on clean rendered windows.
Evaluation
metrics.json (unified validation F1 0.996, duty 0.6502,
held-out wake F1 0.0); per-clip predictions in preds_valid.jsonl /
preds_test.jsonl; training log train_log.txt.
Artifacts
.gitattributesaudio_wake_cnn.onnxbench_gemm_s31.txtbench_gemm_xiao.txtbench_masterpie_s31.jsonbench_masterpie_s31.logbest.pthost_eval_int8_fused.jsonhost_eval_int8_fused_i128.jsonhost_eval_int8_fused_r05.jsonmetrics.jsonmodel_128_int8_fused.tflitemodel_128_int8_pc.tflitemodel_224_int8_fused.tflitemodel_224_int8_fused_r05.tflitemodel_224_int8_pc.tflitemodel_224_int8_pc_r05.tflitepreds_test.jsonlpreds_valid.jsonlrun_s31_sweep.logrun_s31_sweep_i128.logrun_s31_sweep_r05.logrun_xiao_sweep.logrun_xiao_sweep_i128.logrun_xiao_sweep_r05.logtrain_log.txtw5i128_metrics.jsonw5r05_metrics.json
Integrity: SHA256SUMS.json where present.
Lineage
Derived from Tonic/detectonic-0.1.1-KTA-w3-squeezenet1_1-s7. Wave w5; quantization line KTA.
- Downloads last month
- -
Model tree for Tonic/detectonic-1-KTA
Base model
Tonic/detectonic-0.1.0-KTADataset used to train Tonic/detectonic-1-KTA
Spaces using Tonic/detectonic-1-KTA 2
Collection including Tonic/detectonic-1-KTA
Evaluation results
- unified_val_F1 on windows_5s validationself-reported0.996
- wake_duty_cycle on windows_5s validationself-reported0.650
- heldout_wake_F1 on windows_5s validationself-reported0.000
- latency_ms_esp32_s31 on windows_5s validationself-reported910.800
- latency_ms_esp32_s31 on windows_5s validationself-reported1793.700
- latency_ms_esp32_s31 on windows_5s validationself-reported725.700
- latency_ms_esp32_s31 on windows_5s validationself-reported609.700

