Skip to main content

Audio Classification — Model Analysis

Input Files Required

InputDescription
Model (.h5)Trained TensorFlow/Keras model
X Test (.npy)Test feature dataset
Y Test (.npy)Test label dataset

Model Visualisation

Load the .h5 model and click "Visualize Model". The architecture diagram displays:

  • Input shape (e.g. 40 × 40 × 1)
  • Layer-by-layer flow: Conv → Conv → Conv → Flatten → Dense → Softmax
  • Output shape after each layer
  • Presence of QuantizeWrapperV2 (if QAT was used)
  • Final number of output classes

Run Conversion

Converts the .h5 model to a deployable NDP firmware package (.synpkg).

  1. Browse to the .h5 model file
  2. Select X_test.npy and Y_test.npy
  3. Click Run Conversion and monitor the console

During conversion the tool:

  • Quantizes weights to INT8
  • Converts layers to Syntiant hardware operations
  • Maps model into NDP memory banks
  • Generates .synpkg output files

Run Simulation

Validates that the converted NDP model produces the same predictions as the original Keras model.

  1. Open the Syntiant Model Converter GUI
  2. Set: Converted Model Path → syntiant_output/model0, X Test Data → x_test.npy, Y Test Labels → y_test.npy
  3. Click Run Simulation and monitor logs

Run Comparison

Compares original Keras and NDP simulated model to verify conversion preserved accuracy.

  1. Ensure both conversion and simulation are complete
  2. Click Run Comparison

Results shown in tabs: Generated Files, Prediction Table, Confusion Matrix, Time Series Graph.