SlideShare a Scribd company logo
1 of 5
Download to read offline
Experiment/Lab/Project Suggestion
by Muhammad Alli
GS607-Laboratoy Tutoring
Preface: After teaching on PS256 Environmental Physics Laboratories and PS154 Introduction to
Computing; I think that a project based approach for a computing topic treading on physics and
human movement would be quite interesting for students particularly the ones more interested
seeing how we can use technology to quantify or interpret human movement in a hands on manner.
Contents
Requirements: ....................................................................................................................................... 2
Setup: .................................................................................................................................................... 2
Suggested Lab/Project: .......................................................................................................................... 2
MATLAB Script ....................................................................................................................................... 3
Suggested Lab/Project (continued): ...................................................................................................... 4
Comments and Recommendations:....................................................................................................... 5
References ..............................................................................................................................................5
Figure 1: Acceleration vs Time, 12 Peaks Representing 12 Punches ...................................................... 4
Figure 2: Number of Punches Recorded is Equal to the Number of Punches Thrown ........................... 4
Requirements:
• An Android phone running android 4.4 or later connected to the internet.
• The MATLAB Android App(free).
• A laptop or PC connected to the internet.
• A MATLAB Professional or Academic Licence for R2014a or later
Setup:
Instructions to setup MATLAB on PC to utilise Android sensors:
http://uk.mathworks.com/help/supportpkg/mobilesensor/
Instructions to connect MATLAB PC and MATLAB Mobile to one another:
http://uk.mathworks.com/help/matlabmobile_android/connect-to-your-computer.html
MATLAB example for a Step Counter:
http://uk.mathworks.com/help/supportpkg/mobilesensor/examples/counting-steps-by-
capturingacceleration-data-from-your-android-device.html
Suggested Lab/Project: A Punch Counter for Boxing
MATLAB mobile can leverage a number of sensors and gather data with them.
The sensors can gather acceleration data, angular velocity data, magnetic field data, orientation data
and position data.
For this lab we would use the accelerometer. A student would grip the phone and Run the Code below
in MATLAB on the PC and throw punches when they are prompted to “Start Punching”. The sensor will
gather data for 8 seconds and pass it to the PC. All calculations and programming required is in the
script.
The reason why we use a punch is because the motion results in a sharp acceleration.
MATLAB Script
clear all
close all m
= mobiledev
m.AccelerationSensorEnabled = 1;
m.Logging = 1; disp('start
punching') pause(8);
m.Logging = 0; [a, t] =
accellog(m); figure(1) plot(t,
a); legend('X', 'Y', 'Z');
xlabel('Relative time (s)');
ylabel('Acceleration (m/s^2)');
%fs=0.067999839782715;
%% We use the magnitude of X,Y and Z to make the calculation robust
regardless of the planar orientation to the human to the phone sensor
x = a(:,1); y = a(:,2); z = a(:,3);
mag = sqrt(sum(x.^2 + y.^2 + z.^2, 2));
figure(2) plot(t, mag); xlabel('Time
(s)'); ylabel('Acceleration (m/s^2)');
%% We subtract the mean to remove background features and remove constants
eg. acceleration due to gravity magNoG = mag - mean(mag);
magNoG=abs(magNoG); figure(3) plot(t, magNoG); xlabel('Time (s)');
ylabel('Acceleration (m/s^2)');
%%
minPeakHeight = 1*std(magNoG);
[pks, locs] = findpeaks(magNoG, 'MINPEAKHEIGHT', minPeakHeight);
Number_of_Punches = numel(pks)
%% hold
on;
plot(t(locs), pks, 'r', 'Marker', 'v', 'LineStyle',
'none'); title('Counting Punches'); xlabel('Time (s)');
ylabel('Acceleration Magnitude, No Gravity (m/s^2)'); hold
off;
m.AccelerationSensorEnabled = 0;
clear m;
Suggested Lab/Project (continued):
For my own tests I threw out 12 punches and the images below show this prototype working
successfully.
Counting Punches
Time (s)
Figure 1: Acceleration vs Time, 12 Peaks Representing 12 Punches
Figure 2: Number of Punches Recorded is Equal to the Number of Punches Thrown
0 1 2 3 4 5 6 7 8
0
1
2
3
4
5
6
7
8
9
As the physical quantity we are measuring here is acceleration we can pose questions about
orientation to students, how perspective in what we establish as “forwards” means we have a positive
acceleration and going the opposite way means “backwards” and a negative acceleration.
Comments and Recommendations:
For a first year student I would suggest to proceed as above and allow student to do some supporting
report work and read up to compliment things.
For 2nd
year students and above, providing the minimal programming basics on acquiring the data from
the sensors then getting students to work on the data analysis would could prove to be a big learning
experience and confidence boost if paired well with the correct amount of supervision and guidance.
Matlab basics are substantially more intuitive and faster to pick up than c or c++, 2 days inapplication
should suffice.[1]
For final year Students an FYP investigation into the Gait cycle using these sensors shows promise as
an opportunity for student growth and a potential publication. Sensor placement and methodologies
are outlined quite extensively. [2-5]
References
[1] Alli MB. Computational Physics A Guide For Beginners Looking To Speed Up THier Computation
[Internet]. Muhammad Bilal Alli; 2016. 1-18 p. Available from:
https://www.academia.edu/27509533/Computational_Physics_A_Guide_For_Beginners_Loo
king_To_Speed_Up_Their_Computation
[2] Boyle M, Klausner A, Starobinski D, Trachtenberg A. Gait-based User Classification Using Phone
Sensors. :395–6.
[3] Kwapisz JR, Weiss GM, Moore SA. Cell Phone-Based Biometric Identification.
[4]. Lu H. Unobtrusive Gait Verification for Mobile Phones. 2014;91–8.
[5]. Thang HM, Viet VQ, Thuc ND, Choi D, Korea S, Chi H, et al. Gait Identification Using
Accelerometer on Mobile Phone.

More Related Content

Similar to Biomechanical data gathering with mobile phone sensors and analysis as a suggested module improvement

Human activity recognition
Human activity recognitionHuman activity recognition
Human activity recognitionRandhir Gupta
 
An investigation into the physical build and psychological aspects of an inte...
An investigation into the physical build and psychological aspects of an inte...An investigation into the physical build and psychological aspects of an inte...
An investigation into the physical build and psychological aspects of an inte...Jessica Navarro
 
A Time Series ANN Approach for Weather Forecasting
A Time Series ANN Approach for Weather ForecastingA Time Series ANN Approach for Weather Forecasting
A Time Series ANN Approach for Weather Forecastingijctcm
 
Pearson1e ch14 appendix_14_1
Pearson1e ch14 appendix_14_1Pearson1e ch14 appendix_14_1
Pearson1e ch14 appendix_14_1M.D.Giri Reddy
 
Management science
Management scienceManagement science
Management sciencekamrul islam
 
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...IJCSES Journal
 
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...ijcseit
 
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...Rohan Karunaratne
 
Hostel management project_report
Hostel management project_reportHostel management project_report
Hostel management project_reportkawsher11
 
IRJET- Design an Approach for Prediction of Human Activity Recognition us...
IRJET-  	  Design an Approach for Prediction of Human Activity Recognition us...IRJET-  	  Design an Approach for Prediction of Human Activity Recognition us...
IRJET- Design an Approach for Prediction of Human Activity Recognition us...IRJET Journal
 
Machine learning ppt unit one syllabuspptx
Machine learning ppt unit one syllabuspptxMachine learning ppt unit one syllabuspptx
Machine learning ppt unit one syllabuspptxVenkateswaraBabuRavi
 
Performance characterization in computer vision
Performance characterization in computer visionPerformance characterization in computer vision
Performance characterization in computer visionpotaters
 
SoftComputingUNIT-1_Neural_Network_Architectures.pptx
SoftComputingUNIT-1_Neural_Network_Architectures.pptxSoftComputingUNIT-1_Neural_Network_Architectures.pptx
SoftComputingUNIT-1_Neural_Network_Architectures.pptxPrateekPatidar13
 
A Study On Hybrid System
A Study On Hybrid SystemA Study On Hybrid System
A Study On Hybrid SystemCarmen Sanborn
 
Computational Aptitude of Handheld Calculator
Computational Aptitude of Handheld CalculatorComputational Aptitude of Handheld Calculator
Computational Aptitude of Handheld Calculatormathsmasters
 
Accelerated Prototyping of Cyber Physical Systems in an Incubator Context
Accelerated Prototyping of Cyber Physical Systems in an Incubator ContextAccelerated Prototyping of Cyber Physical Systems in an Incubator Context
Accelerated Prototyping of Cyber Physical Systems in an Incubator ContextSreyas Sriram
 

Similar to Biomechanical data gathering with mobile phone sensors and analysis as a suggested module improvement (20)

2015 03-28-eb-final
2015 03-28-eb-final2015 03-28-eb-final
2015 03-28-eb-final
 
Human activity recognition
Human activity recognitionHuman activity recognition
Human activity recognition
 
An investigation into the physical build and psychological aspects of an inte...
An investigation into the physical build and psychological aspects of an inte...An investigation into the physical build and psychological aspects of an inte...
An investigation into the physical build and psychological aspects of an inte...
 
A Time Series ANN Approach for Weather Forecasting
A Time Series ANN Approach for Weather ForecastingA Time Series ANN Approach for Weather Forecasting
A Time Series ANN Approach for Weather Forecasting
 
Pearson1e ch14 appendix_14_1
Pearson1e ch14 appendix_14_1Pearson1e ch14 appendix_14_1
Pearson1e ch14 appendix_14_1
 
report
reportreport
report
 
BIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPT
BIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPTBIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPT
BIG DATA TO AVOID WEATHER RELATED FLIGHT DELAYS PPT
 
Management science
Management scienceManagement science
Management science
 
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
 
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
THE IMPLICATION OF STATISTICAL ANALYSIS AND FEATURE ENGINEERING FOR MODEL BUI...
 
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
Using Neural Net Algorithms to Classify Human Activity, with Applications in ...
 
Hostel management project_report
Hostel management project_reportHostel management project_report
Hostel management project_report
 
IRJET- Design an Approach for Prediction of Human Activity Recognition us...
IRJET-  	  Design an Approach for Prediction of Human Activity Recognition us...IRJET-  	  Design an Approach for Prediction of Human Activity Recognition us...
IRJET- Design an Approach for Prediction of Human Activity Recognition us...
 
Machine learning ppt unit one syllabuspptx
Machine learning ppt unit one syllabuspptxMachine learning ppt unit one syllabuspptx
Machine learning ppt unit one syllabuspptx
 
Performance characterization in computer vision
Performance characterization in computer visionPerformance characterization in computer vision
Performance characterization in computer vision
 
SoftComputingUNIT-1_Neural_Network_Architectures.pptx
SoftComputingUNIT-1_Neural_Network_Architectures.pptxSoftComputingUNIT-1_Neural_Network_Architectures.pptx
SoftComputingUNIT-1_Neural_Network_Architectures.pptx
 
A Study On Hybrid System
A Study On Hybrid SystemA Study On Hybrid System
A Study On Hybrid System
 
Open modeling and simulation framework for evolutive analysis
Open modeling and simulation framework for evolutive analysisOpen modeling and simulation framework for evolutive analysis
Open modeling and simulation framework for evolutive analysis
 
Computational Aptitude of Handheld Calculator
Computational Aptitude of Handheld CalculatorComputational Aptitude of Handheld Calculator
Computational Aptitude of Handheld Calculator
 
Accelerated Prototyping of Cyber Physical Systems in an Incubator Context
Accelerated Prototyping of Cyber Physical Systems in an Incubator ContextAccelerated Prototyping of Cyber Physical Systems in an Incubator Context
Accelerated Prototyping of Cyber Physical Systems in an Incubator Context
 

Recently uploaded

High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 

Recently uploaded (20)

High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 

Biomechanical data gathering with mobile phone sensors and analysis as a suggested module improvement

  • 1. Experiment/Lab/Project Suggestion by Muhammad Alli GS607-Laboratoy Tutoring Preface: After teaching on PS256 Environmental Physics Laboratories and PS154 Introduction to Computing; I think that a project based approach for a computing topic treading on physics and human movement would be quite interesting for students particularly the ones more interested seeing how we can use technology to quantify or interpret human movement in a hands on manner. Contents Requirements: ....................................................................................................................................... 2 Setup: .................................................................................................................................................... 2 Suggested Lab/Project: .......................................................................................................................... 2 MATLAB Script ....................................................................................................................................... 3 Suggested Lab/Project (continued): ...................................................................................................... 4 Comments and Recommendations:....................................................................................................... 5 References ..............................................................................................................................................5 Figure 1: Acceleration vs Time, 12 Peaks Representing 12 Punches ...................................................... 4 Figure 2: Number of Punches Recorded is Equal to the Number of Punches Thrown ........................... 4
  • 2. Requirements: • An Android phone running android 4.4 or later connected to the internet. • The MATLAB Android App(free). • A laptop or PC connected to the internet. • A MATLAB Professional or Academic Licence for R2014a or later Setup: Instructions to setup MATLAB on PC to utilise Android sensors: http://uk.mathworks.com/help/supportpkg/mobilesensor/ Instructions to connect MATLAB PC and MATLAB Mobile to one another: http://uk.mathworks.com/help/matlabmobile_android/connect-to-your-computer.html MATLAB example for a Step Counter: http://uk.mathworks.com/help/supportpkg/mobilesensor/examples/counting-steps-by- capturingacceleration-data-from-your-android-device.html Suggested Lab/Project: A Punch Counter for Boxing MATLAB mobile can leverage a number of sensors and gather data with them. The sensors can gather acceleration data, angular velocity data, magnetic field data, orientation data and position data. For this lab we would use the accelerometer. A student would grip the phone and Run the Code below in MATLAB on the PC and throw punches when they are prompted to “Start Punching”. The sensor will gather data for 8 seconds and pass it to the PC. All calculations and programming required is in the script. The reason why we use a punch is because the motion results in a sharp acceleration.
  • 3. MATLAB Script clear all close all m = mobiledev m.AccelerationSensorEnabled = 1; m.Logging = 1; disp('start punching') pause(8); m.Logging = 0; [a, t] = accellog(m); figure(1) plot(t, a); legend('X', 'Y', 'Z'); xlabel('Relative time (s)'); ylabel('Acceleration (m/s^2)'); %fs=0.067999839782715; %% We use the magnitude of X,Y and Z to make the calculation robust regardless of the planar orientation to the human to the phone sensor x = a(:,1); y = a(:,2); z = a(:,3); mag = sqrt(sum(x.^2 + y.^2 + z.^2, 2)); figure(2) plot(t, mag); xlabel('Time (s)'); ylabel('Acceleration (m/s^2)'); %% We subtract the mean to remove background features and remove constants eg. acceleration due to gravity magNoG = mag - mean(mag); magNoG=abs(magNoG); figure(3) plot(t, magNoG); xlabel('Time (s)'); ylabel('Acceleration (m/s^2)'); %% minPeakHeight = 1*std(magNoG); [pks, locs] = findpeaks(magNoG, 'MINPEAKHEIGHT', minPeakHeight); Number_of_Punches = numel(pks) %% hold on; plot(t(locs), pks, 'r', 'Marker', 'v', 'LineStyle', 'none'); title('Counting Punches'); xlabel('Time (s)'); ylabel('Acceleration Magnitude, No Gravity (m/s^2)'); hold off; m.AccelerationSensorEnabled = 0; clear m; Suggested Lab/Project (continued): For my own tests I threw out 12 punches and the images below show this prototype working successfully.
  • 4. Counting Punches Time (s) Figure 1: Acceleration vs Time, 12 Peaks Representing 12 Punches Figure 2: Number of Punches Recorded is Equal to the Number of Punches Thrown 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 9
  • 5. As the physical quantity we are measuring here is acceleration we can pose questions about orientation to students, how perspective in what we establish as “forwards” means we have a positive acceleration and going the opposite way means “backwards” and a negative acceleration. Comments and Recommendations: For a first year student I would suggest to proceed as above and allow student to do some supporting report work and read up to compliment things. For 2nd year students and above, providing the minimal programming basics on acquiring the data from the sensors then getting students to work on the data analysis would could prove to be a big learning experience and confidence boost if paired well with the correct amount of supervision and guidance. Matlab basics are substantially more intuitive and faster to pick up than c or c++, 2 days inapplication should suffice.[1] For final year Students an FYP investigation into the Gait cycle using these sensors shows promise as an opportunity for student growth and a potential publication. Sensor placement and methodologies are outlined quite extensively. [2-5] References [1] Alli MB. Computational Physics A Guide For Beginners Looking To Speed Up THier Computation [Internet]. Muhammad Bilal Alli; 2016. 1-18 p. Available from: https://www.academia.edu/27509533/Computational_Physics_A_Guide_For_Beginners_Loo king_To_Speed_Up_Their_Computation [2] Boyle M, Klausner A, Starobinski D, Trachtenberg A. Gait-based User Classification Using Phone Sensors. :395–6. [3] Kwapisz JR, Weiss GM, Moore SA. Cell Phone-Based Biometric Identification. [4]. Lu H. Unobtrusive Gait Verification for Mobile Phones. 2014;91–8. [5]. Thang HM, Viet VQ, Thuc ND, Choi D, Korea S, Chi H, et al. Gait Identification Using Accelerometer on Mobile Phone.