The Naked Scientists
  • Login
  • Register
  • Podcasts
      • The Naked Scientists
      • eLife
      • Naked Genetics
      • Naked Astronomy
      • In short
      • Naked Neuroscience
      • Ask! The Naked Scientists
      • Question of the Week
      • Archive
      • Video
      • SUBSCRIBE to our Podcasts
  • Articles
      • Science News
      • Features
      • Interviews
      • Answers to Science Questions
  • Get Naked
      • Donate
      • Do an Experiment
      • Science Forum
      • Ask a Question
  • About
      • Meet the team
      • Our Sponsors
      • Site Map
      • Contact us

User menu

  • Login
  • Register
  • Home
  • Help
  • Search
  • Tags
  • Member Map
  • Recent Topics
  • Login
  • Register
  1. Naked Science Forum
  2. Non Life Sciences
  3. Physics, Astronomy & Cosmology
  4. How does the accelerometer in my phone count my steps?
« previous next »
  • Print
Pages: [1]   Go Down

How does the accelerometer in my phone count my steps?

  • 12 Replies
  • 899 Views
  • 2 Tags

0 Members and 1 Guest are viewing this topic.

Offline chris (OP)

  • Naked Science Forum King!
  • ******
  • 7661
  • Activity:
    9.5%
  • Thanked: 248 times
  • The Naked Scientist
    • View Profile
    • The Naked Scientists
How does the accelerometer in my phone count my steps?
« on: 02/02/2019 15:45:55 »
How do the accelerometers in mobile devices, like phones, actually work, and what is their accuracy?

According to my phone I've walked the length of England on a stroll out with my next door neighbour this morning...
Logged
I never forget a face, but in your case I'll make an exception - Groucho Marx - https://www.thenakedscientists.com/
 



Offline Halc

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 1491
  • Activity:
    45.5%
  • Thanked: 78 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #1 on: 02/02/2019 16:04:27 »
Quote from: chris on 02/02/2019 15:45:55
How do the accelerometers in mobile devices, like phones, actually work, and what is their accuracy?

According to my phone I've walked the length of England on a stroll out with my next door neighbour this morning...
The accelerometer on a phone is usually used to detect which way is up so it knows which way to orient the display.  In some apps, it might use the information to detect your local motion, i.e. changes in gait and orientation.
An app tracking the length of a walk should be using GPS, not the accelerometer, which lacks absolute references.

You may well have move the length of England on your stroll, as the spin of Earth will carry you that distance.  Maybe for some reason the phone was computing distance relative to the center of Earth instead of relative to the local surface of it.
Logged
 

Offline chris (OP)

  • Naked Science Forum King!
  • ******
  • 7661
  • Activity:
    9.5%
  • Thanked: 248 times
  • The Naked Scientist
    • View Profile
    • The Naked Scientists
Re: How does the accelerometer in my phone count my steps?
« Reply #2 on: 02/02/2019 17:27:22 »
But how does it actually work? Are there little weights that are inertially measured to detect movement?
Logged
I never forget a face, but in your case I'll make an exception - Groucho Marx - https://www.thenakedscientists.com/
 

Offline Halc

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 1491
  • Activity:
    45.5%
  • Thanked: 78 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #3 on: 02/02/2019 18:10:17 »
Quote from: chris on 02/02/2019 17:27:22
But how does it actually work? Are there little weights that are inertially measured to detect movement?
If it is counting steps, it feels you bounce up and down as you walk.  It then multiplies that by your stride length, which is probably based on some configuration info you provided it when setting it up.
False readings can be had if it mistakes other motion for steps such as dancing or shaking it.  It should be in your pocket to get a good reading for counting steps.
Logged
 

Offline Halc

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 1491
  • Activity:
    45.5%
  • Thanked: 78 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #4 on: 02/02/2019 18:14:16 »
As for how it actually works, moving parts are discouraged.  They have crystals that get stressed under acceleration and conduct electricity differently, which is detected by the electronics attached to the crystals.

They detect axis motion more than up and down motion, so the swing of your arm or hip is detected more than the vertical bouncing.
Logged
 



Offline Bored chemist

  • Naked Science Forum GOD!
  • *******
  • 16242
  • Activity:
    100%
  • Thanked: 370 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #5 on: 02/02/2019 18:31:37 »
Quote from: chris on 02/02/2019 17:27:22
But how does it actually work? Are there little weights that are inertially measured to detect movement?
Yes.
https://www.siliconsensing.com/technology/mems-accelerometers/
Logged
Please disregard all previous signatures.
 

Offline evan_au

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 7648
  • Activity:
    28.5%
  • Thanked: 751 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #6 on: 02/02/2019 22:31:50 »
The tiny, mass-produced sensors in a smartphone or smartwatch use MicroElctroMechanical Systems (MEMS).

These use micromachining to produce a tiny sensor on a silicon chip.

See: https://en.wikipedia.org/wiki/Microelectromechanical_systems#Applications
...the same article mentions how they are made - just search for accelerometer, eg:
https://en.wikipedia.org/wiki/Microelectromechanical_systems#Surface_micromachining
« Last Edit: 03/02/2019 02:53:54 by evan_au »
Logged
 

Offline evan_au

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 7648
  • Activity:
    28.5%
  • Thanked: 751 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #7 on: 03/02/2019 03:25:22 »
Traditionally, this function was carried out by a pedometer, worn at the waist. This mostly responds to the up-and-down motion while walking.

However, a smartphone can be used in any orientation - in a pocket, held in the hand, texting while walking (dangerous!), or in a bag, and so they must sense motion on any axis.

A fitness tracker on your wrist is an even more challenging environment, as your hand is moving when typing, making/eating dinner, reading a book, etc. My fitness tracker even asked whether it was on my dominant or non-dominant hand (I guess this might allow them to correct for inaccuracies between left and right-handers?).

So  the MEMS sensor is surrounded by layers of software that (I imagine) do functions like:
- Turn several single-axis measurements from the sensor into a magnitude measurement
- Filter the software in several frequency bands related to walking, running, etc
- Apply thresholds for amplitude and duration in these frequency bands
- Combine with inputs from other sensors like barometer (atmospheric pressure) and GPS (absolute location)
- Classify the results into categories like walking, running, climbing stairs, driving, sleeping, or even using an elliptical exercise machine at the gym, etc
- These categories are not always accurate - a recent update to my smartphone OS tries to discourage you from doing anything on the phone when it thinks you might be driving. However, it can't tell the difference between a car and a train, so I always have to tap "No I'm not driving" when I try to fill in my activities for the day, while commuting on the train.
- I assume that some of the vendors use Machine Learning/AI techniques to train their classifier algorithms, using traces from people doing various known activities, and apply corrections for spurious readings from various sources...

Overall, a device on your waist or hip pocket would be best for measuring steps. But smartphones & fitness trackers do a remarkable job of tracking activities.
- I get a weekly email reporting on how I did that week - it's good for keeping you conscious of general activity levels and sleep quality, so it doesn't matter if it is wrong by 1-5%
- My tracker once told me that I had walked the length of Italy - but that was after I had used it for a reasonable amount of time (not 1 day!).
Logged
 

Online alancalverd

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 8005
  • Activity:
    47.5%
  • Thanked: 482 times
  • life is too short to drink instant coffee
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #8 on: 03/02/2019 08:35:08 »
I use visual recognition signals and integrated velocity computation referred to solar azimuth via an electromechanical analog display.  If I set out from A, TA and recognise my arrival at B, TB, then I calculate that I have walked (B-A) miles in (TB - TA) hours. The ratio gives me my average speed, and multiplying distance by 1760 tells me how many steps I have taken.

The only error source is Alzheimers, but it is self correcting - if I don't know where I am, or what time it is, I probably don't care, and the number of steps is always irrelevant: if I am at B, n must have been optimal.

Similar systems work for other modes of transport.
« Last Edit: 03/02/2019 08:38:29 by alancalverd »
Logged
helping to stem the tide of ignorance
 



Offline Bored chemist

  • Naked Science Forum GOD!
  • *******
  • 16242
  • Activity:
    100%
  • Thanked: 370 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #9 on: 03/02/2019 13:42:02 »
Quote from: alancalverd on 03/02/2019 08:35:08
I use visual recognition signals and integrated velocity computation referred to solar azimuth via an electromechanical analog display.  If I set out from A, TA and recognise my arrival at B, TB, then I calculate that I have walked (B-A) miles in (TB - TA) hours. The ratio gives me my average speed, and multiplying distance by 1760 tells me how many steps I have taken.

The only error source is Alzheimers, but it is self correcting - if I don't know where I am, or what time it is, I probably don't care, and the number of steps is always irrelevant: if I am at B, n must have been optimal.

Similar systems work for other modes of transport.

When I first read this post a few hours ago I was sat in this chair.
I am sat in it now.
So, by distance travelled is zero and my speed is zero.
And the number of steps is also zero.
Which is odd, considering that I went shopping.
My phone thinks I took 7000 steps this morning.
I trust it better than I trust Alan's method.
Logged
Please disregard all previous signatures.
 
The following users thanked this post: chris

Online alancalverd

  • Global Moderator
  • Naked Science Forum King!
  • ********
  • 8005
  • Activity:
    47.5%
  • Thanked: 482 times
  • life is too short to drink instant coffee
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #10 on: 03/02/2019 18:44:33 »
The key words are "set out" and "arrival" If you sat in the chair continuously, ΔT = 0 and B-A = 0, but a loop integral locus is not zero. You might have been abducted by an alien whilst asleep.

Some of us know where we have been for the last few hours, others are merely grateful to have got back to where they started. The first rule of nursing is to know what diagnosis you are dealing with.
Logged
helping to stem the tide of ignorance
 

Offline Bored chemist

  • Naked Science Forum GOD!
  • *******
  • 16242
  • Activity:
    100%
  • Thanked: 370 times
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #11 on: 03/02/2019 21:02:15 »
Roughly speaking, I set out about 11:00 and arrived about 12:45
I know that the loop integral's non zero

But that's now what you said to calculate is it?
Do you remember?
You said " I calculate that I have walked (B-A) miles in (TB - TA) hours. "
And that gives the wrong answer.


" The first rule of nursing is to know what diagnosis you are dealing with."
Interesting, but obviously not always possible. A bit like your calculation.

Logged
Please disregard all previous signatures.
 

Offline kaynan

  • First timers
  • *
  • 2
  • Activity:
    0%
  • Naked Science Forum Newbie
    • View Profile
Re: How does the accelerometer in my phone count my steps?
« Reply #12 on: 07/02/2019 14:06:57 »
I think so far I have not thought about it. I wear a fitness bracelet for several years. Sensors are built into smart bracelets, each of which registers a certain indicator. For example, calculating the speed, pulse rate and duration of physical activity, the gadget calculates calories expended or the duration of sleep.

The device syncs with my smartphone via Bluetooth.
Logged
 



  • Print
Pages: [1]   Go Up
« previous next »
Tags: accelerometer  / pedometer 
 

Similar topics (5)

How do you "unlock" a phone?

Started by stanaBoard Technology

Replies: 29
Views: 14036
Last post 24/04/2010 12:38:48
by prabu
MOVED: Does mobile phone tower radiation pose health problems?

Started by Colin2BBoard Physiology & Medicine

Replies: 0
Views: 104
Last post 01/12/2019 21:22:29
by Colin2B
Could radio signals or mobile phone masts confuse bees?

Started by thedocBoard The Environment

Replies: 5
Views: 7021
Last post 09/06/2010 16:39:12
by thedoc
Can I make a phone call to the future or Past of me ? Fu-TPhone !! Wanna Try ?

Started by ScientificBoysClubBoard Physics, Astronomy & Cosmology

Replies: 3
Views: 3928
Last post 15/09/2009 01:14:13
by krytie75
What's The Noise Heard On A Speaker/Radio Before My Mobile Phone Rings ?

Started by neilepBoard Technology

Replies: 7
Views: 5800
Last post 28/08/2011 22:57:59
by techmind
There was an error while thanking
Thanking...
  • SMF 2.0.15 | SMF © 2017, Simple Machines
    Privacy Policy
    SMFAds for Free Forums
  • Naked Science Forum ©

Page created in 0.236 seconds with 68 queries.

  • Podcasts
  • Articles
  • Get Naked
  • About
  • Contact us
  • Advertise
  • Privacy Policy
  • Subscribe to newsletter
  • We love feedback

Follow us

cambridge_logo_footer.png

©The Naked Scientists® 2000–2017 | The Naked Scientists® and Naked Science® are registered trademarks created by Dr Chris Smith. Information presented on this website is the opinion of the individual contributors and does not reflect the general views of the administrators, editors, moderators, sponsors, Cambridge University or the public at large.