The wind tunnel balance signal detection system is widely employed in aerospace applications for the accurate and automated measurement of aerodynamic forces and moments. However, measurement errors arise under different environmental temperature. This paper addresses the issue of measurement accuracy under different temperature conditions by proposing a temperature compensation method based on an improved gray wolf optimization (IGWO) algorithm and optimized extreme learning machine (ELM). The IGWO algorithm is enhanced by improving the initial population position, convergence factor, and iteration weights of the gray wolf optimization algorithm. Subsequently, the IGWO algorithm is employed to determine the optimal network parameters for the ELM. The calibration decoupling experiment and high-low temperature experiment are designed and carried out. On this basis, ELM, GWO-ELM, PSO-ELM, GWO-RBFNN and IGWO-ELM are used for temperature compensation experiments. The experimental results show that IGWO-ELM has a good temperature compensation effect, reducing the measurement error from 20%FS to within 0.04%FS. Consequently, the accuracy and stability of the wind tunnel balance signal detection system under different temperature environments are enhanced.