The invention discloses an LSTM fiber optic gyroscope temperature compensation modeling method based on deep embedded clustering, which includes: collecting temperature and fiber optic gyroscope zero bias data to construct a training data set, and training a denoising autoencoder layer by layer; Noisy autoencoder, constructing a deep autoencoder; based on a deep autoencoder, mapping the input x to obtain an embedded point z; calculating the soft allocation between the embedded point z and the cluster center, and constructing an auxiliary target allocation; using soft allocation and auxiliary target allocation The kl divergence is the objective function, iterates between calculating the auxiliary objective function and minimizing the kl divergence, updating the depth autoencoder parameters and cluster centers; segmenting according to the clustering results, using LSTM neural network on each segment The temperature compensation model of the fiber optic gyroscope is obtained through training. The invention can realize the temperature compensation of the gyroscope output zero bias error, obtain good fitting and prediction effects and high temperature environment adaptability, and improve the product precision of the optical fiber gyroscope.