Insulation testing method and system for heat dissipation module of notebook computer
The twin network and classifier are used to extract and compare image features of the insulation components of the laptop cooling module, which solves the short circuit problem caused by missing or incorrect installation of the insulation components, and improves the inspection accuracy and production quality.
Patent Information
- Application Number
- CN202211213454.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-09-30
AI Technical Summary
The cooling module of traditional laptop computers is prone to missing or misinstalled insulation components during the production or reworking process, resulting in short circuits and increased production costs and scrap rates.
Twin networks and classifiers are used to extract and compare image features of insulation components. The insulation is inspected by detecting the differential features of the image and the reference image to determine whether the assembly style meets the predetermined standards.
It improves the accuracy of insulation inspection, reduces the production scrap rate of notebook computers, and ensures production quality.
Smart Images

Figure CN115526865B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent detection technology, and more specifically, to a method and system for testing the insulation performance of a heat dissipation module of a notebook computer. Background Art
[0002] The motherboard of a conventional notebook computer has a chip and a plurality of electrical contacts, which are arranged near the chip. In order to dissipate the heat generated by the chip, a heat dissipation module covers the chip and is arranged on the motherboard. An insulating component is arranged between the chip and the heat dissipation module to prevent the metal shell of the heat dissipation module from contacting the electrical contacts around the chip and causing a short circuit.
[0003] However, the insulating components are often missed or mis-installed during the production or rework process, causing the notebook computer to short-circuit after testing (such as burn-in), thus requiring the entire batch of products to be reworked, which increases the cost and time of the rework.
[0004] Therefore, an optimized insulation testing solution for the heat dissipation module of a notebook computer is desired. Summary of the invention
[0005] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a method and system for inspecting the insulation of a heat dissipation module of a laptop computer. First, the acquired detection image and reference image are passed through a twin network to obtain a detection feature map and a reference feature map. Then, the differential feature map between the detection feature map and the reference feature map is calculated. Then, the differential feature map is expanded along a row vector or a column vector to obtain a classification feature vector. Finally, the classification feature vector is passed through a classifier to obtain a classification result indicating whether the assembly style of the insulating component in the detection image meets a predetermined standard. In this way, the insulation of the heat dissipation module of the laptop computer can be accurately inspected, thereby reducing the scrap rate of laptop computer production on the basis of ensuring the inspection accuracy, and ensuring the production quality of the laptop computer.
[0006] According to one aspect of the present application, a method for testing the insulation of a heat dissipation module of a notebook computer is provided, comprising:
[0007] Acquire a detection image and a reference image, wherein the reference image is an image in which the insulating component is assembled between the chip and the heat dissipation module in a standard manner;
[0008] Passing the detection image and the reference image through a trained twin network to obtain a detection feature map and a reference feature map, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure;
[0009] Calculating a differential feature map between the detection feature map and a reference feature map;
[0010] Expanding the differential feature map along the row vector or the column vector to obtain a classification feature vector; and
[0011] The classification feature vector is passed through a trained classifier to obtain a classification result, and the classification result is used to indicate whether the assembly pattern of the insulation component in the detection image meets a predetermined standard.
[0012] In the above-mentioned insulation inspection method of the heat dissipation module of the laptop computer, the detection image and the reference image are subjected to the trained twin network to obtain the detection feature map and the reference feature map, including:
[0013] Using the convolutional coding part of the first convolutional neural network model of the twin network to perform deep convolutional coding on the detection image to obtain a detection convolutional feature map;
[0014] Inputting the detection convolutional feature map into the spatial attention part of the first convolutional neural network model to obtain a first spatial attention map;
[0015] Passing the first spatial attention map through a Softmax activation function to obtain a first spatial attention feature map; and
[0016] Calculate the point-by-point multiplication of the first spatial attention feature map and the detection convolution feature map to obtain the detection feature map.
[0017] In the above-mentioned insulation inspection method of the heat dissipation module of the laptop computer, the detection image and the reference image are subjected to the trained twin network to obtain the detection feature map and the reference feature map, including:
[0018] Using the convolutional coding part of the second convolutional neural network model of the twin network to perform deep convolutional coding on the reference image to obtain a reference convolutional feature map;
[0019] Inputting the reference convolutional feature map into the spatial attention part of the second convolutional neural network model to obtain a second spatial attention map;
[0020] Passing the second spatial attention map through a Softmax activation function to obtain a second spatial attention feature map; and
[0021] Calculate the point-by-point multiplication of the second spatial attention feature map and the reference convolution feature map to obtain the reference feature map.
[0022] In the above-mentioned insulation inspection method of the heat dissipation module of the laptop computer, the calculating of the differential characteristic diagram between the detection characteristic diagram and the reference characteristic diagram comprises: calculating the position difference between the detection characteristic diagram and the reference characteristic diagram by the following formula to obtain the differential characteristic diagram;
[0023] Wherein, the formula is: Wherein, F1 is the detection feature map, F2 is the reference feature map, Indicates difference by position.
[0024] In the above-mentioned insulation inspection method of the heat dissipation module of the notebook computer, the step of passing the classification feature vector through the trained classifier to obtain the classification result includes:
[0025] The classification feature vector is processed by the classifier using the following formula to obtain the classification result, wherein the formula is: softmax{(M c ,B c )|X}, where M c is the weight matrix, B c is the bias vector, and X is the classification feature vector.
[0026] In the above-mentioned insulation inspection method of the heat dissipation module of the laptop computer, it also includes training the twin network and the classifier;
[0027] Wherein, the training of the twin network and the classifier includes:
[0028] Acquire training data, wherein the training data includes a training detection image, a training reference image, and a true value of whether an assembly pattern of an insulating component in the training detection image meets a predetermined standard;
[0029] Passing the training detection image and the training reference image through the twin network to obtain a training detection feature map and a training reference feature map;
[0030] Calculating a training differential feature map between the training detection feature map and the training reference feature map;
[0031] Passing the training differential feature map through a classifier to obtain a classification loss function value;
[0032] Calculating a classification mode elimination suppression loss function value of a first feature vector expanded by the training detection feature map and a second feature vector expanded by the training reference feature map, wherein the classification mode elimination suppression loss function value is related to the square of the second norm of the differential feature vector between the first feature vector and the second feature vector; and
[0033] The twin network and the classifier are trained using the weighted sum of the classification mode elimination suppression loss function value and the classification loss function value as the loss function value.
[0034] In the above-mentioned insulation inspection method of the heat dissipation module of the laptop computer, the calculation of the classification mode elimination suppression loss function value of the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map includes:
[0035] The classification mode elimination suppression loss function value of the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map is calculated by the following formula;
[0036] Wherein, the formula is:
[0037]
[0038] Wherein V1 and V2 represent the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map, respectively, M1 and M2 are the weight matrices of the classifier for the first feature vector and the second feature vector, respectively, and represents the square of the vector's two-norm, ||·|| F represents the F-norm of the matrix, exp(·) represents the exponential operation of the matrix and the exponential operation of the vector, the exponential operation of the matrix represents the natural exponential function value raised to the power of the eigenvalues of each position in the matrix, and the exponential operation of the vector represents the natural exponential function value raised to the power of the eigenvalues of each position in the vector.
[0039] According to another aspect of the present application, a system for testing the insulation performance of a heat dissipation module of a notebook computer is provided, comprising:
[0040] An image acquisition module, used to acquire a detection image and a reference image, wherein the reference image is an image in which the insulating component is standardly assembled between the chip and the heat dissipation module;
[0041] An encoding module, used for obtaining a detection feature map and a reference feature map by passing the detection image and the reference image through a trained twin network, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure;
[0042] A difference calculation module, used for calculating a difference feature map between the detection feature map and the reference feature map;
[0043] An expansion module, used for expanding the differential feature map along the row vector or the column vector to obtain a classification feature vector; and
[0044] The classification result generating module is used to pass the classification feature vector through the trained classifier to obtain the classification result, and the classification result is used to indicate whether the assembly pattern of the insulation component in the detection image meets the predetermined standard.
[0045] In the above-mentioned insulation inspection system for the heat dissipation module of a laptop computer, the encoding module comprises:
[0046] A first convolutional coding unit, configured to perform deep convolutional coding on the detection image using a convolutional coding part of the first convolutional neural network model of the twin network to obtain a detection convolutional feature map;
[0047] A first spatial attention map acquisition unit, configured to input the detection convolution feature map into the spatial attention part of the first convolutional neural network model to obtain a first spatial attention map;
[0048] A first spatial attention feature map acquisition unit, configured to obtain a first spatial attention feature map by passing the first spatial attention map through a Softmax activation function; and
[0049] A detection feature map acquisition unit is used to calculate the first spatial attention feature map and the detection convolution feature map by multiplying them by position points to obtain the detection feature map.
[0050] In the above-mentioned insulation inspection system for the heat dissipation module of a laptop computer, the encoding module comprises:
[0051] A second convolutional coding unit, used to perform deep convolutional coding on the reference image using the convolutional coding part of the second convolutional neural network model of the twin network to obtain a reference convolutional feature map;
[0052] A second spatial attention map acquisition unit, configured to input the reference convolution feature map into the spatial attention part of the second convolutional neural network model to obtain a second spatial attention map;
[0053] A second spatial attention feature map acquisition unit, configured to obtain a second spatial attention feature map by passing the second spatial attention map through a Softmax activation function; and
[0054] A reference feature map acquisition unit is used to calculate the point-by-point multiplication of the second spatial attention feature map and the reference convolution feature map to obtain the reference feature map.
[0055] Compared with the prior art, the insulation inspection method and system of the heat dissipation module of a laptop provided by the present application first pass the acquired detection image and reference image through a twin network to obtain a detection feature map and a reference feature map, then calculate the differential feature map between the detection feature map and the reference feature map, then expand the differential feature map along the row vector or column vector to obtain a classification feature vector, and finally, pass the classification feature vector through a classifier to obtain a classification result indicating whether the assembly style of the insulating component in the detection image meets the predetermined standard. In this way, the insulation of the heat dissipation module of the laptop can be accurately inspected, thereby reducing the scrap rate of laptop production on the basis of ensuring the inspection accuracy and ensuring the production quality of the laptop. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0057] Figure 1 The diagram is a schematic diagram of a scenario of a method for testing the insulation performance of a heat dissipation module of a notebook computer according to an embodiment of the present application.
[0058] Figure 2 The present invention is a flowchart of a method for testing the insulation performance of a heat dissipation module of a notebook computer according to an embodiment of the present application.
[0059] Figure 3 Schematic diagram of the structure of the insulation testing method of the heat dissipation module of the notebook computer according to the embodiment of the present application.
[0060] Figure 4 This is a flowchart of the first part of sub-steps of step S120 in the insulation testing method of the heat dissipation module of a notebook computer according to an embodiment of the present application.
[0061] Figure 5 This is a flowchart of the second part of sub-steps of step S120 in the insulation testing method of the heat dissipation module of a notebook computer according to an embodiment of the present application.
[0062] Figure 6 The present invention is a flowchart of the sub-step of training the twin network and the classifier further included in the insulation inspection method of the heat dissipation module of the laptop computer according to the embodiment of the present application.
[0063] Figure 7The block diagram is a system for testing the insulation performance of a heat dissipation module of a notebook computer according to an embodiment of the present application.
[0064] Figure 8 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0065] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0066] Scenario Overview
[0067] As mentioned above, the motherboard of a conventional notebook computer has a chip and a plurality of electrical contacts, and the electrical contacts are arranged near the chip. In order to dissipate the heat generated by the chip, a heat dissipation module covers the chip and is arranged on the motherboard. An insulating component is arranged between the chip and the heat dissipation module to prevent the metal shell of the heat dissipation module from contacting the electrical contacts around the chip and causing a short circuit.
[0068] However, insulation components are often missed or mis-installed during production or rework, causing short circuits in laptop computers after testing (such as burn-in), which results in the need to rework the entire batch of products, increasing the cost and time of rework. Therefore, an optimized insulation inspection solution for laptop computer heat dissipation modules is desired.
[0069] Accordingly, when testing the insulation of the heat dissipation module of the laptop, if the insulation component is missed or misinstalled during the production or rework process, the laptop will be short-circuited during the test, causing the machine to burn out and increase the scrap rate. Therefore, in order to better detect the insulation of the heat dissipation module of the laptop without short circuit, in the technical solution of the present application, non-electrical variables, i.e., image data, are used to detect and judge the insulation component. In addition, artificial intelligence detection technology based on deep learning is used to mine implicit features of the actual detection image and the standard reference image, and then the differential features between the high-dimensional implicit features of the two images are used for consistency comparison, so as to detect whether the assembly style of the insulation component meets the predetermined standard. In this way, the insulation of the heat dissipation module of the laptop can be accurately tested, and then the scrap rate of laptop production can be reduced on the basis of ensuring the accuracy of the test, and the production quality of the laptop can be guaranteed.
[0070] Specifically, in the technical solution of the present application, first, a detection image and a reference image are acquired through a camera, and the reference image is an image in which the insulating component is assembled between the chip and the heat dissipation module in a standard manner. Then, a convolutional neural network model with excellent performance in extracting implicit features of images is used to extract image features of the detection image and the reference image. However, the performance of the traditional convolutional neural network model in detecting the assembly style of the insulating component is not good, which will lead to errors in the insulation judgment of the heat dissipation module of the laptop computer. In addition, considering that in the detection image and the reference image, it is necessary to pay more attention to the assembly feature information of the spatial position of the insulating component.
[0071] Based on this, the detection image and the reference image are further processed through a twin network, and the twin network can use a convolutional neural network model with a spatial attention mechanism to process the detection image and the reference image, so as to respectively extract the implicit correlation feature information on the spatial positions of the insulating components, chips and heat dissipation modules in the detection image and the reference image, thereby highlighting the spatial position features of the assembly style of the insulating components, so as to obtain a detection feature map and a reference feature map. In particular, here, the twin network includes a first convolutional neural network model and a second convolutional neural network model with the same network structure, the first convolutional neural network model can extract the spatial implicit feature distribution features of the assembly style of the insulating components in the detection image, and the second convolutional neural network model can extract the spatial implicit feature distribution features of the assembly style of the insulating components in the reference image.
[0072] Then, in order to accurately detect whether the assembly style of the insulating component meets the predetermined standard, the feature distribution information of the test image and the reference image in the high-dimensional feature space is compared for consistency, that is, the twin network is used to generate the differential features between the test image and the reference image, so as to perform insulation detection. Specifically, the differential feature map between the test feature map and the reference feature map is calculated. Then, after the differential feature map is expanded along the row vector or column vector to obtain the classification feature vector, it is input into the classifier for classification processing to obtain a classification result indicating whether the assembly style of the insulating component in the test image meets the predetermined standard.
[0073] In particular, in the technical solution of the present application, here, when the differential feature map passes through the classifier, since during the training process, the gradient of the loss function passes through the branch points of the first convolutional neural network model and the second convolutional neural network model with the same network structure of the twin network during the back propagation process, the abnormal gradient divergence will cause the dissolution of the pattern expressed by the detection feature map and the reference feature map. Therefore, in the technical solution of the present application, a classification pattern dissolution suppression loss function is further introduced, which is expressed as:
[0074]
[0075] V1 and V2 are feature vectors obtained by expanding the detection feature map and the reference feature map, respectively, and M1 and M2 are weight matrices of the classifier for V1 and V2, respectively, and Represents the square of the two-norm of a vector.
[0076] Here, by introducing the classification pattern elimination suppression loss function, the pseudo difference of the classifier weight can be pushed to the real feature distribution difference between the detection feature map and the reference feature map, so as to ensure that the directional derivative during gradient back propagation is regularized near the gradient branch point, that is, the gradient is overweighted between the patterns of the detection feature map and the reference feature map to suppress the classification pattern elimination of the features extracted by the first convolutional neural network model and the second convolutional neural network model, thus improving the classification expression ability of the detection feature map and the reference feature map, thereby improving the classification accuracy of the differential feature map. In this way, the insulation of the heat dissipation module of the laptop can be accurately inspected, thereby reducing the scrap rate of laptop production while ensuring the inspection accuracy, and ensuring the production quality of the laptop.
[0077] Based on this, the present application provides a method for inspecting the insulation of a heat dissipation module of a laptop computer, which includes: obtaining a detection image and a reference image, wherein the reference image is an image in which an insulating component is standardly assembled between a chip and a heat dissipation module; passing the detection image and the reference image through a trained twin network to obtain a detection feature map and a reference feature map, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure; calculating a differential feature map between the detection feature map and the reference feature map; expanding the differential feature map along a row vector or a column vector to obtain a classification feature vector; and passing the classification feature vector through a trained classifier to obtain a classification result, wherein the classification result is used to indicate whether the assembly pattern of the insulating component in the detection image meets a predetermined standard.
[0078] Figure 1The figure shows an application scenario diagram of the insulation test method of the heat dissipation module of a notebook computer according to an embodiment of the present application. Figure 1 As shown, in this application scenario, through a camera (for example, Figure 1 C) obtaining a detection image (e.g., Figure 1 D1) and a reference image (e.g., Figure 1 D2 as shown in the figure), the reference image is an image in which the insulating component is standardly assembled between the chip and the heat dissipation module, and then the detection image and the reference image are input to a server (for example, as shown in the figure) in which the insulation inspection algorithm of the heat dissipation module of the laptop is deployed. Figure 1 In S) shown in , the server can generate a classification result indicating whether the assembly style of the insulating component in the detection image meets the predetermined standard based on the insulation inspection algorithm of the heat dissipation module of the laptop computer.
[0079] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.
[0080] Exemplary Methods
[0081] Figure 2 The figure shows a flow chart of a method for testing the insulation performance of a heat dissipation module of a notebook computer according to an embodiment of the present application. Figure 2 As shown, according to the embodiment of the present application, the insulation inspection method of the heat dissipation module of the laptop computer includes the following steps: S110, acquiring a detection image and a reference image, wherein the reference image is an image in which the insulating component is standardly assembled between the chip and the heat dissipation module; S120, passing the detection image and the reference image through a trained twin network to obtain a detection feature map and a reference feature map, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure; S130, calculating a differential feature map between the detection feature map and the reference feature map; S140, expanding the differential feature map along a row vector or a column vector to obtain a classification feature vector; and, S150, passing the classification feature vector through a trained classifier to obtain a classification result, wherein the classification result is used to indicate whether the assembly pattern of the insulating component in the detection image meets a predetermined standard.
[0082] Figure 3 FIG. 1 is a schematic diagram of the structure of the insulation test method of the heat dissipation module of the notebook computer according to the embodiment of the present application. Figure 3As shown, in the network architecture, first, a detection image and a reference image are obtained, wherein the reference image is an image in which the insulating component is standardly assembled between the chip and the heat dissipation module; then, the detection image and the reference image are passed through a trained twin network to obtain a detection feature map and a reference feature map, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure; then, a differential feature map between the detection feature map and the reference feature map is calculated; then, the differential feature map is expanded along a row vector or a column vector to obtain a classification feature vector; finally, the classification feature vector is passed through a trained classifier to obtain a classification result, and the classification result is used to indicate whether the assembly pattern of the insulating component in the detection image meets a predetermined standard.
[0083] More specifically, in step S110, a test image and a reference image are obtained, wherein the reference image is an image in which the insulating component is assembled between the chip and the heat dissipation module in a standard manner. When the insulation of the heat dissipation module of a laptop is tested, if the insulating component is missed or mis-installed during production or rework, a short circuit may occur in the laptop during the test, causing the laptop to burn out and increase the scrap rate. Therefore, in order to better test the insulation of the heat dissipation module of the laptop while avoiding a short circuit, a test image and a reference image are obtained, wherein the reference image is an image in which the insulating component is assembled between the chip and the heat dissipation module in a standard manner.
[0084] More specifically, in step S120, the detection image and the reference image are passed through a trained twin network to obtain a detection feature map and a reference feature map, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure. The performance of the traditional convolutional neural network model in detecting the assembly style of the insulating component is not good, which will lead to errors in judging the insulation of the heat dissipation module of the laptop computer. Considering that in the detection image and the reference image, it is necessary to pay more attention to the assembly feature information of the spatial position of the insulating component. The detection image and the reference image are further processed through the twin network, and the twin network can use a convolutional neural network model with a spatial attention mechanism to process the detection image and the reference image, so as to extract the implicit correlation feature information of the spatial position of the insulating component, chip and heat dissipation module in the detection image and the reference image, respectively, so as to highlight the spatial position characteristics of the assembly style of the insulating component, so as to obtain a detection feature map and a reference feature map. In particular, here, the twin network includes a first convolutional neural network model and a second convolutional neural network model with the same network structure, the first convolutional neural network model can extract the spatial implicit feature distribution characteristics of the assembly style of the insulating component in the detection image, and the second convolutional neural network model can extract the spatial implicit feature distribution characteristics of the assembly style of the insulating component in the reference image.
[0085] Accordingly, in a specific example, Figure 4 As shown, in the insulation inspection method of the heat dissipation module of the laptop computer, the detection image and the reference image are passed through the trained twin network to obtain a detection feature map and a reference feature map, including: using the convolution coding part of the first convolutional neural network model of the twin network to perform deep convolution coding on the detection image to obtain a detection convolution feature map; inputting the detection convolution feature map into the spatial attention part of the first convolutional neural network model to obtain a first spatial attention map; passing the first spatial attention map through a Softmax activation function to obtain a first spatial attention feature map; and calculating the point-by-point multiplication of the first spatial attention feature map and the detection convolution feature map to obtain the detection feature map.
[0086] Accordingly, in a specific example, Figure 5As shown, in the insulation inspection method of the heat dissipation module of the laptop computer, the detection image and the reference image are passed through the trained twin network to obtain a detection feature map and a reference feature map, including: using the convolution coding part of the second convolutional neural network model of the twin network to perform deep convolution encoding on the reference image to obtain a reference convolution feature map; inputting the reference convolution feature map into the spatial attention part of the second convolutional neural network model to obtain a second spatial attention map; passing the second spatial attention map through a Softmax activation function to obtain a second spatial attention feature map; and calculating the positional point multiplication of the second spatial attention feature map and the reference convolution feature map to obtain the reference feature map.
[0087] More specifically, in step S130, a differential feature map between the detection feature map and the reference feature map is calculated. In order to accurately detect whether the assembly style of the insulation component meets the predetermined standard, the feature distribution information of the detection image and the reference image in the high-dimensional feature space is compared for consistency, that is, the twin network is used to generate differential features between the detection image and the reference image, so as to perform insulation detection.
[0088] Accordingly, in a specific example, in the insulation inspection method of the heat dissipation module of the laptop computer, the calculating of the differential characteristic map between the detection characteristic map and the reference characteristic map includes: calculating the position difference between the detection characteristic map and the reference characteristic map by the following formula to obtain the differential characteristic map;
[0089] Wherein, the formula is: Wherein, F1 is the detection feature map, F2 is the reference feature map, Indicates difference by position.
[0090] More specifically, in step S140, the differential feature map is expanded along the row vector or the column vector to obtain a classification feature vector.
[0091] More specifically, in step S150, the classification feature vector is passed through a trained classifier to obtain a classification result, and the classification result is used to indicate whether the assembly pattern of the insulation component in the detection image meets a predetermined standard.
[0092] Accordingly, in a specific example, in the insulation inspection method of the heat dissipation module of the laptop computer, the step of passing the classification feature vector through the trained classifier to obtain the classification result includes: using the classifier to process the classification feature vector using the following formula to obtain the classification result, wherein the formula is: softmax{(M c ,Bc )|X}, where M c is the weight matrix, B c is the bias vector, and X is the classification feature vector.
[0093] Accordingly, in a specific example, Figure 6 As shown, in the insulation inspection method of the heat dissipation module of the laptop computer, the insulation inspection method of the heat dissipation module of the laptop computer also includes training the twin network and the classifier; wherein, the training of the twin network and the classifier includes: S210, obtaining training data, the training data including a training detection image, a training reference image, and a true value of whether the assembly pattern of the insulating component in the training detection image meets the predetermined standard; S220, passing the training detection image and the training reference image through the twin network to obtain a training detection feature map and a training reference feature map; S230, calculating the training detection feature map and a training differential feature map between the training detection feature map and the training reference feature map; S240, passing the training differential feature map through a classifier to obtain a classification loss function value; S250, calculating a classification pattern resolution suppression loss function value of a first feature vector expanded by the training detection feature map and a second feature vector expanded by the training reference feature map, wherein the classification pattern resolution suppression loss function value is related to the square of the second norm of the differential feature vector between the first feature vector and the second feature vector; and, S260, training the twin network and the classifier using the weighted sum of the classification pattern resolution suppression loss function value and the classification loss function value as the loss function value.
[0094] In particular, in the technical solution of the present application, here, when the differential feature map passes through the classifier, during the training process, the gradient of the loss function passes through the branch points of the first convolutional neural network model and the second convolutional neural network model with the same network structure of the twin network during the back propagation process, which will cause the pattern expressed by the detection feature map and the reference feature map to be dissolved due to abnormal gradient divergence. Therefore, in the technical solution of the present application, a classification pattern dissolution suppression loss function is further introduced.
[0095] Accordingly, in a specific example, in the insulation inspection method of the heat dissipation module of the laptop computer, the calculation of the classification mode elimination suppression loss function value of the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map includes: calculating the classification mode elimination suppression loss function value of the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map by the following formula;
[0096] Wherein, the formula is:
[0097]
[0098] Wherein V1 and V2 represent the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map, respectively, M1 and M2 are the weight matrices of the classifier for the first feature vector and the second feature vector, respectively, and represents the square of the vector's two-norm, ||·|| F represents the F-norm of the matrix, exp(·) represents the exponential operation of the matrix and the exponential operation of the vector, the exponential operation of the matrix represents the natural exponential function value raised to the power of the eigenvalues of each position in the matrix, and the exponential operation of the vector represents the natural exponential function value raised to the power of the eigenvalues of each position in the vector.
[0099] Here, by introducing the classification pattern elimination suppression loss function, the pseudo difference of the classifier weight can be pushed to the real feature distribution difference between the detection feature map and the reference feature map, so as to ensure that the directional derivative during gradient back propagation is regularized near the gradient branch point, that is, the gradient is overweighted between the patterns of the detection feature map and the reference feature map to suppress the classification pattern elimination of the features extracted by the first convolutional neural network model and the second convolutional neural network model, thus improving the classification expression ability of the detection feature map and the reference feature map, thereby improving the classification accuracy of the differential feature map. In this way, the insulation of the heat dissipation module of the laptop can be accurately inspected, thereby reducing the scrap rate of laptop production while ensuring the inspection accuracy, and ensuring the production quality of the laptop.
[0100] In summary, based on the insulation inspection method of the heat dissipation module of the laptop computer according to the embodiment of the present application, the acquired detection image and reference image are first passed through the twin network to obtain the detection feature map and the reference feature map, then the differential feature map between the detection feature map and the reference feature map is calculated, and then the differential feature map is expanded along the row vector or column vector to obtain the classification feature vector, and finally, the classification feature vector is passed through the classifier to obtain a classification result indicating whether the assembly style of the insulating component in the detection image meets the predetermined standard. In this way, the insulation of the heat dissipation module of the laptop computer can be accurately inspected, thereby reducing the scrap rate of the laptop computer production on the basis of ensuring the inspection accuracy, and ensuring the production quality of the laptop computer.
[0101] Exemplary Systems
[0102] Figure 7FIG. 1 is a block diagram of a system 100 for testing the insulation performance of a heat dissipation module of a notebook computer according to an embodiment of the present application. Figure 7 As shown, according to an embodiment of the present application, the insulation inspection system 100 of the heat dissipation module of a laptop computer includes: an image acquisition module 110, used to acquire a detection image and a reference image, wherein the reference image is an image in which the insulating component is standardly assembled between the chip and the heat dissipation module; an encoding module 120, used to pass the detection image and the reference image through a trained twin network to obtain a detection feature map and a reference feature map, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model with the same network structure; a differential calculation module 130, used to calculate a differential feature map between the detection feature map and the reference feature map; an expansion module 140, used to expand the differential feature map along a row vector or a column vector to obtain a classification feature vector; and a classification result generation module 150, used to pass the classification feature vector through a trained classifier to obtain a classification result, wherein the classification result is used to indicate whether the assembly pattern of the insulating component in the detection image meets a predetermined standard.
[0103] In one example, in the insulation inspection system 100 of the heat dissipation module of the above-mentioned laptop computer, the encoding module 120 includes: a first convolutional encoding unit, used to use the convolutional encoding part of the first convolutional neural network model of the twin network to perform deep convolution encoding on the detection image to obtain a detection convolutional feature map; a first spatial attention map acquisition unit, used to input the detection convolutional feature map into the spatial attention part of the first convolutional neural network model to obtain a first spatial attention map; a first spatial attention feature map acquisition unit, used to pass the first spatial attention map through a Softmax activation function to obtain a first spatial attention feature map; and a detection feature map acquisition unit, used to calculate the point-by-point multiplication of the first spatial attention feature map and the detection convolution feature map to obtain the detection feature map.
[0104] In one example, in the insulation inspection system 100 of the heat dissipation module of the above-mentioned laptop computer, the encoding module 120 includes: a second convolutional encoding unit, used to perform deep convolution encoding on the reference image using the convolutional encoding part of the second convolutional neural network model of the twin network to obtain a reference convolutional feature map; a second spatial attention map acquisition unit, used to input the reference convolutional feature map into the spatial attention part of the second convolutional neural network model to obtain a second spatial attention map; a second spatial attention feature map acquisition unit, used to pass the second spatial attention map through a Softmax activation function to obtain a second spatial attention feature map; and a reference feature map acquisition unit, used to calculate the point-by-point multiplication of the second spatial attention feature map and the reference convolutional feature map to obtain the reference feature map.
[0105] In one example, in the insulation inspection system 100 of the heat dissipation module of the laptop computer, the difference calculation module 130 includes: calculating the position difference between the detection characteristic map and the reference characteristic map by the following formula to obtain the differential characteristic map;
[0106] Wherein, the formula is: Wherein, F1 is the detection feature map, F2 is the reference feature map, Indicates difference by position.
[0107] In one example, in the insulation inspection system 100 for the heat dissipation module of the laptop computer, the classification result generation module 150 is further used to: use the classifier to process the classification feature vector using the following formula to obtain the classification result, wherein the formula is: softmax{(M c ,B c )|X}, where M c is the weight matrix, B c is the bias vector, and X is the classification feature vector.
[0108] In one example, in the insulation inspection system 100 of the heat dissipation module of the above-mentioned laptop computer, the insulation inspection system 100 of the heat dissipation module of the laptop computer also includes a training module for training the twin network and the classifier; wherein the training module includes: a training data acquisition unit for acquiring training data, the training data including a training detection image, a training reference image, and a true value of whether the assembly pattern of the insulating component in the training detection image meets the predetermined standard; a training encoding unit for passing the training detection image and the training reference image through the twin network to obtain a training detection feature map and a training reference feature map; a training difference unit for calculating the training detection feature map and the training reference feature map A training differential feature map between two images; a classification loss function value acquisition unit, used to pass the training differential feature map through a classifier to obtain a classification loss function value; a elimination suppression loss function value calculation unit, used to calculate the classification mode elimination suppression loss function value of a first feature vector expanded by the training detection feature map and a second feature vector expanded by the training reference feature map, wherein the classification mode elimination suppression loss function value is related to the square of the second norm of the differential feature vector between the first feature vector and the second feature vector; and a twin network and classifier training unit, used to train the twin network and the classifier with the weighted sum of the classification mode elimination suppression loss function value and the classification loss function value as the loss function value.
[0109] In one example, in the insulation inspection system 100 of the heat dissipation module of the laptop computer, the elimination suppression loss function value calculation unit is further used to: calculate the classification mode elimination suppression loss function value of the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map by the following formula;
[0110] Wherein, the formula is:
[0111]
[0112] Wherein V1 and V2 represent the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map, respectively, M1 and M2 are the weight matrices of the classifier for the first feature vector and the second feature vector, respectively, and represents the square of the vector's two-norm, ||·|| F represents the F-norm of the matrix, exp(·) represents the exponential operation of the matrix and the exponential operation of the vector, the exponential operation of the matrix represents the natural exponential function value raised to the power of the eigenvalues of each position in the matrix, and the exponential operation of the vector represents the natural exponential function value raised to the power of the eigenvalues of each position in the vector.
[0113] Here, those skilled in the art will appreciate that the specific functions and operations of the various units and modules in the above-mentioned insulation inspection system 100 for the heat dissipation module of the laptop computer have been described in the above reference. Figures 1 to 6 The insulation inspection method of the heat dissipation module of the notebook computer has been described in detail, and therefore, its repeated description will be omitted.
[0114] As described above, the insulation inspection system 100 of the heat dissipation module of the laptop computer according to the embodiment of the present application can be implemented in various wireless terminals, such as a server of the heat dissipation module of the laptop computer. In one example, the insulation inspection system 100 of the heat dissipation module of the laptop computer according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the insulation inspection system 100 of the heat dissipation module of the laptop computer can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the insulation inspection system 100 of the heat dissipation module of the laptop computer can also be one of the many hardware modules of the wireless terminal.
[0115] Alternatively, in another example, the insulation inspection system 100 of the heat dissipation module of the laptop computer and the wireless terminal may also be separate devices, and the insulation inspection system 100 of the heat dissipation module of the laptop computer may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0116] Exemplary Electronic Devices
[0117] Below, reference Figure 8 To describe an electronic device according to an embodiment of the present application.
[0118] Figure 8 A block diagram of an electronic device according to an embodiment of the present application is illustrated.
[0119] like Figure 8 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .
[0120] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0121] The memory 12 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the insulation inspection of the heat dissipation module of the laptop computer of each embodiment of the present application described above and / or other desired functions. Various contents such as detection images and reference images may also be stored in the computer-readable storage medium.
[0122] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0123] The input device 13 may include, for example, a keyboard, a mouse, etc.
[0124] The output device 14 can output various information to the outside, including classification results, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0125] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0126] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0127] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0128] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0129] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for testing the insulation performance of a heat dissipation module of a notebook computer, characterized in that: include: Acquire a detection image and a reference image, wherein the reference image is an image in which the insulating component is assembled between the chip and the heat dissipation module in a standard manner; Passing the detection image and the reference image through a trained twin network to obtain a detection feature map and a reference feature map, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure; Calculating a differential feature map between the detection feature map and a reference feature map; Expanding the differential feature map along the row vector or the column vector to obtain a classification feature vector; and Passing the classification feature vector through a trained classifier to obtain a classification result, wherein the classification result is used to indicate whether the assembly pattern of the insulation component in the detection image meets a predetermined standard; The method further includes training the twin network and the classifier; Wherein, the training of the twin network and the classifier includes: Acquire training data, wherein the training data includes a training detection image, a training reference image, and a true value of whether an assembly pattern of an insulating component in the training detection image meets a predetermined standard; Passing the training detection image and the training reference image through the twin network to obtain a training detection feature map and a training reference feature map; Calculating a training differential feature map between the training detection feature map and the training reference feature map; Passing the training differential feature map through a classifier to obtain a classification loss function value; Calculating a classification mode elimination suppression loss function value of a first feature vector expanded by the training detection feature map and a second feature vector expanded by the training reference feature map, wherein the classification mode elimination suppression loss function value is related to the square of the second norm of the differential feature vector between the first feature vector and the second feature vector; and The twin network and the classifier are trained using the weighted sum of the classification mode elimination suppression loss function value and the classification loss function value as the loss function value; The step of calculating the classification mode elimination suppression loss function value of the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map comprises: The classification mode elimination suppression loss function value of the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map is calculated by the following formula; Wherein, the formula is: Wherein V1 and V2 represent the first feature vector expanded by the training detection feature map and the second feature vector expanded by the training reference feature map, respectively, M1 and M2 are the weight matrices of the classifier for the first feature vector and the second feature vector, respectively, and represents the square of the vector's two-norm, ||·|| F represents the F-norm of the matrix, exp(·) represents the exponential operation of the matrix and the exponential operation of the vector, the exponential operation of the matrix represents the natural exponential function value raised to the power of the eigenvalues of each position in the matrix, and the exponential operation of the vector represents the natural exponential function value raised to the power of the eigenvalues of each position in the vector.
2. The insulation testing method of the heat dissipation module of a notebook computer according to claim 1, characterized in that: The step of obtaining a detection feature map and a reference feature map by passing the detection image and the reference image through a trained twin network includes: Using the convolutional coding part of the first convolutional neural network model of the twin network to perform deep convolutional coding on the detection image to obtain a detection convolutional feature map; Inputting the detection convolutional feature map into the spatial attention part of the first convolutional neural network model to obtain a first spatial attention map; Passing the first spatial attention map through a Softmax activation function to obtain a first spatial attention feature map; and Calculate the point-by-point multiplication of the first spatial attention feature map and the detection convolution feature map to obtain the detection feature map.
3. The insulation testing method of the heat dissipation module of a notebook computer according to claim 2, characterized in that: The step of obtaining a detection feature map and a reference feature map by passing the detection image and the reference image through a trained twin network includes: Using the convolutional coding part of the second convolutional neural network model of the twin network to perform deep convolutional coding on the reference image to obtain a reference convolutional feature map; Inputting the reference convolutional feature map into the spatial attention part of the second convolutional neural network model to obtain a second spatial attention map; Passing the second spatial attention map through a Softmax activation function to obtain a second spatial attention feature map; and Calculate the point-by-point multiplication of the second spatial attention feature map and the reference convolution feature map to obtain the reference feature map.
4. The insulation testing method of the heat dissipation module of a notebook computer according to claim 3, characterized in that: The calculating of the differential feature map between the detection feature map and the reference feature map comprises: calculating the position difference between the detection feature map and the reference feature map by the following formula to obtain the differential feature map; Wherein, the formula is: Wherein, F1 is the detection feature map, F2 is the reference feature map, Indicates difference by position.
5. The insulation testing method of the heat dissipation module of a notebook computer according to claim 4, characterized in that: The step of passing the classification feature vector through a trained classifier to obtain a classification result includes: The classification feature vector is processed by the classifier using the following formula to obtain the classification result, wherein the formula is: softmax{(M c ,B c )|X}, where M c is the weight matrix, B c is the bias vector, and X is the classification feature vector.
6. A system for testing the insulation of a heat dissipation module of a laptop computer according to the method for testing the insulation of a heat dissipation module of a laptop computer according to any one of claims 1 to 5, characterized in that: include: An image acquisition module, used to acquire a detection image and a reference image, wherein the reference image is an image in which the insulating component is standardly assembled between the chip and the heat dissipation module; An encoding module, used for obtaining a detection feature map and a reference feature map by passing the detection image and the reference image through a trained twin network, wherein the twin network includes a first convolutional neural network model and a second convolutional neural network model having the same network structure; A difference calculation module, used for calculating a difference feature map between the detection feature map and the reference feature map; An expansion module, used for expanding the differential feature map along the row vector or the column vector to obtain a classification feature vector; and The classification result generating module is used to pass the classification feature vector through the trained classifier to obtain the classification result, and the classification result is used to indicate whether the assembly pattern of the insulation component in the detection image meets the predetermined standard.
7. The insulation inspection system for the heat dissipation module of a notebook computer according to claim 6, characterized in that: The encoding module comprises: A first convolutional coding unit, configured to perform deep convolutional coding on the detection image using a convolutional coding part of the first convolutional neural network model of the twin network to obtain a detection convolutional feature map; A first spatial attention map acquisition unit, configured to input the detection convolution feature map into the spatial attention part of the first convolutional neural network model to obtain a first spatial attention map; A first spatial attention feature map acquisition unit, configured to obtain a first spatial attention feature map by passing the first spatial attention map through a Softmax activation function; and A detection feature map acquisition unit is used to calculate the first spatial attention feature map and the detection convolution feature map by multiplying them by position points to obtain the detection feature map.
8. The insulation inspection system for the heat dissipation module of a notebook computer according to claim 7, characterized in that: The encoding module comprises: A second convolutional coding unit, used to perform deep convolutional coding on the reference image using the convolutional coding part of the second convolutional neural network model of the twin network to obtain a reference convolutional feature map; A second spatial attention map acquisition unit, configured to input the reference convolution feature map into the spatial attention part of the second convolutional neural network model to obtain a second spatial attention map; A second spatial attention feature map acquisition unit, configured to obtain a second spatial attention feature map by passing the second spatial attention map through a Softmax activation function; and A reference feature map acquisition unit is used to calculate the point-by-point multiplication of the second spatial attention feature map and the reference convolution feature map to obtain the reference feature map.
