When the temperature of the working environment changes,the error of the MEMS accelerometer will become larger.In view of this situation,a temperature compensation measure is adopted which performs temperature modeling on the zero bias and Scale Factor of the accelerometer,records the change situation of the output data of the accelerometer in a certain temperature range,fits the collected output data of the accelerometer by the Least Square Fitting method,calculates the required correction coefficient,and corrects and compensates the temperature coefficient.The compensation results show that the output accuracy of the accelerometer is higher and the compensation effect is obvious after the model compensation.