Multi-modal clothing matching recommendation method guided by personalized styles

The multi-modal clothing matching recommendation method guided by personalized style, combined with user historical data and multi-modal information, solves the limitations of understanding style preferences and fashion compatibility in the existing technology, and achieves more accurate and personalized clothing matching. Recommendations improve user shopping experience.

CN118657582APending Publication Date: 2024-09-17DONGHUA UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410792754.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing clothing matching recommendation technology is difficult to fully consider users' personalized style preferences, and there are limitations in the understanding and application of fashion compatibility, resulting in deviations between recommendation results and user expectations.

Method used

A multi-modal clothing matching recommendation method guided by personalized style is used to collect user historical clothing matching data, use fine-tuned large models to extract style features, combine Gaussian mixture clustering and convolutional neural networks to extract visual features, and fuse image and text information. , design a compatibility scoring function, optimize the personalized sorting framework, and provide personalized clothing matching recommendations.

Benefits of technology

It achieves more accurate and personalized clothing matching recommendations, improves the accuracy of fashion recommendations and user satisfaction, and meets users' personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657582A
    Figure CN118657582A
Patent Text Reader

Abstract

The invention relates to a personalized style-guided multi-modal garment matching recommendation method, which comprises the following steps of: collecting historical garment matching data of a user as a user preference data set A, and collecting garment matching image data with a style label as a data set B; using the data set B to finely adjust the large model to serve as a clothes matching style classification network, and classifying the clothes matching images in the data set A into different style classes; performing personalized style clustering by using the data set A as supervision information; extracting features; a positive and negative sample pair mode is adopted to learn the compatibility relation of the clothes; calculating the overall compatibility of a set of clothes matching, and optimizing personalized clothes matching recommendation in combination with the personalized style features and the overall compatibility score; and outputting a personalized clothing matching recommendation ranking list. The problem that the clothing matching recommendation technology is insufficient in the aspects of processing personalized demands of users and representing diversity is solved, and more accurate and personalized clothing matching suggestions are provided for the users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning, and in particular to a personalized style-guided multimodal clothing matching recommendation method. Background Art

[0002] With the popularization of personalized consumption concepts and the rapid development of Internet technology, personalized clothing recommendation technology has gradually gained attention in the fashion industry. When faced with a large number of fashion products and matching options, users often need to rely on recommendation technology to screen and recommend clothing that suits their taste and style. However, existing recommendation technologies still have many shortcomings in dealing with user personalized needs.

[0003] Traditional clothing matching recommendation technology is mainly based on the concept of fashion compatibility, that is, considering the coordination of clothing in terms of color, style, fabric, etc. Although this recommendation method can provide a certain degree of personalized service, it often ignores the user's preference for a specific style. The user's style preference is an important part of their personal taste and image expression. Traditional recommendation methods fail to fully consider this, resulting in the recommendation results may deviate from the user's expectations.

[0004] In addition, the understanding and application of fashion compatibility is also a key issue that needs to be solved for recommendation. Fashion compatibility not only involves the matching degree between two clothing items, but also the overall coordination degree of a set of clothing. Although current technologies have begun to pay attention to the importance of image and text modalities in fashion representation, most methods still use linear fusion, which has limitations in reducing information redundancy and exploring the diversity of fashion representation. Summary of the invention

[0005] Aiming at the problem that clothing matching recommendation technology is insufficient in dealing with user personalized needs and representing diversity, a personalized style-guided multimodal clothing matching recommendation method is proposed. The present invention aims to propose a personal style-guided clothing matching recommendation method combined with multimodal fashion compatibility modeling, which comprehensively considers the user's personal style preference and fashion compatibility, can not only capture the user's preference for a specific style, but also understand the interaction between different fashion elements and how these elements are combined with the user's style preference, can better understand and meet the user's personalized needs, provide users with more accurate and personalized clothing matching suggestions, and at the same time improve the accuracy and practicality of fashion recommendations, thereby enhancing the user's shopping experience and satisfaction.

[0006] The technical solution of the present invention is:

[0007] A personalized style-guided multimodal clothing matching recommendation method comprises the following steps:

[0008] Step 1: Collect the user's historical clothing matching data as the user preference data set A. Each set of matching consists of a top, a bottom and a pair of shoes, including user ID, clothing image and corresponding text description data; there is a user set Clothing collection Tops Collection Bottoms Collection and shoe collection Here, each n X represents the number of elements in the corresponding set X, where X represents U, O, T, B or S respectively; Dataset A also contains positive and negative samples of users, where negative samples are obtained by replacing one item in the positive sample with a different item in the same category; for each user, the ratio of one positive sample to ten negative samples is maintained; clothing matching image data with style labels are collected for analyzing the style of clothing matching, which is dataset B;

[0009] Step 2: Use dataset B to fine-tune the large model as the clothing style classification network, and classify the clothing images in dataset A into different style classes; for a set of clothing o in dataset A, its style feature is represented as S o ; The details are as follows:

[0010] The Stable Diffusion model is used as the basic model for extracting clothing style features. The clothing style labels in dataset B and the LoRA method are used to fine-tune the model in a supervised manner. The original parameters of the pre-trained large model are frozen, and a low-rank decomposition matrix is ​​added to each Transformer module. Only the newly added low-rank matrix part is trained. An average pooling layer and two fully connected layers are added to the end of the model. The cross entropy loss and Adam optimization method are used to minimize the difference between the model's predicted style labels and the actual style labels. Each clothing combination o in dataset A is input into the fine-tuned model to extract the corresponding style features S. o ;

[0011] Step 3: Use the user ID in the dataset A as supervision information to perform personalized style clustering; use the Gaussian mixture clustering algorithm to group clothing combinations with similar fashion styles by user, and use the cluster center of each group as the personalized style feature. Aggregate the style features of each set of clothing combinations in the user's historical clothing combinations into user-level personalized style features; given a user u, there is a set O of his or her favorite clothing combinations in history u =(o1,o2,…,o n ), n is the number of clothing combinations that the user has liked in the past, and the user-level personalized style features are:

[0012]

[0013] Among them, S u represents the personalized style features of user u, g(·) represents the GMM clustering mechanism used to further extract user-level style features from clothing matching-level style features, Indicates clothing matching i style characteristics;

[0014] Step 4: Use convolutional neural networks to extract visual features of clothing images, and learn text features from clothing text descriptions through sequence-to-sequence models; take a top t as an example, use multi-layer perceptron to derive the potential visual embedding v t ; The expression is as follows:

[0015]

[0016] Among them, the visual features extracted by CNN are recorded as δ(·) is the sigmoid activation function, ω, b are related parameters; similarly, the text features extracted by the sequence-to-sequence model are recorded as The potential text embedding c can be obtained t :

[0017]

[0018] Step 5: The combination of image features and text features provides a multimodal representation for modeling the compatibility of clothing combinations; the visual embedding and text embedding are fused into visual-text embedding using vector multiplication. The visual-text multimodal embedding is denoted as z t :

[0019]

[0020] Similarly, for the bottoms b and shoes s that go with top t, there is a visual embedding v b 、v s , text embedding c b 、c s , and visual-textual multimodal embedding z b 、z s ;

[0021] Step 6: Use positive and negative sample pairs to learn the compatibility relationship of clothing from positive and negative samples; use the similarity and complementarity of image, text and multimodal fusion embedding to design the compatibility score function between two pieces of clothing as follows:

[0022]

[0023] Here, C xyrepresents the compatibility score of x and y, each x, y represents two of t, b, s respectively; for a given top t, the existing positive sample bottom b i And negative sample download b j In order to determine the clothing combination with higher compatibility, the optimization target C is expressed as follows:

[0024]

[0025] in, and Respectively represent tops t and bottoms b i 、b j Compatibility score;

[0026] Step 7: Consider the pairwise compatibility of tops, bottoms, and shoes, as well as the weights corresponding to each type, to calculate the overall compatibility of an outfit:

[0027] C tbs =ρC tb +σC ts +τC bs (7)

[0028] Among them, C tbs represents the overall compatibility of top t, bottom b and shoe s, ρ, σ, τ∈[0,1] are non-negative trade-off parameters, and the Lasso regression model is used to learn the optimal weight distribution to control the importance of different compatibilities to the overall compatibility modeling in model training;

[0029] Step 8: The personalized style feature S defined by formula (1) u And the overall compatibility score C of clothing matching defined by formula (7) tbs Combined together, we get a complete fashion representation; the personalized compatibility score F of a set of clothing combinations o = (t, b, s) that user u likes shoes s with a given top t and bottom b u,o as follows:

[0030] F u,o =S u θC tbs (8)

[0031] Among them, θ is a tensor of fixed dimension;

[0032] Step 9: Use the Bayesian personalized ranking framework to optimize personalized clothing matching recommendations; given a tuple (S u ,o i (t,b p ,s),o j (t,b q ,s)),o i andj They represent the clothing combinations that user u likes and dislikes, where the tops and shoes are the same but the bottoms are different, respectively. p and b q Therefore, the optimization objective is: Personalized ranking loss function It is used to predict which clothing combination the user prefers, which can be expressed as:

[0033]

[0034] in, They are user u’s clothing matching o i , o j Personalized compatibility score;

[0035] After personalized sorting and optimization, the model can output a personalized clothing matching recommendation ranking list, so as to recommend clothing matching results that match each user's historical preferences.

[0036] Furthermore, in step 1, historical clothing matching data of users on the Polyvore website is collected as user preference dataset A, which contains 150,380 sets of clothing created by 630 users.

[0037] Furthermore, in step 4, ResNet50 is used as the default backbone network for image feature extraction to extract the visual features of clothing images; in order to process images of any size, the fully connected layer of ResNet50 is replaced with a convolutional layer and supplemented with an average pooling layer to generate a 4096-dimensional feature vector.

[0038] Furthermore, in step 6, in order to enhance robustness, the negative samples are resampled in each training cycle instead of fixing them during training.

[0039] The beneficial effects of the present invention are:

[0040] The present invention proposes a personalized style-guided multimodal clothing matching recommendation method, which comprehensively considers the user's personalized style preferences and the current mass fashion trends, and aims to accurately predict the user's interest in specific clothing matching. By analyzing the user's past clothing choices and matching history, the present invention can accurately capture the user's preferences and provide the user with personalized clothing matching suggestions based on this, satisfying the user's pursuit of personalization and fashion. In addition, the present method further enhances the accuracy of recommendations and user satisfaction by fusing multimodal information, namely the visual image and text description of clothing. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1This is a flow chart of the personalized style-guided multi-modal clothing matching recommendation method of the present invention. DETAILED DESCRIPTION

[0042] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0043] A personalized style-guided multimodal clothing matching recommendation method comprises the following steps:

[0044] Step 1: Collect the historical clothing matching data of users on the Polyvore website as the user preference dataset A, which contains 150,380 sets of clothing created by 630 users. Each set consists of a top, a bottom and a pair of shoes, including user ID, clothing image and corresponding text description data. Clothing collection Tops Collection Bottoms Collection and shoe collection Here, each n X Represents the number of elements in the corresponding set X, where X represents U, O, T, B or S. Dataset A also contains positive and negative samples of users, where negative samples are obtained by replacing one item in the positive sample with a different item in the same category. For each user, the ratio of one positive sample to ten negative samples is maintained. The clothing matching image data with style labels is collected for analyzing the style of clothing matching, which is dataset B.

[0045] Step 2: Use the Stable Diffusion model (the most advanced model in the Diffusion diffusion model) as the basic model for extracting clothing style features, and use the clothing style labels in dataset B and the LoRA method (Low-Rank Adaptation) to fine-tune the model in a supervised manner. Freeze the original parameters of the pre-trained large model, add a low-rank decomposition matrix to each Transformer module, and only train the newly added low-rank matrix part. Add an average pooling layer and two fully connected layers to the end of the model, and use cross entropy loss and Adam optimization method to minimize the difference between the model's predicted style labels and the actual style labels. Input each set of clothing o in dataset A into the fine-tuned model to extract the corresponding style features S o .

[0046] Step 3: Use the user ID in data set A as supervision information to perform personalized style clustering. The GMM clustering algorithm is used to group clothing combinations with similar fashion styles by user. The cluster center of each group is used as a personalized style feature, and the style features of each set of clothing combinations in the user's historical clothing combinations are aggregated into user-level personalized style features. Given a user u, there is a set O of his or her favorite clothing combinations in history. u =(o1,o2,…,o n ), n is the number of clothing combinations that the user has historically liked, and the user-level personalized style features are:

[0047]

[0048] Among them, S u represents the personalized style features of user u, g(·) represents the GMM clustering mechanism used to further extract user-level style features from clothing matching-level style features, Indicates clothing matching i style characteristics.

[0049] Step 4: ResNet50 is used as the default backbone network for image feature extraction to extract visual features of clothing images. In order to process images of any size, the fully connected layers of ResNet50 are replaced with convolutional layers, supplemented by average pooling layers to generate 4096-dimensional feature vectors. Text features are learned from clothing text descriptions through a sequence-to-sequence model (Seq2Seq), and the text feature dimension is 2400. Taking a top t as an example, a multi-layer perceptron is used to derive the latent visual embedding v t The expression is as follows:

[0050]

[0051] Among them, the visual features extracted by CNN are recorded as δ(·) is the sigmoid activation function, and ω,b are related parameters. Similarly, the text features extracted by Seq2Seq are recorded as The potential text embedding c can be obtained t :

[0052]

[0053] Step 5: The combination of image features and text features provides a multimodal representation for modeling the compatibility of clothing combinations. The visual embedding and text embedding are fused into a visual text embedding using vector multiplication, denoted as z t :

[0054]

[0055] Similarly, for the bottoms b and shoes s that go with top t, there is a visual embedding v b 、v s , text embedding c b 、c s , and visual-textual multimodal embedding z b 、z s .

[0056] Step 6: Use positive and negative sample pairs to learn the compatibility relationship of clothing from positive and negative samples. To enhance robustness, negative samples are resampled in each training cycle instead of fixing them during training. Using the similarity and complementarity of image, text and multimodal fusion features, the compatibility score function is designed as follows:

[0057]

[0058] Here, C xy represents the compatibility score of x and y, each x, y represents two of t, b, s respectively. For a given top t, there is a positive sample bottom b i And negative sample download b j In order to determine the clothing combination with higher compatibility, the optimization goal is expressed as follows:

[0059]

[0060] in, and Respectively represent tops t and bottoms b i 、b j compatibility score.

[0061] Step 7: Combine the pairwise compatibility between tops, bottoms and shoes in the clothing combination, and assign different weights to each pairwise compatibility to calculate the overall compatibility of a set of clothing combinations:

[0062] C tbs =ρC tb +σC ts +τC bs (7)

[0063] Among them, C tbs represents the overall compatibility of top t, bottom b and shoe s. ρ, σ, τ∈[0,1] are non-negative trade-off parameters. The Lasso regression model is used to learn the optimal weight distribution to control the importance of different compatibilities to the overall compatibility modeling during model training.

[0064] Step 8: The personalized style feature S defined in Eq. (1) u and the overall compatibility score C of clothing matching defined by Eq. (7)tbs Combined together, we get a complete fashion representation. The personalized compatibility score F of a set of clothing combinations o = (t, b, s) that user u likes shoes s and a given top t and bottom b u,o :

[0065] F u,o =S u θC tbs (8)

[0066] Here, θ is a tensor of fixed dimension.

[0067] Step 9: Use the Bayesian Personalized Ranking Framework (BPR) to optimize personalized clothing matching recommendations. Given a tuple (S u ,o i (t,b p ,s),o j (t,b n ,s)),o i and j They represent the clothing combinations that user u likes and dislikes, where the tops and shoes are the same but the bottoms are different, respectively. p and b q Therefore, the optimization objective is: P≡{(u,i,j)|F u ,o i >F u ,o j}. Personalized ranking loss function It is used to predict which clothing combination the user prefers, which can be expressed as:

[0068]

[0069] After personalized sorting and optimization, the model can output a personalized clothing matching recommendation ranking list, so as to recommend clothing matching results that match each user's historical preferences.

[0070] The above-mentioned embodiment only expresses one implementation mode of the present invention, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A personalized style-guided multimodal clothing matching recommendation method, characterized in that: The following steps are involved: Step 1: Collect the user's historical clothing matching data as the user preference dataset A. Each set of matching consists of a top, a bottom and a pair of shoes, including user ID, clothing image and corresponding text description data; User collection exists Clothing collection Tops Collection Bottoms Collection and shoe collection Here, each n X represents the number of elements in the corresponding set X, where X represents U, O, T, B or S respectively; the dataset A also contains positive and negative samples of users, where negative samples are obtained by replacing one item in the positive sample with a different item in the same category; for each user, the ratio of one positive sample to ten negative samples is maintained; Collect clothing matching image data with style labels for analyzing clothing matching styles, which is dataset B; Step 2: Use dataset B to fine-tune the large model as the clothing style classification network, and classify the clothing images in dataset A into different style classes; for a set of clothing o in dataset A, its style feature is represented as S o ; The details are as follows: The Stable Diffusion model is used as the basic model for extracting clothing style features. The clothing style labels in dataset B and the LoRA method are used to fine-tune the model in a supervised manner. The original parameters of the pre-trained large model are frozen, and a low-rank decomposition matrix is ​​added to each Transformer module. Only the newly added low-rank matrix part is trained. An average pooling layer and two fully connected layers are added to the end of the model. The cross entropy loss and Adam optimization method are used to minimize the difference between the model's predicted style labels and the actual style labels. Each clothing combination o in dataset A is input into the fine-tuned model to extract the corresponding style features S. o ; Step 3: Use the user ID in data set A as supervision information to perform personalized style clustering; use the Gaussian mixture clustering algorithm to group clothing combinations with similar fashion styles by user, use the cluster center of each group as the personalized style feature, and aggregate the style features of each set of clothing combinations in the user's historical clothing combinations into user-level personalized style features; Given user u, there is a set O of his / her favorite clothing combinations u =(o1,o2,…,o n ), n is the number of clothing combinations that the user has liked in the past, and the user-level personalized style features are: Among them, S u represents the personalized style features of user u, g(·) represents the GMM clustering mechanism used to further extract user-level style features from clothing matching-level style features, Indicates clothing matching i style characteristics; Step 4: Use convolutional neural networks to extract visual features of clothing images, and learn text features from clothing text descriptions through sequence-to-sequence models; take a top t as an example, use multi-layer perceptron to derive the latent visual embedding v t ; The expression is as follows: Among them, the visual features extracted by CNN are recorded as δ(·) is the sigmoid activation function, ω, b are related parameters; similarly, the text features extracted by the sequence-to-sequence model are recorded as The potential text embedding c can be obtained t : Step 5: The combination of image features and text features provides a multimodal representation for modeling the compatibility of clothing combinations; the visual embedding and text embedding are fused into visual-text embedding using vector multiplication. The visual-text multimodal embedding is denoted as z t : Similarly, for the bottoms b and shoes s that go with top t, there is a visual embedding v b 、v s , text embedding c b 、c s , and visual-textual multimodal embedding z b 、z s ; Step 6: Use positive and negative sample pairs to learn the compatibility relationship of clothing from positive and negative samples; use the similarity and complementarity of image, text and multimodal fusion embedding to design the compatibility score function between two pieces of clothing as follows: Here, C xy represents the compatibility score of x and y, each x, y represents two of t, b, s respectively; for a given top t, the existing positive sample bottom b i And negative sample download b j In order to determine the clothing combination with higher compatibility, the optimization target C is expressed as follows: in, and Respectively represent tops t and bottoms b i 、b j Compatibility score; Step 7: Consider the pairwise compatibility of tops, bottoms, and shoes, as well as the weights corresponding to each type, to calculate the overall compatibility of an outfit: C tbs =ρC tb +σC ts +τC bs (7) Among them, C tbs represents the overall compatibility of top t, bottom b and shoe s, ρ, σ, τ∈[0, 1] are non-negative trade-off parameters, and the Lasso regression model is used to learn the optimal weight distribution to control the importance of different compatibilities to the overall compatibility modeling in model training; Step 8: The personalized style feature S defined by formula (1) u And the overall compatibility score C of clothing matching defined by formula (7) tbs Combined together, we get a complete fashion representation; the personalized compatibility score F of a set of clothing combinations o = (t, b, s) of the shoes s that user u likes and a given top t and bottom b u,o as follows: F u,o =S u θC tbs (8) Among them, θ is a tensor of fixed dimension; Step 9: Use the Bayesian personalized ranking framework to optimize personalized clothing matching recommendations; given a tuple (S u , o i (t,b p ,s),o j (t,b q ,s)),o i and j They represent the clothing combinations that user u likes and dislikes, respectively. In the two combinations, the tops and shoes are the same, but the bottoms are different. p and b q Therefore, the optimization objective is: Personalized ranking loss function It is used to predict which clothing combination the user prefers, which can be expressed as: in, They are user u’s clothing matching o i , o j Personalized compatibility score; After personalized sorting and optimization, the model can output a personalized clothing matching recommendation ranking list, so as to recommend clothing matching results that match each user's historical preferences.

2. The personalized style-guided multi-modal clothing matching recommendation method according to claim 1, characterized in that: In step 1, historical clothing matching data of users on the Polyvore website is collected as user preference dataset A, which contains 150,380 sets of clothing created by 630 users.

3. The personalized style-guided multi-modal clothing matching recommendation method according to claim 1, characterized in that: In step 4, ResNet50 is used as the default backbone network for image feature extraction to extract the visual features of clothing images; in order to process images of any size, the fully connected layer of ResNet50 is replaced with a convolutional layer and supplemented with an average pooling layer to generate a 4096-dimensional feature vector.

4. The personalized style-guided multimodal clothing matching recommendation method according to claim 1, characterized in that: In step 6, to enhance robustness, negative samples are resampled in each training cycle instead of fixing them during training.

Citation Information

Cited By

  • Clothing matching recommendation method and system based on big data

    CN119515509A

  • Personalized hygienic product recommendation method and system based on use state monitoring

    CN121958663A

  • Semantic structuring and cascade matching-based costume matching generation method and system

    CN122615103A