Causal Sound Event Detection - Frame-by-frame audio analysis on MobileNetV3
2 min readupdated
This model handles real-time, frame-by-frame sound event recognition by analyzing short audio snippets and returning probabilities and relative levels for 12 distinct classes (including gunshots, explosions, footsteps, speech, and music). Built on a MobileNetV3 backbone, it is optimized for mobile devices and delivered in ONNX format alongside a quantized version for Hexagon NPU (neural processing unit). Developers building embedded systems, mobile applications, or security setups can use it for rapid ambient sound classification.
Key features
- 12 independent classes: Recognizes gunshots, explosions, impacts, footsteps, engines, speech, music, and other sounds.
- High processing speed: Processing a window takes about 1.1 ms (median) on a mobile Hexagon HTP.
- Two ONNX formats: Available in a standard version (float32) and a quantized version (
model_qdq.onnx) for efficient NPU performance. - Lightweight architecture: Features around 3.79 million parameters, combining log-mel spectrograms with high-frequency features.
What you can do
- Mobile app integration: Embed the model into an Android app to monitor audio environments using ONNX Runtime.
- Acoustic monitoring systems: Use it to detect alarm sounds (gunshots, explosions, screams) in real time.
- Automatic media content analysis: Apply it to quickly tag audio tracks and search for specific effects in video.
Example
import onnxruntime as ort
session = ort.InferenceSession("model.onnx")
labels, level = session.run(None, {"mel": mel, "hi": hi})
Read more
DetailsBackbone: MobileNetV3 (frame_mn10), 3,793,080 parameters.
Training: 40,000 steps with the AdamW optimizer and a one-cycle scheduler.
Performance: a single run takes 1.1 ms (median) on Hexagon HTP.
Limitations: the frontend (audio preprocessing) is not included in the graph and must be implemented separately.










Comments