This method identifies pairs of nearest-neighbor samples from different classes (a minority sample and a majority sample). The majority class sample from such a pair is then removed, effectively cleaning the dataset and sharpening the decision boundary between classes.