The invention relates to the field of sensors, and discloses a sensor drift
correction method and
system based on transfer learning, and the method comprises the following steps: S1, collecting sensor data, including three-axis acceleration data, temperature,
humidity and air pressure environmental parameters, and S2, calculating the modulus length of a three-axis composite vector. A combined kernel function combining a periodic kernel, a linear kernel and an RBF kernel can simultaneously capture periodic fluctuation of environmental factors, a long-term aging trend of a sensor and short-term
random noise, adaptive distribution alignment of a source domain and a target domain is realized through a maximum mean value difference
loss function, the model is enabled to be rapidly adapted in the target domain, and meanwhile, the adaptive distribution alignment of the model in the target domain is realized. A slope intercept combined judgment matrix is introduced, accurate distinguishing of
zero drift, real motion and tilt events is achieved, the accuracy rate reaches 96% or above, measurement
distortion caused by error compensation is effectively avoided, and the
system reliability and the data credibility are remarkably improved.