SlideShare a Scribd company logo
©2015 GlobalLogic Inc.
Swimming Tracker:
Motion Recognition
Orest Hera
©2015 GlobalLogic Inc.
Introduction
Raw data processing
Swimming data analysis
01
02
03
Introduction:
● Objectives
● MEMS sensors
● Classification problems
● Sensor-based activity recognition
01
Introduction
Objectives
● Swimming and resting detection
● Lap counting
● Swim style recognition
● Minimal usage of RAM of microcontroller
Introduction
MEMS (MicroElectroMechanical System)
sensors
● 3D Accelerometer
● 3D Gyroscope
● 3D Magnetometer
Introduction
Applications of MEMS sensors
● Mobile devices (Android, iOS)
○ Display/map orientation
○ Step counter, Compass applications
○ Augmented reality
● Small custom devices
○ Small vehicle navigation and stabilization (quadcopter)
○ Industrial automation
○ Innovative smart systems
Introduction
Pattern recognition tools
● Image recognition open source software:
○ OpenCV library
○ Many specialized tools (face, poses, hands tracking)
● Speech recognition open source software:
○ CMU Sphinx (HMM)
○ Julius (HMM 3-gram)
○ Kaldi (Deep neural network)
● Sensor-based activity recognition:
○ Custom classifiers
Introduction
Sensor-based activity recognition
● Accelerometer
“Activity recognition from accelerometer data” / N.Ravi, N.Dandekar, P.Mysore, M.L.Littman,
IAAI’05 Proceedings, Vol. 3, 1541-1546, 2005
● Gyroscope and Accelerometer
A Public Domain Dataset for Human Activity Recognition Using Smartphones / D.Anguita,
A.Ghio, L.Oneto, X.Parra and J.L.Reyes-Ortiz, ESANN 2013. Bruges, Belgium 24-26 April 2013
(UCI Machine Learning Repository)
○ 30 subjects performing activities of daily living
○ 561-feature vector with time and frequency domain variables for fixed-width window
○ 10299 labeled instances
● Techniques of Natural Language Processing
Introduction
Activity recognition from accelerometer data
Classifiers:
● Decision Trees
● K-nearest neighbors
● SVM
● Naive Bayes
Accuracy:
● Multiple subjects cross-validated: 92 - 99%
● One subject training, same subject another data for testing: 70 - 90%
● One subject training, another subject for testing: 46 - 73%
Raw data processing:
● Gravity force detection by accelerometer
● Rotation speed by gyroscope
● Complementary filter
● Compass
02
Raw data processing
Raw sensor data processing
Angle by vector of gravity force
Raw data processing
Advantages:
● Direct measurement without error
accumulation
Disadvantages:
● System own acceleration should be
filtered
● Relaxation time due to Low-pass
filter
Raw data processing
Angle by rotation speed integration
Advantages:
● Can be used during accelerated motion
Disadvantages:
● Integration error accumulation
Raw data processing
Complementary filter
Advantages:
● High frequency by gyroscope
● Low frequency by gravity force vector
Disadvantages:
● Cannot compensate error accumulation drift of rotations around vector of
gravity force
Expected
Magnetometer raw data
Raw data processing
Reality
Raw data processing
Magnetic distortions
Distortion types:
● Hard iron (permanent magnet)
● Soft iron (easily magnetized and demagnetized)
Types of compensating methods:
● Offline (least squares methods)
● Real-time adaptive (Kalman filter, neural networks,...)
Raw data processing
Magnetometer calibration
Ellipsoid equation:
The least-squares problem Pseudo-inverse matrix
Swimming data analysis:
● Device orientation
● Chains of motion subactions
● Probabilistic classification
04
Swimming data analysis
X-,Z-axes horizontal direction (yaw)
Swimming data analysis
X-,Y-,Z-axes vertical direction (pitch)
Raw data processing
Chains of motion subactions
Dictionary of motion subactions: [A, B, C, D,...]
● Typical for swimming: A, B,...
● Typical for resting: C, D,...
Temporal chains of moves:
● Swimming: AABAAAABABAAABABBAA
● Swimming: ACACCACAACCACACCACC
● Resting: ADADDADAADDADADDADD
● Resting: ACACCCCACCCACCCCACC
Probabilistic classification
Swimming data analysis
● Input data points
Probabilistic classification
Swimming data analysis
● Input data points
● Expectation-maximization
Probabilistic classification
Swimming data analysis
● Input data points
● Expectation-maximization
Probabilistic classification
Swimming data analysis
● Input data points
● Expectation-maximization
● Probability distribution
Swimming data analysis
Results
©2015 GlobalLogic Inc.
Thank You

More Related Content

PPT
How to Make a Motion Tracking Device
PPTX
Sensors Data Processing for Innovative Swimming Tracking Device
PPTX
Handheld device motion tracking using MEMS gyros and accelerometer
PDF
Better motion control using accelerometer/gyroscope sensor fusion
PDF
IRJET- Miniature Satellite
PPTX
Evaluation of dynamics | Gyroscope, Accelerometer, Inertia Measuring Unit and...
PPTX
Automatic_gait_detection_poster_IEEE
PDF
Improving the safety of ride hailing services using iot analytics
How to Make a Motion Tracking Device
Sensors Data Processing for Innovative Swimming Tracking Device
Handheld device motion tracking using MEMS gyros and accelerometer
Better motion control using accelerometer/gyroscope sensor fusion
IRJET- Miniature Satellite
Evaluation of dynamics | Gyroscope, Accelerometer, Inertia Measuring Unit and...
Automatic_gait_detection_poster_IEEE
Improving the safety of ride hailing services using iot analytics

What's hot (10)

PDF
IRJET- Implementation of IoT based Dual Axis Photo-Voltaic Solar Tracker ...
PPT
4.1.2calculator
PDF
Lecture 08 robots and controllers
PPSX
Survey Total Station- IV
PPTX
Spin Seminario L'Aquila - Activate
DOC
Synthesizable integrated circuit and system design for solar chargers
PDF
Oblu Integration Guide
PDF
Sms fence detection
PDF
Event Data Recorder in Automobile
IRJET- Implementation of IoT based Dual Axis Photo-Voltaic Solar Tracker ...
4.1.2calculator
Lecture 08 robots and controllers
Survey Total Station- IV
Spin Seminario L'Aquila - Activate
Synthesizable integrated circuit and system design for solar chargers
Oblu Integration Guide
Sms fence detection
Event Data Recorder in Automobile
Ad

Similar to Swimming Tracker - Motion Recognition (20)

PDF
Track 4 session 3 - st dev con 2016 - pedestrian dead reckoning
PPTX
3D Mapping with LiDAR
PPTX
Outdoor High Accuracy People Counting System
PPTX
Sensors 9
PPTX
PPT
Wearable Computing - Part II: Sensors
PPTX
Avalanche Risk Assessment Final Presentation
PDF
Real time-image-processing-applied-to-traffic-queue-detection-algorithm
PPTX
Soft Robotics and Flexible Structures for Robots.pptx
PPT
Android Sensor System
PPTX
unit 1.1.pptx
PPTX
Smart speed violation detection and challan system
PDF
Android gps, location services, camera and sensors - Paramvir Singh
PPTX
Cmm ppt
PDF
1886 1892
PDF
1886 1892
PPSX
Sensor's inside
PPTX
Inspection Principles and practices, Inspection technologies.pptx
PPTX
Machine Vision Systems And Applications
PPTX
IoT Sensors & Integration with Physical World
Track 4 session 3 - st dev con 2016 - pedestrian dead reckoning
3D Mapping with LiDAR
Outdoor High Accuracy People Counting System
Sensors 9
Wearable Computing - Part II: Sensors
Avalanche Risk Assessment Final Presentation
Real time-image-processing-applied-to-traffic-queue-detection-algorithm
Soft Robotics and Flexible Structures for Robots.pptx
Android Sensor System
unit 1.1.pptx
Smart speed violation detection and challan system
Android gps, location services, camera and sensors - Paramvir Singh
Cmm ppt
1886 1892
1886 1892
Sensor's inside
Inspection Principles and practices, Inspection technologies.pptx
Machine Vision Systems And Applications
IoT Sensors & Integration with Physical World
Ad

More from GlobalLogic Ukraine (20)

PDF
GlobalLogic JavaScript Community Webinar #21 “Інтерв’ю без заспокійливих”
PPTX
Deadlocks in SQL - Turning Fear Into Understanding (by Sergii Stets)
PDF
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
PDF
GlobalLogic Embedded Community x ROS Ukraine Webinar "Surgical Robots"
PDF
GlobalLogic Java Community Webinar #17 “SpringJDBC vs JDBC. Is Spring a Hero?”
PDF
GlobalLogic JavaScript Community Webinar #18 “Long Story Short: OSI Model”
PPTX
Штучний інтелект як допомога в навчанні, а не замінник.pptx
PPTX
Задачі AI-розробника як застосовується штучний інтелект.pptx
PPTX
Що треба вивчати, щоб стати розробником штучного інтелекту та нейромереж.pptx
PDF
GlobalLogic Java Community Webinar #16 “Zaloni’s Architecture for Data-Driven...
PDF
JavaScript Community Webinar #14 "Why Is Git Rebase?"
PDF
GlobalLogic .NET Community Webinar #3 "Exploring Serverless with Azure Functi...
PPTX
Страх і сила помилок - IT Inside від GlobalLogic Education
PDF
GlobalLogic .NET Webinar #2 “Azure RBAC and Managed Identity”
PDF
GlobalLogic QA Webinar “What does it take to become a Test Engineer”
PDF
“How to Secure Your Applications With a Keycloak?
PDF
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
PPTX
GlobalLogic Machine Learning Webinar “Statistical learning of linear regressi...
PDF
GlobalLogic C++ Webinar “The Minimum Knowledge to Become a C++ Developer”
PDF
Embedded Webinar #17 "Low-level Network Testing in Embedded Devices Development"
GlobalLogic JavaScript Community Webinar #21 “Інтерв’ю без заспокійливих”
Deadlocks in SQL - Turning Fear Into Understanding (by Sergii Stets)
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Embedded Community x ROS Ukraine Webinar "Surgical Robots"
GlobalLogic Java Community Webinar #17 “SpringJDBC vs JDBC. Is Spring a Hero?”
GlobalLogic JavaScript Community Webinar #18 “Long Story Short: OSI Model”
Штучний інтелект як допомога в навчанні, а не замінник.pptx
Задачі AI-розробника як застосовується штучний інтелект.pptx
Що треба вивчати, щоб стати розробником штучного інтелекту та нейромереж.pptx
GlobalLogic Java Community Webinar #16 “Zaloni’s Architecture for Data-Driven...
JavaScript Community Webinar #14 "Why Is Git Rebase?"
GlobalLogic .NET Community Webinar #3 "Exploring Serverless with Azure Functi...
Страх і сила помилок - IT Inside від GlobalLogic Education
GlobalLogic .NET Webinar #2 “Azure RBAC and Managed Identity”
GlobalLogic QA Webinar “What does it take to become a Test Engineer”
“How to Secure Your Applications With a Keycloak?
GlobalLogic Machine Learning Webinar “Advanced Statistical Methods for Linear...
GlobalLogic Machine Learning Webinar “Statistical learning of linear regressi...
GlobalLogic C++ Webinar “The Minimum Knowledge to Become a C++ Developer”
Embedded Webinar #17 "Low-level Network Testing in Embedded Devices Development"

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
DOCX
573137875-Attendance-Management-System-original
PDF
PPT on Performance Review to get promotions
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Welding lecture in detail for understanding
PDF
Digital Logic Computer Design lecture notes
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Construction Project Organization Group 2.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
573137875-Attendance-Management-System-original
PPT on Performance Review to get promotions
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Welding lecture in detail for understanding
Digital Logic Computer Design lecture notes
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Construction Project Organization Group 2.pptx
Geodesy 1.pptx...............................................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
additive manufacturing of ss316l using mig welding
Foundation to blockchain - A guide to Blockchain Tech
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
OOP with Java - Java Introduction (Basics)
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx

Swimming Tracker - Motion Recognition