kws_tcn1d_speechcommands: Verified on the ECS-DoT EVB
Temporal 1-D convolutional network: MFCC coefficients are the channels and convolutions (kernel 1xk, strided) run along the time axis; recognizes 10 spoken keywords plus silence and unknown from one second of audio.
Compiled with ECS-Compiler in ECS-Studio 1.140.0 and verified on a physical ECS-DoT EVB.
Getting Started
This repository is a ready-to-use model folder for ECS-Compiler, the AI pipeline of ECS-Studio. It holds the ONNX model and its calibration and evaluation data. The verified result was built with the default ECS-Compiler settings; keep them unchanged to reproduce it.
Compile the model
Download the model folder, either from the Files tab of this page or with the Hugging Face CLI:
hf download emass-ai/kws_tcn1d_speechcommands --local-dir kws_tcn1d_speechcommandsIn ECS-Studio (1.140.0 or later), open a project for the ECS-DoT EVB, open the ECS-Compiler panel and choose
kws_tcn1d.onnxas the model file. The panel loadskws_tcn1d_train.npz(calibration) andkws_tcn1d_test.npz(evaluation) from the same folder automatically.Click Start Pipeline, then Build and Upload to run the model on the board. The ECS-Compiler User Guide describes each step.
Model Details
| Model type | keyword_spotting |
| Architecture | Conv 1x7/4 10->32 +BN -> ReLU -> Conv 1x3 32->40 +BN -> ReLU -> Conv 1x3/2 40->64 +BN -> ReLU -> Flatten (64x6) -> Linear 12 -> Softmax |
| Input | input [1, 10, 1, 49] float32 (MFCC coefficients as channels (10), height 1, time as width (49 frames)) |
| Preprocessing | 1 s of 16 kHz audio, divided by its max sample, zero-padded to 16000 samples. STFT: frame 480 (30 ms), hop 320 (20 ms), Hann window, no centering, magnitude -> 49 frames x 257 bins. 40 mel bands 20-4000 Hz (TensorFlow linear_to_mel_weight_matrix), log(mel + 1e-6), DCT-II (tf.signal.mfccs_from_log_mel_spectrograms), keep the first 10 coefficients -> [49,10]. Then per-coefficient standardization (x - mean) / std with mean = [-11.4277, 1.1698, 0.3023, -0.2647, -0.2575, -0.2349, -0.1414, -0.1846, -0.2297, -0.2176] and std = [21.8490, 3.7119, 2.3825, 1.8141, 1.6129, 1.2507, 1.1123, 0.9710, 0.9189, 0.8385] (computed on the training set). Finally transposed to [10 coefficients, 1, 49 frames]. |
| Output | output [1, 12] float32 |
| Labels | down, go, left, no, off, on, right, stop, up, yes, _silence_, _unknown_ |
| Model size (float) | 73.7 KB |
| Parameters | 18,516 |
Performance Summary
| Model | Precision | Board | Inference Time | Library Size | Compute Unit |
|---|---|---|---|---|---|
| kws_tcn1d_speechcommands | int8 | ECS-DoT EVB | 1.61 ms | 45.3 KB | DLA + CPU |
Inference time is the measured time of one dla_infer() call on the board (median of 204 runs, ECS-DoT at 50 MHz). Library size is the compiled model library libdla.a (7 layers on the DLA, 1 on the CPU).
On-board verification: Run on 3 real samples. The board's output matched the compiler's expected output exactly, and its prediction matched ONNX Runtime on every sample (cosine similarity 1.0000 or higher). On the 200-sample evaluation set the board (int8) scored 92.50% against 93.00% for the float model on the same samples, and agreed with ONNX Runtime on 199 of 200 samples.
Accuracy
92.82% top-1 accuracy on Speech Commands, official test split (testing_list.txt), 12 classes balanced (10 keywords, silence, unknown) (4,890 samples, CC-BY-4.0), measured with ONNX Runtime on the float model.
Training Data
- Speech Commands, v0.02: http://download.tensorflow.org/data/speech_commands_v0.02.tar.gz (licence: CC-BY-4.0).
- Citation: Pete Warden, Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition, arXiv:1804.03209 (2018). Data licensed CC-BY-4.0.
Files
| File | Contents | Download |
|---|---|---|
kws_tcn1d.onnx |
The ONNX model | Download |
kws_tcn1d_train.npz |
Calibration set the board build quantizes with | Download |
kws_tcn1d_test.npz |
Evaluation set | Download |
sample_input.npz |
The real samples run on the board (x, with labels y) |
Download |
LICENSE |
License | Download |
README.md |
This model card | Download |
Intended Use
- This model is provided to evaluate and validate ECS-Compiler and the ECS-DoT. It is not a product and has not been tested for any particular end use.
License
- This model is released under
apache-2.0; seeLICENSE. The training data keeps its own licence (see Training Data).
Provenance
- Verified with ECS-Studio 1.140.0 (ECS-Compiler engine 0.6.0) on the ECS-DoT EVB, 2026-11-17. Build fingerprint
404069f23552.