E-commerce automatic classification method and device

Through machine learning and natural language processing technology, combined with deep learning algorithms, we extract text and image features of e-commerce platform products and build a high-performance product classification model, which solves the problems of low classification accuracy and poor adaptability in the existing technology, and achieves It provides efficient automatic classification of goods and improves the efficiency and user experience of the e-commerce platform.

CN118537870AInactive Publication Date: 2024-08-23WIDIAN SUPPLY CHAIN MANAGEMENT (BEIJING) CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410573065.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing automatic classification technology has problems such as low classification accuracy, poor adaptability and performance degradation when processing large-scale data on e-commerce platforms, making it difficult to meet the rapidly growing market demand.

Method used

Using machine learning and natural language processing technology, we preprocess product data from e-commerce platforms, extract text and image features, build a product classification model using deep learning algorithms, and optimize model performance through cross-validation and hyperparameter adjustment to achieve high performance. Accurate automatic classification of goods.

Benefits of technology

Significantly improves the accuracy and efficiency of product classification, reduces the workload and time cost of manual classification, is suitable for different types of e-commerce platforms, has good adaptability and scalability, and improves the shopping experience and e-commerce platform Usage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537870A
    Figure CN118537870A
Patent Text Reader

Abstract

The invention discloses an e-commerce automatic classification method and device, and the method comprises the steps: S110: obtaining commodity data of an e-commerce platform, the commodity data comprising any multiple of a commodity title, a commodity description and a commodity picture, and carrying out the preprocessing of the commodity data; s120, extracting text features from the preprocessed commodity title and commodity description by using a natural language processing method, and extracting image features from the preprocessed commodity picture by using an image processing method; s130, constructing a commodity classification model by adopting a deep learning algorithm in combination with the text features and the image features; s140, using the marked commodity data to train a commodity classification model, and optimizing the performance of the commodity classification model through a cross validation method and / or a hyper-parameter adjustment method; and S150, obtaining a commodity classification result according to the input to-be-classified commodity data and the trained and optimized commodity classification model. According to the method, high-accuracy automatic commodity classification can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data classification, and in particular to an e-commerce automatic classification method and device. Background Art

[0002] With the booming development of e-commerce around the world, the number and variety of goods have shown explosive growth. This growth not only makes consumers face more choices when choosing goods, but also brings huge challenges to e-commerce platforms. The traditional manual product classification method, which relies on manual classification of goods one by one, is far from meeting the needs of this rapidly growing market. This method is not only inefficient and prone to errors, but also appears to be unable to cope with large-scale data.

[0003] However, existing automatic classification technologies are not perfect. Although they have improved the efficiency and accuracy of commodity classification to a certain extent, there are still some problems. For example, the classification accuracy of some technologies is not high enough, resulting in the misclassification of commodities; other technologies have poor adaptability and cannot handle complex and changeable commodity data; and some technologies will have performance degradation when processing large-scale data. The existence of these problems limits the further application and promotion of automatic commodity classification technology.

[0004] In summary, existing automatic classification technologies have at least one problem: low classification accuracy, poor adaptability, and inability to process large-scale data. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides an e-commerce automatic classification method and device, which can achieve high-accuracy automatic classification of goods by adopting machine learning and natural language processing technology.

[0006] To achieve the above objectives, in a first aspect, an e-commerce automatic classification method is provided, the method comprising:

[0007] S110: Acquire product data from an e-commerce platform, the product data including any one of a product title, a product description, and a product image, and pre-process the product data;

[0008] S120: extracting text features from the preprocessed product titles and product descriptions using a natural language processing method, and extracting image features from the preprocessed product images using an image processing method;

[0009] S130: Using a deep learning algorithm, combining the text features and the image features, to build a product classification model;

[0010] S140: training the commodity classification model using the labeled commodity data, and optimizing the performance of the commodity classification model by a cross-validation method and / or a hyperparameter adjustment method;

[0011] S150: Obtain a commodity classification result according to the input commodity data to be classified and the trained and optimized commodity classification model.

[0012] In some possible implementations, the preprocessing of the product title and product description in step S110 specifically includes the following steps:

[0013] Acquire product data from an e-commerce platform, and remove irrelevant information from the product data to obtain cleansed product data;

[0014] Standardize the commodity data after data cleaning;

[0015] Process missing values ​​of commodity data after data cleaning and data standardization to obtain complete commodity data;

[0016] De-duplication processing is performed on the complete product data;

[0017] Perform text normalization on the product data after deduplication.

[0018] In some possible implementations, preprocessing the product image in step S110 specifically includes the following steps:

[0019] Obtain product images from e-commerce platforms and organize the obtained product images according to product categories or other preset rules;

[0020] Adjust all the sorted product images to a uniform size or resolution;

[0021] Crop the main part of the product image to highlight the main part of the product or remove the extra background, and rotate the product image to correct the orientation if it is incorrect;

[0022] Adjust the brightness, contrast, and saturation of product images to ensure that the colors accurately reflect the actual product;

[0023] When the background of the product image is irrelevant to the product, remove the background or use a uniform background color.

[0024] In some possible implementations, step S120 uses a natural language processing method to extract text features from the preprocessed product title and product description, which specifically includes the following steps:

[0025] Receiving preprocessed text data corresponding to a product title and a product description;

[0026] Extracting keywords from the preprocessed text data based on a word frequency method, wherein the word frequency method includes counting the number of occurrences of each word in the text data and selecting words with an occurrence frequency higher than a preset frequency threshold as keywords;

[0027] A method based on term frequency-inverse text frequency index TF-IDF is used to extract keywords from the preprocessed text data, wherein the method based on TF-IDF includes calculating the TF-IDF value of each word and selecting words with a TF-IDF value higher than a preset score as keywords;

[0028] Extracting phrases based on an N-gram model method, wherein the N-gram-based method includes moving a sliding window on the text data to extract phrases of different lengths;

[0029] The method based on syntactic analysis extracts phrases from the preprocessed text data, uses the syntactic analyzer to identify the phrase structure in the sentence, and extracts the target phrases;

[0030] A word embedding-based method extracts semantic features from preprocessed text data, wherein the word embedding-based method includes: representing each word as a vector of fixed dimension, and extracting semantic features of the text data by calculating similarity between word vectors or performing vector operations;

[0031] Extracting semantic features from preprocessed text data based on a deep learning method, the deep learning method comprising: training a deep learning model to learn deep semantic features of text and extracting semantic features related to the task;

[0032] Integrate the extracted keywords, phrases and semantic features to form a text feature set of product titles and product descriptions;

[0033] Output the text feature set.

[0034] In some possible implementations, step S120 uses an image processing method to extract image features from the preprocessed product image, which specifically includes the following steps:

[0035] The color feature extraction is performed on the preprocessed product image, which specifically includes: selecting a color space from a plurality of predetermined color spaces, the color space being used to represent the color information in the product image; performing quantization processing on the color values ​​in the selected color space, the quantization processing including dividing the color values ​​into a series of intervals or histogram bins, each interval or histogram bin representing a color; for each color after the quantization processing, counting the number of pixels of each color in the product image, constructing a color histogram, the horizontal axis of the color histogram representing the quantized color value, and the vertical axis representing the number of pixels or frequency of the corresponding color; extracting color features from the color histogram, the color features being used to describe the color distribution of the product image;

[0036] The texture feature extraction is performed on the preprocessed product image, which specifically includes: converting the color image of the input product image into a grayscale image; determining the size of the window for analyzing the texture; using at least one texture operator to calculate the distribution or relationship of pixel values ​​in the selected window, wherein the texture operator includes a gray level co-occurrence matrix GLCM, a local binary pattern LBP or a Gabor filter; extracting target features from the results obtained by using the texture operator; merging the target features extracted from multiple texture operators or multiple window sizes, and performing standardization on the merged target features;

[0037] The shape features of the preprocessed product images are extracted, which specifically includes: applying an edge detection algorithm to detect edges in the image; based on the results of edge detection, using a contour extraction algorithm to extract the contour of the shape; performing a shape description on the extracted contour to extract shape features; and converting the extracted shape features into numerical vectors.

[0038] In some possible implementations, step S130 specifically includes the following steps:

[0039] Select an algorithm: Select an appropriate machine learning algorithm based on the characteristics of e-commerce product data, including selecting a convolutional neural network (CNN) to process image data and a recurrent neural network (RNN) or its variants to process text data;

[0040] Model architecture design: Design the hierarchical structure of the product classification model, which includes input layer, hidden layer and output layer;

[0041] Determine the input layer: If using CNN, the input layer is the pixel matrix of the image; if using RNN or its variants, the input layer is a text sequence, which is converted into a sequence of numbers;

[0042] Design hidden layers: In CNN, the hidden layers include convolutional layers and pooling layers. Convolutional layers are used to extract image features, and pooling layers are used to reduce data dimensions. In RNN, hidden layers are designed to process digital sequences cyclically.

[0043] Select activation function: Select activation function to introduce nonlinear factors into the neural network. The activation functions include ReLU, Sigmoid and Tanh.

[0044] Design the output layer: The number of neurons in the output layer corresponds to the number of product categories, and the output is converted into a probability distribution using the Softmax function or the Sigmoid function;

[0045] Loss function and optimizer selection: Select the loss function and optimizer to train the product classification model;

[0046] Use regularization technology to prevent overfitting: During the training of the product classification model, L1 regularization or L2 regularization technology is applied to constrain the weight parameters of the product classification model;

[0047] Apply random dropout technology: During the product classification model training process, random dropout technology is used to randomly set the nodes of the neural network to an inactive state.

[0048] In some possible implementations, step S140 specifically includes the following steps:

[0049] Obtain preprocessed product data to obtain a data set that can be used for model training;

[0050] Divide the dataset into training set, validation set and test set. The training set is used for model training, the validation set is used for preliminary evaluation and adjustment of model performance, and the test set is used for final evaluation of the model.

[0051] Use the training set to train the deep learning model, calculate the predicted value through forward propagation, and then backpropagate to calculate the gradient of the loss function and update the weights and parameters of the model;

[0052] Monitor the loss function value during training and the performance indicators on the validation set to ensure that the model is not overfitting or underfitting;

[0053] According to the performance on the validation set, adjust the model's hyperparameters to improve the model's performance;

[0054] Use cross-validation methods to evaluate the generalization ability of the model and obtain the performance of the model on different data subsets;

[0055] Based on the results of cross-validation, select the model with the best performance;

[0056] Use the test set data to conduct a final evaluation of the selected model to ensure that the performance of the model can achieve the expected effect in practical applications;

[0057] When the final evaluation result indicates that the trained model meets the requirements of the production environment, the trained model is deployed to the production environment for classification prediction of new product data;

[0058] Monitor the performance of the model in actual applications, and update or retrain the model according to preset evaluation rules or standards.

[0059] In some possible implementations, step S150 specifically includes the following steps:

[0060] Receive new product data, including product title, product description and product image;

[0061] Preprocess and extract features of new product data to ensure that the data format and feature representation are consistent with the training data;

[0062] Input the preprocessed product data into the trained and optimized product classification model;

[0063] The product classification model is used to classify the input product data and output classification labels and confidence scores. The classification labels correspond to the product classification system of the e-commerce platform, and the confidence scores indicate the degree of certainty of the classification results by the product classification model.

[0064] The output classification labels and confidence scores are provided to the corresponding system or user interface of the e-commerce platform.

[0065] In some possible implementations, step S145 may be further included before S150: optimizing the classification results, which specifically includes the following steps:

[0066] When displaying classification results to users, track and record user interaction behaviors to obtain user feedback;

[0067] Obtain the review results of the classification results by experts;

[0068] Integrate user feedback and expert review results to identify areas in the classification that need to be optimized;

[0069] Based on the integrated feedback, the model is adjusted accordingly, including adjusting the model parameters, adding new training data, or retraining the model; after the model is adjusted, the validation set is used to test the performance of the new model.

[0070] In a second aspect, an e-commerce automatic classification device is provided, the device comprising:

[0071] A preprocessing module, used to obtain product data from an e-commerce platform, the product data including any one of a product title, a product description and a product image, and preprocess the product data;

[0072] A feature extraction module is used to extract text features from the preprocessed product titles and product descriptions using a natural language processing method, and to extract image features from the preprocessed product images using an image processing method;

[0073] A commodity classification model building module, used to use a deep learning algorithm to combine the text features and the image features to build a commodity classification model;

[0074] A model training optimization module is used to train the commodity classification model using the labeled commodity data, and optimize the performance of the commodity classification model by a cross-validation method and / or a hyperparameter adjustment method;

[0075] The commodity classification module is used to obtain commodity classification results based on the input commodity data to be classified and the trained and optimized commodity classification model.

[0076] The above technical solution has the following beneficial technical effects:

[0077] This method combines text and image features to achieve automatic classification of goods on e-commerce platforms, which greatly reduces the workload and time cost of manual classification and improves classification efficiency.

[0078] This method uses natural language processing and image processing techniques to extract rich text and image features from product titles, descriptions, and pictures. These features are effectively integrated into the deep learning algorithm to improve the accuracy of classification.

[0079] This method uses a deep learning algorithm and combines it with a large amount of labeled product data for training to build a high-performance product classification model. This model can accurately identify different categories of products and reduce the classification error rate.

[0080] During the model training process, the performance of the product classification model can be further optimized by using cross-validation methods and / or hyperparameter adjustment methods. This allows the model to maintain a high classification accuracy when facing complex and diverse product data.

[0081] This method can be applied to different types of e-commerce platforms and commodity data, and has certain versatility and scalability. At the same time, according to actual needs, the extraction methods of text features and image features can be customized and adjusted to meet specific classification needs.

[0082] Through the automatic classification method, users can find the products they need more conveniently, which improves the shopping experience and the efficiency of the e-commerce platform. In addition, accurate product classification also helps to improve the product recommendation effect and sales of the e-commerce platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0084] Figure 1 is a flow chart of an e-commerce automatic classification method according to an embodiment of the present invention;

[0085] Figure 2 is a flow chart of preprocessing a product title and a product description according to an embodiment of the present invention;

[0086] Figure 3 is a flow chart of preprocessing a product image according to an embodiment of the present invention;

[0087] Figure 4 is a flow chart of extracting text features from pre-processed product titles and product descriptions using a natural language processing method according to an embodiment of the present invention;

[0088] Figure 5 is a flow chart of extracting image features from pre-processed product images using an image processing method according to an embodiment of the present invention;

[0089] Figure 6 is a flow chart of using labeled commodity data to train the commodity classification model according to an embodiment of the present invention;

[0090] Figure 7 It is a functional block diagram of an e-commerce automatic classification device according to an embodiment of the present invention;

[0091] Figure 8 It is a schematic diagram of the structure of a computer system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0092] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0093] The embodiments of the present invention aim to provide an e-commerce automatic classification method and device, which can achieve high-accuracy automatic classification of goods by adopting machine learning and natural language processing technology, and has good adaptability and scalability.

[0094] like Figure 1 As shown, an e-commerce automatic classification method according to an embodiment of the present invention includes the following steps:

[0095] S110: Data preprocessing step, which includes collecting and obtaining a large amount of product data from e-commerce platforms, including product titles, product descriptions, product images and other information, and performing cleaning and standardization processing.

[0096] In e-commerce platforms, product data usually contains information of various formats and qualities. Data preprocessing is the process of converting these raw data into a format suitable for subsequent processing.

[0097] like Figure 2 As shown, the data preprocessing of the text data in step S110 specifically includes the following steps:

[0098] S111. Data cleaning: remove irrelevant information, such as advertising slogans, meaningless symbols, etc.

[0099] S112. Data standardization: Ensure that all data follows a unified format and standard, such as a unified currency unit, size unit, etc.

[0100] S113. Missing value processing: For missing information, you can choose to fill, delete or estimate. Filling involves filling missing data with a certain value. Filling methods include using fixed values ​​(such as 0 or mean), using the value of the previous or next valid data, or using more complex techniques (such as interpolation or machine learning-based methods) to predict missing values. In some cases, if the missing data accounts for a small proportion or it is believed that these data points have little impact on the overall analysis, you can choose to directly delete the records containing missing values. This method is simple and direct, but it may cause data skew or loss of important information. The estimation method is to infer missing values ​​based on existing data, which involves the use of statistical methods (such as mean, median, mode, etc.) or modeling methods (such as regression analysis, decision trees, etc.) to predict or estimate missing data points.

[0101] S114, deduplication processing: delete duplicate product records to ensure the uniqueness of the data.

[0102] S115. Text normalization: including synonym replacement and spelling correction, etc., to reduce the complexity of subsequent processing. In a text, different words may express the same or similar meanings. For example, "happy" and "happy" can be used interchangeably in many cases. By replacing synonyms, these words in the text can be unified into the same expression, thereby simplifying the text content and reducing the complexity of subsequent processing. Spelling correction technology can identify and automatically correct these errors, making the text more accurate. This can

[0103] Avoid ambiguity or misunderstanding caused by spelling errors, thereby improving the accuracy of subsequent text analysis.

[0104] like Figure 3As shown, the preprocessing of the product image data in step S110 specifically includes the following steps:

[0105] S111': Image collection and organization: collect product images from e-commerce platforms or other sources, and organize the collected images according to product classification or other rules. Specifically, these product images can be collected by crawler technology or API interface calling. Crawler technology can automatically grab product images from the website, while API interface calling is a more stable and efficient way to obtain data, especially for large e-commerce platforms. Among them, organize and sort the images according to other specific rules or standards, for example: sort the images according to the time when the images are uploaded or taken, so that the changes and updates of the products at different time points can be clearly seen. Classify and organize the images according to the source (such as different e-commerce platforms, suppliers or photographers), which helps to analyze and compare the quality and characteristics of images from different sources. Sort the images according to the clarity, resolution or other quality indicators of the images, and manage high-quality images and low-quality images separately, so as to select the best images when displaying or using them. If the images are associated with specific product reviews or user feedback, the images can be organized according to the quality of user reviews or the degree of preference for the products, which helps to understand the user's response to different products or images. Organizing images based on product sales data, such as sorting images based on product sales, page views, or conversion rates, can help identify which images are associated with higher sales performance. Tagging images or keywords and then categorizing them by those tags or keywords is a flexible and customizable way to organize images.

[0106] S112': Image resizing: resize all images to a uniform size or resolution to suit the display requirements of the website or application. This ensures that the images are not distorted or blurred when displayed.

[0107] S113': Image Cropping and Rotation: Crop the image as needed to highlight the main part of the product or remove excess background. If the image is not oriented correctly, it can be rotated to correct it.

[0108] S114': Color adjustment and optimization: Adjust the brightness, contrast and saturation of the image to improve the visual effect of the image and ensure that the color accurately reflects the actual situation of the product.

[0109] S115': Background treatment: If the image background is irrelevant or distracting to the product, you can remove the background or use a uniform background color. For some products, such as clothing, you can use a transparent background to better display the product.

[0110] Further steps can include image compression: In order to speed up page loading, images can be compressed. Lossless or lossy compression techniques can be used, weighing image quality and file size according to needs.

[0111] It can also further include format conversion: converting the image into a format suitable for network transmission and display, such as JPEG, PNG, etc., as needed.

[0112] S120: A feature extraction step, which includes extracting text features from product titles and product descriptions using natural language processing technology, including keywords, phrases, and semantic features; and extracting image features or visual features from product images using image processing technology.

[0113] Feature extraction is the process of extracting information that can represent the characteristics of data from raw data. In e-commerce product classification, feature extraction specifically includes the following steps:

[0114] Text feature extraction step: Analyze product titles and descriptions using natural language processing methods to extract any one or more of keywords, phrases, and semantic features. The natural language processing techniques include: word frequency statistics, TF-IDF (termfrequency–inverse document frequency) analysis, word embedding (such as Word2Vec), etc.

[0115] like Figure 4 As shown, the natural language processing method is used to extract text features from the preprocessed product titles and product descriptions, which specifically includes the following steps:

[0116] S121: Receive pre-processed text data corresponding to the product title and product description.

[0117] S122: extracting keywords from the preprocessed text data based on a word frequency method;

[0118] S123: extracting keywords from the preprocessed text data based on a term frequency-inverse text frequency index TF-IDF method;

[0119] S124: Extract phrases from the preprocessed text data based on the N-gram model method;

[0120] S125: Extract phrases from preprocessed text data based on syntactic analysis;

[0121] S126: Extract semantic features from preprocessed text data based on word embedding method;

[0122] S127: Extracting semantic features from preprocessed text data based on deep learning methods;

[0123] S128: Integrate the extracted keywords, phrases, and semantic features to form a text feature set of a product title and product description;

[0124] S129: Output the text feature set.

[0125] Among them, keywords can be extracted by using any one of the following two methods or a combination of the two:

[0126] The method based on word frequency extracts keywords, which counts the number of occurrences of each word in the text and selects the words with higher frequency as keywords. This method is simple and intuitive, but it may be affected by stop words and common words.

[0127] In addition to considering word frequency, the TF-IDF method can also introduce the concept of inverse document frequency (IDF) to extract keywords. IDF is used to measure the importance of a word in the entire text set. By calculating the TF-IDF value of each word, words with higher scores can be selected as keywords. This method can exclude some common words that are less important to the text.

[0128] Among them, the phrase can be extracted by any one of the following two methods or by combining the two methods:

[0129] Based on the N-gram model, N-gram is a method that treats N consecutive words as a unit. By moving the sliding window over the text, phrases of different lengths can be extracted. For example, 2-gram represents two consecutive words, 3-gram represents three consecutive words, and so on. This method can capture some fixed phrases.

[0130] Based on the syntactic analysis method, the phrase structure in the sentence can be identified through syntactic analysis technology. Syntactic analysis can determine the dependency between words, thereby extracting meaningful phrases such as noun phrases and verb phrases. This method requires the help of a syntactic analyzer or related tools to implement.

[0131] Among them, the semantic features can be extracted by using any one of the following two methods or a combination of the two:

[0132] Based on word embedding methods, word embedding technologies (such as Word2Vec and GloVe (Global Vectors for Word Representation)) can represent each word as a vector of fixed dimension. These vectors learn the semantic relationship between words during training. By calculating the similarity between word vectors or performing vector operations, the semantic features of the text can be extracted. For example, the cosine similarity between two text vectors can be calculated to measure their semantic similarity.

[0133] Based on deep learning methods, deep learning models (such as convolutional neural networks (CNN) and recurrent neural networks (RNN)) can learn the deep semantic features of text from large-scale text data. By training deep learning models, high-level representations of text can be obtained, and then semantic features related to the task can be extracted.

[0134] Integrate the extracted keywords, phrases and semantic features to form a text feature set of product titles and product descriptions; and output the text feature set. Specifically, when integrating keywords, phrases and semantic features, the following specific steps may be taken:

[0135] Feature representation: The extracted keywords, phrases, and semantic features need to be represented in a form that can be processed by computers. Keywords and phrases can be directly represented in text form, while semantic features can be represented using vectors or embeddings.

[0136] Feature encoding: For keywords and phrases in text form, you can use the Bag of Words model or the word vector model (such as Word2Vec, GloVe, etc.) for encoding. The Bag of Words model represents the text as a word frequency vector, and the word vector model maps each word to a vector space of fixed dimension.

[0137] Feature merging: Merge the encoded keywords, phrases, and semantic features. Different merging strategies can be used, such as concatenation, weighted sum, or feature fusion using a deep learning model.

[0138] Feature selection: The merged feature set may contain a large number of features, some of which may contribute little to subsequent tasks or be redundant. Therefore, feature selection can be performed to remove features that are irrelevant or redundant to the task, so as to reduce the feature dimension and improve the generalization ability of the model.

[0139] Feature normalization: Normalize the selected features so that different features have the same scale or range. Common normalization methods include Min-Max Normalization and Z-score Normalization.

[0140] Feature set output: Output the feature set after integration, encoding, merging, selection and standardization, and save it in an appropriate format for subsequent product classification, recommendation or other related tasks.

[0141] Through the above specific steps, the extracted keywords, phrases and semantic features can be integrated into a text feature set of product titles and product descriptions, providing rich feature information for subsequent machine learning tasks.

[0142] Image feature extraction step: Use image processing technology to analyze product images and extract any one or more visual features such as color features, texture features, shape features, etc. This involves using image recognition algorithms such as SIFT (Scale-Invariant Feature Transform), SURF (Speeded Up Robust Features) or deep learning models to identify key points and patterns in the image.

[0143] like Figure 5 As shown, using the image processing method to extract image features from the preprocessed product image includes the following steps:

[0144] S121': Extract color features from the preprocessed product images; the specific steps of color feature extraction are as follows:

[0145] Select color space: First, select a suitable color space to represent the colors in the image, such as RGB, HSV, Lab, etc. Different color spaces have different advantages for different applications.

[0146] Color quantization: Quantize the color values ​​in the color space to reduce the number of colors and simplify calculations. Quantization can be achieved by dividing the color values ​​into a series of intervals or histogram bins, each of which represents a unique color.

[0147] Calculate color histogram: For each quantized color, count the number of pixels of that color in the image and generate a color histogram. The horizontal axis of the histogram represents the color value, and the vertical axis represents the number of pixels or frequency of that color.

[0148] Feature extraction: Extract useful features from the color histogram to describe the color distribution of the image. These features include statistics such as the mean, variance, skewness, kurtosis, or the shape and distribution characteristics of the histogram.

[0149] Normalization and standardization (optional): The extracted color features are normalized and standardized to eliminate the influence of factors such as image size and lighting on the features and make the color features more comparable.

[0150] These steps are helpful to extract meaningful color features from images for subsequent image analysis, classification or recognition tasks.

[0151] S122': extracting texture features from the preprocessed product images;

[0152] Among them, the specific steps of texture feature extraction are as follows:

[0153] Grayscale: First, convert the color image into a grayscale image. Grayscale images have only one channel, which can simplify calculations, and texture features are usually not affected by color information.

[0154] Select Texture Window Size: Determines the size of the window or area used to analyze textures. The choice of window size affects the granularity of texture features, with larger windows capturing coarser textures and smaller windows capturing finer textures.

[0155] Apply texture operators: Use specific texture operators to calculate the distribution or relationship of pixel values ​​within the window. Texture operators include gray-level co-occurrence matrix (GLCM), local binary pattern (LBP), Gabor filter, etc. These operators can capture the spatial relationship between pixels and the statistical information of gray levels.

[0156] Extract features: Extract meaningful features from the results obtained by applying texture operators. For different texture operators, the extracted features are different. For example, for GLCM, features such as contrast, energy, and entropy can be extracted; for LBP, histogram statistics can be calculated, etc.

[0157] Merge and normalize: If multiple texture operators or window sizes are used, the features extracted by them need to be merged. In addition, the features can be normalized to eliminate the impact of dimension and range differences on subsequent analysis.

[0158] Dimensionality reduction (optional): If the extracted features are high in dimensionality, you can consider using dimensionality reduction techniques (such as principal component analysis (PCA)) to reduce the dimensionality of the features while retaining the main information.

[0159] Through the above steps, features describing texture can be extracted from the image, and these features can be used for subsequent image recognition, classification and other tasks.

[0160] S123': Extract shape features from the preprocessed product images.

[0161] Among them, the specific steps of shape feature extraction are as follows:

[0162] Preprocessing: First, the image is preprocessed, such as denoising and grayscale conversion, to prepare for subsequent shape analysis.

[0163] Edge detection: Apply edge detection algorithms (such as Canny edge detection, Sobel edge detection, etc.) to identify edges in the image. Edges are an important part of the shape outline.

[0164] Contour extraction: Based on the results of edge detection, use a contour extraction algorithm (such as FindContours) to extract the contour of the shape. The contour is the outer boundary of the shape and can be composed of a series of continuous edge points.

[0165] Shape description: The extracted contour is described by calculating geometric features such as the contour's perimeter, area, convexity, eccentricity, or by using algorithms such as Fourier transform and shape context to perform more advanced shape description.

[0166] Feature vectorization: Convert the extracted shape features into numerical vectors for subsequent use by machine learning or pattern recognition algorithms. This can be done by combining the shape features into a feature vector.

[0167] Normalization and standardization (optional): The extracted shape features are normalized and standardized to eliminate the influence of factors such as scale and rotation on the features and improve the robustness and comparability of the features.

[0168] These steps are helpful to extract meaningful shape features from images for subsequent tasks such as image classification, recognition or object detection.

[0169] S130: A classification model construction step, which includes using a deep learning algorithm, such as a convolutional neural network (CNN) and a recurrent neural network (RNN), to combine text features and image features to construct a product classification model.

[0170] Building a classification model means creating a mathematical model that can predict the classification of products based on the input features. This step includes the following steps:

[0171] Select an algorithm: Choose the appropriate machine learning algorithm based on the characteristics of the data. For e-commerce product classification, the algorithms used include convolutional neural networks (CNN) for image data and recurrent neural networks (RNN) or their variants for text data, including long short-term memory networks (LSTM) and gated recurrent units (GRU).

[0172] Model architecture design: Design the hierarchical structure of the model, including the settings of the input layer, hidden layer, and output layer, as well as the selection of activation functions.

[0173] The specific process of model architecture design includes the following steps:

[0174] (1) Determine the input layer: If CNN is used to process images, the input layer is the pixel matrix of the image. For example, for a color image, it is a pixel matrix with 3 channels (red, green, and blue). For RNN or its variants (such as LSTM, GRU), the input layer is a text sequence. This requires converting the text into a sequence of numbers, for example, using word embedding (such as Word2Vec or GloVe).

[0175] (2) Design the hidden layer:

[0176] Convolutional layer: In CNN, convolutional layer is used to extract image features. Each convolutional layer contains multiple convolution kernels, which are used to slide on the image and perform convolution operations to capture local features.

[0177] Pooling layer: used after the convolutional layer to reduce the dimension of the data while retaining important features. Pooling operations include maximum pooling and average pooling.

[0178] Recurrent layer: In RNN, the hidden layer processes the sequence data cyclically to capture the temporal dependencies in the sequence. LSTM and GRU effectively solve the gradient vanishing and gradient exploding problems by introducing a gating mechanism.

[0179] (3) Select activation function:

[0180] Activation functions are used to introduce nonlinear factors in neural networks. Activation functions include ReLU (Rectified Linear Unit), Sigmoid, and Tanh. ReLU is used in hidden layers because it can speed up the training process and reduce the gradient vanishing problem.

[0181] (4) Design the output layer:

[0182] The design of the output layer depends on the specific requirements of the classification task. For multi-classification tasks, the Softmax function is usually used to convert the output into a probability distribution. For binary classification tasks, the Sigmoid function can be used. The number of neurons in the output layer corresponds to the number of categories.

[0183] (5) Loss function and optimizer selection:

[0184] The loss function is used to evaluate the difference between the model prediction and the true label. Loss functions include Cross-Entropy Loss and Mean Squared Error.

[0185] The optimizer is used to update the weights of the model to minimize the loss function. Optimizers include Stochastic Gradient Descent (SGD), Adaptive Moment Estimation (Adam), and Root Mean Square Propagation (RMSProp).

[0186] (6) Regularization and prevention of overfitting:

[0187] To prevent the model from overfitting the training data, regularization techniques such as L1 regularization and L2 regularization can be used. In addition, the random inactivation Dropout technique can be used, which randomly "turns off" a part of the neurons during training to reduce the dependency between neurons.

[0188] L1 regularization, also known as Lasso regression, achieves regularization by adding the sum of the absolute values ​​of the weight parameters to the loss function. This allows some weight parameters to be compressed to 0 during training, thereby achieving sparse feature selection, that is, the model only selects features that have a greater impact on the results.

[0189] L2 regularization, also known as ridge regression, implements regularization by adding the sum of the squares of the weight parameters to the loss function. This allows the weight parameters to shrink evenly during training, thereby reducing the complexity of the model and preventing overfitting.

[0190] Dropout is a regularization technique that randomly "turns off" some neurons during training, which means that during the forward propagation process, the output of these neurons will be temporarily set to 0. Since a portion of neurons are randomly selected to be "turned off" in each iteration, the structure of the neural network will actually be different in each iteration. Doing so can reduce the dependency between neurons, making it less likely that the model will be overly dependent on certain specific neurons, thereby improving the generalization ability of the model.

[0191] S140: Model training and optimization step, which includes using labeled product data to train the product classification model, and optimizing the model performance through methods such as cross-validation and hyperparameter adjustment.

[0192] like Figure 6 As shown in Figure 1, model training is to use labeled data to train the classification model so that it can learn the patterns and associations in the data. The optimization process includes the following steps:

[0193] S141: Obtain preprocessed commodity data to obtain a data set that can be used for model training.

[0194] S142: Execute the training process: divide the data into a training set and a validation set, use the training set data to train the model, and evaluate the model performance on the validation set. Alternatively, divide the data set into a training set, a validation set, and a test set. The training set is used for model training, the validation set is used for preliminary evaluation and adjustment of model performance, and the test set is used for the final evaluation of the model.

[0195] S143: During the training process, the model is trained using the training set data. In each iteration, the model forward propagates to calculate the predicted value, then back propagates to calculate the gradient of the loss function, and updates the weights and parameters.

[0196] S144: Monitor the loss function value during training and the performance indicators on the validation set to ensure that the model is not overfitting or underfitting. Data partitioning should follow randomness to ensure that the data distribution of each subset is similar to the overall dataset.

[0197] S145: Hyperparameter adjustment: Improve the performance of the model by adjusting the model's hyperparameters (such as learning rate, batch size, number of network layers, regularization strength, etc.). Specifically, adjust the model's hyperparameters based on the performance indicators on the validation set. You can use methods such as grid search, random search, or Bayesian optimization to find the best hyperparameter combination.

[0198] S146: Cross-validation: Use the cross-validation method to evaluate the generalization ability of the model, that is, repeat the training and validation process on different data subsets. Specifically, the cross-validation method is used to evaluate the generalization ability of the model. For example, k-fold cross-validation, which divides the data set into k subsets, uses k-1 subsets for training each time, and validates on the remaining subset. This process is repeated k times, and each time a different subset is selected as the validation set. Through cross-validation, the performance of the model on different data subsets can be obtained, thereby more accurately evaluating the generalization ability of the model.

[0199] S147: Model evaluation and selection: Based on the results of cross-validation, select the model with the best performance. This involves comparing the performance indicators of different models on the validation set, such as accuracy, precision, recall, or F1 score.

[0200] S148: Model testing: Use the test set data to conduct a final evaluation of the selected model to ensure that the performance of the model can achieve the expected results in actual applications. Based on these final evaluation results, it can be determined whether the model meets the requirements of the production environment. If the performance of the model is good and meets expectations, it can be deployed to the production environment for classification prediction of new product data.

[0201] S149: Model deployment and application: When the final evaluation results indicate that the trained model meets the requirements of the production environment, the trained model is deployed to the production environment for classification and prediction of new commodity data. Furthermore, the performance of the model in actual application in the production environment can be monitored, and the model can be updated or retrained according to the preset evaluation rules or standards.

[0202] S150: A step of obtaining classification results, which includes obtaining commodity classification results according to the input commodity data to be classified and the trained and optimized commodity classification model.

[0203] After model training and optimization, a trained and optimized product classification model is obtained. The input of the product classification model is new product data, which has not yet been classified. Specifically, the input data includes but is not limited to: product title, which includes the name or title of the product, containing key information such as brand, model, features, etc. Product description, which includes a detailed description of the product's features, uses, specifications, etc. Product images, which are image data showing the appearance and features of the product. Before being input into the model, these data need to go through the same preprocessing and feature extraction steps as the training data to ensure consistency in data format and feature representation.

[0204] The output of the product classification model is the result of the model classifying the input data, including:

[0205] Category labels: The model will assign one or more category labels to each product. These labels usually correspond to the product classification system of the e-commerce platform, such as "Clothing > Men's Clothing > T-shirts", "Electronic Products > Mobile Phones > Smartphones", etc.

[0206] Confidence score: The product classification model also outputs a confidence score, which indicates how confident the product classification model is in the classification result. This score can be used to evaluate the reliability of the classification result or to select among multiple possible classifications.

[0207] In practical applications, the output classification labels and confidence scores can be directly used in various e-commerce scenarios such as automatic product listing, search optimization, recommendation systems, etc. to improve operational efficiency and user experience.

[0208] In this embodiment, the commodity classification model determines the confidence score based on the following algorithm or rule:

[0209] Probability output: Many classification algorithms (such as neural networks, logistic regression, etc.) can output the probability of each category. This probability can be used directly as a confidence score. For example, if a model predicts that the probability that a certain product belongs to the category "Clothing > Men's Clothing > T-shirts" is 0.8, then this 0.8 can be used as a confidence score.

[0210] Distance metrics: In some distance-based classification algorithms (such as the k-nearest neighbor algorithm), the distance between the item and each category can be used to determine the confidence. The closer the distance, the higher the confidence is usually.

[0211] Leaf node purity of decision trees: For decision tree algorithms, the "purity" of leaf nodes can be used as a confidence score. For example, in classification tasks, the Gini index or information entropy can be used to measure the purity of nodes. The purer the leaf node, the higher the confidence of the classification is usually.

[0212] Voting mechanism: For ensemble learning methods such as random forests, multiple base classifiers classify the same sample and then vote to determine the final classification result. In this case, the confidence score can be determined based on the proportion of voting results. For example, if 90% of the base classifiers classify a product as "Apparel > Men's > T-shirts", the confidence score can be 0.9.

[0213] Model-built-in confidence assessment: Some models are designed with confidence assessment mechanisms built in. For example, Bayesian neural networks in deep learning can directly output the uncertainty or confidence of the classification results.

[0214] Post-processing: After model prediction, the confidence scores can also be calibrated or adjusted by some post-processing methods, such as Platt scaling or temperature scaling.

[0215] In an optional embodiment, the specific process of determining the confidence score includes the following steps by combining the six algorithms or rules in probability output, distance metric, leaf node purity of the decision tree, voting mechanism, model built-in confidence evaluation and post-processing:

[0216] Data preparation and input: Prepare the relevant data of the products and input them into the classification model.

[0217] Model prediction: Use the classification model to predict the input product data and generate preliminary classification results.

[0218] Probability output: If the classification algorithm used can output the probability of each category (such as neural network, logistic regression, etc.), directly obtain these probability values. The higher the probability value, the more confident the model is in the classification result.

[0219] Distance metric: If a distance-based classification algorithm (such as the k-nearest neighbor algorithm) is used, the distance between the product and each category is calculated. The closer the distance, the higher the similarity between the product and the category, and therefore the higher the confidence.

[0220] Leaf node purity of decision tree: For classification models using decision tree algorithms, evaluate the purity of leaf nodes. The higher the purity, the greater the possibility that the samples contained in the leaf node belong to the same category, and therefore the higher the confidence.

[0221] Voting mechanism: For ensemble learning methods (such as random forest), multiple base classifiers will classify the same sample and determine the final classification result through voting. The number of votes for each category is counted, and the category with the most votes is the final classification result. At the same time, the proportion of votes can also be used as a reference for the confidence score.

[0222] Model-built-in confidence assessment: If the model used has a built-in confidence assessment mechanism (such as a Bayesian neural network), then directly obtain the confidence scores of the model output. These scores are usually based on uncertainty estimates or probability distributions internal to the model.

[0223] Post-processing: Post-processing the calculated probabilities, scores, or votes to improve the accuracy and reliability of the confidence scores. Post-processing methods may include calibration, scaling, or other adjustment techniques such as Platt scaling or temperature scaling.

[0224] Confidence score determination: The final confidence score of each product is determined by comprehensively considering the results obtained in each of the above steps. Appropriate algorithms or rules can be selected for weighting or fusion according to specific needs and application scenarios. Appropriate algorithms or rules can be selected for weighting or fusion according to specific needs and application scenarios. Weighting means giving different weights to the results of different steps to reflect their importance in determining the final confidence score. For example, if the probability output is considered more important than the distance metric, a higher weight can be given to the probability output. Fusion means combining the results of different steps into a comprehensive confidence score. This can be achieved in various ways, such as taking the average, maximum, minimum, or using more complex fusion algorithms. Choosing the appropriate fusion method depends on the specific application scenario and needs. In summary, determining the final confidence score of each product is a process of comprehensively considering the results of multiple steps. Appropriate weighting or fusion methods can be selected according to the specific situation to obtain the final confidence score. Doing so can make full use of the information provided by different steps and improve the accuracy and reliability of the classification results.

[0225] Interpretation and application of results: The determined confidence scores are interpreted and applied together with the classification results. Based on the confidence scores, the reliability of the classification results can be judged, and selection or sorting can be made among multiple possible classifications.

[0226] Furthermore, in some embodiments, a classification result optimization step may be included before S150: introducing a feedback mechanism to continuously optimize the classification results through user behavior analysis and expert review. Through these steps, an efficient and accurate e-commerce commodity automatic classification system can be constructed.

[0227] Specifically, the specific implementation process of classification result optimization includes the following steps:

[0228] Collect user feedback: When displaying classification results to users, track and record user interaction behaviors, such as clicks, browsing time, purchases, etc. Analyze this data to determine whether users are satisfied with the current classification results. For example, if users frequently click on a certain category but quickly jump out, it means that the results of the category do not meet user expectations.

[0229] Obtain expert review results: Obtain expert review results on the classification results. After collecting user feedback for a period of time, invite domain experts to review the classification results. Experts will evaluate the classification results based on their professional knowledge and experience and point out possible problems or deficiencies.

[0230] Integrate feedback and review results: Integrate user feedback and expert review results to identify areas in the classification that need to be improved. This includes incorrect classifications, unclear labels, or missing categories.

[0231] Model adjustment and iteration: Based on the integrated feedback, the model is adjusted accordingly. This involves adjusting the model's parameters, adding new training data, or retraining the model. After the model is adjusted, the validation set is used to test the performance of the new model to ensure that it is improved compared to the previous version.

[0232] Continuous monitoring and optimization: Model optimization is not a one-time task. After the model is adjusted, continue to collect user feedback and expert review results to ensure continuous improvement of classification results.

[0233] This process is repeated over and over again, ensuring that the model's classification results always keep pace with user needs and expectations.

[0234] Through the above steps, it can be ensured that the classification results of the model are not only based on the judgment of the algorithm, but also integrate the feedback of real users and the advice of professional experts, thereby providing users with a more accurate and satisfactory classification experience.

[0235] Compared with the prior art, the embodiments of the present invention significantly improve the accuracy and efficiency of commodity classification by combining text and image features and applying deep learning algorithms. In addition, the introduced feedback mechanism can continuously optimize the classification results and improve the adaptability and scalability of the model.

[0236] like Figure 7 As shown, the embodiment of the present invention further provides an e-commerce automatic classification device, the device 400 comprising:

[0237] The preprocessing module 410 is used to obtain product data from the e-commerce platform, the product data including any one of a product title, a product description and a product image, and preprocess the product data;

[0238] A feature extraction module 420 is used to extract text features from the preprocessed product titles and product descriptions using a natural language processing method, and to extract image features from the preprocessed product images using an image processing method;

[0239] A commodity classification model building module 430 is used to build a commodity classification model by using a deep learning algorithm and combining the text features and the image features;

[0240] A model training optimization module 440 is used to train the commodity classification model using the labeled commodity data, and optimize the performance of the commodity classification model by a cross-validation method and / or a hyperparameter adjustment method;

[0241] The commodity classification module 450 is used to obtain commodity classification results according to the input commodity data to be classified and the trained and optimized commodity classification model.

[0242] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0243] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the above methods is implemented.

[0244] If the integrated module / 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 present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. Of course, there are other ways of readable storage media, such as quantum memory, graphene memory, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media does not include electrical carrier signals and telecommunication signals.

[0245] The present invention also provides a computer device. The computer device of the embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the present invention.

[0246] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 that is suitable for implementing a computer device of an embodiment of the present invention. Figure 8 The computer device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0247] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the computer system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0248] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0249] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the main step diagram. In the above embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit 801, the above functions defined in the system of the present invention are executed.

[0250] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0251] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0252] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, and the names of these units do not constitute limitations on the units themselves in some cases.

[0253] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An automatic e-commerce classification method, characterized in that: The method comprises: S110: Acquire product data from an e-commerce platform, the product data including any one of a product title, a product description, and a product image, and pre-process the product data; S120: extracting text features from the preprocessed product titles and product descriptions using a natural language processing method, and extracting image features from the preprocessed product images using an image processing method; S130: Using a deep learning algorithm, combining the text features and the image features, to build a product classification model; S140: training the commodity classification model using the labeled commodity data, and optimizing the performance of the commodity classification model by a cross-validation method and / or a hyperparameter adjustment method; S150: Obtain a commodity classification result according to the input commodity data to be classified and the trained and optimized commodity classification model.

2. The method according to claim 1, characterized in that The pre-processing of the product title and product description in step S110 specifically includes the following steps: Acquire product data from an e-commerce platform, and remove irrelevant information from the product data to obtain cleansed product data; Standardize the commodity data after data cleaning; Process missing values ​​of commodity data after data cleaning and data standardization to obtain complete commodity data; De-duplication processing is performed on the complete product data; Perform text normalization on the product data after deduplication.

3. The method according to claim 1, characterized in that The pre-processing of the product image in step S110 specifically includes the following steps: Obtain product images from e-commerce platforms and organize the obtained product images according to product categories or other preset rules; Adjust all the sorted product images to a uniform size or resolution; Crop the main part of the product image to highlight the main part of the product or remove the extra background, and rotate the product image to correct the orientation if it is incorrect; Adjust the brightness, contrast, and saturation of product images to ensure that the colors accurately reflect the actual product; When the background of the product image is irrelevant to the product, remove the background or use a uniform background color.

4. The method according to claim 1, characterized in that In step S120, a natural language processing method is used to extract text features from the preprocessed product title and product description, which specifically includes the following steps: Receiving preprocessed text data corresponding to a product title and a product description; The word frequency-based method extracts keywords from the preprocessed text data; Extract keywords from preprocessed text data based on the term frequency-inverse text frequency index TF-IDF method; Extract phrases from preprocessed text data based on the N-gram model; The method based on syntactic analysis extracts phrases from the preprocessed text data; Word embedding-based methods extract semantic features from preprocessed text data; Deep learning-based methods extract semantic features from preprocessed text data; Integrating the extracted keywords, phrases, and semantic features to form a text feature set of a product title and a product description; Output the text feature set.

5. The method according to claim 1, characterized in that In step S120, image features are extracted from the preprocessed product image using an image processing method, which specifically includes the following steps: The color feature extraction is performed on the preprocessed product image, which specifically includes: selecting a color space; quantizing the color values ​​in the selected color space; for each color after the quantization process, counting the number of pixels of each color in the product image and constructing a color histogram; extracting color features from the color histogram, wherein the color features are used to describe the color distribution of the product image; The texture feature extraction is performed on the preprocessed product image, which specifically includes: converting the color image of the input product image into a grayscale image; determining the size of the window for analyzing the texture; using at least one texture operator to calculate the distribution or relationship of pixel values ​​in the selected window, wherein the texture operator includes a gray level co-occurrence matrix GLCM, a local binary pattern LBP or a Gabor filter; extracting target features from the results obtained by using the texture operator; merging the target features extracted from multiple texture operators or multiple window sizes, and performing standardization on the merged target features; The shape features of the preprocessed product images are extracted, which specifically includes: applying an edge detection algorithm to detect edges in the image; based on the results of edge detection, using a contour extraction algorithm to extract the contour of the shape; performing a shape description on the extracted contour to extract shape features; and converting the extracted shape features into numerical vectors.

6. The method according to claim 1, characterized in that Step S130 specifically includes the following steps: Select an algorithm: Select an appropriate machine learning algorithm based on the characteristics of e-commerce product data, including selecting a convolutional neural network (CNN) to process image data and a recurrent neural network (RNN) or its variants to process text data; Model architecture design: Design the hierarchical structure of the product classification model, which includes input layer, hidden layer and output layer; Determine the input layer: If using CNN, the input layer is the pixel matrix of the image; If you use RNN or its variants, and the input layer is a text sequence, convert the text into a sequence of numbers; Design hidden layers: In CNN, the hidden layers include convolutional layers and pooling layers. Convolutional layers are used to extract image features, and pooling layers are used to reduce data dimensions. In RNN, hidden layers are designed to process digital sequences cyclically. Select activation function: Select activation function to introduce nonlinear factors into the neural network. The activation functions include ReLU, Sigmoid and Tanh. Design the output layer: The number of neurons in the output layer corresponds to the number of product categories, and the output is converted into a probability distribution using the Softmax function or the Sigmoid function; Loss function and optimizer selection: Select the loss function and optimizer to train the product classification model; Use regularization technology to prevent overfitting: During the training of the product classification model, L1 regularization or L2 regularization technology is applied to constrain the weight parameters of the product classification model; Apply random dropout technology: During the product classification model training process, random dropout technology is used to randomly set the nodes of the neural network to an inactive state.

7. The method according to claim 1, characterized in that Step S140 specifically includes the following steps: Obtain preprocessed product data to obtain a data set that can be used for model training; Dividing the data set into a training set, a validation set, and a test set; The deep learning model is trained using the training set, the prediction value is calculated by forward propagation, and then the gradient of the loss function is calculated by back propagation, and the weights and parameters of the model are updated; Monitor the loss function value during training and the performance indicators on the validation set to ensure that the model is not overfitting or underfitting; Adjust the model's hyperparameters based on the performance indicators on the validation set; Use cross-validation methods to evaluate the generalization ability of the model and obtain the performance of the model on different data subsets; Based on the results of cross-validation, select the model with the best performance; Perform a final evaluation of the selected model using the test set; When the final evaluation result indicates that the trained model meets the requirements of the production environment, the trained model is deployed to the production environment for classification prediction of new product data.

8. The method according to claim 1, characterized in that Step S150 specifically includes the following steps: Receive new product data, including product title, product description and product image; Preprocess and extract features of new product data to ensure that the data format and feature representation are consistent with the training data; Input the preprocessed product data into the trained and optimized product classification model; The product classification model is used to classify the input product data and output classification labels and confidence scores. The classification labels correspond to the product classification system of the e-commerce platform, and the confidence scores indicate the degree of certainty of the classification results by the product classification model. The output classification labels and confidence scores are provided to the corresponding system or user interface of the e-commerce platform.

9. The method according to claim 1, characterized in that: Before S150, step S145 may be included: optimizing the classification results, which specifically includes the following steps: Get user feedback when displaying classification results to users; Obtain the review results of the classification results by experts; Integrate the user feedback and expert review results to identify areas of the classification that need to be optimized; Based on the integrated feedback, the model is adjusted accordingly, including adjusting the model parameters, adding new training data, or retraining the model; After model tuning, use the validation set to test the performance of the new model.

10. An automatic classification device for e-commerce, characterized in that: The device comprises: A preprocessing module, used to obtain product data from an e-commerce platform, the product data including any one of a product title, a product description and a product image, and preprocess the product data; A feature extraction module is used to extract text features from the preprocessed product titles and product descriptions using a natural language processing method, and to extract image features from the preprocessed product images using an image processing method; A commodity classification model building module, used to use a deep learning algorithm to combine the text features and the image features to build a commodity classification model; A model training optimization module is used to train the commodity classification model using the labeled commodity data, and optimize the performance of the commodity classification model by a cross-validation method and / or a hyperparameter adjustment method; The commodity classification module is used to obtain commodity classification results based on the input commodity data to be classified and the trained and optimized commodity classification model.

Citation Information

Cited By

  • Large supervision model construction system and method based on artificial intelligence

    CN119338026A

  • A system and method for building a large regulatory model based on artificial intelligence

    CN119338026B

  • Commodity classification method and device based on artificial intelligence model

    CN119538057A

  • E-commerce model optimization method based on industry experience data training

    CN119782829A