For the temperature drift problem of a shunt-type current sensor, this paper adopts a temperature compensation model based on the fusion of temperature segmentation linear and clustering division, which focuses on the consideration of the current sensor system as a whole, as well as versatility and complexity, etc., to ensure the measurement accuracy of a single sensor, while improving the speed of multi-sensor temperature compensation. Experimental results show that the current sensor after the model compensation, in the 15 A or more experiments measured in the current range of the accuracy is maintained within ±0.5%, compared with the sensor before the compensation of the measurement accuracy increased by 3%, but also reached the domestic and foreign current sensor products in the corresponding range of the compensation of the accuracy. The model effectively improves the temperature stability of the sensor and the system detection accuracy and provides practical application value for the temperature compensation of shunt-type current sensors in mass production.