TSV (Through Silicon Via) is a key technology for three-dimensional (3D) packaging due to its unique vertical interconnection method. However, its particular manufacturing process of-ten leads to internal defects, such as gaps, bottom voids, filling missing, which are usually difficult to be detected by common means. In order to discover the internal defect of TSV packaging effectively, a novel non-destructive inspection method based on built-in integrated temperature sensor array is proposed. The relationship between temperature distribution and internal defect is dis-covered and then corresponding sensor array layout is designed. The simulation analysis shows that this kind of sensor array can recognize the internal TSV defect. And supervised machine learning is used to construct the classification model by which different defects can be found and classified with relatively high accuracy, and the classification accuracy rate can reach 95.625%. Experiments were conducted and the rationality of this built-in sensing array was verified. The research provides a non-destructive testing method for TSV internal defects based on bulit-in-integrated sensors, and verifies the feasibility of sensor arrangement through simulation, laying a foundation for the realization of later TSV design optimization.