element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Save The Bees Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Save The Bees Design Challenge
  • More
  • Cancel
Save The Bees Design Challenge
Blog Bee Healthy - Blog 8: Edge Impulse Model Deployment
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Save The Bees Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 28 Feb 2023 6:43 PM Date Created
  • Views 750 views
  • Likes 10 likes
  • Comments 0 comments
  • save the bees
  • savethebeesch
  • ml model deployment
  • nicla vision
  • audio impulse design
  • edge impulse
Related
Recommended

Bee Healthy - Blog 8: Edge Impulse Model Deployment

ralphjy
ralphjy
28 Feb 2023

I've described the development and verification of an Edge Impulse model for audio classification in two earlier posts:

  1. Bee Healthy - Blog 5: Edge Impulse Model
  2. Bee Healthy - Blog 7: Edge Impulse Live Classification

The next step is to deploy the model to the Nicla Vision board.

Model Deployment

Build Arduino library

In order to integrate the model impulse with other code, it will be deployed as a library.  I will be using the Arduino IDE with the MKR WAN 1310 and Nicla boards, so I will create an Arduino library.

Just need to select it and push the Build button.

image

When the library is built, it will be packed as a .ZIP library ready to load into the Arduino IDE.

image

If you examine the library file structure, you will see that it has examples included for supported boards.  The model parameters are located under the src directory.

image

Then you just need to add the library to the IDE:

image

image

Test library on Nicla Vision

The recommended method to test the model operation is to use the Static Buffer example from the library.

image

Using Live Classification on the project dashboard, you select and classify one of the test files. 

image

image

Copy the Raw features from that file and paste it into the features[] array in the static_buffer program and compile it and upload it to the Nicla Vision.

image

Run the program and compare the output with the Live Classification result.

image

image

So, almost but not quite what I expected.  The numbers don't quite match.  Not sure if this is due to some processing limitation on the Nicla Vision.

Class Live Classification Nicla Vision
bee 0.77 0.72
cricket 0.03 0.03
noise 0.21 0.25

Probably warrants further investigation, but I'm going to consider it good enough for now. 

Next step is to create the program to do live inferencing on the Nicla Vision and interface it to the MKR WAN 1310.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube