You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

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)

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 β€” 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

  • .gitattributes
  • audio_wake_cnn.onnx
  • bench_gemm_s31.txt
  • bench_gemm_xiao.txt
  • bench_masterpie_s31.json
  • bench_masterpie_s31.log
  • best.pt
  • host_eval_int8_fused.json
  • host_eval_int8_fused_i128.json
  • host_eval_int8_fused_r05.json
  • metrics.json
  • model_128_int8_fused.tflite
  • model_128_int8_pc.tflite
  • model_224_int8_fused.tflite
  • model_224_int8_fused_r05.tflite
  • model_224_int8_pc.tflite
  • model_224_int8_pc_r05.tflite
  • preds_test.jsonl
  • preds_valid.jsonl
  • run_s31_sweep.log
  • run_s31_sweep_i128.log
  • run_s31_sweep_r05.log
  • run_xiao_sweep.log
  • run_xiao_sweep_i128.log
  • run_xiao_sweep_r05.log
  • train_log.txt
  • w5i128_metrics.json
  • w5r05_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
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Tonic/detectonic-1-KTA

Dataset used to train Tonic/detectonic-1-KTA

Spaces using Tonic/detectonic-1-KTA 2

Collection including Tonic/detectonic-1-KTA

Evaluation results