The invention discloses a
power transmission positive and
negative sample differential fusion method and
system based on
foreign matter transaction, and the method comprises the steps: collecting a standard
negative sample, extracting the normal features of the
negative sample, and constructing a normal feature dictionary; real-time sample images are collected, sample features are extracted in a multi-level mode and classified, and positive and negative sample feature vectors containing classification labels are output; calculating the minimum feature deviation degree between each sample
feature vector and the normal feature dictionary through an anomaly measurement
algorithm, and generating a sample anomaly spectrum; calculating a
positive sample feature dispersion through a diversity forced
separation algorithm; and constructing a differential fusion
loss function according to the sample anomaly spectrum and the
positive sample feature dispersion, training a
foreign matter transaction detection model, and outputting a
foreign matter transaction detection result. According to the method, the technical problems of high
false alarm rate and weak generalization ability of the model caused by extreme imbalance of positive and negative samples in foreign matter detection of the
power transmission line are solved, and high
recall rate and low
false alarm rate are simultaneously realized under the condition of extreme imbalance data.