Gait event detection in real-world environment for long-term applications: incorporating domain knowledge into time-frequency analysis