Syntiant TinyML board - constant sound classification

Hello,
I recently started developing with the Edge Impulse platform and Syntinant TinyML board. It works pretty well. I did some examples and deployed some of my own models.
In one of my project I need to create audio monitoring of an machine which produces constant sounds. I have two classes, created from the sound samples – sound is different for each class and I need to distinguish between them.
After deploying the model, I found, that TinyML board do the cassification only for separated sound events, but ignores constant sounds. I would rather need that classification would be done periodically for every audio sample.
Is there any way how to force TinyML board to take audio samples periodically and do classification for each of them?
Thank you.

Project ID: 121073

Context/Use case: Machine maintenance prediction monitoring

Hi @Kroun1,

The Syntiant chip is actually continuously listening. However you could tune some the json posterior parameters in the Deployment section.

What you could change is:

  • reduce the backoff to zero → no pause between triggers
  • decrease the window (phwin) to 1 → by default it gets triggered after detecting 5 consecutive classes

Aurelien

Hi Aurelien,
thank you for your answer. I did changes as per your description and it doesn’t seem to have solved my problem. The classification is still somehow freezing - I see that it provides one or few classes in a row (I checked via serial terminal), but then it stucks. When I off and on sound source again, it continues in the same behaviour.
I changed the parameters by clicking on the “⟨ /⟩ Edit as JSON” - see below.
Then I built project again and loaded into the board. Any other idea what might be the rootcause?

                "label": "BLOCK",
                "phwin": 1,
                "phth": 0.7,
                "phbackoff": 0,
                "phaction": 0,
                "phaction_arg": 0,
                "smoothing_queue_size": 1
            },
            {
                "label": "UNBLOCK",
                "phwin": 1,
                "phth": 0.7,
                "phbackoff": 0,
                "phaction": 0,
                "phaction_arg": 1,
                "smoothing_queue_size": 1