CMSIS-DSP SVM Example

Overview

This example demonstrates the use of ARM CMSIS-DSP library Support Vector Machine (SVM) functions for classification tasks. SVM is a powerful machine learning algorithm used for:

  • Pattern recognition

  • Object classification

  • Anomaly detection

  • Fault diagnosis

  • Image classification

  • Predictive maintenance

What the Example Does

The example:

  1. Initializes a polynomial kernel SVM classifier with pre-trained parameters

  2. Creates test vectors representing points in 2D feature space

  3. Classifies two test points using the SVM model

  4. Prints the predicted class for each test point

  5. Validates that predictions match expected results

Usage Notes

Customization

You can modify the example to:

  • Test different input vectors by changing the in[] array values

  • Use different kernel types (linear, RBF, sigmoid)

  • Load your own trained SVM model parameters

  • Increase feature dimensions for more complex classification tasks

  • Add more test cases for validation

External Connections

None required. This is a software-only computational example.