RSS

Author Archives: hardikjs

Unknown's avatar

About hardikjs

I am a tech enthusiast, pursuing my MS in Computer Science at University of Southern California(USC). I like to program, think and brainstorm on new ideas. I hope to invent something innovative some day...

Algorithm of the calorie counter

Algorithm

 
Leave a comment

Posted by on April 25, 2011 in Uncategorized

 

Flowchart of the current implementation of our step counter and calorie counter algorithm

flowchart of calmeter final 2

 
Leave a comment

Posted by on April 25, 2011 in Uncategorized

 

The formula that will be used to calculate the calories

metabolic equations

 
Leave a comment

Posted by on April 13, 2011 in Uncategorized

 

Just got a tweet from Popsci – May be we can implement this in future version of our App

Hi everyone,

I just got a tweet by Popsci

“Einstein’s Pedometer” App Measures How Special Relativity Affects Your Daily Activity

Very nice app….May be we can implement it in the future version of our app

 
Leave a comment

Posted by on April 13, 2011 in Uncategorized

 

Discussion & Understanding of the project with the help of Harsh

I had a discussion with Harsh today and he explained how we need to move forward in the project. Thanks Harsh for the help.

I have just written whatever I learnt, just for my understanding and to set up the tasks that needs to be done.

The goal of the project is I need to find out the calories burnt using the accelerometer.
So I discussed how the code needs to be done (he told me extracting features after every 10second would be a great idea)
Then, for this project, we should be able to measure the energy burnt by comparing it with some value. So for that I need to create a program which records the GPS co-ordinates and the distance covered and finds the speed. Then, I need to take this data and calculate the plot of the features versus the velocity(Energy directly proportional to the velocity).
Now what does the velocity suggests – Higher the velocity more will be the amount of calories burnt. So what we can do is by plotting different features against the velocity, I can derive a trend as to which features are giving me close results and it will be consistent across all the populations.

At the end we need to come up with the relationship like this:
The relationship between the features and the velocity follows the linear/quadratic trend across 10(N) people

Also, we need to study the co-relation as we would be needing it to smooth/average the graph

When we are testing this, in an experiment, what I need to do is take the samples from the N people who must place the phone in the same manner, and then I need to compare this plots for all the 10 people and try to analyze the trend. Ideally speaking it should have a similar characteristics(for all the N people who have tested).

Then, some of my formulas were wrong because of my mistake in understanding and due to 2 same notations used for different formulas, which I need to change. The formula explanation as well as the graph is attached.

 
Leave a comment

Posted by on March 24, 2011 in Uncategorized

 

Analysis of the modules and tasks to be done

Analysis:

In our project, we have to interpret the physical energy estimation using accelerometer data, and perform some calculations on it, to determine the activity user is performing and thus analyze the calories burnt from it.

Furthermore, we have to provide an option to track the path if the person is jogging using the GPS co-ordinates and show track field with the time spent, average speed, the path where the speed was the highest and the calories burnt.

Also, with the accelerometer we find out the activity which the user is performing, suppose if the user is sitting for around 2 hrs(or whatever he has inputted through the form) and advises him through notification that walk around and get refreshed. Many options will come.

Also, we can have the music playing in the background when the user is working out, either through synchronizing it with the Music app or the third party app(like Amazon MP3, Desi Music – need to see if API’s are available for this and stream it through the internet).

When I used Endomondo, which is also an calorie tracking app, the user interface is awesome and the design is done very intuitively considering less options and very good animations moved from one activity to another. So we will be designing our app considering the design feature of this app.

Also, one more app that I like is Yahoo Sketch which is there on my IPhone, so considering how they show map, we hope of showing the map in that manner.

Ofcourse, how can we forget the social aspect of making any application. We will be integrating it with Facebook and Twitter, so that you can share your records with your friends and also compete with them.

The best way to make any app which is sort of big and has many features, is splitting into many tiny modules, that can be easy to test standalone and also be easy to integrate with the main application.

So the modules and the tasks to be performed are:

  1. Interpreting the accelerometer data: Just to test the data coming from the accelerometer and to analyze it in effective manner, we will make an application that has an option to start and after pressing this button, the activity will measure the x,y,z of the accelerometer data and store it in the SQLLite and also in the form of the csv file in the SDCard. CSV file is just to analyze it on MS Excel by storing it on PC, just incase for easy analysis. After pressing stop, we can just view the X,Y,Z co-ordinates value by pressing the SHOW information with the timings in table format in the new activity. Also, on the contrary, we can just modify the app Sensors that comes in the API Demos examples which shows the graphs interpreting the sensors. Doing this we can measure the data when we walk and record all the values and develop an algorithm, which can interpret the walking or sitting. We will need to meet the TA and the professor to understand the energy calculations with the accelerometer data and determining calories.
  2. Projecting the track on the map: By taking the GPS co-ordinate when the user presses the Start and then show the track as he is walking and also moving it in the background and then when the user presses the stop, it will stop recording the GPS track and present the user with the results of calories burnt and all the analysis(need to identify all the attributes for it). Also, we can provide a interface like the Yahoo Sketch wherein the user can just draw the path he wants to choose for the workout and using that path we can send him the directions or so and many more things can be integrated with it(need to think on it….but something like advertisements about some calorie conscious restaurant and some coupons for that – need to think on this, just optional).
  3. Integration with the facebook and twitter: Need to connect it with Facebook & Twitter, using their REST Api’s.
  4. Music in the App: Synchronize with the music from the default music app or the third party apps and make my playlist by working out.
  5. Animated moves within Activity: I was quite impress with the Endomondo app, so we kind of think to provide some animated moves within activity that will be more intuitive to use. Some app that I found which can give us a base for this are API demos->Activty->Animation section. So we think to do something like that.
  6. Notification Module: We need to implement a module that can notify the user if he is sitting for a long time. For notification just see the API Demos, which has some 2-3 ways of notifying.

We will get back with some design of the UI so that it can be easy to interpret how is the application going to work.

Also, we have features which we analyzed, please feel free to leave your comments and let us know, if we can include more features.

 
Leave a comment

Posted by on March 13, 2011 in Uncategorized

 

About this blog

This blog will contain all the updates about our project – Socal Calcount – Finding calories burnt using the sensors input from Android Smart phones.

For more information just check out the About page of our site.

Please leave in, your comment, that can help us improve our product and enhance user experience.

 
Leave a comment

Posted by on March 1, 2011 in Project

 
 
Design a site like this with WordPress.com
Get started