Circuit board fault detection method based on infrared temperature measurement

By combining visible light imaging and infrared temperature measurement technology, using improved Informer model and statistics-SENet module, the problem of detection blind spots and accurate positioning in circuit board failure detection is solved, and efficient identification and accurate positioning of non-appearance faults is achieved, which improves the efficiency of non-appearance faults. Inspection accuracy and efficiency.

CN118960972AActive Publication Date: 2024-11-15UNIV OF ELECTRONICS SCI & TECH OF CHINA

Patent Information

Application Number
CN202411071791.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-15
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

The existing technology has detection blind spots in circuit board fault detection, and it is impossible to effectively identify non-appearance faults, such as chip internal damage and pin dummy soldering, and blurred edges of infrared image targets lead to increased detection difficulty, image difference method and temperature curve method The accuracy is not high and the fault is not accurately located.

Method used

Combining visible light imaging technology and infrared temperature measurement technology, using Informer-based deep learning classification model, the circuit board temperature change mode data is collected, multiple time series are established, and fault detection is carried out through the improved Informer model, combined with statistics-SENet module and feature embedding module and encoder modules, optimize data processing and model training, and improve detection accuracy.

Benefits of technology

It realizes comprehensive detection and classification of circuit board failures, improves the accuracy and efficiency of detection, can accurately locate faults, reduces detection difficulty and workload, and significantly improves the accuracy and reliability of circuit board failure detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118960972A_ABST
    Figure CN118960972A_ABST
Patent Text Reader

Abstract

The invention discloses a circuit board fault detection method based on infrared temperature measurement, and belongs to the field of fault identification. The method comprises the following steps: firstly, acquiring temperature change mode data sets of normal circuit boards and various fault circuit boards: electrifying each circuit board for a fixed time, acquiring temperature change data of each chip on the circuit board by using a thermal infrared imager, and marking the type of the circuit board, such as normal or fault, so as to complete data set construction work; training based on an improved Informer model is carried out by using the data set to obtain a model weight parameter; and inputting newly-collected circuit board temperature data into the model, and outputting a corresponding category by the model so as to realize fault detection of the circuit board.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of fault identification, in particular to a circuit board fault detection method based on infrared temperature measurement. Background Art

[0002] Existing technology has limited detection scope: The circuit board defect detection method based on visible light images is mainly limited to the appearance defect detection of the circuit board. It cannot effectively detect non-appearance circuit board faults, such as internal chip damage, chip pin cold solder joints and other internal faults. Such non-appearance faults account for a large proportion of actual circuit board faults. Therefore, the detection method based only on visible light images has a large detection blind spot.

[0003] Difficulty in infrared image target recognition: When using an infrared thermal imager to detect non-appearance faults on circuit boards, the target object whose temperature needs to be collected cannot be accurately identified due to the blurred edges of the infrared image target. Usually, manual calibration of the detection target area is required, which increases the difficulty and workload of the detection.

[0004] Existing circuit board fault detection methods based on infrared temperature measurement mostly use image difference method or temperature curve method. Image difference method is an instantaneous detection method that only judges faults based on temperature data at the corresponding moment, and its accuracy is not high. The temperature curve method compares temperature curves over a period of time to judge faults. Its disadvantage is that it can only judge whether the device temperature is abnormal, but cannot accurately locate the fault. Summary of the invention

[0005] By combining visible light imaging technology and infrared temperature measurement technology and using an Informer-based deep learning classification model, comprehensive detection and classification of circuit board faults can be achieved to improve the accuracy and efficiency of circuit board fault detection.

[0006] First, we collect temperature change pattern data sets of normal circuit boards and various faulty circuit boards: we power on each circuit board for a fixed time, use an infrared thermal imager to collect temperature change data of each chip on the circuit board, and label the circuit board category, such as normal or what kind of fault, to complete the data set construction. We then use the data set to train the improved Informer model to obtain the model weight parameters. Then, we input the newly collected circuit board temperature data into the model, and the model outputs the corresponding category to achieve circuit board fault detection.

[0007] Combining infrared temperature measurement technology and time series classification technology, a detection method process based on infrared temperature measurement is established, such as Figure 1Specifically, an infrared thermal imager is used to collect temperature data of normal circuit boards and circuit boards of different types of faults after being powered on for a period of time, and the data is converted into a multivariate time series. The fault identification result is obtained based on the classification result of the time series. Therefore, the technical solution of the present invention is: a circuit board fault detection method based on infrared temperature measurement, the method comprising:

[0008] Step 1: Create a dataset;

[0009] The circuit board includes a plurality of chips. When all components of the circuit board are working normally, an infrared thermal imager is used to collect the time series data of the temperature distribution on the front side of the circuit board during the working process; one of the chips is made to fail, and then the circuit board is powered on to work, and the time series data of the temperature distribution on the front side of the circuit board during the working process is collected; then another chip is made to fail, and then the circuit board is powered on to work, and the time series data of the temperature distribution on the front side of the circuit board during the working process is collected; the method is used to collect the time series data of the temperature distribution on the front side of the circuit board during the working process when each chip fails; all the collected data are established into a data set and labeled, and the label is the corresponding faulty chip;

[0010] Step 2: Establish a fault detection network;

[0011] The image detection network includes: a statistics-SENet module, a feature embedding module, and an encoder module; the input data is first pre-conditioned by the statistics-SENet module on the input chip temperature data, and then the feature is encoded by the Embed module; then, it is sent to the encoder module; the output feature of the encoder module is input into the recognition module to obtain the recognition result;

[0012] Step 3: Use the data set established in step 1 to train the fault detection network established in step 2, and use the trained fault detection network to perform fault detection on the temperature data of the same circuit board.

[0013] Furthermore, the statistics-SENet module in the fault detection network of step 2 includes: a statistics module, a channel weight estimator, and a normalization module; the input chip temperature data is first processed by the statistics module, and eight statistical features of the chip temperature sequence are output, which are maximum value, minimum value, average value, median, variance, root mean square, sequence sum, and maximum absolute value of difference; these eight statistical features are input into the channel weight estimator, and the channel weight estimator includes three layers of Relu, Tanh, and IN in sequence, Relu and Tanh are two activation functions in machine learning, and IN is InstanceNorm, which is an instance normalization calculation in machine learning; the channel weight estimator outputs the weights of each channel of the input data, and each channel weight is normalized and multiplied with each channel of the original input data before output.

[0014] Furthermore, the feature embedding module includes: a fully connected layer and a position encoding layer;

[0015] The input data is input into the fully connected layer and the position encoding layer respectively. After the fully connected layer converts the input data into a higher feature dimension, it is added to the output of the position encoding layer as the output of the feature embedding module.

[0016] The position encoding layer uses sine-cosine position encoding, which is calculated as follows:

[0017]

[0018] Among them, pos represents the sequence position number in the sequence, d model Indicates the number of feature dimensions, 2i+1 and 2i represent the odd and even position index numbers in the feature dimension, respectively, and the range is 0 to d model -1, PE(pos,2i) represents the position encoding result corresponding to the sequence position pos and the feature dimension 2i. Similarly, PE(pos,2i+1) represents the position encoding result corresponding to the sequence position pos and the feature dimension 2i+1.

[0019] Furthermore, the encoder module of step 2 includes three encoders in sequence, and each encoder has the same structure, including: attention module, full convolutional neural network, distillation module in sequence; the feature map output by the first encoder passes through a feature mapping layer, a pooling layer, and two fully connected layers in sequence, and the obtained features are input to the first prediction module a1; the feature map output by the second encoder passes through a feature mapping layer, a pooling layer, and two fully connected layers in sequence, and the obtained features are input to the second prediction module a2; the feature map output by the third encoder passes through a feature mapping layer and two fully connected layers in sequence, and the obtained features are input to the third prediction module a3; finally, the prediction results output by the first prediction module a1, the second prediction module a2, and the third prediction module a3 are multiplied by the weight parameters of each module and then added, and finally output. The weight parameters of the three layers are learnable parameters updated with network training, thereby realizing a hierarchical attention mechanism; the function of the distillation module is to compress the input data and reduce the size of the feature tensor to 1 / 4 of the input.

[0020] Furthermore, the fully convolutional neural network includes, in sequence: a first convolutional layer, a first batch normalization layer, a second convolutional layer, a second batch normalization layer, a third convolutional layer, and a third batch normalization layer; the distillation module includes, in sequence: a convolutional layer, a batch normalization layer, a first feature mapping layer, a pooling layer, and a second feature mapping layer.

[0021] Furthermore, the system adopts a circuit board fault detection method based on infrared temperature measurement, the system includes: a basic tool layer, a data layer, a device layer, an application layer and an interaction layer; the basic tool layer abstracts the most basic functions; the data layer is used to record and maintain data resources; the device layer provides an operating interface for hardware devices; the application layer implements complex functional processes related to the project; and the interaction layer provides a friendly graphical user interface for users.

[0022] This paper combines visible light camera and infrared thermal imager to collect temperature data of faulty circuit boards, converts it into multivariate time series, and optimizes the data processing method; at the same time, based on the deep learning Informer model, it improves and optimizes the accuracy of circuit board fault detection; the designed data collection platform ensures the accuracy and reliability of the data, and verifies the advantages of the improved model through experiments. These effects together reflect the practical value and contribution of this research in the field of circuit board fault detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 This is a detection method process based on infrared temperature measurement.

[0024] Figure 2 This is the system hardware block diagram.

[0025] Figure 3 Schematic diagram of an infrared thermal imager.

[0026] Figure 4 Schematic diagram of the acquisition platform, where (a) is the modeling of the acquisition platform and (b) is the actual picture of the acquisition platform.

[0027] Figure 5 This is the software system architecture diagram of the acquisition platform.

[0028] Figure 6 The temperature graphs for different categories of each chip are collected.

[0029] Figure 7 Schematic diagram of the improved distillation module.

[0030] Figure 8 Schematic diagram of the improved SENet network structure.

[0031] Fig. 9 Figure 2 is a schematic diagram of the improved overall network architecture. DETAILED DESCRIPTION

[0032] 1. Data collection and processing

[0033] (1) System hardware: The present invention designs a set of efficient and accurate circuit board image and temperature acquisition platform to provide reliable data support for circuit board defect detection and fault diagnosis. The system hardware structure is as follows: Figure 2As shown. It is equipped with a three-axis motion platform that can adjust the camera module to adapt to different sizes of circuit boards for clear imaging. The system includes a high-resolution visible light camera and an infrared thermal imager for visual inspection and temperature monitoring of circuit boards, and a power module is configured to simulate the actual working state of the circuit board. The electrical control box is responsible for powering the camera module and the motion platform, and controls the three motors through a closed loop to ensure the precise position adjustment of the motion platform. The platform can simultaneously collect image data and temperature data of the circuit board, and transmit these data to the computer for recording and analysis. In particular, the infrared thermal imager selected by Arrow Optoelectronics AT61P (such as Figure 3 ) has high resolution (640×512), can clearly display the temperature distribution of the circuit board when it is working, and has automatic focusing function to adapt to circuit boards of different sizes. Figure 4 As shown in the figure, the entire platform is exquisitely designed. Through the precise control of the three-axis motion platform and the packaging integration of the camera module, efficient and accurate imaging of the circuit board is achieved, providing strong technical support for circuit board defect detection and fault diagnosis.

[0034] (2) Platform software system: This invention introduces a mature and stable acquisition platform software system (such as Figure 5 ), the system adopts modular thinking and front-end and back-end isolation architecture to achieve superior decoupling and scalability. The system software architecture is divided into five layers: basic tool layer, data layer, device layer, application layer and interaction layer. Each layer is based on the support of the underlying module and provides functions for its upper layer. The basic tool layer abstracts the most basic functions in the project, such as image processing, log processing, etc.; the data layer is used to record and maintain data resources; the device layer provides an operating interface for hardware devices such as visible light cameras, infrared cameras and three-axis motion platforms; the application layer implements complex functional processes related to the project; and the interaction layer provides a friendly graphical user interface for users. This layered design not only achieves functional isolation, but also ensures the efficient performance of the system, which is a balance between decoupling and efficiency.

[0035] (3) Dataset construction: The present invention describes a method for collecting circuit board images and temperature data using a specially designed acquisition platform. Through alignment calibration and spatial transformation technology, the system uses the chip recognition results in the visible light image to guide the infrared thermal imager to accurately collect the temperature data of the chip. Considering that the integrated circuit chip in the circuit board is the main source of heat and the working conditions between chips affect each other, the experiment collected the temperature data of most chips on the circuit board for fault analysis. In order to eliminate the influence of different acquisition environment temperatures, the temperature data was preprocessed and the data was standardized by subtracting the temperature value of the first frame so that the temperature curves can be aligned in different environments. The experiment used multiple circuit boards including normal boards and various faulty boards, and collected temperature data for 38 chips on each board. A total of 210 data samples were collected, and the time series length was 1200, including 1 type of normal circuit board and 8 types of faulty circuit boards. The data is as follows Figure 6 , which clearly reflects the temperature time series changes of chips in various circuit boards, providing strong support for circuit board failure analysis.

[0036] (4) Computing platform: The model training and testing of the present invention are performed on a high-performance Windows 10 operating system computing platform, using the Python programming language and deployed based on the Pytorch deep learning framework.

[0037] 2. Informer network structure optimization

[0038] (1) Feedforward network optimization based on FCN: Although the core self-attention mechanism of the Informer model can effectively analyze the correlation of all time points in the time series and extract contextual semantic features, the computational complexity is high when the sequence is long, and the extraction of local and deep features is insufficient. In contrast, convolutional neural networks (CNNs) are better at extracting local features and deep features. Fully convolutional neural networks (FCNs) are a type of CNN. By setting the number of convolution kernels to increase and then decrease, the features can be raised to a high-dimensional space, the high-dimensional features can be activated and selected, and then reduced to a low dimension. This process has the same effect as the feedforward network layer of the Informer. However, FCN has a convolution operation, so it has a role in further extracting features. Based on the above reasons, FCN is used to replace the feedforward network layer FFN in the Informer.

[0039] (2) Optimization based on multi-scale feature fusion: In deep learning tasks, it is crucial to improve model performance by fusing features of different scales. Shallow features have high resolution and rich details but low semantics, while deep features have strong semantics but low resolution. Therefore, the improved Distilling network (such as Figure 7), and the sequence compression ratio is adjusted from 2:1 to 4:1. At the same time, the layered attention mechanism is applied to perform weighted fusion of multi-layer prediction results, thereby realizing multi-scale feature fusion, which effectively improves the model's ability to perceive detailed information in shallow features.

[0040] (3) Optimization based on channel attention mechanism: In order to further accurately measure the correlation between each chip data and the fault type, the present invention proposes an improved SENet network structure (such as Figure 8 ). Aiming at the problem of single feature extraction in the original SENet Squeeze operation, a new Squeeze method is designed in combination with prior knowledge, which enriches the feature representation by calculating the statistical features of each channel data (such as maximum, minimum, average, etc.). Then, the channel weights are preliminarily calculated through two fully connected layers and Relu and Tanh activation functions, and then the instance normalization layer is added to further stimulate or suppress the weights of each channel through the standardized distribution. This method not only considers the chip characteristics of the circuit board temperature time series and the correlation with the fault, but also strengthens the accurate estimation of the channel weights by introducing prior knowledge, thereby improving the accuracy of fault classification.

[0041] Based on the above three optimizations, the overall structure of the improved network model is obtained (such as Fig. 9 ). The model first pre-conditions the input chip temperature data through the Statistic-SENet module, and then uses the Embed module for feature encoding. Subsequently, the data is fed into the Informer model encoder module consisting of three Encoder Blocks, which contain a multi-head probabilistic sparse attention layer, a fully convolutional feedforward network layer, and a distillation layer, which are used for global context understanding, deep local feature extraction, and sequence feature compression, respectively. The model uses multi-scale feature fusion and hierarchical attention mechanisms, combined with classifiers of different scales, to determine the importance and extract features of chip data, ultimately reducing the amount of computation while improving the accuracy and robustness of the prediction results.

[0042] 3. Experimental results

[0043] Based on the structurally optimized model, a circuit board fault detection experiment was conducted, with 105 cases in each training set and test set. The loss function used cross entropy loss, the optimizer used Adam, and the initial learning rate was set to 1e-6. The number of training rounds was 355. The experimental results are shown in Table 1

[0044] Table 1 Experimental results of improved model circuit board fault detection

[0045] Precision Recall F1 Score Forecast / Total Normal category 1.00 1.00 1.00 25 / 25 Fault Category 1 1.00 1.00 1.00 10 / 10 Fault Category 2 1.00 1.00 1.00 10 / 10 Fault Category 3 1.00 1.00 1.00 10 / 10 Fault Category 4 1.00 1.00 1.00 10 / 10 Fault Category 5 1.00 0.90 0.95 9 / 10 Fault Category 6 1.00 1.00 1.00 10 / 10 Fault Category 7 0.91 1.00 0.95 10 / 10 Fault Category 8 1.00 1.00 1.00 10 / 10 Weighted Avg 0.99 0.99 0.99 - Accuracy 0.990 104 / 105

[0046] From the analysis of Table 1, we can see that in the test set, there are a total of 105 samples, and only one of the 105 samples is misidentified, with an accuracy of 0.990. The weighted precision is 0.99, indicating that 99% of the categories predicted by the model are correct, the weighted recall is 0.99, indicating that the model can find most of the faults, and the F1 score is 0.99, indicating that the model has excellent performance considering the precision and recall. The precision of category 7 is 0.91, indicating that other category samples are predicted as category 7, and an error has occurred. The recall rate of category 5 is 0.90, indicating that a small number of samples in category 5 are misidentified as other categories. From the analysis of the table, we can see that one category 5 sample is mispredicted as category 7. According to the F1 score analysis of each category, categories 0, 1, 2, 3, 4, 6, and 8 can all be correctly predicted, and categories 5 and 7 have a small probability of prediction errors. Category 0 is a standard board, indicating that the model can correctly identify all normal circuit boards and will not identify faulty circuit boards as normal. There is a small probability that a circuit board with fault category 5 will be identified as fault category 7. Based on the above analysis, it can be concluded that the improved model can complete the fault detection task of the circuit board. The original Informer network structure is used to solve the three problems existing in circuit board fault detection, and they are optimized respectively. The fully convolutional network FCN is used to replace the feedforward network FFN to improve the feature extraction ability of the model, and multi-scale feature fusion is used to optimize the classifier prediction effect. At the same time, a channel attention mechanism module is added to the front end of the network to measure the correlation between different chip data and faults, thereby improving the accuracy of circuit board fault detection.

Claims

1. A circuit board fault detection method based on infrared temperature measurement, the method comprising: Step 1: Create a dataset; The circuit board includes a plurality of chips. When all components of the circuit board are working normally, an infrared thermal imager is used to collect the time series data of the temperature distribution on the front side of the circuit board during the working process; one of the chips is made to fail, and then the circuit board is powered on to work, and the time series data of the temperature distribution on the front side of the circuit board during the working process is collected; then another chip is made to fail, and then the circuit board is powered on to work, and the time series data of the temperature distribution on the front side of the circuit board during the working process is collected; the method is used to collect the time series data of the temperature distribution on the front side of the circuit board during the working process when each chip fails; all the collected data are established into a data set and labeled, and the label is the corresponding failed chip; Step 2: Establish a fault detection network; The image detection network includes: statistics-SENet module, feature embedding module, encoder module; The input data is first pre-conditioned by the Statistic-SENet module, and then feature encoded by the Embed module; then, it is sent to the encoder module; the output features of the encoder module are input to the recognition module to obtain the recognition result; Step 3: Use the data set established in step 1 to train the fault detection network established in step 2, and use the trained fault detection network to perform fault detection on the temperature data of the same circuit board.

2. A circuit board fault detection method based on infrared temperature measurement as claimed in claim 1, characterized in that: The statistics-SENet module in the fault detection network of step 2 includes: a statistics module, a channel weight estimator, and a normalization module; the input chip temperature data is first processed by the statistics module, and eight statistical features of the chip temperature sequence are output, which are maximum value, minimum value, average value, median, variance, root mean square, sequence sum, and maximum absolute value of difference; these eight statistical features are input into the channel weight estimator, and the channel weight estimator includes three layers of Relu, Tanh, and IN in sequence, Relu and Tanh are two activation functions in machine learning, and IN is InstanceNorm, which is an instance normalization calculation in machine learning; the channel weight estimator outputs the weights of each channel of the input data, and each channel weight is multiplied with each channel of the original input data after normalization operation and then output.

3. A circuit board fault detection method based on infrared temperature measurement as claimed in claim 1, characterized in that: The feature embedding module includes: a fully connected layer and a position encoding layer; The input data is input into the fully connected layer and the position encoding layer respectively. After the fully connected layer converts the input data into a higher feature dimension, it is added to the output of the position encoding layer as the output of the feature embedding module. The position encoding layer uses sine-cosine position encoding, which is calculated as follows: Among them, pos represents the sequence position number in the sequence, d model Indicates the number of feature dimensions, 2i+1 and 2i represent the odd and even position index numbers in the feature dimension, respectively, and the range is 0 to d model -1, PE(pos,2i) represents the position encoding result corresponding to the sequence position pos and the feature dimension 2i. Similarly, PE(pos,2i+1) represents the position encoding result corresponding to the sequence position pos and the feature dimension 2i+1.

4. A circuit board fault detection method based on infrared temperature measurement as claimed in claim 1, characterized in that: The encoder module of step 2 includes three encoders in sequence, and each encoder has the same structure, including: an attention module, a fully convolutional neural network, and a distillation module in sequence; the feature map output by the first encoder passes through a feature mapping layer, a pooling layer, and two fully connected layers in sequence, and the obtained features are input to the first prediction module a1; the feature map output by the second encoder passes through a feature mapping layer, a pooling layer, and two fully connected layers in sequence, and the obtained features are input to the second prediction module a2; the feature map output by the third encoder passes through a feature mapping layer and two fully connected layers in sequence, and the obtained features are input to the third prediction module a3; finally, the prediction results output by the first prediction module a1, the second prediction module a2, and the third prediction module a3 are multiplied by the weight parameters of each module and then added to wait for the final output.

5. A circuit board fault detection method based on infrared temperature measurement as claimed in claim 1, characterized in that: The fully convolutional neural network includes, in sequence: a first convolutional layer, a first batch normalization layer, a second convolutional layer, a second batch normalization layer, a third convolutional layer, and a third batch normalization layer; the distillation module includes, in sequence: a convolutional layer, a batch normalization layer, a first feature mapping layer, a pooling layer, and a second feature mapping layer.

6. A circuit board fault detection method based on infrared temperature measurement as claimed in claim 1, characterized in that: The system adopts a circuit board fault detection method based on infrared temperature measurement, and the system includes: a basic tool layer, a data layer, a device layer, an application layer and an interaction layer; the basic tool layer abstracts the most basic functions; the data layer is used to record and maintain data resources; the device layer provides an operation interface for hardware devices; the application layer implements complex functional processes related to the project; and the interaction layer provides a friendly graphical user interface for users.

Citation Information

Patent Citations

  • Circuit board short circuit automatic identification method based on infrared image processing

    CN109975686A

  • Experimental environment circuit board fault diagnosis method based on deep convolutional network

    CN117169682A

  • KR20200087297A

Cited By

  • Circuit board device thermal analysis system based on target detection

    CN120374620A

  • Circuit board device thermal analysis system based on target detection

    CN120374620B

  • Circuit board diagnosis method based on infrared imaging

    CN121348055A