element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Ralph Yamamoto's Blog Using SensiML with Arduino Nano 33 BLE Sense - Additional Model Testing
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 7 Feb 2021 9:57 PM Date Created
  • Views 402 views
  • Likes 3 likes
  • Comments 0 comments
  • automl
  • arduino nano 33 ble sense
  • tinyml
  • analytics studio
  • sensiml
Related
Recommended

Using SensiML with Arduino Nano 33 BLE Sense - Additional Model Testing

ralphjy
ralphjy
7 Feb 2021

This is a continuation of my previous post Using SensiML with Arduino Nano 33 BLE Sense - Model Development .

 

I had suggested in my previous post that I thought the poor performance of my model was due to trying to classify multiple items within a single data sample which might be sensitive to the size and movement of the classification window across the data sample.

 

Here are is the Confusion Matrix from those tests:

image

 

It seemed like a simple test would be to produce test data samples that only contained a single class within each sample.

 

I captured two 5 second data samples of each class and retested the model.  The results really surprised me.  The overall accuracy improved, but now the LeftRight class has issues.

image

image

 

After a quick look at the data, I realized what is probably causing the problem.  When I generated the training data, I did a poor job of isolating the 3 movement axes.  My intent was to have each class represent movement along a single axis.

 

Here's a representative training sample that captures sequentially Z(UpDown), Y(LeftRight), and X(ForwardBack):

image

 

You can see that I didn't do a great job of isolating the axes.  The LeftRight is the worst.  I think that I had the board slightly rotated around the X axis and picked up movement on the Z axis.  I was pretty consistent yesterday, so I think the model trained with consistently "bad" data.

 

I was a little more careful when I took the test data today and that seems to have caused a data mismatch.  This is probably just a case of having insufficient training data.  I should have data that has "some" skew in the other axes for training.  The model has probably overfit the data.

 

I'm pretty happy in general that things tend to work, I'm sure I'll get a lot better at this over time.  And investing more time to generate a more robust training data set will help when there is a real problem to solve image.

 

I'm going to move to the next step of deploying the model as it should do a reasonable job of classifying.

  • 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