A method and system for dynamic display of commodities based on multiple scenarios
By acquiring and analyzing product images and user behavior data, combined with Gaussian mixture models and Markov decision algorithms, the order of product display is dynamically adjusted, solving the problem of insufficient personalization and dynamic adjustment capabilities in the existing technology, and improving user experience and shopping conversion rate, and implements user evaluation preference analysis.
Patent Information
- Application Number
- CN202410810843.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The existing dynamic display method of products lacks personalization and dynamic adjustment capabilities, and cannot quantitatively analyze user preference tendencies based on user behavior data. As a result, it cannot attract user attention to the maximum extent, affects product exposure and purchase conversion rates, and cannot fully explore products in depth. Image information affects user evaluation preference analysis.
By obtaining product image data and user behavior data, we divide scene categories, extract advanced semantic feature vectors, use improved Gaussian mixture models and Markov decision algorithms to construct scene similarity matrices, dynamically adjust the display order, and combine emotional dictionaries and emotional polarity Classifier model, quantitatively analyze user evaluation preferences, and optimize the display order.
It improves user personalized experience and shopping satisfaction, increases product exposure and purchase conversion rate, achieves accurate analysis of user evaluation preferences and personalized display order, and enhances the shopping experience.
Smart Images

Figure CN118379115B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dynamic commodity display, and more specifically, to a method and system for dynamic commodity display based on multiple scenarios. Background Art
[0002] The patent application with the publication number CN113420244A discloses a method for generating a dynamic effect template, a method, device and electronic device for dynamically displaying pictures, wherein the method for dynamically displaying pictures includes receiving a product picture to be displayed; determining a matching dynamic effect template based on the characteristics of the product picture; and dynamically displaying the product picture on the client according to the dynamic effect template. In an embodiment of the present invention, by flexibly matching the dynamic effect template according to the received product picture on the client, and dynamically displaying the product picture based on the dynamic effect template, the user only needs to provide a static product picture to realize dynamic display. The entire process does not require the server to store and transmit video files, and flexible and changeable dynamic display can be performed based on the dynamic effect template.
[0003] However, the existing product display methods still lack personalization and dynamic adjustment capabilities. They are unable to quantitatively analyze user preferences based on their actual behavior data, and are unable to dynamically optimize the display order based on scene similarity, resulting in an inability to maximize user attention, affecting product exposure and purchase conversion rates, and making it difficult to bring a rich and enjoyable shopping experience. Secondly, they are unable to fully and deeply mine product images, resulting in poor results in subsequent product analysis and processing, and are unable to deeply mine and quantitatively analyze user product evaluation tendencies, and are unable to accurately reflect user evaluation preferences.
[0004] In view of this, the present invention proposes a multi-scenario commodity dynamic display method and system to solve the above problems. Summary of the invention
[0005] In order to overcome the above-mentioned defects of the prior art and to achieve the above-mentioned purpose, the present invention provides the following technical solutions: A method for dynamic display of commodities based on multiple scenarios, comprising: S1, obtaining commodity image data and user behavior data;
[0006] S2, dividing the product image data into n scene categories, performing feature extraction on the product image data in each scene category, and obtaining a corresponding high-level semantic feature vector;
[0007] S3, using an improved Gaussian mixture model to cluster the high-level semantic feature vectors in each scene category, and obtain m product image feature subsets in each scene category;
[0008] S4, extracting the principal component feature vectors of the product image feature data in each product image feature subset, and concatenating the principal component feature vectors in each scene category into a corresponding scene feature vector;
[0009] S5. Based on the scene feature vector, a scene similarity matrix is constructed. According to the scene similarity matrix and user behavior data, an improved Markov decision algorithm is used to obtain the optimal dynamic scene sequence, and the product images are dynamically displayed according to the optimal dynamic scene sequence.
[0010] Furthermore, the user behavior data includes user browsing product data, user purchasing product data and user product evaluation weighting coefficient;
[0011] User browsing data includes browsing product categories, browsing times and product dwelling time;
[0012] User purchase data includes the categories of purchased goods and the number of times the goods were purchased.
[0013] Furthermore, the method for obtaining the user product evaluation weighting coefficient includes:
[0014] Collecting user evaluation text data on products, and preprocessing the evaluation text data to obtain a set of evaluation words, recorded as the evaluation word set; the preprocessing method includes word segmentation, removal of stop words and removal of punctuation marks;
[0015] Manually annotate the sentiment polarity of M evaluation words in the evaluation word set, where the sentiment polarity is positive, neutral or negative; and automatically expand the evaluation word set into a sentiment dictionary using the seed word expansion method;
[0016] For each word in the evaluation word set, query the sentiment dictionary and obtain its sentiment polarity value; accumulate the sentiment polarity values of all words as the sentiment polarity score of the evaluation text data;
[0017] Collect historical evaluation text data, and convert each evaluation text into a vector consisting of sentiment polarity scores, recorded as sentiment polarity score vector;
[0018] Manually label the evaluation text corresponding to the sentiment polarity score vector with a category label, and use the sentiment polarity score vector and the manually labeled category label to form training data;
[0019] Use the samples in the training data to build and train the sentiment polarity classifier model, use the support vector machine as the basic framework of the sentiment polarity classifier model, and divide the sentiment polarity score vector into linearly separable and linearly inseparable; define the optimization objective function of the sentiment polarity classifier model and constraint function ;
[0020] , for linearly separable, ,and Greater than or equal to 1;
[0021] For linearly inseparable ,and Greater than or equal to , where is the normal vector of the defined hyperplane, is the intercept of the hyperplane; For the The sentiment polarity score vector of samples, No. The class labels of samples, For the sample slack variables, and Greater than or equal to 0, is the penalty coefficient, and Greater than 0; is the total number of samples, is the weight hyperparameter;
[0022] Through the cross-validation method, the appropriate penalty coefficient, kernel function and its parameters are selected to obtain the optimal model performance, and the constructed and trained sentiment polarity classifier model is obtained;
[0023] Collect historical user evaluation data for the product, use the sentiment polarity classifier to predict the sentiment polarity value of each evaluation, and count the number of positive categories for each user , the number of mid-face categories and the number of negative classes ; then the user product evaluation weight coefficient .
[0024] Furthermore, the methods of automatically expanding into a sentiment dictionary include:
[0025] Initialize a blank sentiment dictionary and manually collect seed words with positive or negative sentiment from the M1 group as the initial vocabulary;
[0026] Traverse the large-scale corpus, count the frequency of each word appearing with the seed word, and use the words that appear with the seed word of positive emotional color more frequently than the preset positive co-occurrence threshold as potential new positive emotional word candidates; use the words that appear with the seed word of negative emotional color less frequently than the preset negative co-occurrence threshold as potential new negative emotional word candidates;
[0027] Using the word vector model, the semantic similarity between the new candidate word and the corresponding seed word is calculated; a synonym similarity threshold and an antonym similarity threshold are preset; words with a semantic similarity greater than or equal to the synonym similarity threshold are determined as synonyms of the seed word; words with a semantic similarity less than the antonym similarity threshold are determined as antonyms of the seed word;
[0028] The synonyms and antonyms obtained are weighted by voting to obtain voting scores, and words with voting scores greater than a preset score threshold are included in the sentiment dictionary;
[0029] Use the newly included words as new seed words and repeatedly expand the sentiment dictionary until the size of the dictionary meets the preset dictionary requirements;
[0030] The method of calculating the semantic similarity between the new word candidate and the corresponding seed word includes:
[0031] Define the objective function of the word vector model
[0032] ;in, is the vocabulary size, Words The word vector of Words The word vector of Words and words The number of co-occurrences of for The weight function of Words The bias term, Words The bias term, is the set of seed words, for The index of the seed word in Seed word A collection of words with the same sentiment polarity, for The mean vector of all word vectors in , for The index of the words in Words The word vector of is a hyperparameter;
[0033] For new candidate words ,calculate and ;in, Indicates new candidate words A collection of seed words with positive sentiment colors The similarity of the most similar words in Indicates new candidate words A collection of seed words with negative sentiment The similarity of the most similar words in New candidate word The word vector of New candidate word The word vector of Calculates the cosine similarity function.
[0034] Furthermore, the method of performing feature extraction includes:
[0035] Construct a feature extraction network model based on a standard convolutional neural network structure; the feature extraction network model includes n1 convolutional layers, a global average pooling layer, a fully connected layer, and a feature vector output layer;
[0036] For the feature map output by each convolutional layer, the attention weight matrix is calculated using the following formula: ;in, for The attention function, For the The output feature map of the convolutional layer; For the The attention weight matrix of the convolutional layer, , where For the The first linear transformation matrix of the convolutional layer, For the The second linear transformation matrix of the convolutional layer, are the dimensions of the key space and value space, is the soft maximum function;
[0037] Multiply the attention weight matrix and the feature map element by element to obtain the attention weighted feature map, and use the attention weighted feature map as the input of the next layer to replace the original feature map;
[0038] For the attention-weighted feature map output by each convolutional layer, a feature vector is obtained using a global average pooling layer; the feature vectors from different convolutional layers are concatenated to obtain a multi-scale feature vector; the multi-scale feature vector is input into a fully connected layer for feature conversion and nonlinear mapping to obtain the final high-level semantic feature vector;
[0039] Define the loss function of the feature extraction network model ;in, To balance the hyperparameters, is the cross entropy loss function;
[0040] Semantic loss function ; In the formula, is the number of training samples, is the index of the training sample, No. The predicted high-level semantic feature vector of training samples, To indicate the Semantic annotation of training samples;
[0041] , where for The transpose of is the weight kernel parameter, is the density kernel parameter, and Greater than or equal to 0, Greater than 0;
[0042] Construct a training data set, which includes M1 sets of product images and their corresponding semantic annotations; use the optimization algorithm back propagation to update the parameters of the feature extraction network model and minimize the loss function. After n2 rounds of iterative training, the constructed feature extraction network model is obtained;
[0043] The product image data is input into the feature extraction network model to obtain the high-level semantic feature vector and complete the feature extraction.
[0044] Furthermore, the improved Gaussian mixture model is obtained by:
[0045] The improved Gaussian mixture model uses the K-means++ algorithm to perform initial clustering on the input data, obtains R initial clustering centers, and defines the initial parameters of the improved Gaussian mixture model, which include the initial mean vector, the initial covariance matrix, and the initial mixing coefficient; for the first Initial clustering, the sample set in it is CP, then let the initial mean vector be The initial covariance matrix is the mean of the initial clusters. The covariance of the initial clusters, the initial mixing coefficient is The proportion of samples in the initial clusters,
[0046] The initial covariance matrix Regularize to get the regularized covariance matrix ;in, is the regularization coefficient, is the identity matrix;
[0047] Collect historical data, including M3 sets of product image data and high-level semantic feature vectors corresponding to the product image data; combine the historical data into an input data set, iteratively train and improve the Gaussian mixture model until convergence or the preset maximum number of iterations is reached. The iterative training methods include:
[0048] Calculate the responsivity of each data point in the input data set belonging to each Gaussian component;
[0049] The calculation formula of responsiveness is: ;in, Indicates Data points Belong to The responsivity of the Gaussian components, is a hidden variable; For the The mixing coefficient of the Gaussian components; is the probability density function of the multivariate normal distribution; For the The mean vector of the Gaussian components, For the The covariance matrix of the Gaussian components; is the total number of Gaussian components, No. The mixing coefficient of Gaussian components, For the The mean vector of the Gaussian components, For the The covariance matrix of the Gaussian components; for From all The weighted sum of the total probabilities of the Gaussian components;
[0050] Based on the calculated responsiveness, the mean vector, covariance matrix and mixing coefficients are recalculated; the trained improved Gaussian mixture model is obtained by using the small kernel technique and unconstrained optimization algorithm.
[0051] Furthermore, the method for acquiring the m product image feature subsets in each scene category includes:
[0052] Step 1: For any scene category, the responsiveness of each high-level semantic feature vector belonging to each Gaussian component is calculated according to the trained improved Gaussian mixture model;
[0053] Step 2: For each Gaussian component, sort all high-level semantic feature vectors from large to small according to the responsiveness, select the first m high-level semantic feature vectors and their corresponding product image data to form the product image feature subset corresponding to the Gaussian component;
[0054] Repeat steps 1 and 2 until m product image feature subsets in the corresponding scene category are obtained.
[0055] Furthermore, the method of extracting the principal component feature vector includes:
[0056] For each product image feature subset, its high-level semantic feature vector is centralized to obtain the centralized data matrix ,in, is the mean matrix of all high-level semantic feature vectors; is the initial data matrix constructed;
[0057] The centralized data matrix Perform singular value decomposition. The formula for singular value decomposition is:
[0058] ,in, is an orthogonal matrix, is a diagonal matrix, is an orthogonal matrix, for The transpose of
[0059] Before selection The principal component direction corresponding to the largest singular value is Before The matrix composed of columns is used as the basis of the principal component feature space of the product image feature subset. High-level semantic feature vector , its projection in the principal component feature space is ,in, is the mean of the high-level semantic feature vector; That is, the principal component eigenvector;
[0060] For each scene category, the principal component feature vectors in the corresponding m product image feature subsets are concatenated to form a scene feature vector for the scene category.
[0061] Furthermore, the method of constructing the scene similarity matrix includes:
[0062] Construct a scene similarity matrix based on scene feature vectors , scene similarity matrix The element in the pi-th row and the pj-th column represents the similarity between the pi-th scene category and the pj-th scene category; the cosine similarity is used to calculate the similarity between the two scene feature vectors as the similarity between the scene categories; that is, the construction of the scene similarity matrix is completed;
[0063] The method for obtaining the optimal dynamic scene sequence includes:
[0064] Define a scene similarity matrix State transition probability matrix of the same dimension ; According to the scene similarity matrix To initialize the elements in the state transition probability matrix;
[0065] The initialization formula is: ,in, is the scene similarity matrix Middle Line The elements of the column, for Middle Line Elements of a column; is the index of the scene category, is the scene similarity matrix Middle Line Elements of a column;
[0066] The scene importance score is calculated based on user behavior data. The calculation formula for the scene importance score is: ,in Indicates The scene importance scores of scene categories, Browse for users The number of scene category products, Buy the first The number of scene category products, For users User product evaluation weighting coefficient for products in each scenario category; Browse for users The product dwelling time of each scene category product;
[0067] is the browsing weight coefficient, is the purchase weight coefficient, is the evaluation weight coefficient, is the stay weight coefficient;
[0068] The scene importance score and the state transition probability matrix are combined to define a scoring matrix. Line Elements of a column Indicates that from The scene category is transferred to The ratings of the scene categories, ,in, Indicates The scene importance scores of scene categories, Indicates The scene importance scores of each scene category;
[0069] Define a length of The initial dynamic scene sequence and scene goal of the scene are to find an optimal dynamic scene sequence so that the total score transferred along the sequence is the largest. Departure, passing The maximum score after scene categories ;
[0070] Then there is a recursive formula: ,in, Indicates that from The scene category is transferred to Ratings for scene categories;
[0071] Calculate the maximum score after any number of steps from any starting scene category, and finally get Given from Departure, passing The maximum score of each scene category is obtained, and the corresponding optimal dynamic scene sequence is obtained by backtracking.
[0072] A multi-scenario commodity dynamic display system, which is used to implement the multi-scenario commodity dynamic display method, comprises: a data acquisition module, which is used to acquire commodity image data and user behavior data;
[0073] A feature extraction module is used to divide the product image data into n scene categories, extract features from the product image data in each scene category, and obtain the corresponding high-level semantic feature vector;
[0074] A clustering module, used to cluster the high-level semantic feature vectors in each scene category using an improved Gaussian mixture model to obtain m product image feature subsets in each scene category;
[0075] A principal component splicing module is used to extract principal component feature vectors of product image feature data in each product image feature subset, and splice the principal component feature vectors in each scene category into a corresponding scene feature vector;
[0076] The dynamic optimization display module constructs a scene similarity matrix based on the scene feature vector; according to the scene similarity matrix and user behavior data, an improved Markov decision algorithm is used to obtain the optimal dynamic scene sequence, and the product images are dynamically displayed according to the optimal dynamic scene sequence.
[0077] The technical effects and advantages of the method and system for dynamic display of commodities in multiple scenarios of the present invention are as follows:
[0078] The present invention can greatly enhance the personalized experience and shopping satisfaction of users, skillfully divide commodity images into different scene categories, deeply mine the high-level semantic information of images, and adopt clustering algorithms for different scene categories to obtain more reasonable commodity image feature subset division, and can quantitatively analyze the user's preference tendency according to the user's browsing, purchasing and evaluation behavior data, and dynamically adjust the optimal scene display sequence by adopting an improved decision algorithm in combination with scene similarity, and the personalized dynamic display sequence can maximize the user's attention, improve the product exposure rate and purchase conversion rate, thereby bringing a richer and more pleasant shopping experience; at the same time, the quantitative analysis of the user's commodity evaluation tendency is introduced, and by automatically constructing a sentiment dictionary and training a sentiment polarity classifier model, the user's evaluation preference for the commodity can be accurately grasped, and the evaluation bias coefficient is incorporated into the scene importance calculation, so that the display sequence is more in line with the user's subjective evaluation, the user's shopping satisfaction is improved, and the personalized experience is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 A schematic diagram of a method for dynamic display of commodities based on multiple scenarios of the present invention;
[0080] Figure 2 It is a schematic diagram of a multi-scenario commodity dynamic display system of the present invention. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] Example 1
[0083] See also Figure 1 As shown, the method for dynamic display of commodities based on multiple scenarios described in this embodiment includes:
[0084] S1. Obtain product image data and user behavior data;
[0085] S2, dividing the product image data into n scene categories, performing feature extraction on the product image data in each scene category, and obtaining a corresponding high-level semantic feature vector;
[0086] S3, using an improved Gaussian mixture model to cluster the high-level semantic feature vectors in each scene category, and obtain m product image feature subsets in each scene category;
[0087] S4, extracting the principal component feature vectors of the product image feature data in each product image feature subset, and concatenating the principal component feature vectors in each scene category into a corresponding scene feature vector;
[0088] S5. Based on the scene feature vector, a scene similarity matrix is constructed. According to the scene similarity matrix and user behavior data, an improved Markov decision algorithm is used to obtain the optimal dynamic scene sequence, and the product images are dynamically displayed according to the optimal dynamic scene sequence.
[0089] Furthermore, user behavior data includes user browsing product data, user purchasing product data, and user product evaluation weight coefficient;
[0090] User browsing data includes browsing product categories, browsing times and product dwelling time;
[0091] User purchase data includes the categories of purchased goods and the number of times the goods were purchased.
[0092] The method for obtaining the user product evaluation weight coefficient includes:
[0093] The user's evaluation text data on the product is collected, and the evaluation text data is preprocessed to obtain a set of evaluation words, which is recorded as the evaluation word set; the preprocessing method includes word segmentation, removal of stop words and removal of punctuation marks.
[0094] The sentiment polarities of M evaluation words in the evaluation word set are manually annotated, and the sentiment polarities are positive, neutral or negative; the evaluation word set is automatically expanded into a sentiment dictionary using the seed word expansion method.
[0095] The ways to automatically expand into a sentiment dictionary include:
[0096] Initialize a blank sentiment dictionary and manually collect M1 group of seed words with clear positive or negative sentiment as the initial vocabulary. For example, seed words with positive sentiment can include "good review", "like", "excellent", etc., and seed words with negative sentiment can include "bad review", "terrible", "disappointment", etc.
[0097] Traverse a large-scale corpus, such as online news, social media, etc., and count the frequency of each word appearing with the seed word. The words that appear with the seed word with positive emotional color more frequently than the preset positive co-occurrence threshold are regarded as potential new positive emotional word candidates; the words that appear with the seed word with negative emotional color less than the preset negative co-occurrence threshold are regarded as potential new negative emotional word candidates.
[0098] Use the word vector model to calculate the semantic similarity between the new candidate word and the corresponding seed word; preset the synonym similarity threshold and the antonym similarity threshold; determine the words with semantic similarity greater than or equal to the synonym similarity threshold as synonyms of the seed word; determine the words with semantic similarity less than the antonym similarity threshold as antonyms of the seed word.
[0099] The synonyms and antonyms obtained are voted weighted to obtain voting scores, and words with voting scores greater than a preset score threshold are included in the sentiment dictionary.
[0100] The newly included words are used as new seed words, and the sentiment dictionary is repeatedly expanded until the size of the dictionary meets the preset dictionary requirements; the dictionary requirements, for example, the dictionary size threshold, that is, the target value of the total number of words in the sentiment dictionary, such as 10,000 words, 20,000 words, etc.; or the dictionary requirement is the dictionary coverage threshold, that is, on a corpus (such as online comment data), the proportion of all sentiment words in the corpus covered by the sentiment dictionary is calculated, and an expected coverage target value is set, such as covering 90% of the sentiment words; secondly, the dictionary requirement can be manual sampling to evaluate the sentiment polarity accuracy of words in the sentiment dictionary, and set an expected accuracy target value, such as 95% of the words have correct sentiment polarity.
[0101] The positive co-occurrence threshold and the negative co-occurrence threshold determine the lower limit of the co-occurrence frequency of a word that is considered a potential positive / negative sentiment word. Based on some annotated corpus, the frequency distribution of the co-occurrence of seed positive / negative sentiment words with other words is statistically analyzed, and a fixed quantile (such as the 75% quantile) is taken as the initial threshold. In addition, a lower initial threshold is set manually, and then the initial threshold is adjusted through multiple iterations to ensure that the final expanded sentiment dictionary has a higher quality.
[0102] The synonym similarity threshold determines the lower limit of the similarity between a word and a seed word for being considered synonyms. Based on the existing synonym data, the similarity distribution of known synonym pairs is statistically analyzed, and a fixed quantile (such as the 75% quantile) is taken as the initial threshold. In addition, the synonymy degree of some word pairs is manually annotated, and a threshold model is fitted based on the manually annotated data. The synonym similarity threshold is obtained using the threshold model.
[0103] The antonym similarity threshold determines the upper limit of the similarity between a word and a seed word before it is considered antonym. Based on the existing antonym data, the similarity distribution of known antonym pairs is statistically analyzed, and the 25% quantile is taken as the initial threshold. Similarly, the antonymy degree of some word pairs is manually annotated, and a threshold model is fitted based on these annotated data to obtain the antonym similarity threshold.
[0104] The score threshold determines the lower limit of the voting score for a word to be included in the sentiment dictionary. Based on some annotated corpus, the accuracy of sentiment words under different voting scores is counted, and a score corresponding to a higher accuracy is selected as the initial threshold. In addition, a higher initial threshold is set manually. Then, through multiple iterative adjustments, the accuracy and coverage of the sentiment dictionary are weighed to obtain a more comprehensive score threshold.
[0105] The method of calculating the semantic similarity between the new word candidate and the corresponding seed word includes:
[0106] Define the objective function of the word vector model
[0107] ;in, is the vocabulary size, which is the number of all unique words that appear in the training corpus for training the improved GloVe word vector model. Words The word vector of Words The word vector of Words and words The number of co-occurrences (number of times they appear at the same time), for The weight function of Words The bias term, Words The bias term, is the set of seed words, for The index of the seed word in Seed word A collection of words with the same sentiment polarity, for The mean vector of all word vectors in , for The index of the words in Words The word vector of is a hyperparameter; the objective function is to make word vectors with the same sentiment polarity close to each other, thereby forming two relatively concentrated areas of positive and negative in the word vector space.
[0108] The preset training corpus uses a large amount of online news, social media data, etc. as training corpus. The training corpus is used to train the word vector model. The training corpus is segmented and deduplicated to obtain a set of all unique words that appear in it. The size of this set is the vocabulary size; an index number is assigned to each word (for example, "good review" is indexed as 1, "bad review" is indexed as 2, and so on), thereby constructing a vocabulary, which contains words; when training the word vector model, For each of the words, a word vector is learned.
[0109] For new candidate words ,calculate and ;in, Indicates new candidate words A collection of seed words with positive sentiment colors The similarity of the most similar words in Indicates new candidate words A collection of seed words with negative sentiment The similarity of the most similar words in New candidate word The word vector of New candidate word The word vector of Calculates the cosine similarity function.
[0110] For each word in the evaluation word set, query the sentiment dictionary and obtain its sentiment polarity value (+1 for positive, 0 for neutral, -1 for negative); accumulate the sentiment polarity values of all words as the sentiment polarity score of the evaluation text data.
[0111] Collect historical evaluation text data, that is, the evaluation texts of a large number of users when evaluating products within a fixed period of time in history; convert each evaluation text into a vector composed of sentiment polarity scores, recorded as sentiment polarity score vector;
[0112] The evaluation text corresponding to the sentiment polarity score vector is manually labeled with a category label; the label is positive, neutral or negative, and the sentiment polarity score vector and the manually labeled category label form training data; the category label takes the value of -1, 0 or 1, representing the negative category, the neutral category and the positive category, respectively.
[0113] Use the samples in the training data to build and train the sentiment polarity classifier model, use the support vector machine as the basic framework of the sentiment polarity classifier model, and divide the sentiment polarity score vector into linearly separable and linearly inseparable; define the optimization objective function of the sentiment polarity classifier model and constraint function ;
[0114] , for linearly separable, ,and Greater than or equal to 1;
[0115] For linearly inseparable ,and Greater than or equal to , where is the normal vector of the defined hyperplane, used to represent the weight of the classifier, is the intercept of the hyperplane, which is used to adjust the position of the classification boundary; For the The sentiment polarity score vector of samples, No. The class labels of samples, For the sample slack variables and is greater than or equal to 0, indicating that The degree to which a sample violates the constraint function, is the penalty coefficient, which is used to weigh the impact of the maximum interval and misclassified samples and is greater than 0; is the total number of samples, is the weight hyperparameter, and a suitable value is selected through cross-validation method to construct a Lagrangian function, which contains the slack variables and Lagrangian multipliers corresponding to all samples. The Lagrangian multiplier is updated iteratively to minimize the Lagrangian function, that is, the optimal , and the corresponding slack variable values.
[0116] Through the cross-validation method, appropriate penalty coefficients, kernel functions and their parameters are selected to obtain the optimal model performance, and the constructed and trained sentiment polarity classifier model is obtained.
[0117] Collect historical user evaluation data for the product, use the sentiment polarity classifier to predict the sentiment polarity value of each evaluation, and count the number of positive categories for each user , the number of mid-face categories and the number of negative classes ; then the user product evaluation weight coefficient .
[0118] The method of dividing the product image data into n scene categories is set according to the product type (such as clothing, electronic products, food, etc.), usage scenario (such as outdoor sports, office, etc.) or other reasonable classification standards.
[0119] Further, the feature extraction method includes:
[0120] Construct a feature extraction network model. The feature extraction network model is based on a standard convolutional neural network structure. The input of the feature extraction network model is defined as product image data, and the output is the semantic feature vector of the product image data. The feature extraction network model includes n1 convolutional layers, a global average pooling layer, a fully connected layer, and a feature vector output layer at the last layer.
[0121] For the feature map output by each convolutional layer, the attention weight matrix is calculated using the following formula: ;in, for The attention function, For the The output feature map of the convolutional layer; For the The attention weight matrix of the convolutional layer, , where For the The first linear transformation matrix of the convolutional layer, For the The second linear transformation matrix of the convolutional layer, is the dimension of the key space and value space, which is regarded as a hyperparameter of the attention function. is a soft maximum function, which is used to normalize the input into a probability distribution with a sum of 1.
[0122] The attention weight matrix is multiplied element-by-element by the feature map to obtain the attention-weighted feature map, which is used as the input of the next layer to replace the original feature map.
[0123] For the attention-weighted feature map output by each convolutional layer, a feature vector is obtained using a global average pooling layer; the feature vectors from different convolutional layers are cascaded and spliced to obtain a multi-scale feature vector; the multi-scale feature vector is input into a fully connected layer for feature conversion and nonlinear mapping to obtain the final high-level semantic feature vector.
[0124] Define the loss function of the feature extraction network model ;in, To balance the hyperparameters, is the cross entropy loss function;
[0125] Semantic loss function ; In the formula, is the number of training samples, is the index of the training sample, No. The predicted high-level semantic feature vector of training samples, To indicate the Semantic annotation of training samples;
[0126] , where for The transpose of is the weight kernel parameter, is the density kernel parameter, and Greater than or equal to 0, Greater than 0.
[0127] Construct a training data set, which contains M1 groups of product images and their corresponding semantic annotations (such as objects in the image, scene categories, etc.); use an optimization algorithm (such as stochastic gradient descent) for back propagation, update the parameters of the feature extraction network model, minimize the loss function, and after n2 rounds of iterative training, obtain the constructed feature extraction network model.
[0128] The product image data is input into the feature extraction network model to obtain the high-level semantic feature vector and complete the feature extraction.
[0129] Furthermore, the improved Gaussian mixture model is obtained by:
[0130] For each scene category, the high-level semantic feature vectors of all product image data are used as input data of the improved Gaussian mixture model;
[0131] The improved Gaussian mixture model uses the K-means++ algorithm to perform initial clustering on the input data, obtains R initial clustering centers, and defines the initial parameters of the improved Gaussian mixture model, which include the initial mean vector, the initial covariance matrix, and the initial mixing coefficient; for the first Initial clustering, the sample set in it is CP, then let the initial mean vector be The initial covariance matrix is the mean of the initial clusters. The covariance of the initial clusters, the initial mixing coefficient is The sample proportion of the initial cluster.
[0132] The initial covariance matrix Regularize to get the regularized covariance matrix ;in, is the regularization coefficient, with a value range of (0, 1). is the identity matrix.
[0133] Collect historical data, including M3 sets of product image data and high-level semantic feature vectors corresponding to the product image data; combine the historical data into an input data set, iteratively train and improve the Gaussian mixture model until convergence or the preset maximum number of iterations is reached. The iterative training methods include:
[0134] Calculate the responsiveness of each data point in the input data set to each Gaussian component; Gaussian components are the individual Gaussian distribution components that constitute the Gaussian mixture model;
[0135] The calculation formula of responsiveness is: ;in, Indicates Data points Belong to The responsivity of the Gaussian components, is a hidden variable, indicating By Gaussian components generated; For the The mixing coefficient of the Gaussian components represents the The contribution of each Gaussian component in the entire improved Gaussian mixture model; is the probability density function of the multivariate normal distribution, representing the data point In the The probability density value under Gaussian components; For the The mean vector of the Gaussian components, For the The covariance matrix of the Gaussian components; is the total number of Gaussian components, No. The mixing coefficient of Gaussian components, For the The mean vector of the Gaussian components, For the The covariance matrix of the Gaussian components; for From all The weighted sum of the total probabilities of the Gaussian components.
[0136] Based on the calculated responsiveness, the mean vector, covariance matrix and mixing coefficient are recalculated; the small kernel technique is used to reduce the computational complexity, and an unconstrained optimization algorithm, such as L-BFGS, is used to avoid falling into the local optimum; and a trained improved Gaussian mixture model is obtained.
[0137] The method of acquiring the m product image feature subsets in each scene category includes:
[0138] Step 1: For any scene category, the responsiveness of each high-level semantic feature vector belonging to each Gaussian component is calculated according to the trained improved Gaussian mixture model;
[0139] Step 2: For each Gaussian component, sort all high-level semantic feature vectors from large to small according to the responsiveness, select the first m high-level semantic feature vectors and their corresponding product image data to form the product image feature subset corresponding to the Gaussian component;
[0140] Repeat steps 1 and 2 until m product image feature subsets in the corresponding scene category are obtained.
[0141] Improve the clustering process of Gaussian mixture model, better handle high-dimensional data, avoid singular matrix problems, speed up convergence, and thus obtain more reasonable feature subset division of product images.
[0142] Furthermore, the principal component feature vector is extracted by:
[0143] For each product image feature subset, its high-level semantic feature vector is centralized to obtain the centralized data matrix ,in, is the mean matrix of all high-level semantic feature vectors; The initial data matrix constructed is , each row of which corresponds to a high-level semantic feature vector of product image data.
[0144] The centralized data matrix Perform singular value decomposition. The formula for singular value decomposition is:
[0145] ,in, is an orthogonal matrix, representing the projection of the high-level semantic feature vector in the principal component space. is a diagonal matrix. The diagonal elements of the diagonal matrix are singular values, indicating the variance of the corresponding principal component direction. is an orthogonal matrix, which represents the representation of the principal component direction in the original space. for The transpose of .
[0146] Before selection The principal component direction corresponding to the largest singular value is Before The matrix composed of columns is used as the basis of the principal component feature space of the product image feature subset. High-level semantic feature vector , its projection in the principal component feature space is ,in, is the mean of the high-level semantic feature vector; It is the coordinate of the high-level semantic feature vector in the principal component feature space, that is, the principal component feature vector.
[0147] For each scene category, the principal component feature vectors in the corresponding m product image feature subsets are concatenated to form a scene feature vector for the scene category.
[0148] Furthermore, the method of constructing the scene similarity matrix includes:
[0149] Construct a scene similarity matrix based on scene feature vectors , scene similarity matrix The element in the pi-th row and the pj-th column represents the similarity between the pi-th scene category and the pj-th scene category; the cosine similarity is used to calculate the similarity between the two scene feature vectors as the similarity between the scene categories; that is, the construction of the scene similarity matrix is completed.
[0150] The methods for obtaining the optimal dynamic scene sequence include:
[0151] Define a scene similarity matrix State transition probability matrix of the same dimension , Middle Line The elements of the column represent The scene category is transferred to The probability of scene categories; according to the scene similarity matrix To initialize the elements in the state transition probability matrix.
[0152] The initialization formula is: ,in, is the scene similarity matrix Middle Line The element of the column, i.e. The scene categories and The similarity between scene categories, for Middle Line Elements of a column; is the index of the scene category, is the scene similarity matrix Middle Line Elements of a column.
[0153] The scene importance score is calculated based on user behavior data. The calculation formula for the scene importance score is: ,in Indicates The scene importance scores of scene categories, Browse for users The number of scene category products, Buy the first The number of scene category products, For users User product evaluation weighting coefficient for products in each scenario category; Browse for users The product dwelling time of each scene category product;
[0154] is the browsing weight coefficient, is the purchase weight coefficient, is the evaluation weight coefficient, is the stay weight coefficient, which is adjusted according to actual needs;
[0155] The scene importance score and the state transition probability matrix are combined to define a scoring matrix. Line Elements of a column Indicates that from The scene category is transferred to The ratings of the scene categories, ,in, Indicates The scene importance scores of scene categories, Indicates The scene importance scores of each scene category.
[0156] Define a length of The initial dynamic scene sequence and scene goal of the scene are to find an optimal dynamic scene sequence so that the total score transferred along the sequence is the largest. Departure, passing The maximum score after scene categories ;
[0157] Then there is a recursive formula: ,in, Indicates that from The scene category is transferred to Ratings for scene categories;
[0158] Calculate the maximum score after any number of steps from any starting scene category, and finally get Given from Departure, passing The maximum score of each scene category is obtained, and the corresponding optimal dynamic scene sequence is obtained by backtracking.
[0159] This embodiment can greatly enhance the personalized experience and shopping satisfaction of users, cleverly divide product images into different scene categories, deeply mine the high-level semantic information of images, and adopt clustering algorithms for different scene categories to obtain more reasonable product image feature subset division. It can quantitatively analyze user preferences based on user browsing, purchasing and evaluation behavior data, and dynamically adjust the optimal scene display order based on scene similarity using an improved decision algorithm. The personalized dynamic display order can maximize the user's attention, improve the product exposure rate and purchase conversion rate, and thus bring a richer and more pleasant shopping experience. At the same time, it introduces the quantitative analysis of user product evaluation tendencies. By automatically constructing a sentiment dictionary and training a sentiment polarity classifier model, it can accurately grasp the user's evaluation preference for products, and incorporate the evaluation bias coefficient into the scene importance calculation, so that the display order is more in line with the user's subjective evaluation, improve the user's shopping satisfaction, and enhance the personalized experience.
[0160] Example 2
[0161] See also Figure 2 As shown, the part not described in detail in this embodiment is described in Example 1, which provides a multi-scenario commodity dynamic display system, including:
[0162] A data acquisition module, used to acquire product image data and user behavior data;
[0163] A feature extraction module is used to divide the product image data into n scene categories, extract features from the product image data in each scene category, and obtain the corresponding high-level semantic feature vector;
[0164] A clustering module, used to cluster the high-level semantic feature vectors in each scene category using an improved Gaussian mixture model to obtain m product image feature subsets in each scene category;
[0165] A principal component splicing module is used to extract principal component feature vectors of product image feature data in each product image feature subset, and splice the principal component feature vectors in each scene category into a corresponding scene feature vector;
[0166] The dynamic optimization display module constructs a scene similarity matrix based on the scene feature vector; according to the scene similarity matrix and user behavior data, an improved Markov decision algorithm is used to obtain the optimal dynamic scene sequence, and the product images are dynamically displayed according to the optimal dynamic scene sequence; each module is connected by wired and / or wireless means to realize data transmission between modules.
[0167] Example 3
[0168] This embodiment discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the operation mode of the method for dynamic display of commodities based on multiple scenarios provided above is implemented.
[0169] Since the electronic device introduced in this embodiment is an electronic device used to implement a method for dynamic display of goods based on multiple scenes in the embodiment of the present application, based on the method for dynamic display of goods based on multiple scenes introduced in the embodiment of the present application, a person skilled in the art can understand the specific implementation of the electronic device of the present embodiment and its various variations, so how the electronic device implements the method in the embodiment of the present application is not described in detail here. As long as a person skilled in the art implements an electronic device used in a method for dynamic display of goods based on multiple scenes in the embodiment of the present application, it belongs to the scope of protection of the present application.
[0170] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0171] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technical users in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for dynamic display of commodities based on multiple scenarios, characterized in that: include: S1. Obtain product image data and user behavior data; S2, dividing the product image data into n scene categories, performing feature extraction on the product image data in each scene category, and obtaining a corresponding high-level semantic feature vector; S3, using an improved Gaussian mixture model to cluster the high-level semantic feature vectors in each scene category, and obtain m product image feature subsets in each scene category; S4, extracting the principal component feature vectors of the product image feature data in each product image feature subset, and concatenating the principal component feature vectors in each scene category into a corresponding scene feature vector; S5. Construct a scene similarity matrix based on the scene feature vector; According to the scene similarity matrix and user behavior data, an improved Markov decision algorithm is used to obtain the optimal dynamic scene sequence, and the product images are dynamically displayed according to the optimal dynamic scene sequence; The improved Gaussian mixture model is obtained by: The improved Gaussian mixture model uses the K-means++ algorithm to perform initial clustering on the input data, obtains R initial clustering centers, and defines the initial parameters of the improved Gaussian mixture model, which include the initial mean vector, the initial covariance matrix, and the initial mixing coefficient; for the first Initial clustering, the sample set in it is CP, then let the initial mean vector be The initial covariance matrix is the mean of the initial clusters. The covariance of the initial clusters, the initial mixing coefficient is The proportion of samples in the initial clusters, The initial covariance matrix Regularize to get the regularized covariance matrix ;in, is the regularization coefficient, is the identity matrix; Collect historical data, including M3 sets of product image data and high-level semantic feature vectors corresponding to the product image data; combine the historical data into an input data set, iteratively train and improve the Gaussian mixture model until convergence or the preset maximum number of iterations is reached. The iterative training methods include: Calculate the responsivity of each data point in the input data set belonging to each Gaussian component; The calculation formula of responsiveness is: ;in, Indicates Data points Belong to The responsivity of the Gaussian components, is a hidden variable; For the The mixing coefficient of the Gaussian components; is the probability density function of the multivariate normal distribution; For the The mean vector of the Gaussian components, For the The covariance matrix of the Gaussian components; is the total number of Gaussian components, For the The mixing coefficient of Gaussian components, For the The mean vector of the Gaussian components, For the The covariance matrix of the Gaussian components; for From all The weighted sum of the total probabilities of the Gaussian components; Based on the calculated responsiveness, the mean vector, covariance matrix and mixing coefficient are recalculated; the trained improved Gaussian mixture model is obtained by using the small kernel technique and unconstrained optimization algorithm; The method of constructing the scene similarity matrix includes: Construct a scene similarity matrix based on scene feature vectors , scene similarity matrix The element in the pi-th row and the pj-th column represents the similarity between the pi-th scene category and the pj-th scene category; the cosine similarity is used to calculate the similarity between the two scene feature vectors as the similarity between the scene categories; that is, the construction of the scene similarity matrix is completed; The method for obtaining the optimal dynamic scene sequence includes: Define a scene similarity matrix State transition probability matrix of the same dimension ; According to the scene similarity matrix To initialize the elements in the state transition probability matrix; The initialization formula is: ,in, is the scene similarity matrix Middle Line The elements of the column, for Middle Line Elements of a column; is the index of the scene category, is the scene similarity matrix Middle Line Elements of a column; The scene importance score is calculated based on user behavior data. The calculation formula for the scene importance score is: ,in Indicates The scene importance scores of scene categories, Browse for users The number of scene category products, Buy the first The number of scene category products, For users User product evaluation weighting coefficient for products in each scenario category; Browse for users The product dwelling time of each scene category product; is the browsing weight coefficient, is the purchase weight coefficient, is the evaluation weight coefficient, is the stay weight coefficient; The scene importance score and the state transition probability matrix are combined to define a scoring matrix. Line Elements of a column Indicates that from The scene category is transferred to The ratings of the scene categories, ,in, Indicates The scene importance scores of scene categories, Indicates The scene importance scores of each scene category; Define a length of The initial dynamic scene sequence and scene goal of the scene are to find an optimal dynamic scene sequence so that the total score transferred along the sequence is the largest. Departure, passing The maximum score after scene categories ; Then there is a recursive formula: ,in, Indicates that from The scene category is transferred to Ratings for scene categories; Calculate the maximum score after any number of steps from any starting scene category, and finally get Given from Departure, passing The maximum score of each scene category is obtained, and the corresponding optimal dynamic scene sequence is obtained by backtracking.
2. A method for dynamic display of commodities based on multiple scenarios according to claim 1, characterized in that: The user behavior data includes user browsing product data, user purchasing product data and user product evaluation weight coefficient; User browsing data includes browsing product categories, browsing times and product dwelling time; User purchase data includes the categories of purchased goods and the number of times the goods were purchased.
3. A method for dynamic display of commodities based on multiple scenarios according to claim 2, characterized in that: The method for obtaining the user product evaluation weight coefficient includes: Collecting user evaluation text data on products, and preprocessing the evaluation text data to obtain a set of evaluation words, recorded as the evaluation word set; the preprocessing method includes word segmentation, removal of stop words and removal of punctuation marks; Manually annotate the sentiment polarity of M evaluation words in the evaluation word set, where the sentiment polarity is positive, neutral or negative; and automatically expand the evaluation word set into a sentiment dictionary using the seed word expansion method; For each word in the evaluation word set, query the sentiment dictionary and obtain its sentiment polarity value; accumulate the sentiment polarity values of all words as the sentiment polarity score of the evaluation text data; Collect historical evaluation text data, and convert each evaluation text into a vector consisting of sentiment polarity scores, recorded as sentiment polarity score vector; Manually label the evaluation text corresponding to the sentiment polarity score vector with a category label, and use the sentiment polarity score vector and the manually labeled category label to form training data; Use the samples in the training data to build and train the sentiment polarity classifier model, use the support vector machine as the basic framework of the sentiment polarity classifier model, and divide the sentiment polarity score vector into linearly separable and linearly inseparable; define the optimization objective function of the sentiment polarity classifier model and constraint function ; , for linearly separable, ,and Greater than or equal to 1; For linearly inseparable ,and Greater than or equal to , where is the normal vector of the defined hyperplane, is the intercept of the hyperplane; For the The sentiment polarity score vector of samples, For the The class labels of samples, For the sample slack variables, and Greater than or equal to 0, is the penalty coefficient, and Greater than 0; is the total number of samples, is the weight hyperparameter; Through the cross-validation method, the appropriate penalty coefficient, kernel function and its parameters are selected to obtain the optimal model performance, and the constructed and trained sentiment polarity classifier model is obtained; Collect historical user evaluation data for the product, use the sentiment polarity classifier to predict the sentiment polarity value of each evaluation, and count the number of positive categories for each user , the number of mid-face categories and the number of negative classes ; then the user product evaluation weight coefficient .
4. A method for dynamic display of commodities based on multiple scenarios according to claim 3, characterized in that: The ways to automatically expand into a sentiment dictionary include: Initialize a blank sentiment dictionary and manually collect the seed words with positive or negative sentiment from the M1 group as the initial vocabulary; Traverse the large-scale corpus, count the frequency of each word appearing with the seed word, and use the words that appear with the seed word of positive emotional color more frequently than the preset positive co-occurrence threshold as potential new positive emotional word candidates; use the words that appear with the seed word of negative emotional color less frequently than the preset negative co-occurrence threshold as potential new negative emotional word candidates; Using the word vector model, the semantic similarity between the new candidate word and the corresponding seed word is calculated; a synonym similarity threshold and an antonym similarity threshold are preset; words with a semantic similarity greater than or equal to the synonym similarity threshold are determined as synonyms of the seed word; words with a semantic similarity less than the antonym similarity threshold are determined as antonyms of the seed word; The synonyms and antonyms obtained are weighted by voting to obtain voting scores, and words with voting scores greater than a preset score threshold are included in the sentiment dictionary; Use the newly included words as new seed words and repeatedly expand the sentiment dictionary until the size of the dictionary meets the preset dictionary requirements; The method of calculating the semantic similarity between the new candidate word and the corresponding seed word includes: Define the objective function of the word vector model ; ;in, is the vocabulary size, Words The word vector of Words and words The number of co-occurrences of for The weight function of Words The bias term, Words The bias term, is the set of seed words, for The index of the seed word in Seed word A collection of words with the same sentiment polarity, for The mean vector of all word vectors in , for The index of the words in Words The word vector of is a hyperparameter; For new candidate words ,calculate and ;in, Indicates new candidate words A collection of seed words with positive sentiment colors The similarity of the most similar words in Indicates new candidate words A collection of seed words with negative sentiment The similarity of the most similar words in New candidate word The word vector of New candidate word The word vector of Calculates the cosine similarity function.
5. A method for dynamic display of commodities based on multiple scenarios according to claim 4, characterized in that: The method for extracting features includes: Construct a feature extraction network model based on a standard convolutional neural network structure; the feature extraction network model includes n1 convolutional layers, a global average pooling layer, a fully connected layer, and a feature vector output layer; For each feature map output by the convolutional layer, the attention weight matrix is calculated using the following formula: ;in, for The attention function, For the The output feature map of the convolutional layer; For the The attention weight matrix of the convolutional layer, , where For the The first linear transformation matrix of the convolutional layer, For the The second linear transformation matrix of the convolutional layer, are the dimensions of the key space and value space, is the soft maximum function; Multiply the attention weight matrix and the feature map element by element to obtain the attention weighted feature map, and use the attention weighted feature map as the input of the next layer to replace the original feature map; For the attention-weighted feature map output by each convolutional layer, a feature vector is obtained using a global average pooling layer; the feature vectors from different convolutional layers are concatenated to obtain a multi-scale feature vector; the multi-scale feature vector is input into a fully connected layer for feature conversion and nonlinear mapping to obtain the final high-level semantic feature vector; Define the loss function of the feature extraction network model ;in, To balance the hyperparameters, is the cross entropy loss function; Semantic loss function ; In the formula, is the number of training samples, is the index of the training sample, For the The predicted high-level semantic feature vector of training samples, To indicate the Semantic annotation of training samples; , where for The transpose of is the weight kernel parameter, is the density kernel parameter, and Greater than or equal to 0, Greater than 0; Construct a training data set, which includes M1 sets of product images and their corresponding semantic annotations; use the optimization algorithm back propagation to update the parameters of the feature extraction network model and minimize the loss function. After n2 rounds of iterative training, the constructed feature extraction network model is obtained; The product image data is input into the feature extraction network model to obtain the high-level semantic feature vector and complete the feature extraction.
6. A method for dynamic display of commodities based on multiple scenarios according to claim 5, characterized in that: The method for acquiring the m product image feature subsets in each scene category includes: Step 1: For any scene category, the responsiveness of each high-level semantic feature vector belonging to each Gaussian component is calculated according to the trained improved Gaussian mixture model; Step 2: For each Gaussian component, sort all high-level semantic feature vectors from large to small according to the responsiveness, select the first m high-level semantic feature vectors and their corresponding product image data to form the product image feature subset corresponding to the Gaussian component; Repeat steps 1 and 2 until m product image feature subsets in the corresponding scene category are obtained.
7. A method for dynamic display of commodities based on multiple scenarios according to claim 6, characterized in that: The method of extracting the principal component feature vector includes: For each product image feature subset, its high-level semantic feature vector is centralized to obtain the centralized data matrix ,in, is the mean matrix of all high-level semantic feature vectors; is the initial data matrix constructed; The centralized data matrix Perform singular value decomposition, the formula for singular value decomposition is: ,in, is an orthogonal matrix, is a diagonal matrix, is an orthogonal matrix, for The transpose of Before selection The principal component direction corresponding to the largest singular value is Before The matrix composed of columns is used as the basis of the principal component feature space of the product image feature subset. High-level semantic feature vector , its projection in the principal component feature space is ,in, is the mean of the high-level semantic feature vector; That is, the principal component eigenvector; For each scene category, the principal component feature vectors in the corresponding m product image feature subsets are concatenated to form a scene feature vector for the scene category.
8. A system for dynamic display of commodities based on multiple scenes, which is used to implement a method for dynamic display of commodities based on multiple scenes as claimed in any one of claims 1 to 7, characterized in that: include: A data acquisition module, used to acquire product image data and user behavior data; A feature extraction module is used to divide the product image data into n scene categories, extract features from the product image data in each scene category, and obtain the corresponding high-level semantic feature vector; A clustering module, used to cluster the high-level semantic feature vectors in each scene category using an improved Gaussian mixture model to obtain m product image feature subsets in each scene category; A principal component splicing module is used to extract principal component feature vectors of product image feature data in each product image feature subset, and splice the principal component feature vectors in each scene category into a corresponding scene feature vector; Dynamic optimization display module, based on scene feature vectors, builds a scene similarity matrix; According to the scene similarity matrix and user behavior data, an improved Markov decision algorithm is used to obtain the optimal dynamic scene sequence, and the product images are dynamically displayed according to the optimal dynamic scene sequence.
