This document outlines a methodology for developing an artificial intelligence algorithm to detect head-in-pillow defects in solder ball inspection. It discusses acquiring 3D images of printed circuit boards using x-ray projection to better identify the location of these defects. The goals are to solve data imbalance issues from the rare defective samples and compare performance to other CNN models and commercial inspection software. Key challenges addressed include overfitting from limited data and properly preprocessing x-ray images to reduce noise before 3D reconstruction.