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 5: Edge Impulse Model
  • 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: 19 Feb 2023 6:13 AM Date Created
  • Views 1655 views
  • Likes 18 likes
  • Comments 9 comments
  • save the bees
  • bee hive audio
  • savethebeesch
  • nicla vision
  • audio impulse design
  • edge impulse
  • buzz3 dataset
Related
Recommended

Bee Healthy - Blog 5: Edge Impulse Model

ralphjy
ralphjy
19 Feb 2023

I've selected the Buzz3 Audio Dataset to test model development and deployment to the Nicla Vision board using the Edge Impulse toolset.  I discussed this dataset in my previous post - Bee Healthy - Blog 4: Audio Dataset.

The Buzz3 dataset contains 11746 2sec samples split as follows:

train 
class hour min samples
bee 1 36 2880
cricket 2 0 3600
noise 1 24 2520
test
class min sec samples
bee 35 42 1071
cricket 19 14 577
noise 36 36 1098

I may end up rebalancing the training data, but I'll try it out first.  I already have an Edge Impulse account , so I just needed to create a new project that I named Bee_Present:

image

A great feature of the Edge Impulse Studio is the ability to upload existing data files provided they are in an accepted data format or file type.

Data Acquisition Formats:

  • CBOR
  • JSON
  • CSV

File Types:

  • WAV
  • JPG
  • PNG
  • AVI
  • MP4

The audio files in this dataset are all WAV files, so uploading the files with the appropriate labels was easy.

Data Acquisition

image

image

Impulse Design

For non-voice audio data it is generally recommended to use a Spectrogram Processing block - either linear or MFE (Mel-filterbank energy).  The MFE is designed to match human audio perception.  One might expect MFE to perform better because the data was labeled by human listeners.

image

I decided to try it both ways.

Audio (MFE) Impulse

image

Train the Neural Network:

image

The Quantized (int8) model accuracy is reasonable when validated against the training data:

image

But performs less well against the test data as would be expected:

image

Linear Spectrogram Impulse

image

Train the Neural Network:

image

Again, reasonable accuracy with the training data

image

But worse performance against the test data

image

Summary of Project versions:

image

The inference time of the Mel Spectrogram Impulse (35ms) is half of the Linear Spectrogram Impulse (71ms).  And it also has better memory efficiency and accuracy (with this dataset), so that's the model that I will use.

My first test when I get the Nicla Vision hardware will be to use the microphone to verify that I can do "Live classification" before I try to deploy the model.  

  • Sign in to reply
Parents
  • DAB
    DAB over 2 years ago

    Nice update.

    I wonder if it could detect killer wasps attacking a hive?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 2 years ago

    Nice update.

    I wonder if it could detect killer wasps attacking a hive?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • ralphjy
    ralphjy over 2 years ago in reply to DAB

    I'm sure it could, but hopefully there wouldn't be a lot of data of this type.  I have heard the audio of a hive that became "Africanized" and when they swarm to attack - it is clearly distinct from normal swarming.  Have not found a dataset of that though.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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