The invention discloses an automatic temperature compensation
system and method for an ultrasonic
transducer, and the method comprises the steps: carrying out the timely collection of the temperature through a temperature detection module, and carrying out the
temperature error compensation of a
pressure measurement result based on an environment temperature parameter; according to error characteristics of the digital temperature sensor, a characteristic threshold value is obtained based on a temperature
compensation algorithm of an RBP neural network with nonlinear fitting capability and generalization capability, and then nonlinear error compensation in a temperature measuring range is completed by using the characteristic threshold value. The
transition time of ultrasonic
waves in a pipeline under any temperature and zero pressure serves as a training target value of an
artificial neural network, drifting of the
transition time at the zero pressure position is compared after training, the receiving waveform of the temperature change to the frequency
mutation of the ultrasonic
transducer under the zero pressure is calculated, the zero pressure position is locked, and the temperature change of the ultrasonic
transducer is calculated. The frequency with the strongest
signal is found out, the optimal working frequency of the ultrasonic transducer at the temperature is obtained, and temperature compensation of ultrasonic
transit time is automatically completed through a temperature compensation module; according to the invention, the temperature compensation performance is reliable, the phenomenon of pressure drift caused by zero pressure ultrasonic
transit time drift can be effectively avoided, and the final measurement error is effectively reduced.