A Non-Intrusive Correction Algorithm for Classification Problems with Corrupted Data