The invention discloses a high-order
iterative learning control anti-disturbance optimization method and
system based on a data
mask, and the method comprises the steps: based on a high-order ILC controller, carrying out the tracking of a
position tracking error signal sequence of a plurality of previous iterations, extracting a
system trend term, obtaining the
error signal sequence of the first iteration and the
error signal sequence of the plurality of previous iterations, and obtaining the error
signal sequence of the first iteration and the error
signal sequence of the plurality of previous iterations during the first iteration; fitting error
signal sequences of previous several iterations to obtain a reference fitting curve, calculating according to the reference fitting curve and the error signal sequence of the first iteration to obtain a residual sequence, identifying an abnormal disturbance section for the residual sequence, and performing
weight adjustment on sampling points of the abnormal disturbance section based on a data
mask and a suppression
weight coefficient to obtain an abnormal disturbance section. And if it is detected that the residual error exceeds a preset threshold value, triggering an online compensator to obtain a torque compensation signal, and shielding the data of the abnormal disturbance section by using a data
mask. According to the method, on the premise that an accurate model or a complex observation structure is not needed, accurate positioning and suppression of non-repeated disturbance are achieved with low calculation overhead.