Giter Site home page Giter Site logo

ubicomp's Introduction

Introduction

The step tracker is a simple android app for tracking step count during walking or running. The app offers a user interface with a simple pie chart to visualize your progress against the goal. The app also offers a debug interface to visualize the accelerometer signal and peak detection at near real time. Debug view displays steps as calculated by apps algorithm along with the value from the inbuilt android step counter.

Signal processing

There are two components to signal processing

  1. Remove the gravity component with a low pass filter . This provides some smoothing . This approach is clearly documented in the android public documentation

https://developer.android.com/guide/topics/sensors/sensors_overview.html

  1. A z-score or standard score time series peak detection algorithm adapted from following
  • X is within 1.5 and 3.8. This number was chosen empirically.
  • Abs(X(i)-mu(LAG_SIZE))>(threshold)*Sigma(LAG_SIZE)
  • X(i) >mu(LAG_SIZE)
  • The mean and standard deviation gets updated for next LAG_SIZE window and gets repeated for next set of inputs.
  • All the peaks detected in the process are the steps detected among the inputs sampled.

The figure shows the raw input and peaks detected during a walking experiment.

User Interface

User interface is a simple pie chart as shown in figure 1. Motivation was to pick something simple which is easy to see digest and gives a clear view of where the user is with respect to the goals they have set. Pie chart is refreshed near real time using a shared state. Pie charts can also be used to convey physical intensity of the walk or run. User interface remains uncluttered.

User View User View

Key struggles

There were lot of firsts for me in the assignment .

  • Android
  • Java
  • Working with Sensors and basic digital signal processing.

Hard part was to be on track and simultaneously ramp up on new learnings. The struggles however were primarily due to lack of time and nothing more. It would have been nice if lectures gave overview of some basic signal processing algorithm to make the concepts clear. I would have liked to see FFT being used to solve the problem.

Learnings

It was a good first assignment. Learnings were

  • Android, Java
  • Sensors, noisiness and signal processing
  • Read multiple papers on time series peak detection which enriched the understanding.

Video recording

Watch the video

ubicomp's People

Stargazers

Rishav Dhungel avatar Tuan Nguyen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.