How to get a Classification Learner model onto STM32F4 Discovery Board?

3 views (last 30 days)
Sriram Padavettan
Sriram Padavettan on 2 Apr 2020
Answered: Firat Ozkan on 9 Apr 2020
This is one of my first experiences with embedded work, so bear with me on that.
I've got an STM32F4 Discovery Board. I've also got a Classification Learner (Ensemble KNN, but this question applies for any model) model.
The classification model takes a vector of 13 floating point numbers (MFCC's from an audio file) and classifies that vector as belonging to either a car, truck, or motorcycle.
I want to get this model onto my STM32F4 board and have it execute, but I'm not sure how to do that. The MATLAB coder outputs a MEX file, but I"m not sure if that's supported by STM32F4 or if I'm even on the right track. Does anyone have any insight on this? Thank you very much.

Answers (1)

Firat Ozkan
Firat Ozkan on 9 Apr 2020
I'm not an expert in this area, but you may want to check out Embedded Coder and Embedded Coder Support Package For STMicroelectronics. I also am doing a similar project (Keyword Spotting) using MFCC's and DTW algorithm. I also am hoping to use Embedded Coder.
This way, you can program your Discovery Board using Simulink with your functions.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by