Integrated circuit detection method and device and computer equipment

Through the image segmentation model and feature extraction technology, the target image distance of the integrated circuit is calculated, which solves the problem of low detection efficiency of integrated circuits and achieves fast and efficient tampering identification.

CN118608499APending Publication Date: 2024-09-06CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410775797.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The detection efficiency of integrated circuits in the existing technology is low, and it is difficult to effectively identify counterfeit and modified integrated circuits.

Method used

A method based on the image segmentation model is used to perform feature extraction and segmentation processing on the image to be detected through the backbone network and dilated convolutional network. The distance between the target images is calculated by combining pixel operation and feature extraction to determine the tamper detection result of the integrated circuit.

Benefits of technology

It improves the efficiency and accuracy of integrated circuit detection, can quickly and efficiently identify whether there is tampering, and solves the problem of low efficiency of traditional manual detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608499A
    Figure CN118608499A
Patent Text Reader

Abstract

The invention relates to an integrated circuit detection method and device and computer equipment. The method comprises the steps of performing image segmentation processing on each to-be-detected image based on an image segmentation model to obtain a segmented image corresponding to each to-be-detected image; the image segmentation efficiency is improved; wherein each to-be-detected image is a to-be-detected image containing an internal mark of the to-be-detected integrated circuit and a to-be-detected image containing an external mark of the to-be-detected integrated circuit, and each segmented image is a segmented image containing an internal mark and a segmented image containing an external mark; performing pixel operation on each to-be-detected image and the segmented image corresponding to the to-be-detected image to obtain a target image corresponding to each to-be-detected image; and determining a tampering detection result of the to-be-detected integrated circuit according to the distance between the target images. Therefore, the tampering detection result of the to-be-detected integrated circuit can be efficiently determined, and the detection efficiency of integrated circuit detection is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an integrated circuit detection method, device and computer equipment. Background Art

[0002] Integrated circuits, as the smallest building block of electronic communication systems, are the basis for realizing the basic functions, performance and reliability of electronic products. However, some integrated circuits are deliberately counterfeited and modified. For example, low-quality chips or obsolete chips with similar functional parameters are repackaged, and the appearance is similar to the original integrated circuit products, but the internal functions and performance are significantly different.

[0003] In the conventional technology, a manual visual inspection is usually used to detect whether there are counterfeit and modified integrated circuits. This detection method of using human experience to detect whether there are counterfeit and modified integrated circuits has the problem of low detection efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide an integrated circuit detection method, device and computer equipment to address the above technical problems, which can improve the detection efficiency of integrated circuit detection.

[0005] In a first aspect, the present application provides an integrated circuit detection method, the method comprising:

[0006] Based on the image segmentation model, image segmentation processing is performed on each image to be detected to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark;

[0007] Perform pixel operations on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected;

[0008] The tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image.

[0009] In one of the embodiments, the image segmentation model includes a backbone network and a dilated convolutional network;

[0010] Correspondingly, the image segmentation model is used to perform image segmentation processing on each image to be detected to obtain a segmented image corresponding to each image to be detected, including:

[0011] Input each image to be detected into the backbone network respectively to obtain the first feature map corresponding to each image to be detected;

[0012] Input each first feature map into the dilated convolutional network respectively to obtain a second feature map corresponding to each first feature map;

[0013] Performing splicing processing on the first feature map and the second feature map corresponding to each image to be detected to obtain a spliced ​​feature map corresponding to each image to be detected;

[0014] Up-sampling operations are performed on each spliced ​​feature map to obtain a segmented image corresponding to each image to be detected.

[0015] In one embodiment, the pixel operation is performed on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected, including

[0016] For each image to be detected, based on the segmentation threshold, the image to be detected is subjected to threshold segmentation processing to obtain a binary image corresponding to the image to be detected;

[0017] Pixel operations are performed on the image to be detected and the binary image corresponding to the image to be detected to obtain a target image corresponding to the image to be detected.

[0018] In one embodiment, determining the tampering detection result of the integrated circuit to be detected according to the distance between each target image includes:

[0019] According to the pixel values ​​of the pixels in each target image, feature extraction is performed on each target image to obtain a feature vector of each target image;

[0020] Determine the distance between each target image according to the feature vector of each target image;

[0021] The tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image.

[0022] In one embodiment, extracting features from each target image according to the pixel values ​​of the pixels in each target image to obtain a feature vector of each target image includes:

[0023] Determine the pixel pairs in each target image and the rotation angles corresponding to each target image according to the pixel values ​​of the pixel points in each target image;

[0024] According to the target pixel points in each target image and the rotation angle corresponding to each target image, feature extraction is performed on each target image to obtain a feature vector of each target image.

[0025] In one embodiment, determining the pixel pairs in each target image according to the pixel values ​​of the pixel points in each target image includes:

[0026] For each pixel point in each target image, with the pixel point as the center, determine a candidate pixel point within a first preset range corresponding to the pixel point;

[0027] If there are a first preset number of candidate pixel points whose pixel values ​​are all smaller than or greater than the pixel value of the pixel point, a second preset number of pixel point pairs are selected within a second preset range of the pixel point.

[0028] In one embodiment, extracting features from each target image based on target pixels in each target image and the rotation angle corresponding to each target image to obtain a feature vector of each target image includes:

[0029] For each target image, determining the pixel value of a pixel point in each pixel point pair after each pixel point pair in the target image is rotated by the rotation angle;

[0030] Determine the value corresponding to each pixel pair according to the size relationship between the pixel values ​​of the pixels in each pixel pair;

[0031] According to the corresponding values ​​of each pixel pair, the feature vector of the target image is determined.

[0032] In one embodiment, determining the rotation angle corresponding to each target image according to the pixel value of the pixel point in each target image includes:

[0033] For each target image, determine a first value according to the sum of the products of the pixel value of each pixel in the target image and the horizontal coordinate of each pixel in the target image;

[0034] Determine a second value according to the sum of the products of the pixel value of each pixel point in the target image and the ordinate of each pixel point in the target image;

[0035] Determining a third value according to the sum of pixel values ​​of the pixel points in the target image;

[0036] A rotation angle corresponding to the target image is determined according to the first value, the second value, and the third value.

[0037] In a second aspect, the present application further provides an integrated circuit detection device, the device comprising:

[0038] A segmentation module is used to perform image segmentation processing on each image to be detected based on the image segmentation model to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark;

[0039] A calculation module, used for performing pixel calculation on each image to be detected and the segmented image corresponding to the image to be detected, so as to obtain a target image corresponding to each image to be detected;

[0040] The determination module is used to determine the tampering detection result of the integrated circuit to be detected according to the distance between each target image.

[0041] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0042] Based on the image segmentation model, image segmentation processing is performed on each image to be detected to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark;

[0043] Perform pixel operations on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected;

[0044] The tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image.

[0045] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0046] Based on the image segmentation model, image segmentation processing is performed on each image to be detected to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark;

[0047] Perform pixel operations on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected;

[0048] The tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image.

[0049] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, which implements the following steps when executed by a processor:

[0050] Based on the image segmentation model, image segmentation processing is performed on each image to be detected to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark;

[0051] Perform pixel operations on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected;

[0052] The tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image.

[0053] The above-mentioned integrated circuit detection method, device and computer equipment, based on the image segmentation model, respectively perform image segmentation processing on each image to be detected to obtain a segmented image corresponding to each image to be detected; improve the efficiency of image segmentation; wherein each image to be detected is an image to be detected containing the internal mark of the integrated circuit to be detected and an image to be detected containing the external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark; then pixel operations are performed on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected; and according to the distance between each target image, the tampering detection result of the integrated circuit to be detected is determined. In this way, the tampering detection result of the integrated circuit to be detected can be efficiently determined, thereby improving the detection efficiency of integrated circuit detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 is a schematic flow chart of an integrated circuit detection method in one embodiment;

[0055] Figure 2 FIG. 1 is a schematic diagram showing a comparison between a dilated convolution and a normal convolution in one embodiment;

[0056] Figure 3 A schematic diagram of a process for obtaining segmented images corresponding to each image to be detected in one embodiment;

[0057] Figure 4 is a schematic diagram of a process for obtaining a target image in one embodiment;

[0058] Figure 5 A schematic diagram of a process for determining a tampering detection result of an integrated circuit to be detected in one embodiment;

[0059] Figure 6 A schematic diagram of a process for obtaining a feature vector of each target image in one embodiment;

[0060] Figure 7A schematic diagram of a process for determining pixel pairs in each target image in one embodiment;

[0061] Figure 8 A schematic diagram of a process of selecting feature points in an embodiment;

[0062] Fig. 9 A schematic diagram of a process of obtaining a feature vector of a target image in one embodiment;

[0063] Fig.10 A schematic diagram of a process for determining a rotation angle corresponding to each target image in one embodiment;

[0064] Fig.11 FIG. 4 is a schematic diagram of a method for detecting an integrated circuit in an embodiment.

[0065] Fig.12 is a structural block diagram of an integrated circuit detection device in one embodiment;

[0066] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0068] The integrated circuit detection method provided in the embodiment of the present application can be applied to the detection application scenario of whether the integrated circuit has been tampered with. The method can be executed by a server or by a terminal with a certain computing power.

[0069] The server may be implemented as an independent server or a server cluster composed of multiple servers. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.

[0070] In one embodiment, Figure 1 As shown, a method for detecting an integrated circuit is provided, and the method is applied to a server as an example for explanation, and includes the following steps:

[0071] S101, performing image segmentation processing on each to-be-detected image based on an image segmentation model to obtain a segmented image corresponding to each to-be-detected image.

[0072] Each of the images to be detected includes an image to be detected that includes an internal mark of the integrated circuit to be detected and an image to be detected that includes an external mark of the integrated circuit to be detected, wherein the internal mark and the external mark may be a trademark or logo of the integrated circuit. Each of the segmented images includes a segmented image that includes an internal mark and a segmented image that includes an external mark.

[0073] Exemplarily, each image to be detected can be input into an image segmentation model, and the image segmentation model is used to perform image segmentation processing on each image to be detected, so as to obtain a segmented image corresponding to each image to be detected. Wherein, the image segmentation model can be a neural network model for semantic image segmentation, for example, it can be an improved DeepLabV3+ model. The segmented image corresponding to each image to be detected can be understood as segmenting the area corresponding to the internal mark or external mark in the image to be detected, which can eliminate the adverse effects of the background area comparison on the algorithm, and can also reduce the feature extraction calculation amount, which is convenient for subsequent comparison of the similarity of the internal mark and the external mark.

[0074] S102, performing pixel operations on each image to be detected and the segmented image corresponding to the image to be detected, to obtain a target image corresponding to each image to be detected.

[0075] Exemplarily, pixel operations can be performed on each image to be detected and the segmented image corresponding to the image to be detected to achieve fusion of each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected. Among them, pixel operations can perform various numerical calculations and operations on each image to be detected and the segmented image corresponding to the image to be detected, such as addition, subtraction, multiplication, division, logical operations, average value calculation, threshold processing, etc. These operations can be used for image processing tasks such as image enhancement, filtering, image fusion, feature extraction, etc. The target image corresponding to each image to be detected can be understood as an image obtained by segmenting the mark area in each image to be detected.

[0076] S103, determining a tampering detection result of the integrated circuit to be detected according to the distance between each target image.

[0077] For example, the similarity between the target images can be calculated to obtain the distance between the target images, and then the tampering detection result of the integrated circuit to be detected can be determined according to the distance between the target images. The tampering result can be tampered or not tampered.

[0078] The above integrated circuit detection method, based on the image segmentation model, performs image segmentation processing on each image to be detected, and obtains the segmented image corresponding to each image to be detected; the efficiency of image segmentation is improved; wherein each image to be detected is an image to be detected containing the internal mark of the integrated circuit to be detected and an image to be detected containing the external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark; then pixel operations are performed on each image to be detected and the segmented image corresponding to the image to be detected, and the target image corresponding to each image to be detected is obtained; and the tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image. In this way, the tampering detection result of the integrated circuit to be detected can be efficiently determined, thereby improving the detection efficiency of integrated circuit detection.

[0079] In some optional implementations, the image segmentation model can be an improved DeepLabV3+ model, which can specifically include a backbone network and a dilated convolutional network. Exemplarily, a lightweight mobile network V2, namely MobileNetV2, can be used as the backbone network of the image segmentation model. MobileNetV2 focuses on efficient feature extraction in its design, and can effectively capture important information in images, thereby achieving good performance in computer vision tasks.

[0080] The dilated convolutional network introduces a hyperparameter called dilation rate, which is used to describe the spacing between the data actually involved in the calculation on the dilated convolution kernel. Take 3×3 convolution as an example. Figure 2 As shown in the figure, the difference between dilated convolution and ordinary convolution is shown. The upper area is ordinary convolution, and the receptive field after convolution is 3; the lower area is dilated convolution network (assuming the expansion rate is 2), and the receptive field after convolution is 5. The dilated convolution network can increase the receptive field without changing the size of the image output feature map, and capture more global and higher semantic features.

[0081] On this basis, see Figure 3 , Figure 3 A schematic diagram of a process for obtaining a segmented image corresponding to each image to be detected is provided, which specifically includes the following steps:

[0082] S301, input each image to be detected into the backbone network respectively to obtain a first feature map corresponding to each image to be detected.

[0083] Exemplarily, each image to be detected is input into the backbone network respectively, and the backbone network is used to extract features of each image to be detected, so as to obtain a first feature map corresponding to each image to be detected.

[0084] S302, input each first feature map into the hole convolution network respectively to obtain a second feature map corresponding to each first feature map.

[0085] Exemplarily, each first feature map is input into a dilated convolutional network, and the dilated convolutional network is used to perform feature extraction on each first feature map to obtain a second feature map corresponding to each first feature map.

[0086] S303, performing splicing processing on the first feature map and the second feature map corresponding to each image to be detected to obtain a spliced ​​feature map corresponding to each image to be detected.

[0087] Exemplarily, for each image to be detected, the first feature map corresponding to the image to be detected can be upsampled 4 times through a convolution layer, and the second feature map corresponding to the image to be detected can be convolved through a convolution layer, and then the feature map obtained by upsampling the first feature map by 4 times through a convolution layer and the feature map obtained by convolution of the second feature map through a convolution layer are spliced ​​to obtain a spliced ​​feature map corresponding to the image to be detected.

[0088] S304, performing upsampling operations on each spliced ​​feature map to obtain a segmented image corresponding to each image to be detected.

[0089] Exemplarily, each spliced ​​feature map is upsampled respectively. For example, each spliced ​​feature map can be input into a convolutional network and upsampled by 4 times to obtain a segmented image corresponding to each image to be detected.

[0090] Among them, the convolution kernel of the convolution layer in the embodiment of the present application can be a 1×1 convolution kernel.

[0091] In an embodiment of the present application, the image segmentation model includes a backbone network and a dilated convolutional network. By performing feature extraction on the image to be detected through the backbone network and the dilated convolutional network, richer image features can be extracted, thereby improving the accuracy of subsequent integrated circuit tampering detection results.

[0092] In some optional implementations, see Figure 4 , Figure 4 A schematic diagram of a process for obtaining a target image is provided, which specifically includes the following steps:

[0093] S401 , for each image to be detected, based on a segmentation threshold, performing threshold segmentation processing on the image to be detected to obtain a binary image corresponding to the image to be detected.

[0094] For example, the key to the threshold segmentation method is to select a threshold that can clearly distinguish the logo area from the background. When determining the segmentation threshold, you can first select a threshold T (usually the mean of the image matrix) as the initial segmentation threshold. Then, use the initial segmentation threshold T to segment the image to be detected, generating two groups of pixels:

[0095]

[0096] Among them, I(X,Y) is the pixel value of the pixel point in the image to be detected.

[0097] Next, calculate the average grayscale values ​​M1 and M2 of the pixels in G1 and G2 respectively, and calculate the new T value:

[0098]

[0099] Finally, the above steps are repeated until the difference between adjacent T values ​​is less than the predetermined ∆T value, and the T value is used as the final segmentation threshold.

[0100] For each image to be detected, the image to be detected can be subjected to threshold segmentation processing based on the segmentation threshold to obtain a binary image corresponding to the image to be detected. For example, the pixel value of each pixel in each image to be detected is compared with the segmentation threshold. If the pixel value of the pixel is greater than the segmentation threshold, the pixel is marked as "1"; if the pixel value of the pixel is less than or equal to the segmentation threshold, the pixel is marked as "0" to obtain a binary image. Among them, the area marked as "1" can be understood as the area corresponding to the internal mark or external mark of the integrated circuit.

[0101] S402, performing pixel operation on the image to be detected and the binary image corresponding to the image to be detected to obtain a target image corresponding to the image to be detected.

[0102] Exemplarily, pixel operations may be further performed on the image to be detected and the binary image corresponding to the image to be detected, such as addition, subtraction, multiplication, division, logical operation, average value calculation, threshold processing, etc., to obtain a target image corresponding to the image to be detected. The target image may be understood as a region of the image to be detected that contains an internal mark or an external mark of an integrated circuit.

[0103] In the embodiment of the present application, by acquiring a target image corresponding to each image to be detected, the internal mark and the external mark of the integrated circuit are subsequently compared based on the target image to improve the efficiency and accuracy of image processing.

[0104] In some optional implementations, see Figure 5 , Figure 5 A schematic diagram of a process for determining a tamper detection result of an integrated circuit to be detected is provided, which specifically includes the following steps:

[0105] Exemplarily, the embodiment of the present application uses the Oriented FAST and Rotated BRIEF (ORB) algorithm to extract features from the target image. The ORB algorithm has certain rotation and scale invariance, which can improve the efficiency of image feature point detection. Among them, the OFAST algorithm is a high-speed feature detection algorithm used to find key points in the target image. Its core principle is to determine whether it is a corner point (feature point) by comparing the brightness of the pixel. The OFAST algorithm solves the shortcoming that the FAST corner point is not directional by adding a direction module to the FAST corner point. The RBRIEF feature description is improved by adding a rotation factor on the basis of the BRIEF feature description. BRIEF is an algorithm for feature description, which generates a binary descriptor by comparing the brightness of pixel pairs. Assuming that n pixel pairs are selected and these n pixel pairs are compared, a binary string can be obtained, which is the BRIEF feature descriptor. The specific implementation process is as follows:

[0106] S501, extracting features of each target image according to the pixel values ​​of the pixels in each target image to obtain a feature vector of each target image.

[0107] Specifically, feature extraction may be performed on each target image according to the pixel values ​​of the pixels in each target image to screen out feature points, and then a feature vector of each target image may be obtained according to the feature points.

[0108] S502, determining the distance between each target image according to the feature vector of each target image.

[0109] Exemplarily, the feature vectors of the target images may be compared to determine the distance between the target images, such as determining the Hamming distance between the target images; and then the similarity between the target images may be determined based on the distance between the target images.

[0110] S503: Determine a tampering detection result of the integrated circuit to be detected according to the distances between the target images.

[0111] Exemplarily, the tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image. For example, a distance threshold can be pre-set, and the tampering detection result of the integrated circuit to be detected is determined according to the size relationship between the distance between each target image and the distance threshold. For example, if the distance between each target image is greater than or equal to the distance threshold, the tampering detection result of the integrated circuit to be detected is determined to be tampered; if the distance between each target image is less than the distance threshold, the tampering detection result of the integrated circuit to be detected is determined to be not tampered. Assume that the two feature vectors and the distance are shown in Table 1:

[0112] Table 1:

[0113]

[0114] Among them, the Hamming distance is the sum of all distance values. If the Hamming distance is greater than or equal to the distance threshold, the tampering detection result of the integrated circuit to be detected is determined to be tampered with; if the Hamming distance is less than the distance threshold, the tampering detection result of the integrated circuit to be detected is determined to be not tampered with.

[0115] In the embodiment of the present application, the tampering detection result of the integrated circuit to be detected can be determined according to the distance between each target image, so that it can be determined more quickly whether the integrated circuit to be detected has been tampered with.

[0116] In some optional implementations, the target image corresponding to the internal mark of the integrated circuit and the target image of the external mark may be rotated. In order to achieve comparison of the target image when the target image is rotated, it is necessary to determine the rotation angle of the target image.

[0117] Based on this, see Figure 6 , Figure 6 A schematic diagram of a process for obtaining a feature vector of each target image is provided, which specifically includes the following steps:

[0118] S601, determining pixel pairs in each target image and corresponding rotation angles of each target image according to pixel values ​​of each target image.

[0119] Exemplarily, the neighborhood of each feature point in the target image can be first determined, and then n pixel pairs (x, y) can be selected in the neighborhood of the target feature point according to a set rule to obtain a 2×n matrix S; for example, the set rule can be a random selection rule, etc.

[0120]

[0121] Each pixel pair includes two pixels. The pixel pairs in each target image and the corresponding rotation angles of each target image can also be determined according to the pixel values ​​of the pixels in each target image.

[0122] S602, extracting features from each target image according to target pixels in each target image and the rotation angle corresponding to each target image, to obtain a feature vector of each target image.

[0123] Exemplarily, feature extraction is performed on each target image based on target pixels in each target image and the corresponding rotation angle of each target image, and the extracted features are integrated with the rotation angle, thereby obtaining a feature vector of each target image that can reflect the rotation angle feature.

[0124] In an embodiment of the present application, when the target image is rotated, the rotation angle corresponding to the target image is first determined, and when performing feature extraction, the extracted features can reflect the rotation angle, thereby facilitating more accurate comparison results when comparing the target images.

[0125] In some optional implementations, see Figure 7 , Figure 7 A schematic diagram of a process for determining pixel pairs in each target image is provided, which specifically includes the following steps:

[0126] S701 , for each pixel point in each target image, with the pixel point as the center, determine candidate pixel points within a first preset range corresponding to the pixel point.

[0127] For example, the first preset range can be set according to actual conditions, for example, it can be an arc with the pixel point as the center and a radius of the set value. Then, for each pixel point in each target image, the pixel points covered by the arc with a radius of the set value can be determined with any pixel point as the center, and the pixel points covered by the arc can be used as candidate pixel points.

[0128] For example, see Figure 8 , Figure 8 It shows that the arc with a radius of 3 and taking the pixel point p as the center covers the pixel points 1-16, and the pixel points 1-16 are taken as candidate pixel points.

[0129] S702: If there are a first preset number of candidate pixels whose pixel values ​​are all smaller than or greater than the pixel value of the pixel, then a second preset number of pixel pairs are selected within a second preset range of the pixel.

[0130] Exemplarily, the first preset number can be set according to the first preset range. For example, if the first preset range is Figure 8 The arc shown in FIG. 1 can compare the size relationship between the pixel values ​​of pixel point 1, pixel point 9, pixel point 5 and pixel point 13 and the pixel value of pixel point p. In this example, the first preset number can be set to 3, that is, if there are 3 candidate pixel points whose pixel values ​​are all smaller than or greater than the pixel value of the pixel point, the pixel point p is taken as a feature point.

[0131] Further, within the second preset range of the pixel point p, a second preset number of pixel pairs are selected. The second preset range can be understood as the neighborhood of the pixel point p, and the range of the neighborhood can be set based on actual conditions, for example, it can be a 3×3 range, or a 5×5 range; and then a second preset number of pixel pairs are randomly selected from the pixels within the second preset range. The second preset number can be set according to actual conditions or empirical data, and the second preset number is not specifically limited here.

[0132] In an embodiment of the present application, a method for determining pixel pairs is provided to facilitate subsequent feature extraction of a target image.

[0133] In some optional implementations, see Fig. 9 , Fig. 9 A schematic diagram of a process for obtaining a feature vector of a target image is provided, which specifically includes the following steps:

[0134] S901, for each target image, determining the pixel value of the pixel point in each pixel point pair after each pixel point pair in the target image is rotated by a rotation angle.

[0135] Exemplarily, for each target image, the pixel values ​​corresponding to the pixels in each pixel pair after the pixel pairs in the target image are rotated by a rotation angle are determined, so as to extract features of the target image based on the pixel values ​​of each pixel pair after rotation.

[0136] If the rotation angle is , then the rotation angle of the matrix S corresponding to each pixel pair in the target image is After getting , The details are as follows:

[0137]

[0138] in, is the rotation matrix.

[0139] S902, determining the value corresponding to each pixel pair according to the size relationship between the pixel values ​​of the pixels in each pixel pair.

[0140] Exemplarily, the value corresponding to each pixel pair can be determined according to the size relationship between the pixel values ​​of the pixels in each pixel pair. For example, if the pixel value of pixel x in the pixel pair is less than the pixel value of pixel y in the pixel pair, the value corresponding to the pixel pair is set to 1, and otherwise set to 0. The specific calculation process is as follows:

[0141]

[0142] in, are the values ​​corresponding to each pixel pair, I(p;x) is the pixel value of pixel x in a pixel pair within the second preset range, and I(p;y) is the pixel value of pixel y in a pixel pair within the second preset range.

[0143] S903, determining a feature vector of the target image according to the corresponding values ​​of each pair of pixel points.

[0144] For example, a binary string can be obtained according to the corresponding values ​​of each pixel point, and the obtained binary string can be used as the feature vector of the target image. The form of the binary string is as follows:

[0145]

[0146] in, is the rotation angle The feature vector of the target image is is the feature vector of the target image when the rotation angle is 0, n is the number of pixel pairs, (x i ,y i ) is the rotation angle of the i-th pixel pair The pixel coordinates after .

[0147] In an embodiment of the present application, a method for obtaining a feature vector of a target image is provided, which facilitates determining the similarity between target images according to the feature vector, and further facilitates quickly determining the tampering detection result of the integrated circuit to be detected.

[0148] In some optional implementations, see Fig.10 , Fig.10 A flowchart for determining the rotation angle corresponding to each target image is provided, which specifically includes the following steps:

[0149] S1001, for each target image, determine a first value according to the sum of the products of the pixel value of each pixel in the target image and the horizontal coordinate of each pixel in the target image.

[0150] Exemplarily, for each target image, the first value is determined according to the sum of the products of the pixel value I(x,y) of each pixel in the target image and the horizontal coordinate x of each pixel in the target image. Specifically, it can be determined by the following formula:

[0151] (1)

[0152] Among them, m 10 is the first value, and Q is the target image area.

[0153] S1002, determining a second value according to the sum of the product of the pixel value of each pixel point in the target image and the vertical coordinate of each pixel point in the target image.

[0154] Exemplarily, the second value may be determined according to the sum of the products of the pixel value I(x, y) of each pixel in the target image and the ordinate y of each pixel in the target image. Specifically, the second value may be determined by the following formula:

[0155] (2)

[0156] Among them, m 01 is the second value.

[0157] S1003: Determine a third value according to the sum of pixel values ​​of pixels in the target image.

[0158] Exemplarily, the third value may be determined according to the sum of the pixel values ​​of the pixels in the target image. Specifically, it may be determined by the following formula:

[0159] (3)

[0160] Among them, m 00 is the third value.

[0161] S1004: Determine a rotation angle corresponding to the target image according to the first value, the second value, and the third value.

[0162] Exemplarily, the centroid point C of the area where the target image is located can be determined according to the first data, the second value and the third value. The coordinates of point C are as follows:

[0163]

[0164] It should be noted that the rotation angle of the target image can be understood as the direction vector from the geometric center of the area where the target image is located to the centroid point C , the rotation angle corresponding to the target image for:

[0165]

[0166] In an embodiment of the present application, a method for determining a rotation angle corresponding to a target image is provided, which facilitates comparison of target images with a rotation angle to improve tamper detection results of an integrated circuit to be detected.

[0167] In some optional implementations, see Fig.11 , Fig.11 A schematic diagram of an integrated circuit detection method is provided. The present invention uses an improved DeepLabV3+ model to segment and extract the logo image of the integrated circuit to be detected. First, the DeepLabV3+ model is used to segment the original logo image and mark the logo area in the original image; then, the segmented image is binarized using a threshold segmentation method, and the pixels in the logo area are marked as 1 and the pixels in the background area are marked as 0; finally, the binary image and the original logo image are processed using a pixel operation method, and the logo area in the original image is extracted to obtain a target image. The target image includes an internal logo image and an external logo image of the integrated circuit to be detected.

[0168] Furthermore, the feature extraction of the target image is performed by the ORB method to obtain the feature vector of the internal logo image and the feature vector of the external logo image of the integrated circuit to be detected.

[0169] Finally, the two feature vectors are compared for similarity, and then it is determined based on the comparison whether the integrated circuit to be detected has been tampered with.

[0170] In the embodiment of the present application, the internal and external identification of the integrated circuit can be automatically detected and compared, which solves the problem of low detection efficiency and poor accuracy, and improves the template redundancy problem of the traditional image processing algorithm.

[0171] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0172] Based on the same inventive concept, the embodiment of the present application also provides an integrated circuit detection device for implementing the integrated circuit detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more integrated circuit detection device embodiments provided below can refer to the limitations of the integrated circuit detection method above, and will not be repeated here.

[0173] In one embodiment, Fig.12 As shown, an integrated circuit detection device is provided, comprising:

[0174] The segmentation module 10 is used to perform image segmentation processing on each image to be detected based on the image segmentation model to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark;

[0175] A calculation module 20 is used to perform pixel calculation on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected;

[0176] The determination module 30 is used to determine the tampering detection result of the integrated circuit to be detected according to the distance between each target image.

[0177] The above-mentioned integrated circuit detection device, based on the image segmentation model, performs image segmentation processing on each image to be detected, and obtains the segmented image corresponding to each image to be detected; the efficiency of image segmentation is improved; wherein each image to be detected is an image to be detected containing the internal mark of the integrated circuit to be detected and an image to be detected containing the external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark; then pixel operations are performed on each image to be detected and the segmented image corresponding to the image to be detected, and the target image corresponding to each image to be detected is obtained; and the tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image. In this way, the tampering detection result of the integrated circuit to be detected can be efficiently determined, thereby improving the detection efficiency of integrated circuit detection.

[0178] In some embodiments, the image segmentation model includes a backbone network and a dilated convolutional network; the segmentation module 10 is specifically used for:

[0179] Input each image to be detected into the backbone network respectively to obtain the first feature map corresponding to each image to be detected; input each first feature map into the hole convolution network respectively to obtain the second feature map corresponding to each first feature map; splice the first feature map and the second feature map corresponding to each image to be detected to obtain the spliced ​​feature map corresponding to each image to be detected; upsample each spliced ​​feature map respectively to obtain the segmented image corresponding to each image to be detected.

[0180] In some embodiments, the computing module 20 is specifically used for:

[0181] For each image to be detected, based on the segmentation threshold, threshold segmentation processing is performed on the image to be detected to obtain a binary image corresponding to the image to be detected; pixel operations are performed on the image to be detected and the binary image corresponding to the image to be detected to obtain a target image corresponding to the image to be detected.

[0182] In some embodiments, the determination module 30 specifically includes:

[0183] An extraction unit, used for performing feature extraction on each target image according to the pixel values ​​of the pixel points in each target image, to obtain a feature vector of each target image;

[0184] A first determining unit, used for determining the distance between each target image according to the feature vector of each target image;

[0185] The second determining unit is used to determine the tampering detection result of the integrated circuit to be detected according to the distance between each target image.

[0186] In some embodiments, the extraction unit specifically includes:

[0187] A determination subunit, used to determine the pixel pairs in each target image and the rotation angle corresponding to each target image according to the pixel values ​​of the pixel points in each target image;

[0188] The extraction subunit is used to extract features from each target image according to target pixels in each target image and the rotation angle corresponding to each target image, so as to obtain a feature vector of each target image.

[0189] In some embodiments, the determining subunit is specifically configured to:

[0190] For each pixel point in each target image, determine the candidate pixel points within a first preset range corresponding to the pixel point with the pixel point as the center; if there are a first preset number of candidate pixel points whose pixel values ​​are all less than or greater than the pixel value of the pixel point, then select a second preset number of pixel pairs within a second preset range of the pixel point.

[0191] In some embodiments, the extraction subunit is specifically used for:

[0192] For each target image, determine the pixel value of the pixel point in each pixel pair after each pixel pair in the target image is rotated by the rotation angle; determine the corresponding value of each pixel pair based on the size relationship between the pixel values ​​of the pixel points in each pixel pair; determine the feature vector of the target image based on the corresponding value of each pixel pair.

[0193] In some embodiments, the determining subunit is specifically configured to:

[0194] For each target image, a first value is determined based on the sum of the products of the pixel values ​​of each pixel in the target image and the horizontal coordinates of each pixel in the target image; a second value is determined based on the sum of the products of the pixel values ​​of each pixel in the target image and the vertical coordinates of each pixel in the target image; a third value is determined based on the sum of the pixel values ​​of the pixels in the target image; and a rotation angle corresponding to the target image is determined based on the first value, the second value and the third value.

[0195] Each module in the above integrated circuit detection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0196] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store image data of the integrated circuit to be detected. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an integrated circuit detection method is implemented.

[0197] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0198] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the integrated circuit detection method described in any of the above embodiments when executing the computer program.

[0199] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the integrated circuit detection method described in any of the above embodiments is implemented.

[0200] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the integrated circuit detection method described in any of the above embodiments is implemented.

[0201] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0202] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0203] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An integrated circuit detection method, characterized in that: The method comprises: Based on the image segmentation model, image segmentation processing is performed on each image to be detected to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark; Perform pixel operations on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected; The tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image.

2. The method according to claim 1, characterized in that The image segmentation model includes a backbone network and a hole convolution network; Correspondingly, the image segmentation model is used to perform image segmentation processing on each image to be detected to obtain a segmented image corresponding to each image to be detected, including: Input each image to be detected into the backbone network respectively to obtain the first feature map corresponding to each image to be detected; Input each first feature map into the dilated convolutional network respectively to obtain a second feature map corresponding to each first feature map; Performing splicing processing on the first feature map and the second feature map corresponding to each image to be detected to obtain a spliced ​​feature map corresponding to each image to be detected; Up-sampling operations are performed on each spliced ​​feature map to obtain a segmented image corresponding to each image to be detected.

3. The method according to claim 1, characterized in that The pixel operation is performed on each image to be detected and the segmented image corresponding to the image to be detected to obtain a target image corresponding to each image to be detected, including For each image to be detected, based on the segmentation threshold, the image to be detected is subjected to threshold segmentation processing to obtain a binary image corresponding to the image to be detected; Pixel operations are performed on the image to be detected and the binary image corresponding to the image to be detected to obtain a target image corresponding to the image to be detected.

4. The method according to claim 1, characterized in that The step of determining the tampering detection result of the integrated circuit to be detected according to the distance between the target images includes: According to the pixel values ​​of the pixels in each target image, feature extraction is performed on each target image to obtain a feature vector of each target image; Determine the distance between each target image according to the feature vector of each target image; The tampering detection result of the integrated circuit to be detected is determined according to the distance between each target image.

5. The method according to claim 4, characterized in that The method of extracting features of each target image according to the pixel values ​​of the pixels in each target image to obtain a feature vector of each target image includes: Determine the pixel pairs in each target image and the rotation angles corresponding to each target image according to the pixel values ​​of the pixel points in each target image; According to the target pixel points in each target image and the rotation angle corresponding to each target image, feature extraction is performed on each target image to obtain a feature vector of each target image.

6. The method according to claim 5, characterized in that Determining the pixel pairs in each target image according to the pixel values ​​of the pixel points in each target image includes: For each pixel point in each target image, with the pixel point as the center, determine a candidate pixel point within a first preset range corresponding to the pixel point; If there are a first preset number of candidate pixel points whose pixel values ​​are all smaller than or greater than the pixel value of the pixel point, a second preset number of pixel point pairs are selected within a second preset range of the pixel point.

7. The method according to claim 6, characterized in that The method of extracting features from each target image according to target pixels in each target image and the rotation angle corresponding to each target image to obtain a feature vector of each target image includes: For each target image, determining the pixel value of a pixel point in each pixel point pair after each pixel point pair in the target image is rotated by the rotation angle; Determine the value corresponding to each pixel pair according to the size relationship between the pixel values ​​of the pixels in each pixel pair; According to the corresponding values ​​of each pixel pair, the feature vector of the target image is determined.

8. The method according to claim 5, characterized in that According to the pixel values ​​of the pixels in each target image, the rotation angle corresponding to each target image is determined, including: For each target image, determine a first value according to the sum of the products of the pixel value of each pixel in the target image and the horizontal coordinate of each pixel in the target image; Determine a second value according to the sum of the products of the pixel value of each pixel point in the target image and the ordinate of each pixel point in the target image; Determining a third value according to the sum of pixel values ​​of the pixel points in the target image; A rotation angle corresponding to the target image is determined according to the first value, the second value, and the third value.

9. An integrated circuit detection device, characterized in that: The device comprises: A segmentation module is used to perform image segmentation processing on each image to be detected based on the image segmentation model to obtain a segmented image corresponding to each image to be detected; wherein each image to be detected is an image to be detected containing an internal mark of the integrated circuit to be detected and an image to be detected containing an external mark of the integrated circuit to be detected, and each segmented image is a segmented image containing the internal mark and a segmented image containing the external mark; A calculation module, used for performing pixel calculation on each image to be detected and the segmented image corresponding to the image to be detected, so as to obtain a target image corresponding to each image to be detected; The determination module is used to determine the tampering detection result of the integrated circuit to be detected according to the distance between each target image.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.