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 7: Edge Impulse Live Classification
  • 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: 27 Feb 2023 12:05 AM Date Created
  • Views 740 views
  • Likes 9 likes
  • Comments 0 comments
  • save the bees
  • bee hive audio
  • savethebeesch
  • nicla vision
  • audio impulse design
  • edge impulse
  • buzz3 dataset
Related
Recommended

Bee Healthy - Blog 7: Edge Impulse Live Classification

ralphjy
ralphjy
27 Feb 2023

I received my hardware 4 days ago, but haven't had the time or opportunity to use it.  The MKR WAN 1310 box was crushed, but it seems the board was not damaged.

image

Live Classification

The first thing that I want to try with the Nicla Vision is live classification with the Edge Impulse model.  This would allow me to verify that the microphone hardware and software are operating and that the model works with the microphone before I deploy it.

The Nicla Vision is fully supported by Edge Impulse, so this task should have been easy.  I use Edge Impulse with other Arduino boards, so I already have the Edge Impulse CLI and the Arduino CLI installed and operating on my PC.  Unfortunately, because I use a lot of different boards with these tools - there is always the possibility of running into version conflicts with sotware and firmware.

Install Edge Impulse firmware on Nicla Vision

Edge Impulse provides firmware that you can flash onto the Nicla Vision to provide access to all of its onboard sensors from your Edge Impulse project using the edge-impulse-daemon with the USB connection to the board.

Download the latest Edge Impulse firmware arduino-nicla-vision-firmware.zip and unzip the file.  I am using Windows, so after connecting the Nicla Vision via USB, just need to run the flash_windows.bat script.  Unfortunately, that failed.

image

Not sure why the flash script is poking through all the board libraries, but it ran into a problem in the ESP Arduino library with a Heltec board that I don't even use (neither does Edge Impulse).  There was some corruption in that library - but even after I reinstalled it and eliminated the error - I could not get the firmware flashed.  It turns out that I am using version 0.19.0 of the Arduino CLI and it wants 0.18.x.  Funny, because the latest version is actually 0.30.0.  Rather than ruminate on that, I just loaded an archived version 0.18.3 and that worked.

Edge Impulse CLI

The next step is to run the edge-impulse-daemon (part of the Edge Impulse CLI) and connect to your Edge Impulse project in the cloud.  Unfortunately, that didn't work because the Nicla Vision is a newer board and apparently the CLI version I was using (v1.13.12) was out of date.

image

Updated CLI to v1.17.1 and then was able to connect to my Bee_Present project.

image

image

There is an alternate method to connect sensors which is to load an ingestion program onto the Nicla Vision.  I also tried that with the microphone program nicla_vision_ingestion_mic.ino and it worked, but the the disadvantage of this approach is that you don't get access to all of the sensors in a single program.

Now on the Data acquisition window on the project I have access to the sensors:

image

Likewise I have those options on the Live Classification window:

image

And I'm ready to try it:

image

Audio Source

I decided to use a USB speaker to play audio files from my computer.  I printed a spacer clip to position the Nicla at a fixed distance so that I could get some measurement repeatability.

Iimage

Now, what to use as a data source?  I wanted to use audio captured from a honey bee hive and I found some YouTube videos by Frederick Dunn and decided to try those.

Here is a classification of a 5 second video segment where it classified 7 bees.  I have verified that there are segments where it predominantly classifies noise.  Obviously, for this video it does not find any crickets.  I am going to have to see if I can stitch together some audio test files where I have specific expectations as I will have to admit that I can't discriminate specifically what it is classifying in this video.  It would be easier with solitary bees, but the training data is from hives.  Unfortunately, I don't have the unsegmented data.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

I'm satisfied that the hardware is operating correctly, so the next step is to deploy the model as an Arduino library and try inferencing on the Nicla Vision board.

  • 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