Early failure detection of paper manufacturing machinery using nearest neighbor based feature extraction