I think we should collect as much data as possible on Friday. We should each run through the five exercises several times to collect a baseline. I may have an extra lock at home, otherwise we should get one. We should bring a few playing cards as well.
It turns out dynamic time warping can be used to align and score the similarity between two sequences.
See wikipedia, or http://labrosa.ee.columbia.edu/matlab/dtw/ for some MATLAB code.
Then this data should be aligned and averaged using dynamic time warping to create a reference. The reference sequences become part of the Android application.
Looking at the data files, it seems like it will be easy to detect the start/stop of the exercise in the signal.
Next, I envision the Android application flow to be (only the testing/scoring part):
Describe the exercise.
"Are you ready to start?"
Count down and then start beep.
Start recording.
Record until two minutes have elapsed, or 2 (or 5?) seconds of stillness are observed.
Ask: "Did you complete the exercise?"
If yes:
Search the signal for the start and end of motion. Compare using DTW and give the score as a time,similarity tuple. Store the tuple in a database for later recall.
If no:
Ask: "Do you want to try again?"
The above is open to feedback/suggestions of course.
This paper has some good information:
http://www.ri.cmu.edu/pub_files/...h.../wilson_daniel_h_2004_1.pdf