Recognition of walking or running movements