Three-dimensional analysis and prediction of human walking