Application overview
Traditional voice-activated interfaces typically rely on cloud-based processing, which introduces significant challenges. Constant audio streaming to the cloud raises critical privacy concerns and requires uninterrupted internet connectivity. Furthermore, the high power consumption required to maintain a continuous cloud connection makes cloud-dependent architectures unsuitable for battery-operated wearables and remote smart home devices.
This solution utilizes Edge AI to move the entire wake word detection pipeline to the device. By leveraging the MSPM0G5187 microcontroller and its integrated TinyEngine NPU, the system performs continuous, real-time monitoring of the acoustic environment. The NPU handles the heavy lifting of pattern recognition, allowing the system to listen for the specific "OK Kilby" wake word while the primary MCU remains in a low-power state. Because the audio processing occurs entirely on-device, user privacy is maintained, and the system remains fully functional without cloud dependency.
Key performance targets:
- Ultra-low latency: Less than 200 ms detection latency from the end of the utterance.
- High robustness: High detection accuracy (True Positive Rate) with a minimal False Accept Rate (FAR) in the presence of background noise and non-target speech.
- Extreme power efficiency: Optimized, always-on power profile designed specifically for battery-constrained, wearable, and IoT applications.
Start evaluating
Data collection
Audio is captured via a microphone interfaced with an MSPM0G5187 microcontroller. The training dataset for the "OK Kilby" wake word consists of diverse speech samples encompassing various speaker profiles, pitches, distances, and speaking rates. To ensure robust performance and minimize False Acceptance Rates (FAR), the dataset is augmented with ambient background noise and non-target conversational speech. For production-grade deployment, it is recommended that developers incorporate domain-specific audio—including local accents, target microphones, and specific acoustic environments—to further refine model accuracy.
Data quality
The preprocessing pipeline transforms raw 8 kHz audio into a high-dimensional feature space using a strided Conv1D filterbank (kernel size 64, stride 4). This layer projects the signal into 64 channels, followed by a max-pooling operation over each 20 ms (160-sample) context to generate a single feature vector per frame. To optimize for edge hardware, the filterbank weights are learned jointly during the training process rather than using fixed coefficients. The resulting features are highly efficient, utilizing 16-bit quantization for input audio and 2-bit quantization for the filterbank weights to maximize NPU throughput.
Figure 1: Comparative filterbank activation profiles. The clear differentiation in activation density and frequency distribution between target signals and noise classes demonstrates high feature separability, essential for 99% classification accuracy.
Building and train your model
For this use case, models are trained using the tinyml-tensorlab CLI either directly with the provided configuration file or via the graphical interface in TI CCStudio™ Edge AI Studio. Executing the config_MSPM0.yaml file automates the end-to-end pipeline—handling feature extraction, training, quantization, and compilation. To maximize hardware efficiency, the pipeline utilizes a mixed-precision Quantization-Aware Training (QAT) strategy; this optimizes the model by applying 8-bit (INT8) precision to sensitive layers while leveraging 2-bit quantization for the filterbank and residual blocks to minimize the memory footprint and maximize NPU acceleration.
Find the right model
The recommended architecture is TCDS_ResNet_FB_NPU a highly optimized model designed to maximize the efficiency of the MSPM0G5187 NPU. This model pairs a learned filterbank front-end with a Temporal Channel-Decoupled Separable (TCDS) ResNet backbone. Model includes:
- Front-End: Learned filterbank for optimized acoustic feature extraction
- Stem: 3x1 Convolution, BatchNorm, and ReLU (32 channels)
- Backbone: Three TCDS Basic Blocks utilizing depthwise and pointwise separable convolutions to reduce computational complexity (channel progression: 32, 48, 64, 96)
- Classification Head: Dropout and Flatten layers followed by a Fully Connected layer
- Output: 2-class classification (Wake Word vs. Non-Wake Word/Background)
Deploying your model
Transition from training to production with a seamless, start-to-finish workflow. CCStudio™ Edge AI Studio simplifies the deployment of your trained wake word model directly to our microcontrollers (MCUs), so you can move from a working model to embedded firmware with minimal manual integration effort.
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 | 4.5 | 45 | 22 |
All the hardware, software and resources you’ll need to get started
Smart security systems with real-time glass break detection
Cut false alarms from traditional threshold-based sensors with acoustic pattern recognition that reliably tells glass breaks apart from everyday household noise.