Anti-interference article identification method and device for X-ray security inspection underlying data

By constructing a mapping relationship between the data distribution of different security inspection equipment and converting the image of the item to be inspected to adapt to the standard data distribution, the identification challenges caused by equipment differences in X-ray security inspection equipment are solved, and the efficiency and accuracy of security inspection are improved.

CN118657918AActive Publication Date: 2024-09-17HUNAN SUKE INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411152151.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-09-17
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

In X-ray security inspection equipment, due to the significant differences in color matching, pixel resolution and geometric shape of the images generated by different models of equipment, the deep learning model faces challenges in identifying images with color differences, which is inefficient and the training process is complex and The final recognition accuracy improvement is limited.

Method used

By obtaining the data distribution of different security inspection equipment, the regression method is used to construct a mapping relationship, and the X-ray image of the item to be detected is converted into a target image that conforms to the standard data distribution. The target detection model trained with standard data is used for detection to avoid errors due to different types of equipment. Interference caused by image differences.

Benefits of technology

It improves the efficiency and accuracy of X-ray security inspection, avoids recognition interference caused by equipment differences, and improves the generalization ability of the model and the accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657918A
    Figure CN118657918A
Patent Text Reader

Abstract

The invention relates to an anti-interference article identification method and device for X-ray security inspection underlying data, and the method comprises the steps: selecting the underlying data of first security inspection equipment to build standard data distribution, and then building a mapping relation between the standard data distribution and the data distribution of second security inspection equipment; when the second security inspection equipment detects the related X-ray image of the to-be-detected article, the related X-ray image can be converted into the target X-ray image conforming to the standard data distribution according to the mapping relation, and then the target X-ray image can be detected by the target detection model trained by the standard data, so that interference caused by the difference of the X-ray images of different types of security inspection machines can be avoided, and the security inspection efficiency is improved. And the security check efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of X-ray security inspection, and in particular to a method and device for anti-interference object recognition of underlying data of X-ray security inspection. Background Art

[0002] In the field of X-ray security equipment, images generated by different devices vary significantly in color, pixel resolution, and geometry. These differences can cause deep learning-based models (which are primarily used to identify objects in X-ray images) to be treated as completely different entities even when there are only slight changes in key features such as color and shape, requiring the model to relearn and adapt to each change. Because deep learning models typically lack the generalization ability to handle such changes, they face challenges in recognizing images with color differences. This lack of generalization ability results in inefficiencies in the model learning process, a complex and time-consuming training process, and limited improvements in the final recognition accuracy. Summary of the invention

[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0004] The main purpose of the embodiments of the present disclosure is to provide an anti-interference object recognition method and device for X-ray security inspection underlying data, which can improve security inspection efficiency and accuracy.

[0005] A first aspect of an embodiment of the present application provides an anti-interference object recognition method based on X-ray security inspection underlying data, the anti-interference object recognition method based on X-ray security inspection underlying data comprising: Acquire a first data distribution of a first security inspection device and acquire a second data distribution of a second security inspection device; wherein the first data distribution is constructed by acquiring pixel values ​​in a first X-ray image of a standard part by the first security inspection device, and the second data distribution is constructed by acquiring pixel values ​​in a second X-ray image of the standard part by the second security inspection device, and the first security inspection device and the second security inspection device are different security inspection devices; A regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, and an X-ray image of the object to be inspected obtained by the second security inspection device is converted into a target X-ray image according to the mapping relationship; The target X-ray image is detected by a target detection model to obtain a detection result; wherein the target detection model is a detection model trained by the first X-ray image.

[0006] In some implementations, the using a regression method to construct a mapping relationship between the first data distribution and the second data distribution includes: Using a ridge regression method to construct a mapping relationship between the first data distribution and the second data distribution; Alternatively, a univariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution; Alternatively, a multivariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution.

[0007] In some embodiments, the second X-ray image includes a high-energy spectrum grayscale image, a low-energy spectrum grayscale image, and an equivalent atomic number grayscale image of the standard part; If a ridge regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the objective function of the ridge regression method includes: ; in, represents the regression coefficient of the ridge regression method, represents the square of the Euclidean norm, represents the ridge parameter, is the first data distribution, is the second data distribution; If a single variable linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the expression of the single variable linear regression method is: ; in, and represents the regression coefficient of the univariate linear regression method, represents the error term; If a multivariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the expression of the multivariate linear regression method is: ; in, , , and represents the regression coefficient of the multivariate linear regression method, represents the error term, Represents the data distribution corresponding to the pixel values ​​in the high-energy spectrum grayscale image, Represents the data distribution corresponding to the pixel values ​​in the low-energy spectrum grayscale image, Represents the data distribution corresponding to the pixel values ​​in the equivalent atomic number grayscale image.

[0008] In some embodiments, the first X-ray image includes a high-energy spectrum grayscale image, a low-energy spectrum grayscale image, and an equivalent atomic number grayscale image of the standard part; Before detecting the target X-ray image by the target detection model, the anti-interference object recognition method based on X-ray security inspection underlying data further includes: Build an initial detection model; The high-energy spectrum grayscale image, the low-energy spectrum grayscale image and the equivalent atomic number grayscale image are merged to obtain a feature image; According to the feature map, the initial detection model is trained using a preset target detection algorithm until a target detection model is trained.

[0009] In some embodiments, the fusion of the high energy spectrum grayscale image, the low energy spectrum grayscale image and the equivalent atomic number grayscale image comprises: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, represents the weight of the high-energy spectrum grayscale image, represents the weight of the low-energy spectrum grayscale image, represents the weight of the equivalent atomic number grayscale image, represents the Gaussian weighting function, represents the standard deviation of the Gaussian kernel, represents the fused feature map, Represent the horizontal and vertical coordinates of the pixel respectively.

[0010] In some embodiments, the fusion of the high energy spectrum grayscale image, the low energy spectrum grayscale image and the equivalent atomic number grayscale image comprises: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, represents the weight of the high-energy spectrum grayscale image, represents the weight of the low-energy spectrum grayscale image, represents the weight of the equivalent atomic number grayscale image, represents the fused feature map, Represent the horizontal and vertical axes respectively.

[0011] In some embodiments, the fusion of the high energy spectrum grayscale image, the low energy spectrum grayscale image and the equivalent atomic number grayscale image comprises: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, Represents the brightness weight of the high-energy spectrum grayscale image, Represents the brightness weight of the low-energy spectrum grayscale image, represents the brightness weight of the equivalent atomic number grayscale image, represents the brightness function, Represents the fused feature map.

[0012] A second aspect of the embodiment of the present application provides an anti-interference object recognition device based on X-ray security inspection underlying data, the anti-interference object recognition device based on X-ray security inspection underlying data includes: a data distribution acquisition unit, configured to acquire a first data distribution of a first security inspection device and a second data distribution of a second security inspection device; wherein the first data distribution is constructed by acquiring pixel values ​​in a first X-ray image of a standard part by the first security inspection device, and the second data distribution is constructed by acquiring pixel values ​​in a second X-ray image of the standard part by the second security inspection device, and the first security inspection device and the second security inspection device are different security inspection devices; An X-ray image conversion unit, configured to construct a mapping relationship between the first data distribution and the second data distribution by using a regression method, and convert the X-ray image of the object to be detected obtained by the second security inspection device into a target X-ray image according to the mapping relationship; A target detection unit is used to detect the target X-ray image through a target detection model to obtain a detection result; wherein the target detection model is a detection model trained by the first X-ray image.

[0013] A third aspect of an embodiment of the present application proposes an electronic device, comprising at least one controller and a memory for communicating with the controller; the memory stores instructions that can be executed by the at least one controller, and the instructions are executed by the at least one controller so that the at least one controller executes the anti-interference object identification method based on X-ray security inspection underlying data as described above.

[0014] A fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, the anti-interference object identification method based on X-ray security inspection underlying data as described above is implemented.

[0015] The present application proposes an anti-interference object recognition method based on X-ray security inspection underlying data, which selects the underlying data of the first security inspection device (i.e., the pixel value of the first X-ray image of the standard part taken by the security inspection device) to build a standard data distribution, and then constructs a mapping relationship between the standard data distribution and the data distribution of the second security inspection device. When the second security inspection device detects the relevant X-ray image of the object to be inspected, it can be converted into a target X-ray image that can conform to the standard data distribution according to the mapping relationship, and then can be detected by the target detection model trained by the standard data, which can avoid the interference caused by the difference in X-ray images of different models of security inspection machines and improve the security inspection efficiency and accuracy.

[0016] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] Figure 1 It is a flowchart of an anti-interference object identification method based on X-ray security inspection underlying data provided by an embodiment of the present application; Figure 2 It is a schematic diagram of the target detection model training process provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an anti-interference object recognition device based on X-ray security inspection underlying data provided by an embodiment of the present application; Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] 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.

[0020] First, a brief background: Over the past few decades, the demand for security inspections and preventive measures has increased. The traditional security inspection method uses X-ray imaging technology as a non-invasive detection method. However, traditional X-ray imaging technology often requires manual analysis and judgment, which limits its application in large-scale security inspection scenarios.

[0021] With the rapid development of deep learning and artificial intelligence technologies, researchers have begun to explore how to apply these technologies to X-ray image analysis and object recognition. By building a complex neural network model and using a large amount of training data for model training and optimization, it is possible to automatically identify the types of objects in X-ray images, quickly and accurately detect potential security threats, and improve security inspection efficiency and accuracy.

[0022] In the field of X-ray security equipment, the images generated by different devices vary significantly in color, pixel resolution, and geometry.

[0023] For example, the images generated by different models of security inspection machines A1, A2, A3, A4, and A5 differ in color, pixel resolution, and geometry. These differences may cause deep learning-based models to view images with only slight changes in key features such as color and shape as completely different entities, requiring the model to relearn and adapt to each change. Because deep learning models generally lack the generalization ability to handle such changes, they face challenges in recognizing images with color differences. This lack of generalization ability results in inefficiency in the model learning process, a complex and time-consuming training process, and limited improvement in the final recognition accuracy.

[0024] In order to solve the above defects, the present application embodiment proposes an anti-interference object recognition method based on X-ray security inspection underlying data, referring to Figure 1 , the method includes steps S110 to S130: Step S110, obtaining a first data distribution of a first security inspection device and obtaining a second data distribution of a second security inspection device; wherein the first data distribution is constructed by pixel values ​​in a first X-ray image of a standard part obtained by the first security inspection device, and the second data distribution is constructed by pixel values ​​in a second X-ray image of the standard part obtained by the second security inspection device, and the standard part is an item used to test the security inspection device.

[0025] Step S120: construct a mapping relationship between the first data distribution and the second data distribution using a regression method, and convert the X-ray image of the object to be inspected obtained by the second security inspection device into a target X-ray image according to the mapping relationship.

[0026] Step S130, detecting the target X-ray image through the target detection model to obtain a detection result; wherein the target detection model is a detection model trained by the first X-ray image.

[0027] In step S110, the first security inspection device and the second security inspection device may be different models of the same brand of security inspection devices, or different brands of security inspection devices. The security inspection device may be a security inspection machine, a gate machine, etc. It should also be noted that only two types of security inspection devices are shown here, and in actual applications, more security inspection devices may be applicable.

[0028] In step S110, taking the first security inspection device as a standard, considering obtaining the first data distribution of the first security inspection device, the process of generating the first data distribution of the first security inspection device includes: First, select standard parts. Standard parts are items used to test security equipment, and include items of different materials and thicknesses.

[0029] Secondly, the standard part passes through the first security inspection device, and the first security inspection device collects the first X-ray image of the standard part. The first X-ray image includes: high-energy spectrum grayscale image, low-energy spectrum grayscale image, and equivalent atomic number grayscale image. These three grayscale images are the basic images of X-ray imaging and will not be described in detail here.

[0030] Then, the pixel values ​​corresponding to a series of coordinates of the high-energy spectrum grayscale image, the low-energy spectrum grayscale image, and the equivalent atomic number grayscale image of the standard part are counted and recorded, and finally the first data distribution is constructed according to these pixel values.

[0031] It should be noted that the construction process of the second data distribution is similar to that of the first data distribution. The difference is that the second data distribution requires the same standard parts to pass through the second security inspection equipment and then use their corresponding images to generate the second data distribution. The generation process will not be repeated here.

[0032] In step S120, a regression method is used to construct a mapping relationship between the first data distribution and the second data distribution. If the second security inspection device is detecting the object to be detected and generates an X-ray image to be detected, this mapping relationship can be used to convert the X-ray image to be detected that originally belongs to the second data distribution into a target X-ray image that can conform to the first data distribution. The specific conversion process is detailed in the subsequent embodiments; it will not be described in detail here.

[0033] Finally, in step S130, a target detection model is selected, wherein the target detection model is related to the first security inspection device, that is, the target detection model is generated by the first X-ray image collected by the first security inspection device. Since step S120 converts the X-ray image to be detected that originally belongs to the second data distribution into a target X-ray image that can conform to the first data distribution, the target detection model can be used to detect the target X-ray image at this time, and the accuracy of the detection result is the same as the accuracy of the X-ray image collected by the first security inspection device. It should be noted that in the field, the security inspection machine detects the items, usually detecting the category, location and confidence of the items.

[0034] The embodiment of the present application proposes an anti-interference object identification method based on X-ray security inspection underlying data, which is to select the underlying data of one of the security inspection devices (i.e., composed of the pixel values ​​of the X-ray image of the standard part taken by the first security inspection device) to build a standard data distribution, and then build an association relationship between the standard data distribution and the data distribution of other security inspection devices (i.e., the second security inspection device). When other security inspection devices detect relevant X-ray images, they can be mapped according to the corresponding association relationship between their corresponding data distribution and the standard data distribution, and converted into an X-ray image that can conform to the standard data distribution, and then can be detected by the model trained by the standard data, which can avoid interference caused by differences in X-ray images of different models of security inspection machines and improve security inspection efficiency and accuracy.

[0035] In some embodiments of the present application, the first X-ray image acquired by the first security inspection device includes: a high-energy spectrum grayscale image, a low-energy spectrum grayscale image, and an equivalent atomic number grayscale image. Similarly, the second X-ray image also includes: a high-energy spectrum grayscale image, a low-energy spectrum grayscale image, and an equivalent atomic number grayscale image.

[0036] The step S120 of using a regression method to construct a mapping relationship between the first data distribution and the second data distribution includes: The ridge regression method is used to construct the mapping relationship between the first data distribution and the second data distribution.

[0037] Alternatively, a univariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution.

[0038] Alternatively, a multivariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution.

[0039] If the ridge regression method is used to construct the mapping relationship between the first data distribution and the second data distribution, the objective function of the ridge regression method includes: ; in, represents the regression coefficient of the ridge regression method, represents the square of the Euclidean norm, represents the ridge parameter, is the first data distribution, is the second data distribution.

[0040] The ridge regression method used in this embodiment is a supplement to the least squares regression, has high numerical stability, and can achieve high calculation accuracy.

[0041] If a single variable linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the expression of the single variable linear regression method is: ; in, and represents the regression coefficient of the univariate linear regression method, represents the error term.

[0042] This embodiment uses a single variable linear regression method. Since it only involves one independent variable, the calculation speed is very fast and the result can be obtained quickly, providing a basis for further complex analysis.

[0043] If a multivariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the expression of the multivariate linear regression method is: ; in, , , and represents the regression coefficient of the multivariate linear regression method, represents the error term, represents the data distribution corresponding to the pixel values ​​in the high-energy spectrum grayscale image in the second X-ray image, represents the data distribution corresponding to the pixel values ​​in the low-energy spectrum grayscale image in the second X-ray image, Represents the data distribution corresponding to the pixel values ​​in the equivalent atomic number grayscale image in the second X-ray image.

[0044] This embodiment uses multivariable linear regression. Compared with single variable linear regression, multivariable linear regression can better fit complex data.

[0045] In some embodiments of the present application, the first X-ray image includes a high-energy spectrum grayscale image, a low-energy spectrum grayscale image and an equivalent atomic number grayscale image of the standard part. Similarly, the second X-ray image includes a high-energy spectrum grayscale image, a low-energy spectrum grayscale image and an equivalent atomic number grayscale image of the standard part.

[0046] Reference Figure 2Before detecting the target X-ray image by the target detection model in step S130, the method further includes steps S141 to S143: Step S141: construct an initial detection model.

[0047] Step S142: Fusing the high-energy spectrum grayscale image, the low-energy spectrum grayscale image and the equivalent atomic number grayscale image to obtain a feature image.

[0048] Step S143: According to the feature map, the initial detection model is trained using a preset target detection algorithm until a target detection model is trained.

[0049] The initial detection model can be a YOLO model, and the high-energy spectrum grayscale image, low-energy spectrum grayscale image, and equivalent atomic number grayscale image of the first X-ray image are used as training data, and then annotated, such as annotating categories, positions, etc. When training the model, it is necessary to fuse the high-energy spectrum grayscale image, the low-energy spectrum grayscale image, and the equivalent atomic number grayscale image, and then train the initial detection model. The target detection algorithm used here can be the YOLO9 algorithm. It is worth noting that data preprocessing, model training, and detection model accuracy are all common knowledge of those skilled in the art, and will not be elaborated here.

[0050] In some embodiments of the present application, step S142 includes the following three methods: First way: The high-energy spectrum grayscale image, the low-energy spectrum grayscale image and the equivalent atomic number grayscale image are fused, including: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, represents the weight of the high-energy spectrum grayscale image, represents the weight of the low-energy spectrum grayscale image, represents the weight of the equivalent atomic number grayscale image, represents the Gaussian weighting function, represents the standard deviation of the Gaussian kernel, represents the fused feature map, Represent the horizontal and vertical coordinates of the pixel respectively.

[0051] Second way: The high-energy spectrum grayscale image, the low-energy spectrum grayscale image and the equivalent atomic number grayscale image are fused, including: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, represents the weight of the high-energy spectrum grayscale image, represents the weight of the low-energy spectrum grayscale image, represents the weight of the equivalent atomic number grayscale image, represents the fused feature map, Represent the horizontal and vertical axes respectively.

[0052] The third way: The high-energy spectrum grayscale image, the low-energy spectrum grayscale image and the equivalent atomic number grayscale image are fused, including: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, Represents the brightness weight of the high-energy spectrum grayscale image, Represents the brightness weight of the low-energy spectrum grayscale image, represents the brightness weight of the equivalent atomic number grayscale image, represents the brightness function, Represents the fused feature map.

[0053] For ease of understanding, the following example is provided, including security inspection machines A and B of different brands at the same subway station entrance. The X-ray images taken by the two security inspection machines are uploaded to the server, and the server performs data processing (including but not limited to model training and identification of items in packages), which specifically includes the following process: Step S210: For security inspection machine A of brand 1, use the multi-view dual-energy X-ray machine of security inspection machine A to take pictures of each material. , different thickness Standard Parts High energy spectrum grayscale image , low energy spectrum grayscale image , Equivalent atomic number grayscale image , count and record standard parts Point set in the image A series of The value corresponding to the coordinate , construct a standard data distribution , .

[0054] Among them, the high energy spectrum grayscale image , low energy spectrum grayscale image , Equivalent atomic number grayscale image The dimensions are consistent.

[0055] Step S220: Under the condition that the standard database is satisfied, the high energy spectrum grayscale image obtained above is , low energy spectrum grayscale image , Equivalent atomic number grayscale image , weighted fusion into feature map . Using the target detection algorithm yolov9 to detect the feature map Perform intelligent recognition to obtain the specific category of the standard parts, the coordinate position in the image, the confidence level and other results. The target detection model is obtained after the training is completed.

[0056] Among them, weighted fusion adopts adaptive weighted fusion and uses Gaussian weighting function to dynamically adjust the weights to adapt to the characteristics of different regions. The weights are set as follows: The fused feature map It can be calculated by the following formula: ; The meaning of each character in the above formula has been introduced in the above embodiment and will not be repeated here; It should be noted that step S220 is a training process for the target detection model.

[0057] It should also be noted that after the target detection model is trained, all images of packages taken by security inspection machine A can use the target detection model to identify the items in the package.

[0058] Step S230: For security inspection machines of different brands , obtain standard parts of each material and different thickness High energy spectrum grayscale image , low energy spectrum grayscale image , Equivalent atomic number grayscale image , count and record standard parts Point set in the image A series of The value corresponding to the coordinate , build security inspection machine Data distribution , build a security inspection machine through regression algorithm (or regression model) The mapping relationship between the underlying data of the corresponding standard parts and the corresponding standard data system of security inspection machine A.

[0059] Among them, considering that the underlying data may have multicollinearity or data noise, the regression algorithm solves the multicollinearity problem by adding a penalty term on the basis of ordinary least squares estimation, that is, the ridge regression method is adopted, and its objective function can be expressed as: ; in, represents the regression coefficient of the ridge regression method, represents the square of the Euclidean norm, Represents the ridge parameter. The parameter setting can be selected based on experience.

[0060] Step S240: When the security inspection machine B captures the package (i.e., the item to be inspected) and obtains the X-ray image to be inspected, the security inspection machine B is estimated by using a regression algorithm. The mapping relationship between the underlying data of the corresponding standard parts and the corresponding standard data system of the security inspection machine A is based on this relationship. The X-ray image to be detected is converted into the target X-ray image, and then the target X-ray image is recognized using the target detection model. Here is the conversion process: When security inspection machine B detects a package and generates an X-ray image to be inspected, the feature value of each pixel is extracted. Then, the extracted feature value is converted into the feature value in the feature space of security inspection machine A (the space formed by the combination of features extracted by security inspection machine A in the local security inspection image) using the trained regression model (distribution mapping relationship). The converted feature value is colored using the color palette of security inspection machine A to generate the X-ray image of security inspection machine A.

[0061] The prior art has the following defects: The images generated by security inspection machine A and security inspection machine B have significant differences in color matching, pixel resolution, and geometry. For object detection models (which are based on deep learning), these differences may cause even images with only slight changes in key features such as color and shape to be treated as completely different entities, requiring the model to relearn and adapt to each change. Because deep learning models generally lack the generalization ability to handle such changes, they face challenges in recognizing images with color differences. This lack of generalization ability leads to inefficiencies in the model learning process, complex and time-consuming training, and limited improvement in the final recognition accuracy.

[0062] Therefore, this embodiment uses the underlying data of security inspection machine A (i.e., the data distribution constructed for the X-ray images corresponding to the standard parts) to build the standard data distribution, and then builds the data distribution of security inspection machine B (obtained based on the same standard parts as security inspection machine A). Based on the regression method, the mapping relationship between the standard data distribution of security inspection machine A and the data distribution of security inspection machine B is built. Based on this mapping relationship, the X-ray image taken by the security inspection machine can be converted into a target X-ray image, and then the target X-ray image is detected using the target detection model. The method provided in this embodiment can avoid the interference caused by the differences in X-ray images of different models of security inspection machines, and improve the efficiency and accuracy of security inspection.

[0063] Reference Figure 3 An embodiment of the present application provides an anti-interference object recognition device based on X-ray security inspection underlying data. The device includes a data distribution acquisition unit 1100, an X-ray image conversion unit 1200, and a target detection unit 1300: The data distribution acquisition unit 1100 is used to acquire a first data distribution of a first security inspection device and a second data distribution of a second security inspection device; wherein the first data distribution is constructed by acquiring pixel values ​​in a first X-ray image of a standard part by the first security inspection device, and the second data distribution is constructed by acquiring pixel values ​​in a second X-ray image of the standard part by the second security inspection device, the standard part is an item used to test the security inspection device, and the first security inspection device and the second security inspection device are of different brands or different security inspection devices of the same brand.

[0064] The X-ray image conversion unit 1200 is used to construct a mapping relationship between the first data distribution and the second data distribution by using a regression method, and convert the X-ray image of the object to be detected obtained by the second security inspection device into a target X-ray image according to the mapping relationship.

[0065] The target detection unit 1300 is used to detect the target X-ray image through a target detection model to obtain a detection result; wherein the target detection model is a detection model trained by the first X-ray image.

[0066] It should be noted that the present device embodiment and the above method embodiment are based on the same inventive concept, so the relevant contents of the above method embodiment are also applicable to the present device embodiment and will not be described in detail here.

[0067] Reference Figure 4 The embodiment of the present application further provides an electronic device, the electronic device comprising: at least one memory; at least one processor; at least one program; The program is stored in the memory, and the processor executes at least one program to implement the above-mentioned anti-interference object identification method based on X-ray security inspection underlying data implemented in the present disclosure.

[0068] The electronic device may be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a vehicle-mounted computer, etc.

[0069] The electronic device according to the embodiment of the present application is described in detail below.

[0070] The processor 1600 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application; The memory 1700 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1700 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the program code is stored in the memory 1700, and the processor 1600 calls and executes the anti-interference object recognition method based on X-ray security inspection underlying data in the embodiment of this application.

[0071] Input / output interface 1800, used to implement information input and output; Communication interface 1900, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.); Bus 2000 , which transmits information between various components of the device (e.g., processor 1600 , memory 1700 , input / output interface 1800 , and communication interface 1900 ); The processor 1600 , the memory 1700 , the input / output interface 1800 , and the communication interface 1900 are connected to each other in communication within the device via the bus 2000 .

[0072] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned anti-interference object identification method based on X-ray security inspection underlying data.

[0073] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0074] The embodiments described in this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0075] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0076] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0077] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0078] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0079] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0080] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0081] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0082] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0083] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store programs.

[0084] The above is a specific description of the preferred implementation of the embodiments of the present application, but the embodiments of the present application are not limited to the above-mentioned implementation methods. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the embodiments of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the embodiments of the present application.

Claims

1. A method for anti-interference object recognition based on X-ray security inspection underlying data, characterized in that: The anti-interference object identification method based on X-ray security inspection underlying data includes: Acquire a first data distribution of a first security inspection device and acquire a second data distribution of a second security inspection device; wherein the first data distribution is constructed by acquiring pixel values ​​in a first X-ray image of a standard part by the first security inspection device, and the second data distribution is constructed by acquiring pixel values ​​in a second X-ray image of the standard part by the second security inspection device, and the first security inspection device and the second security inspection device are different security inspection devices; A regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, and an X-ray image of the object to be inspected obtained by the second security inspection device is converted into a target X-ray image according to the mapping relationship; The target X-ray image is detected by a target detection model to obtain a detection result; wherein the target detection model is a detection model trained by the first X-ray image.

2. The anti-interference object identification method based on X-ray security inspection underlying data according to claim 1 is characterized in that: The adopting a regression method to construct a mapping relationship between the first data distribution and the second data distribution includes: Using a ridge regression method to construct a mapping relationship between the first data distribution and the second data distribution; Alternatively, a univariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution; Alternatively, a multivariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution.

3. The anti-interference object identification method based on X-ray security inspection underlying data according to claim 2 is characterized in that: The second X-ray image includes a high-energy spectrum grayscale image, a low-energy spectrum grayscale image and an equivalent atomic number grayscale image of the standard part; If a ridge regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the objective function of the ridge regression method includes: ; in, represents the regression coefficient of the ridge regression method, represents the square of the Euclidean norm, represents the ridge parameter, is the first data distribution, is the second data distribution; If a single variable linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the expression of the single variable linear regression method is: ; in, and represents the regression coefficient of the univariate linear regression method, represents the error term; If a multivariate linear regression method is used to construct a mapping relationship between the first data distribution and the second data distribution, the expression of the multivariate linear regression method is: ; in, , , and represents the regression coefficient of the multivariate linear regression method, represents the error term, Represents the data distribution corresponding to the pixel values ​​in the high-energy spectrum grayscale image, Represents the data distribution corresponding to the pixel values ​​in the low-energy spectrum grayscale image, Represents the data distribution corresponding to the pixel values ​​in the equivalent atomic number grayscale image.

4. The anti-interference object identification method based on X-ray security inspection underlying data according to claim 1 is characterized in that: The first X-ray image includes a high-energy spectrum grayscale image, a low-energy spectrum grayscale image and an equivalent atomic number grayscale image of the standard part; Before detecting the target X-ray image by the target detection model, the anti-interference object recognition method based on X-ray security inspection underlying data further includes: Build an initial detection model; The high-energy spectrum grayscale image, the low-energy spectrum grayscale image and the equivalent atomic number grayscale image are merged to obtain a feature image; According to the feature map, the initial detection model is trained using a preset target detection algorithm until a target detection model is trained.

5. The anti-interference object identification method based on X-ray security inspection underlying data according to claim 4 is characterized in that: The step of fusing the high energy spectrum grayscale image, the low energy spectrum grayscale image and the equivalent atomic number grayscale image comprises: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, represents the weight of the high-energy spectrum grayscale image, represents the weight of the low-energy spectrum grayscale image, represents the weight of the equivalent atomic number grayscale image, represents the Gaussian weighting function, represents the standard deviation of the Gaussian kernel, represents the fused feature map, Represent the horizontal and vertical coordinates of the pixel respectively.

6. The anti-interference object identification method based on X-ray security inspection underlying data according to claim 4 is characterized in that: The step of fusing the high energy spectrum grayscale image, the low energy spectrum grayscale image and the equivalent atomic number grayscale image comprises: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, represents the weight of the high-energy spectrum grayscale image, represents the weight of the low-energy spectrum grayscale image, represents the weight of the equivalent atomic number grayscale image, represents the fused feature map, Represent the horizontal and vertical axes respectively.

7. The anti-interference object identification method based on X-ray security inspection underlying data according to claim 4 is characterized in that: The step of fusing the high energy spectrum grayscale image, the low energy spectrum grayscale image and the equivalent atomic number grayscale image comprises: ; in, Represents a high-energy spectrum grayscale image with channel 1, Represents a low-energy spectrum grayscale image with channel 1, Represents the equivalent atomic number grayscale image with channel 1, Represents the brightness weight of the high-energy spectrum grayscale image, Represents the brightness weight of the low-energy spectrum grayscale image, represents the brightness weight of the equivalent atomic number grayscale image, represents the brightness function, Represents the fused feature map.

8. An anti-interference object recognition device based on X-ray security inspection underlying data, characterized in that: The anti-interference object identification device based on X-ray security inspection underlying data includes: a data distribution acquisition unit, configured to acquire a first data distribution of a first security inspection device and a second data distribution of a second security inspection device; wherein the first data distribution is constructed by acquiring pixel values ​​in a first X-ray image of a standard part by the first security inspection device, and the second data distribution is constructed by acquiring pixel values ​​in a second X-ray image of the standard part by the second security inspection device, and the first security inspection device and the second security inspection device are different security inspection devices; An X-ray image conversion unit, configured to construct a mapping relationship between the first data distribution and the second data distribution by using a regression method, and convert the X-ray image of the object to be detected obtained by the second security inspection device into a target X-ray image according to the mapping relationship; A target detection unit is used to detect the target X-ray image through a target detection model to obtain a detection result; wherein the target detection model is a detection model trained by the first X-ray image.

9. An electronic device, characterized in that: It comprises at least one controller and a memory for communicating with the controller; the memory stores instructions that can be executed by the at least one controller, and the instructions are executed by at least one of the controllers to enable at least one of the controllers to execute the anti-interference object identification method based on X-ray security inspection underlying data as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the anti-interference object identification method based on X-ray security inspection underlying data as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Video processing method and device, electronic equipment and storage medium

    CN113160244A

  • Article category identification method, device and equipment based on X-ray security inspection equipment

    CN115081469A

  • Security inspection machine detection model and training data generation method and device thereof

    CN115690563A

  • Object identifying device and object identifying method

    EP3748344A1

  • System and Method Estimating Tool Wear and Life Based on Linear Regression Analysis

    KR101662820B1