Gait analysis was shown to be an effective tool for the detection of walking deviations that should be identified early , prompting rehabilitative treatment in order to prevent spine and knee diseases .