The invention discloses a k neighbor graph-based rare class detection method, which comprises the following steps of: firstly, constructing a k neighbor graph of a given unlabeled
data set S, and automatically selecting a k value by an
algorithm; and then, based on the constructed k neighbor graph, giving a definition of a change coefficient Vc, and calculating a change coefficient Vc value of each node in the
data set, finding out the node x with the maximum change coefficient from all the nodes, inquiring a labeler to obtain a category
label y of the node x, and respectively adding the x andthe y into the selected data sample set I and the selected data sample real category
label set L; carrying out rare class detection by utilizing a method for detecting local
mutation of data sample distribution in the
data set, and compared with other priori-free rare class detection methods, the KRED method is higher in efficiency and lower in
algorithm overhead. And meanwhile, through a methodof automatically selecting the k value, the discovery efficiency of each class in the data set is effectively improved, and the inquiry frequency required for discovering all classes in the data set is remarkably reduced.