Human behavior classification by analyzing periodic motions