The invention relates to the technical field of
prediction algorithms, and discloses a high-precision active power filtering and prediction
algorithm for a three-phase
ammeter, which comprises the following steps: acquiring original signals of three-phase
voltage and current for baseline correction, performing time-
frequency analysis on non-stationary
harmonic waves and
noise of the original signals, and dynamically adjusting filtering parameters;
voltage and current
phase alignment is carried out through FIR phase shift and
zero crossing point detection, a phase-locked loop is constructed by using GRU to track the frequency of a
power grid, the sampling frequency is dynamically adjusted, and frequency
mutation is detected; iapFFT transformation is optimized to suppress spectrum leakage, a
phase error is corrected through a
deep learning network, and weak
harmonic detection is enhanced by using an attention mechanism; classifying
harmonic waves, and adaptively calculating total active power;
dimensionality reduction is carried out on historical power and environmental parameters through an auto-
encoder, and future active power is predicted; low-power-consumption hardware is adapted, and training efficiency and
data security are optimized; three-phase signals are processed in parallel, and FPGA storage and FFT / FIR cores are optimized for filtering
processing; and dynamically adjusting parameters of the phase-locked loop.