Trained Feed Forward Neural Network to C(++)

Hi all,

I've trained a neural network in Matlab using collected data, and it yielded me the needed biases and weights and other values that are needed to construct the trained neural network. I now want to implement it into arduino so it can predict the outcome based on input of sensors, but I struggle to find an example for the code that is needed when all the trained parameters are already calculated.

Can somebody help me to an example where an arduino is used as a 'standalone predictor' of whatever the neural network is supposed to predict? (So not programming the neural network, but just applying the already trained parameters into a piece of C code for an arduino.) Included is an overview of the hidden layers as portrayed by Matlab.

Thanks in advance,
Tjark Roozendaal

matlab overview of FFN.png

matlab overview of FFN.png

@tjarky

Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.