The invention discloses a personalized retrieval type clothing recommendation method and
system based on historical data
perception. The method comprises the following steps: 1, acquiring historical clothing data and single-item multi-
modal information of a user; 2, extracting image and text features through multi-
modal information of a CLIP
encoder, and fusing the image and text features; 3, performing
feature extraction and fusion on the single-item image and the text description in the step 1 to generate a single-item multi-
modal representation vector; 4, inputting the multi-modal representation vector of each
single item in the garment sequence to be evaluated into a Transform
encoder, and outputting a compatibility embedded vector representing overall matching; 5, constructing a joint
loss function, and optimizing compatibility prediction and personalized recommendation targets; 6, balancing compatibility and
personalization by adopting two-stage training; and 7, performing answer prediction based on the distance between the compatibility embedding vectors to calculate the accuracy, and calculating a personalized matching
score based on the correlation between the compatibility embedding vector of the predicted answer and the historical
latent variable of the user.