Foreign body detection