A luggage identification method and system based on deep learning and a storage medium

By combining deep learning-based multi-head convolutional neural networks and attractor loss functions, the problems of low efficiency and high cost of traditional bag and luggage identification methods are solved, achieving high-precision bag and luggage identification and recognition of new counterfeiting methods.

CN116433925BActive Publication Date: 2026-11-20TONGJI UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310417642.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2026-11-20
Estimated Expiration
2043-04-18

AI Technical Summary

Technical Problem

Traditional methods of authenticating bags rely on human experience, which is inefficient and costly. Machine learning methods are ineffective when data is incomplete and cannot effectively identify some counterfeits. Existing authentication marks are easy to counterfeit or damage, which increases costs.

Method used

By employing a deep learning-based multi-head convolutional neural network (MH-CNN) combined with an attractor loss function, images from different locations on the bag are collected for joint training and forgery pattern mining, thereby improving the accuracy of identification and recognizing new forgery methods.

Benefits of technology

It significantly improves the accuracy of bag authentication, can identify new counterfeiting methods, and reduces the false judgment rate and authentication cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116433925B_ABST
    Figure CN116433925B_ABST
Patent Text Reader

Abstract

The application provides a luggage identification method and system based on deep learning and a storage medium, the method comprising: collecting multiple images of different positions of the luggage and inputting the images into a multi-head convolutional neural network model; jointly training the multi-head convolutional neural network model; and obtaining the probability of each part and the whole of the luggage being predicted as true and judging whether it is a new luggage counterfeiting mode according to the output result of the multi-head convolutional neural network model. The luggage identification method and system based on deep learning can significantly improve the identification accuracy of the luggage and can identify new luggage counterfeiting methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of bag and luggage authentication technology, and more specifically, to a bag and luggage authentication method, system, and storage medium based on deep learning. Background Technology

[0002] Traditionally, the authentication of secondhand bags relies primarily on human experience and the addition of identification markers such as unique codes, RFID chips, and tamper-evident tags. This manual approach, where experts examine the item or photographs of key areas requiring authentication, combined with their own experience, suffers from inefficiency, high costs, and inconsistent results due to varying levels of expertise among individuals. Adding external identification markers presents several problems: 1. Unique codes, tamper-evident tags, and RFID tags can all be counterfeited; 2. These markers may be damaged during secondhand transactions and unusable; 3. External identification markers increase costs.

[0003] Currently, machine learning-based counterfeit detection technology is receiving increasing attention. The effectiveness of image authentication using machine learning in practical applications depends not only on the model's fitting and generalization abilities but also on the collected dataset. When the dataset contains uncovered counterfeiting methods, the risk of failure is very high. Secondly, existing identification methods focus on technical indicators such as classification accuracy. In practical applications, the accuracy of classifying products as genuine is more crucial, as selling inferior goods as superior ones would severely harm both the platform and users. Furthermore, counterfeit goods don't necessarily have problems in every part; for example, in the counterfeiting of luxury handbags, it's common to find fake zippers while other parts are genuine. Summary of the Invention

[0004] In view of the shortcomings of the prior art, the purpose of this invention is to provide a method, system and storage medium for bag authentication based on deep learning. The method and system of this invention can significantly improve the accuracy of bag authentication and can identify new bag counterfeiting methods.

[0005] To solve the above problems, the technical solution of the present invention is as follows:

[0006] A deep learning-based method for authenticating bags and luggage includes the following steps:

[0007] Multiple images of the bag from different locations are collected and input into a multi-head convolutional neural network model;

[0008] The multi-head convolutional neural network model is jointly trained;

[0009] Based on the output of the multi-head convolutional neural network model, the probability of the predictions for each part of the bag and the whole bag being true is obtained, and it is determined whether it is a new bag counterfeiting pattern.

[0010] Preferably, in the step of collecting multiple images of different locations of the bag and inputting them into the multi-head convolutional neural network system, the multi-head convolutional neural network includes a shared backbone CNN, several sub-networks, a fusion module, and a fake pattern mining module.

[0011] Preferably, the step of collecting multiple images from different locations of the bag and inputting them into a multi-head convolutional neural network model specifically includes:

[0012] First, the image is scaled up and then input into MH-CNN;

[0013] The shared backbone convolutional network CNN uses ResNet-50;

[0014] Each sub-network structure contains an Average Pooling layer, a fully connected layer (FC) with PReLU, and a fully connected layer that computes deep features;

[0015] The pattern features output from each sub-network are concatenated to obtain a fused feature, which is then input into the fusion module to obtain the prediction probability that the entire item is true.

[0016] The fraud pattern mining module consists of a fully connected layer with a Softmax function.

[0017] Preferably, the processing flow of the fraud pattern detection module includes the following steps:

[0018] Step 1: Perform K-means clustering on all pattern features of part i to obtain K cluster centers, and use the K cluster centers to initialize the fully connected layer;

[0019] Step 2: The pattern features extracted from each training sample are passed through a fully connected layer and then mapped to a K-dimensional vector using the Softmax function. The optimization objective of the fake pattern mining module is represented by the loss function as follows: Where p i,k This represents the k-th value of the K-dimensional distance vector obtained from the i-th sample location.

[0020] Preferably, in the step of jointly training the multi-head convolutional neural network model, an attractor loss function is used, which has the following form: Where y j It is a part image x j The label γ is used to balance the cross-entropy loss (CE) and our proposed attractor loss term. Represents subnetwork H iThe prediction results show that the attractor loss term is in the following form: in Represents subnetwork H i The calculated pattern features, where α is a variable controlling the degree of sample fit. The mean of the genuine pattern characteristics representing part i.

[0021] Preferably, the step of jointly training the multi-head convolutional neural network model specifically includes:

[0022] Forward computation: Given a training dataset, first randomly select N samples as a batch X = [(x1, l1, 1), ... (x j ,l j ,j),…(x N ,l N ,N)], where X=[x1,…x j ,…x N ] is the sample image, L = [l1,…l j ,…l N [] represents the label corresponding to each part, and J = [1, ..., j, ..., N] is the sequence index. First, X is input into MH-CNN, assuming O = [o1, ..., o j ,…o N [] is the output of a shared backbone CNN, and then classified according to its location and label. j , put O j The data is fed into the corresponding sub-network, assuming sub-network H. i The output uses This indicates that the loss has been calculated. The final total loss is:

[0023] Backpropagation of error: Once the total loss is obtained, the gradient of each layer is calculated according to the chain rule.

[0024] Preferably, the steps of obtaining the probability of the prediction of each part of the bag and the whole being true based on the output of the multi-head convolutional neural network model and determining whether it is a new bag counterfeiting mode specifically include: the current bag product is determined to be genuine only when the output of the multi-head convolutional neural network model of all collected parts of the bag is greater than the set true and false threshold value and the overall prediction result is also true; otherwise, the bag product is determined to be false.

[0025] Furthermore, the present invention also provides a bag authentication system based on deep learning. The system includes an image acquisition device and a multi-head convolutional neural network. The image acquisition device acquires multiple images of the bag at different locations and inputs them into the multi-head convolutional neural network. The multi-head convolutional neural network includes a shared backbone CNN, several sub-networks, a fusion module, and a forgery pattern mining module.

[0026] Preferably, the shared backbone CNN adopts ResNet-50. Each sub-network structure includes an AveragePooling layer, a fully connected layer (FC) with PReLU, and a fully connected layer for calculating deep features. The fusion module includes multiple fully connected layers with PReLU. The pattern features output from each sub-network are concatenated and input into the fusion module to obtain the prediction probability that the entire item is real. The forgery pattern mining module is composed of fully connected layers with a Softmax function.

[0027] Furthermore, the present invention also provides a readable storage medium storing a computer program, which, when executed by a processor, is used to implement the deep learning-based bag identification method described above.

[0028] Compared with existing technologies, this invention proposes a deep learning-based method and system for authenticating bags and luggage. The method applies a multi-head convolutional neural network (MH-CNN) to the identification of genuine and counterfeit product images, and combines it with an attractor loss (AtL) loss function, thereby significantly improving the accuracy of authenticity judgment. Furthermore, a counterfeit pattern mining module is used to discover existing counterfeit patterns and perform representation learning on these patterns. When a sample appears that differs significantly from the current counterfeit representation, it is identified as a new counterfeit method, and this new counterfeit method is then identified. Attached Figure Description

[0029] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0030] Figure 1 A flowchart of a deep learning-based bag authentication method provided in an embodiment of the present invention;

[0031] Figure 2 This is a structural block diagram of a deep learning-based bag authentication system provided in an embodiment of the present invention;

[0032] Figure 3 A schematic diagram of the sub-network structure of the deep learning-based bag identification system provided in an embodiment of the present invention;

[0033] Figure 4a This is a diagram illustrating the forward computation process for model training provided in an embodiment of the present invention.

[0034] Figure 4b This diagram illustrates the backpropagation process of model training error provided in an embodiment of the present invention. Detailed Implementation

[0035] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.

[0036] Specifically, this invention provides a deep learning-based method for authenticating bags and luggage, such as... Figure 1 As shown, the method includes the following steps:

[0037] S1: Collect multiple images of different positions of the bag and input them into a multi-head convolutional neural network model;

[0038] like Figure 2 As shown, assuming that there are three locations on the bag that are prone to counterfeiting and can be used to identify authenticity, firstly, multiple images of different locations on the bag are acquired, and then input into a Multi-head Convolution Neural Network (MH-CNN) system. The MH-CNN system includes a shared CNN backbone for extracting common features and multi-head sub-networks for combining different locations on the bag. Each sub-network is responsible for handling the counterfeiting problem of a single part to output the deep features of each location.

[0039] Specifically, the multi-head convolutional neural network MH-CNN includes a shared backbone CNN and n subnetworks [H1, H2, ... H]. n [], fusion module and fraud pattern mining module.

[0040] Suppose the input image for multiple body parts is represented as X = [x1, x2, ... x... n The corresponding true / false labels are L = [l1, l2], [l3], [l4], [l5] 2, …l n ], where x i For RGB (3-channel) images, before inputting them into the MH-CNN network, background removal, key region segmentation, and positional correction of key regions are required. i This represents the true / false label at the i-th position, indicating whether the product is genuine or fake. The specific processing steps are as follows:

[0041] 1. First, scale the image and then input it into MH-CNN;

[0042] 2. The shared backbone convolutional network CNN uses ResNet-50, which contains 49 convolutional layers and outputs a feature map of size 7×7×2048.

[0043] 3. For example Figure 3 As shown, each sub-network structure contains an Average Pooling layer, a fully connected (FC) layer with PReLU, and a fully connected layer for calculating deep features. The feature map output by the Average Pooling layer is 1×1×2048 in size. This is flattened into a 2048-dimensional vector, which is then fed into the FC layer to obtain a 512-dimensional vector, referred to as the pattern feature. The pattern feature is input into the last fully connected layer to obtain the predicted probability of that region being true. The corresponding loss is expressed as:

[0044] 4. The pattern features output from each sub-network are concatenated to obtain a 1536-dimensional fusion feature. This feature is then input into the fusion module to obtain the prediction probability that the entire item is true. The fusion module consists of three fully connected layers with PReLU. The loss corresponding to the fusion module is represented as L. f .

[0045] 5. The fraud pattern mining module consists of a 512×K fully connected layer with a Softmax function. Each part can correspond to an independent fraud pattern mining module. The processing flow of this fraud pattern mining module is as follows:

[0046] Step 1: Perform K-means clustering on all pattern features of part i to obtain K cluster centers, and use the K cluster centers to initialize the fully connected layer;

[0047] Step 2: The pattern features extracted from each training sample are mapped to a K-dimensional vector using the Softmax function after passing through a fully connected layer.

[0048] This vector represents the distance between the pattern corresponding to the current sample location and existing patterns. If the distance between the pattern of the current sample location and existing patterns is large, it indicates that the sample location may represent a new, undiscovered fraud pattern, posing a risk and requiring entry. The optimization objective of the fraud pattern mining module is represented by the loss function: Where p i,k This represents the k-th value of the K-dimensional distance vector obtained from the i-th sample location.

[0049] S2: Jointly train the multi-head convolutional neural network model;

[0050] Furthermore, to improve the accuracy of the system's predictions, a new loss function is proposed, called the attractor loss function, which has the following form:

[0051]

[0052] Where y j It is a part image x j The label γ is used to balance the cross-entropy loss (CE) and our proposed attractor loss term. Represents subnetwork H i The prediction results.

[0053] The attractor loss term takes the following form:

[0054]

[0055] in Represents subnetwork H i The calculated pattern features, where α is a variable controlling the degree of sample fit. The mean of the pattern features of genuine samples representing part i. During training, the mean of the pattern features of positive samples in each batch is used to represent... Right now Where N i This is the number of positive samples in the current batch. It is a subnetwork H i The obtained pattern features.

[0056] Specifically, the MH-CNN model used in this invention adopts a one-to-many structure, that is, one shared backbone network corresponds to multiple sub-networks and two independent modules. The joint training steps for the MH-CNN network model are as follows:

[0057] 1. Forward computation

[0058] like Figure 4a As shown, given a training dataset, N samples are first randomly selected as a batch X = [(x1, l1, 1), ..., (x j ,l j ,j),…(x N ,l N ,N)], where X=[x1,…x j ,…x N ] is the sample image, L = [l1,…l j ,…l N [] represents the label corresponding to each part, and J = [1,…j,…N] is the sequence index. Figure 4a The diagram illustrates the computation process. First, X is input into the MH-CNN, assuming O = [o1,…o2]. j ,…oN [] is the output of a shared backbone CNN, and then classified according to its location and label. j , put O j The data is then fed into the corresponding subnetwork. Let's assume subnetwork H... i The output uses If this is the case, then the loss can be calculated using the following formula:

[0059]

[0060] The final total loss is:

[0061]

[0062] 2. Error backpropagation

[0063] like Figure 4b As shown, the letter 'g' represents the gradient. Once the total loss is obtained, the gradient of each layer can be calculated using the chain rule. The sample index J indicates that the total loss is distributed across the output of the shared backbone CNN.

[0064] S3: Based on the output of the multi-head convolutional neural network model, obtain the probability that the predictions for each part of the bag and the whole bag are true, and determine whether it is a new bag counterfeiting pattern.

[0065] Specifically, to prevent counterfeit goods from being identified as genuine, assume the input is X = [x1, x2, ... x n Based on the output of the MH-CNN network model above, the probability of each part and the overall prediction being true can be obtained. The bag is considered genuine only if the output of the multi-head convolutional neural network model for all collected parts of the bag exceeds the set true / false threshold, and the overall prediction is also true. Otherwise, the bag is considered false. Furthermore, a counterfeit pattern mining module is used to learn the representation of existing counterfeit patterns. When a sample appears that differs significantly from the current counterfeit representation, it is identified as a new counterfeit method, and this new counterfeit method is then identified.

[0066] Compared with existing technologies, this invention proposes a deep learning-based method and system for authenticating bags and luggage. The method applies a multi-head convolutional neural network (MH-CNN) to the identification of genuine and counterfeit product images, and combines it with an attractor loss (AtL) loss function, thereby significantly improving the accuracy of authenticity judgment. Furthermore, a counterfeit pattern mining module is used to discover existing counterfeit patterns and perform representation learning on these patterns. When a sample appears that differs significantly from the current counterfeit representation, it is identified as a new counterfeit method, and this new counterfeit method is then identified.

[0067] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.

Claims

1. A deep learning-based method for authenticating bags and luggage, characterized in that, The method includes the following steps: Multiple images of the bag from different locations are collected and input into a multi-head convolutional neural network model, specifically including: First, the image is scaled up and then input into a multi-head convolutional neural network, which includes a shared backbone convolutional network (CNN), several sub-networks, a fusion module, and a fake pattern mining module. The shared backbone convolutional network CNN uses ResNet-50; Each sub-network structure contains an Average Pooling layer, a fully connected layer (FC) with PReLU, and a fully connected layer for computing deep features; The pattern features output from each sub-network are concatenated to obtain a fused feature, which is then input into the fusion module to obtain the prediction probability that the entire item is true. The fraud pattern detection module consists of a fully connected layer with a Softmax function, and its processing flow includes the following steps: Step 1: Perform K-means clustering on all pattern features of part i to obtain K cluster centers, and use the K cluster centers to initialize the fully connected layer; Step 2: The pattern features extracted from each training sample are passed through a fully connected layer and then mapped to a K-dimensional vector using the Softmax function. The optimization objective of the fake pattern mining module is represented by the loss function as follows: ,in This represents the k-th value of the K-dimensional distance vector obtained from the i-th sample location; The multi-head convolutional neural network model is jointly trained using an attractor loss function, which has the following form: ,in It is a part image x j The tag, It is used to balance the cross-entropy loss (CE) and the attractor loss term. Represents subnetwork H i The prediction results show that the attractor loss term is in the following form: ,in Represents subnetwork H i The calculated pattern features, It is a variable that controls the degree of sample fit. The mean of the genuine pattern characteristics representing part i; Based on the output of the multi-head convolutional neural network model, the probability of predicting the authenticity of each part of the bag and the whole bag is obtained, and it is determined whether it is a new bag counterfeiting pattern. Specifically, the bag is considered genuine only when the output of the multi-head convolutional neural network model of all collected parts of the bag is greater than the set true / false threshold and the overall prediction result is also true. Otherwise, the bag is considered fake. Furthermore, the counterfeiting pattern mining module is used to learn the representation of existing counterfeiting patterns. When a sample with a large difference from the current counterfeiting representation appears, it is judged as a new counterfeiting method and the new counterfeiting method is identified.

2. The bag authentication method based on deep learning according to claim 1, characterized in that, The steps for jointly training the multi-head convolutional neural network model specifically include: Forward computation: Given a training dataset, first randomly select N samples as a batch. ,in It is a sample image. These are labels corresponding to each part. It's a sequence index, first... The input is fed into a multi-head convolutional neural network, assuming It is the output of a shared backbone convolutional network (CNN), and then classified according to its location and label. j , put O j The data is fed into the corresponding sub-network, assuming sub-network H. i The output uses This indicates that the loss has been calculated. The final total loss is: ; Backpropagation of error: Once the total loss is obtained, the gradient of each layer is calculated according to the chain rule.

3. A deep learning-based bag authentication system, used to implement the deep learning-based bag authentication method according to any one of claims 1-2, characterized in that, The system includes an image acquisition device and a multi-head convolutional neural network. The image acquisition device acquires multiple images of different positions of the bag and inputs them into the multi-head convolutional neural network. The multi-head convolutional neural network includes a shared backbone convolutional network (CNN), several sub-networks, a fusion module, and a fake pattern mining module.

4. The bag authentication system based on deep learning according to claim 3, characterized in that, The shared backbone convolutional network (CNN) uses ResNet-50. Each sub-network structure includes an Average Pooling layer, a fully connected layer (FC) with PReLU, and a fully connected layer for calculating deep features. The fusion module includes multiple fully connected layers with PReLU. The pattern features output from each sub-network are concatenated and input into the fusion module to obtain the prediction probability that the entire item is real. The forgery pattern mining module consists of fully connected layers with a Softmax function.

5. A readable storage medium, characterized in that, The readable storage medium stores a computer program, which, when executed by a processor, is used to implement the deep learning-based bag identification method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Suitcase quality detection method and device based on deep learning model and storage medium

    CN112712524A