how convolutional neural networks find defects