A robust algorithm for gait cycle segmentation | Synapse