For the layer expansion and contraction abnormalities that are prone to occur during the multi-layer lamination and high-precision manufacturing process of high-density Printed Circuit Board (PCB), traditional detection methods rely on manual sampling and post-analysis, which have the shortcomings of strong lag, difficult positioning, and poor consistency. This article proposes a PCB layer expansion and contraction anomaly detection and root cause analysis method based on AI technology. By constructing a multi-source detection data fusion model and introducing Convolutional Neural Network (CNN) and machine learning classification models, the automatic identification and classification of layer expansion and contraction deviations are achieved, and the root cause of the anomalies is located by combining feature importance analysis and clustering methods. Experimental results show that this method can effectively improve the detection accuracy and analysis efficiency, providing technical support for PCB intelligent manufacturing.