Machine Learning Algortithm for Personal Activiy Monitor