Application overview
Traditional glass break detectors rely on simple acoustic thresholds, which frequently trigger false alarms from unrelated loud noises such as dropped objects or slamming doors. These threshold-based systems lack the intelligence to distinguish the specific frequency profiles of shattering glass from common household sounds, leading to reduced reliability and user fatigue in security environments.
This solution replaces rigid threshold logic with a sophisticated, NPU-optimized acoustic pattern recognition model running on our NPU-integrated microcontrollers. By combining FFT-based feature extraction with deep learning inference, the system analyzes complex acoustic signatures directly on the edge. This approach enables high-fidelity detection of breaking events while maintaining low power consumption and ensuring user privacy by eliminating the need for cloud-based audio processing. This allows engineers to develop intelligent, highly responsive security systems and smart home safety applications that are both robust and battery-efficient.
Key performance targets:
Ultra-low latency: Maintain a response time of less than 100ms for real-time alerting
High accuracy: Achieve greater than 99% detection accuracy for glass-break events.
Power efficiency: Optimize performance for extended operation in battery-powered, wireless devices.
Start evaluating
Data collection
The dataset is constructed from a hybrid of high-fidelity public acoustic repositories—including DEMAND, FSDK50K, ESC-50, and Google Speech Commands—and custom-captured recordings using a microphone connected to MSPM0G5187-based microphone interface. To ensure robust classification, the training data spans three distinct acoustic scenarios: genuine glass-break events across various glass thicknesses and types, baseline ambient household noise, and "near-miss" acoustic events (such as ceramic dish breakage or metal impacts) designed to minimize false positives.
To enhance model generalization and environmental resilience, data augmentation techniques were applied to the raw signals. This process produces a diverse range of spectral characteristics, preparing the model to handle varying distances, intensities, and environmental echoes encountered in real-world security applications.
Data quality
The quality of the feature extraction pipeline is validated through the effectiveness of the FFT-based preprocessing and normalization stages in achieving high class separability. The resulting model demonstrates strong discriminative power, successfully isolating glass-break signatures from similar non-glass acoustic events. Validation results confirm a detection accuracy of greater than 95% alongside a false positive rate of under 5%, verifying the model's ability to maintain high reliability in complex, noisy environments.
Figure 1: Image represents different sounds detected using the glass break detection model
Building and train your model
Accelerate development by leveraging advanced optimization and automation to design, train, and deploy high-performance AI models. For this use case, models are trained using either the CCStudio™ Edge AI Studio (GUI) for intuitive development or the tinyml-tensorlab command-line interface (CLI), for automated workflows. Training is executed over 20 epochs using the Adam optimizer (learning rate 0.001, batch size 32) with Quantization-Aware Training (QAT) enabled to preserve high accuracy. To maximize hardware efficiency, a mixed-precision quantization strategy is applied by default—utilizing 8-bit activations and 4-bit weights for depthwise and pointwise convolutions—resulting in an approximately 4x–8x reduction in model size compared to 32-bit floating-point (FP32) models.
Find the right model
The recommended architecture for this use case is DSCNN_GB_NPU, a lightweight Depthwise Separable Convolutional Neural Network (DSCNN) optimized specifically for the MSPM0G5187. The model processes an input tensor of $(N, 1, 86, 32)$ through a sequence of depthwise and pointwise convolutions, culminating in a 3-class output (glass break, background, and similar sounds). With approximately 6K parameters and a footprint of only ~8 KB of Flash, the model achieves an inference time of under 10 ms and an expected accuracy exceeding 95%. To expedite your development, pre-trained reference models and training configurations are available in the TI tinyML Model Zoo, enabling engineers to easily reproduce these results or fine-tune models using proprietary acoustic data.
Deploying your model
Choosing the right device
| Product number | Processing core | NPU available | Clock frequency (MHz) | Benchmark metrics | ||
|---|---|---|---|---|---|---|
| Latency (ms) | Flash (kB) | SRAM (kB) | ||||
| MSPM0G5187 | Arm® Cortex®-M0+ | TinyEngine™ NPU | 80 | <10 | 11.2 | 15.9 |
All the hardware, software and resources you’ll need to get started
Multi-class motion detection for PIR based building security with >98% accuracy
Single PIR sensor based solution for differentiating between multiple sources of motion leverarging a MCU-scalable Edge AI solution.
Always-on wake word detection for voice interfaces
Keep smart home and wearable voice interfaces private and responsive by detecting the wake word entirely on-device, with no audio ever sent to the cloud.