Autonomous detection of different walking tasks using end point foot trajectory vertical displacement data