The invention relates to the field of inertial
pedestrian navigation systems, and particularly discloses a
gait detection and updating method based on an
inertial navigation system, which comprises the following steps: S1, calculating calibration parameters of an
accelerometer and a
gyroscope by using an improved six-surface calibration method, and calculating parameters of a
magnetometer by using an
ellipsoid fitting method; s2, substituting parameters to update a measured value; s3, setting a sliding window, calculating an
acceleration amplitude, a variance and an
angular velocity amplitude, and comparing a threshold value to obtain an initial zero velocity parameter T; s4, continuous T is counted, and a final zero-speed interval is judged when a threshold value is exceeded; s5, inputting related parameters, updating positions by a
quaternion method and the like, and calculating an attitude conversion matrix and an attitude angle; s6, correcting the course angle according to the amplitude of the
magnetometer; s7, updating the error
covariance and the Kalman
gain matrix; and S8, constructing an error vector according to the zero-speed interval, inputting an
extended Kalman filter to update parameters, and outputting a result. According to the
gait detection and updating method based on the
inertial navigation system, the problems of error accumulation and high cost of a traditional method are solved, and the navigation precision is effectively improved.