I have a strange behavior with my Nicla Voice and a model I developed using Edge Impulse. I have made a simple motion classification impulse using the built-in IMU of the Nicla Voice (three different movements: moving the board up and down, left and right, and keeping it still without moving it). I had trouble uploading the generated firmware to the board, but that issue is already resolved. When I test the impulse using the Live Classification tool of Edge Impulse, everything seems to be ok; every movement is detected without any problem. But, when I deploy the impulse into the board and run it using the following command:
edge-impulse-run-impulse
Inferencing starts on the board but can’t detect anything; it only shows a match on an incorrect movement. Any guess what can be happening with the impulse deployment on the board? The Project ID is the following: 230837. Any help with this is appreciated. Thank you!
Thank you @Eoin. The easiest way to test the project and see the issue I described is by leaving the Nicla Voice without moving it (idle). You should see that the Live Classification tool from Edge Impulse Studio does the job by recognizing correctly that the board is not moving. Still, the movement is not recognized when the model is deployed into the board.
@josea.bagur, one thing I noticed (haven’t tested it on my board yet) is that you don’t have a so-called negative class in your model. I checked our doc and indeed we explain this concept (specific to Syntiant) for audio but not in the IMU tutorial - we’ll fix that.
When deploying on the Syntiant target, the last class (alphabetical order) is automatically assigned as a negative one - meaning it will not trigger a prediction. You can notice this in the ph_params.json file in the exported zip file:
I’m not sure how the NDP chip reacts to this config but it probably has some side effects. What I’d suggest is renaming your idle class to z_idle, retrain the model and unselect the z_idle when generating posterior parameters.
Oh, that makes sense. Sorry that I haven’t seen the audio documentation for Syntiant, I got into the IMU right away I got the board , I am going to read the concept in the audio documentation. I will make tests with your suggestions and keep posting my findings here. Thank you guys for your prompt responses BTW!
@aurel I have made what you suggested before, I renamed the idle class to z_idle and retrained the model, unselected the z_idle clase when generating posterior parameters and build again the firmware. I am getting the same results. When I use the live classification tool from Edge Impulse Studio, motion is detected as expected, but only one of the classes is detected when the model is deployed into the board.
Hi !
Would appricate your help ,
Im stuck in in the imu firmware not uplaoding and you said
“I had trouble uploading the generated firmware to the board, but that issue is already resolved”