A Commodity Classification Method Based on Compression and Incentive Network

Through a four-stage classification model that combines text, image and video features, and uses compression and excitation networks to automatically classify products, it solves the problems of time-consuming and labor-intensive manual classification and incomplete features in the existing technology, and achieves more accurate product classification.

CN114445198BActive Publication Date: 2024-10-29NANJING UNIV OF POSTS & TELECOMM
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210139825.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2024-10-29
Estimated Expiration
2042-02-15

AI Technical Summary

Technical Problem

Existing product classification methods mainly rely on manual operations, consume a lot of manpower and material resources, and only focus on the text information of the products. The extracted features are incomplete and cannot effectively achieve rapid and accurate classification of products.

Method used

It adopts a four-stage classification model, combines the text, image and video features of goods, and performs data preprocessing, feature extraction, feature enhancement and fusion output through compression and excitation networks to achieve automated classification of goods.

Benefits of technology

The automatic classification of goods is realized, saving manpower and material resources, the extracted features are more complete, and the classification results are more accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114445198B_ABST
    Figure CN114445198B_ABST
Patent Text Reader

Abstract

The present invention proposes a commodity classification method based on a compression and excitation network, which relates to the technical field of automatic commodity classification, and mainly includes a four-stage processing method. The first stage is the preprocessing stage of commodity information, in which the commodity information is passed into the preprocessing model, and the text data, image data and video data of the commodity are obtained through the preprocessing model. The second stage is the feature extraction stage, in which different neural networks are established for different data types to extract features. The third stage is the feature enhancement stage, in which a compression excitation network is established, the importance of each channel is obtained by learning, and the original features are weighted according to the important features to enhance useful information and suppress useless information. The fourth stage is the fusion output stage, in which the text features, image features and video features of the commodity are fused to obtain the commodity features, a classifier model is established for training, and the commodity classification results are output, the text, image and video features of the commodity are extracted, and they are fused into commodity features, so that the extracted commodity features are more accurate and rich.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of commodity automatic classification, and is a commodity classification method based on a compression and excitation network. Background Art

[0002] The development of science and technology has brought great changes to people's lives. With the development of the Internet, e-commerce platforms have risen rapidly, and online shopping has become one of the mainstream shopping methods nowadays. How to achieve fast and correct classification is becoming increasingly important for e-commerce platforms. A good classification algorithm not only enables consumers to find the desired products quickly and accurately, but also improves the transaction rate of e-commerce platforms. There are still many problems and challenges in how to achieve rapid classification of goods. For example, the number of goods now reaches hundreds of millions, and most of the existing commodity classification methods use manual classification, which consumes a lot of manpower and material resources. At the same time, in the existing commodity classification methods, the feature extraction of commodities often only focuses on text information such as the title of the commodity, and the extracted commodity features are incomplete. Summary of the invention

[0003] The purpose of the present invention is to solve the above-mentioned defects of the prior art and to propose a commodity classification method based on compression and excitation network that realizes automatic classification of commodities by establishing a four-stage classification model and integrating the text, image and video features of commodities.

[0004] The present invention provides a commodity classification method based on a compression and excitation network, comprising the following steps:

[0005] Step 1: Create a commodity data preprocessing module and define the data structure as , data represents the data set, Indicates the data set data, Representation data The text data, Representation data The image data, Representation data The video data in the dataset Pass the product data to the preprocessing module to extract the product text data , product image data , video data of products After the preprocessing stage, the product text information is obtained , product image information , product video information ;

[0006] Step 2: Establish a product data feature extraction module, pass the product data preprocessed in step 1 into the product data feature extraction module, and obtain the text features of the product through data feature extraction , the image features of the product , video features of products ;

[0007] Step 3: Establish a feature enhancement module. Pass the product feature data obtained in step 2 into the feature enhancement module. The importance of each feature channel is automatically obtained through learning. Then, according to this importance, useful features are enhanced and features that are not useful for the current task are suppressed. After processing, the text features of the product are obtained. , image features , video features ;

[0008] Step 4: Establish a fusion output module, fuse the enhanced product features obtained in step 3 to obtain product feature information, establish a classifier model for training, and output the classification results.

[0009] As a further technical solution of the present invention,

[0010] In the aforementioned commodity classification method based on compression and excitation network, in step 2, for the text data , whose main content is the product title information. First, the text information is segmented, stop words are eliminated, and the obtained word sequence is aligned and filled. The word sequence of the text usually also contains some information. In order to retain this information, the word embedding model is used to obtain the word vector of the text information ; For image data , and preprocess it. The preprocessing of image data mainly includes geometric transformation and grayscale processing. For the grayscale processing of the image, the present invention adopts the weighted average method. In addition, the image data may contain non-commodity information such as promotional information. For promotional purposes, random cropping is performed, and finally the image size is unified to obtain image data. ; For video data , pre-process the video data, extract key frames, and perform sampling processing to obtain video data , if the video data does not exist, it is filled with specific data.

[0011] The aforementioned commodity classification method based on compression and excitation network establishes a feature extraction module for commodity information: for text data , a convolutional network is used for feature extraction. In order to capture text features at different scales, four convolution kernels of different scales are used ( , ), in the convolution kernel The eigenvector after the action can be expressed as , the text features of the product It can be expressed as:

[0012] ;

[0013] Formula 1;

[0014] in, Indicates convolution kernels, Represents the concatenation of vectors in low dimensions;

[0015] For image data , and pass it into the convolutional network for feature extraction. The network structure used is Perform feature extraction to extract the image features of the product: ; For video data , pass it into the feature extraction model, enter the feature extraction module according to the data type, and extract the video features of the product Due to the particularity of product videos, the main focus should be on the product features in the video. First, the video is processed using time domain segmentation to obtain { },right , use convolutional network to extract features and get feature vector Finally, the aggregation function is used to aggregate the video features .

[0016] The aforementioned commodity classification method based on compression and excitation network establishes a feature enhancement module, which is mainly divided into two stages: compression and expansion.

[0017] In the aforementioned commodity classification method based on compression and excitation network, the main function of the compression stage is to compress along the spatial dimension. The input data dimension is ,in, represents the feature height, represents the feature width, Indicates the number of feature channels. After compression, each two-dimensional channel is compressed into a real number, which has global characteristics. First, a convolution operation is performed. , represents the convolution operation, followed by the compression operation. The present invention uses global average pooling to implement it, and the output dimension matches the number of feature channels of the input dimension. The compressed feature vector It can be expressed as:

[0018] ;

[0019] Formula 2;

[0020] in, Indicates compression operation. represents the feature height, represents the feature width, Represents the result of the convolution operation.

[0021] The aforementioned commodity classification method based on compression and excitation network, the main function of the expansion stage is to expand the compressed enhanced features, learn the weight matrix to establish the correlation between feature channels, and the channel weight vector It can be expressed as:

[0022] ;

[0023] Formula 3;

[0024] in, express Function, maps the extracted features to [0,1], represents the global pooling operation, represents the activation function, represents the parameter matrix.

[0025] Finally, based on the weighted feature matrix processed in the feature enhancement stage , It can be expressed as:

[0026] ;

[0027] Formula 4;

[0028] in, represents the channel weight vector, .

[0029] The aforementioned commodity classification method based on compression and excitation network establishes a fusion output module: the text features of the commodity enhanced by the feature , Image features And text features , pass it into the fusion output module to obtain the predicted classification of the product ; In the fusion output module, the product features are concatenated in low dimensions to obtain the product features , the predicted classification of goods It can be expressed as:

[0030] ;

[0031] Formula 5;

[0032] in is the parameter matrix of the fully connected layer, is the bias vector of the fully connected layer, and softmax is the activation function;

[0033] The definition of the model loss function is as follows:

[0034] ;

[0035] Formula 6;

[0036] in, Indicates the quantity of goods. Representative products of the classification Quantity, Representative products The predicted classification A quantity.

[0037] Compared with the prior art, the present invention adopts the above technical scheme and has the following technical effects: the present invention realizes an automatic classification method for commodities. The present invention realizes automatic classification of commodities by establishing a four-stage classification model, which greatly saves manpower and material resources. In the feature extraction of commodities, traditional commodity classification algorithms usually only focus on the text information of commodities, which is too one-sided. In addition to paying attention to the text information of commodities, the present invention also pays attention to the image features and video features of commodities, and fuses the features. The extracted commodity features are more complete and the classification results are more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a flow chart of the commodity classification algorithm of the present invention;

[0039] Figure 2 This is a flow chart of commodity classification preprocessing of the present invention;

[0040] Figure 3 A network diagram for extracting features of commodity classification texts of the present invention;

[0041] Figure 4 A network diagram for extracting features of commodity classification images of the present invention;

[0042] Figure 5 A network diagram for extracting features from a commodity classification video of the present invention;

[0043] Figure 6 This is a structural diagram of the compression excitation network of the present invention. DETAILED DESCRIPTION

[0044] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings: Figure 1 As shown;

[0045] This embodiment proposes a commodity classification method based on a compression and excitation network, comprising the following steps:

[0046] Step 1: Randomly divide the data set into training set and test set. The product data in the data set includes text data such as titles, image data, and video data. The structure of the data is defined as , data represents the data set, Indicates the data set data, Representation data The text data, Representation data The image data, Representation data Video data;

[0047] Step 2: Preprocess product information (such as Figure 2 As shown): The product data in the dataset Pass the product data to the preprocessing module to extract the product text data , product image data , video data of products After the preprocessing stage, the product text information is obtained , product image information , product video information ;

[0048] Step 2.1: According to step 1 Extract text data from product data using the data structure ,After word segmentation and stop word elimination, the text word sequence is obtained, followed by alignment and filling, and finally through the word embedding model. Train and get word vectors ;

[0049] Step 2.2: According to step 1 Extract image data from product data using the data structure , image data is obtained through grayscale, geometric transformation, image culling and other operations ;

[0050] Step 2.3: According to step 1 The data structure of the product data is used to extract the image data video from the product data. First, the video is denoised to eliminate the noise caused by the product. , product activities and other factors, and then perform shot boundary detection, using pixel difference method and setting a certain threshold , by calculating the difference between two consecutive frames of images, if it is greater than this threshold , it is considered that a scene switch has occurred, and finally the key frame extraction and sampling operations are performed on the video to obtain the video data ,If the video data does not exist, it is filled with specific data;

[0051] Step 3: Feature extraction (such as Figure 3-Figure 5 As shown in the figure): Establish a commodity data feature extraction module, pass the preprocessed commodity data in step 2 into the commodity data feature extraction module, and obtain the text features of the commodity through data feature extraction , the image features of the product , video features of products ;

[0052] Step 3.1: For text data , a convolutional network is used for feature extraction. In order to capture text features at different scales, four convolution kernels of different scales are used ( ), whose network structure is as follows Figure 3 As shown, represents the embedding dimension, Represents a one-dimensional convolution operation. After convolution with the convolution kernel, the activation function The four feature matrices are concatenated and fused through the maximum pooling layer to obtain the text features of the product. , in the convolution kernel The eigenvector after the action can be expressed as , the image features of the product It can be expressed as:

[0053] ;

[0054] in, Indicates convolution kernels, Represents the concatenation of vectors in low dimensions;

[0055] Step 3.2: For image data , pass it into the convolutional network to extract the image features of the product The network structure used is , the specific network structure is as follows Figure 4 As shown, the convolution kernel size is , the step length is , a two-layer convolutional network is used for image feature extraction, is the convolutional layer, is the active layer. is the pooling layer, is the normalization layer;

[0056] Step 3.3: For video data , pass it into the feature extraction model, enter the feature extraction module according to the data type, and extract the video features of the product Due to the particularity of product videos, the main focus should be on the product features in the video. First, the video is processed using time domain segmentation to obtain { },right , use convolutional network to extract features and get feature vector Finally, the aggregation function is used to aggregate the video features ;

[0057] Step 4: Feature enhancement: Establish a feature enhancement module, pass the product feature data obtained in step 3 into the feature enhancement module, automatically obtain the importance of each feature channel through learning, and then enhance useful features according to this importance and suppress features that are not very useful for the current task. After processing, the text features of the product are obtained. , image features , video features ;

[0058] Step 4.1: Compression phase (e.g. Figure 6 As shown in Figure 2), the main function of the compression stage is to compress along the spatial dimension, compressing each two-dimensional channel into a real number. This real number has global characteristics. The present invention adopts global average pooling to achieve this, and the output dimension matches the number of feature channels of the input dimension. The compressed feature vector It can be expressed as:

[0059] ;

[0060] in Represents the activation function , represents the global pooling operation, The parameter matrix representing the convolution operation;

[0061] Step 4.2: Expansion stage. The main function of the expansion stage is to expand the compressed enhanced features, learn the weight matrix to establish the correlation between feature channels, and the channel weight vector It can be expressed as:

[0062] ;

[0063] Finally, based on the weighted feature matrix processed in the feature enhancement stage It can be expressed as:

[0064] ;

[0065] in, represents the channel weight vector, ;

[0066] Step 5: Fusion output: Fusion the enhanced product features obtained in step 4 to obtain product feature information, establish a classifier model for training, and output the classification results;

[0067] Step 5.1: Feature fusion stage: low-dimensional splicing of product features to obtain product features ;

[0068] Step 5.2: Predict the category of the product , the predicted classification of goods It can be expressed as:

[0069] ;

[0070] in is the parameter matrix of the fully connected layer, is the bias vector of the fully connected layer, and softmax is the activation function;

[0071] The definition of the model loss function is as follows:

[0072] ;

[0073] in, Indicates the quantity of goods. Representative products of the classification Quantity, Representative products The predicted classification A quantity.

[0074] The present invention proposes a commodity classification method based on compression and excitation network, which realizes automatic classification of commodities by establishing a four-stage classification model, greatly saving manpower and material resources. At the same time, in the feature extraction of commodities, traditional commodity classification algorithms usually only focus on the text information of commodities, which is too one-sided. In addition to focusing on the text information of commodities, the present invention also focuses on the image features and video features of commodities, and fuses the features, so that the extracted commodity features are more complete and the classification results are more accurate.

[0075] The above description is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technology can understand and think of any changes or substitutions within the technical scope disclosed by the present invention, which should be included in the scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A commodity classification method based on compression and incentive network, It is characterized in that The following steps are involved: Step 1: Create a commodity data preprocessing module and define the data structure as , data represents the data set, Indicates the data set data, Representation data The text data, Representation data The image data, Representation data The video data in the dataset Pass the product data to the preprocessing module to extract the product text data , product image data , video data of products After the preprocessing stage, the product text information is obtained , product image information , product video information ; Step 2: Establish a product data feature extraction module, pass the product data preprocessed in step 1 into the product data feature extraction module, and obtain the text features of the product through data feature extraction , the image features of the product , video features of products ; Step 3: Establish a feature enhancement module. The feature enhancement module is mainly divided into two stages: compression and expansion. The product feature data obtained in step 2 is passed into the feature enhancement module. The importance of each feature channel is automatically obtained through learning. Then, according to this importance, useful features are enhanced and features that are not very useful for the current task are suppressed. After processing, the text features of the product are obtained. , image features , video features The main function of the compression stage is to compress along the spatial dimension. The input data dimension is ,in, represents the feature height, represents the feature width, Represents the number of feature channels. After compression, each two-dimensional channel is compressed into a real number. This real number has global characteristics. First, a convolution operation is performed. , represents the convolution operation, followed by the compression operation, which is implemented using global average pooling, and the output dimension matches the number of feature channels of the input dimension. The compressed feature vector It can be expressed as: ; Formula 2; in, Indicates compression operation. represents the feature height, represents the feature width, represents the result of the convolution operation, The main function of the expansion stage is to expand the compressed enhanced features, learn the weight matrix to establish the correlation between the feature channels, and the channel weight vector It can be expressed as: ; Formula 3; in, express Function, maps the extracted features to [0,1], represents the global pooling operation, represents the activation function, represents the parameter matrix; Finally, based on the weighted feature matrix processed in the feature enhancement stage , It can be expressed as: ; Formula 4; in, represents the channel weight vector, ; Step 4: Establish a fusion output module, fuse the enhanced product features obtained in step 3 to obtain product feature information, establish a classifier model for training, and output the classification results.

2. The method for classifying commodities based on compression and excitation network according to claim 1, Features: In step 2, for the text data , whose main content is the product title information. First, the text information is segmented, stop words are eliminated, and the obtained word sequence is aligned and filled. The word sequence of the text usually also contains some information. In order to retain this information, the word embedding model is used to obtain the word vector of the text information ; For image data , and preprocess it. The preprocessing of image data mainly includes geometric transformation and grayscale processing. For the grayscale processing of the image, the weighted average method is used. In addition, the image data may contain non-commodity information such as promotional information. Random cropping is performed for promotion. Finally, the image size is unified to obtain the image data. ; For video data , pre-process the video data, extract key frames, and perform sampling processing to obtain video data , if the video data does not exist, it is filled with specific data.

3. The commodity classification method based on compression and excitation network according to claim 1, Features: Establish a feature extraction module for product information: For text data , a convolutional network is used for feature extraction. In order to capture text features at different scales, four convolution kernels of different scales are used ( , ), in the convolution kernel The eigenvector after the action can be expressed as , the text features of the product It can be expressed as: ; Formula 1; in, Indicates convolution kernels, Represents the concatenation of vectors in low dimensions; For image data , and pass it into the convolutional network for feature extraction. The network structure used is Perform feature extraction to extract the image features of the product: ; For video data , pass it into the feature extraction model, enter the feature extraction module according to the data type, and extract the video features of the product Due to the particularity of product videos, the main focus should be on the product features in the video. First, the video is processed using time domain segmentation to obtain { },right , use convolutional network to extract features and get feature vector Finally, the aggregation function is used to aggregate the video features .

4. The method for classifying commodities based on compression and excitation network according to claim 1, Features: Establish a fusion output module: the text features of the product enhanced by the above features , Image features And text features , pass it into the fusion output module to obtain the predicted classification of the product ; In the fusion output module, the product features are concatenated in low dimensions to obtain the product features , the predicted classification of goods It can be expressed as: ; in is the parameter matrix of the fully connected layer, is the bias vector of the fully connected layer, and softmax is the activation function; The model loss function is defined as follows: ; Formula 6; in, Indicates the quantity of goods. Representative products of the classification Quantity, Representative products The predicted classification A quantity.

Citation Information

Patent Citations

  • Commodity information classification method based on deep feature fusion model

    CN110674305A

  • Commodity classification method based on multi-modal deep neural network model

    CN112231473A

  • Photovoltaic array fault diagnosis method based on composite information

    WO2019214268A1

  • Method for detecting image target in smart home environment

    WO2021244079A1