An Approach to Analyzing and Recognizing Human Gait