A gait training machine, comprising a base, said gait training machine further comprising: a driving module disposed in said base, said driving module comprising a driving circuit, a motor and two moving platforms, said driving circuit controlling said motor to move said moving platforms; a sensor module comprising a left pedal, a right pedal, a plurality of pressure sensors or load cells or gyroscopes, and a position sensor, said left pedal and said right pedal being respectively pivotally connected to said moving platforms, said pressure sensors or load cells or gyroscopes, being respectively mounted on said left pedal and said right pedal, said position sensor being disposed in said base; a controller having the function of storing, processing and outputting data, said controller being electrically connected to said driving circuit, each said pressure sensor or load cell or gyroscope, and said position sensor; a signal processing module disposed in said controller, said signal processing module comprising a gait detecting unit and a gait judgment unit, said gait judgment unit storing a center-of-gravity calculation logic and a gait determining logic; wherein, said motor drives said moving platforms to move said left pedal and said right pedal in the opposite direction; in the turning point of the reciprocating movement of each said moving platform, said motor is reversely rotated, and at this time, said driving circuit generates a steering signal; when said left pedal and said right pedal pass said position sensor, said position sensor generates a passing signal; wherein, said gait detecting unit receives weight signals detected by said pressure sensors or load cells or gyroscopes, said passing signal detected by said position sensor and said steering signal provided by said driving circuit; said gait judgment unit receives said weight signals, said passing signal and said steering signal from said gait detecting unit, and uses said center-of-gravity calculation logic to calculate the bearing weight of said left pedal and said right pedal and the position of the center-of-gravity on said left pedal and said right pedal, and also uses said gait determining logic to determine whether the bearing weight of said left pedal and said right pedal is correct and whether the position of the center-of-gravity of said left pedal and said right pedal is correct. a driving module disposed in said base, said driving module comprising a driving circuit, a motor and two moving platforms, said driving circuit controlling said motor to move said moving platforms; a sensor module comprising a left pedal, a right pedal, a plurality of pressure sensors or load cells or gyroscopes, and a position sensor, said left pedal and said right pedal being respectively pivotally connected to said moving platforms, said pressure sensors or load cells or gyroscopes, being respectively mounted on said left pedal and said right pedal, said position sensor being disposed in said base; a controller having the function of storing, processing and outputting data, said controller being electrically connected to said driving circuit, each said pressure sensor or load cell or gyroscope, and said position sensor; a signal processing module disposed in said controller, said signal processing module comprising a gait detecting unit and a gait judgment unit, said gait judgment unit storing a center-of-gravity calculation logic and a gait determining logic; wherein, said motor drives said moving platforms to move said left pedal and said right pedal in the opposite direction; in the turning point of the reciprocating movement of each said moving platform, said motor is reversely rotated, and at this time, said driving circuit generates a steering signal; when said left pedal and said right pedal pass said position sensor, said position sensor generates a passing signal; wherein, said gait detecting unit receives weight signals detected by said pressure sensors or load cells or gyroscopes, said passing signal detected by said position sensor and said steering signal provided by said driving circuit; said gait judgment unit receives said weight signals, said passing signal and said steering signal from said gait detecting unit, and uses said center-of-gravity calculation logic to calculate the bearing weight of said left pedal and said right pedal and the position of the center-of-gravity on said left pedal and said right pedal, and also uses said gait determining logic to determine whether the bearing weight of said left pedal and said right pedal is correct and whether the position of the center-of-gravity of said left pedal and said right pedal is correct.