The application discloses an industrial sensor data
anomaly detection and
repair method based on an attention mechanism, belongs to the technical field of
industrial data processing, and carries out preprocessing on
original data to obtain standardized data segments, a
training set and a
test set; end-to-end collaborative training is carried out on the
training set to obtain a dynamic space-time attention detection model and a multi-scale self-attention repair model; the standardized data segments are input into the dynamic space-time attention detection model for
anomaly detection to obtain abnormal related information; the standardized data segments and the abnormal related information are input into the multi-scale self-attention repair model for
data repair to obtain repaired data; secondary
verification and parameter fine-tuning operations are performed on the repaired data to obtain compliant repair data; and the POT
algorithm is used to dynamically adjust an
abnormality judgment threshold value, and normal industrial sensor data or compliant repair data is output. By using the above method, accurate detection and compliant repair of industrial sensor data anomalies are realized.