The Bodybugg uses 4 main features to keep track of your activities (it's much more than just a pedometer). 1. Accelerometer - a two-axis micro-electro-mechanical sensor that measures motion 2. Heat flux - a sensor measures how much heat the person's body is giving off 3. Galvanic Skin Response - measures electrical current across the skin, essentially this aspect is measuring how much you sweat 4. Skin temperature - tracking a person's core body temperature gives the Bodybugg an indication of how much physical exertion the person is doing
The Nitty Gritty: from rpy import * import csv import sys import string from PIL import Image import numpy f=open("tmp/z709a-full-serial-24hr.csv","r") lns = f.readlines() f.close() rdr = csv.reader(lns, delimiter='\t') rx = [x for x in rdr] recs=[[int(y) for y in x[2:-1]] for x in rx if x[0][:3] == '124'] nil=[sys.stdout.write(rx[i][1] + " " + str(foo[i])+"\n") for i in range(0, len(foo))] mrecs=matrix(recs) cl = r.kmeans(mrecs, 3) foo=[[cl['cluster'][i]] + [z for z in mrecs[i].tolist()[0]] for i in range(0, len(mrecs))] cmap=[255, 0, 128] cline=[[cmap[x[0]-1]]*50 for x in foo] cm=numpy.array(cline,dtype='uint8') # Display image Image.fromarray(cm).show()
bodyrecomposition.com