The gait recognition of exoskeletons includes motion recognition and gait phase recognition under various road conditions. The recognition of gait phase is a prerequisite for predicting exoskeleton assistance time. The estimation of real-time assistance time is crucial for the safety and accurate control of lower-limb exoskeletons. To solve the problem of predicting exoskeleton assistance time, this paper proposes a gait recognition model based on inertial measurement units that combines the real-time motion state recognition of support vector machines and phase recognition of long short-term memory networks. A recognition validation experiment was conducted on 30 subjects to determine the reliability of the gait recognition model. The results showed that the accuracy of motion state and gait phase were 99.98% and 98.26%, respectively. Based on the proposed SVM-LSTM gait model, exoskeleton assistance time was predicted. A test was conducted on 10 subjects, and the results showed that using assistive therapy based on exercise status and gait stage can significantly improve gait movement and reduce metabolic costs by an average of more than 10%.