The present application relates to a
resonance sensor reading self-
adaptive optimization method and
system based on
reinforcement learning, comprising the steps of: integrating the current sampling spectrum local maximum
value set, the historical sampled spectrum local maximum value
point set and its linear compensation trend to construct a
state space vector, and taking it as the input of the
reinforcement learning strategy network; fusing the action based on the strategy
network output, the fusion action including the historical local selected maximum value point selection action and the corresponding compensation action, and the fusion action being used to simultaneously realize the spectrum
peak value determination and the
frequency correction; the present application can fully utilize the historical information and dynamic characteristics of the sensor by introducing the modeling method based on
reinforcement learning, realize the real-time optimization of the reading, and overcome the problem that the traditional fixed filtering or
single point correction method is not sensitive to interference; the fusion action mechanism adopted simultaneously considers the
peak value selection and the
frequency compensation, and significantly improves the anti-
noise and anti-vibration ability of the
resonance sensor in complex environment.