Algorithm for evaluating quality of activity out of bidy movement measurements