Method and system for contaminant detection during food processing