detecting foreign objects with ai