During training, the Neuton Platform makes available a real-time dashboard so you can monitor
the quality of the model, the number of coefficients as well as the model size. Once the most
optimal model quality and size is achieved, training will be stopped automatically.
Alternatively, you may also manually stop training once the model is deemed consistent and you
have achieved your target model requirements.
2. Model Embedding
To begin the process of embedding your model into your device you should take the following
1. Download the model archive (OS specific)
The archive for downloading appears immediately after you stop or complete the training. Once
complete you can continue with following steps:
Information about the model
Files with weight and meta-information in two formats, binary and HEX, that are used in the
calculation process. 2 formats are needed to support projects with and without a file system.
A set of functions that is an add-on to Newton's algorithm providing predictions. For instance,
the calculator includes functions for loading a model, calling call-back functions like
transferring data, receiving calculation results, etc.
An algorithm that performs calculations.
A file in which you can set the logic of actions for the results of calculations based on your
2. Prepare the source code for the microcontroller firmware
Requirements to Embed your model:
Code for collecting data from sensors / microphone / camera, etc. You need to prepare this code
Code for processing the prediction result (for example, an alarm, message sending, etc.).
Files downloaded from the Neuton Platform (calculator, model, and library).
Modified implementation file. A call to the data collecting code and results processing should
appear in it.
Note: The codes for collecting data and processing the prediction result can be
immediately in the implementation file, if they were not prepared earlier.
After the preparation of all the components, you may need to debug your solutiuon prior to
Next, your model will be loaded into your project automatically after the calculator has
initialized. No additional steps are required once completed.
3. Download the firmware on the device
Flash memory contains the firmware code and the model, RAM contains the data necessary for the
model operation: accumulators for neurons, service information, etc.
After updating the firmware on the device, the data from the sensors will be transmitted to the
calculator performing the prediction and returning the result in a fraction of a second. Then
the prediction results are processed according to the logic you specified while defining your
Note: The input data for predictions must be identical in format to the data used
for the training, including the order of columns. In this case, the target variable should be
Note: The option to download the model is available in Neuton’s Third Law
(Subscription plan). However, in other plans, you can evaluate the quality of the model and its
size in our web interface.