x-ray inspection with machine learning